fix mrand48/jrand48 return value on 64-bit archs
[musl.git] / include / sys / ipc.h
blobc5a39819c5e700b8c08e448cb0e4fa22389378d3
1 #ifndef _SYS_IPC_H
2 #define _SYS_IPC_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
7 #include <features.h>
9 #define __NEED_uid_t
10 #define __NEED_gid_t
11 #define __NEED_mode_t
12 #define __NEED_key_t
14 #include <bits/alltypes.h>
16 #define __ipc_perm_key __key
17 #define __ipc_perm_seq __seq
19 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
20 #define __key key
21 #define __seq seq
22 #endif
24 #include <bits/ipc.h>
26 #define IPC_CREAT 01000
27 #define IPC_EXCL 02000
28 #define IPC_NOWAIT 04000
30 #define IPC_RMID 0
31 #define IPC_SET 1
32 #define IPC_STAT 2
33 #define IPC_INFO 3
35 #define IPC_PRIVATE ((key_t) 0)
37 key_t ftok (const char *, int);
39 #ifdef __cplusplus
41 #endif
42 #endif