• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _SYS_IPC_H
2 #define _SYS_IPC_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #include <features.h>
8 
9 #define __NEED_uid_t
10 #define __NEED_gid_t
11 #define __NEED_mode_t
12 #define __NEED_key_t
13 
14 #include <bits/alltypes.h>
15 
16 #define __ipc_perm_key __key
17 #define __ipc_perm_seq __seq
18 
19 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
20 #define __key key
21 #define __seq seq
22 #endif
23 
24 #include <bits/ipc.h>
25 #include <bits/ipcstat.h>
26 
27 #define IPC_CREAT  01000
28 #define IPC_EXCL   02000
29 #define IPC_NOWAIT 04000
30 
31 #define IPC_RMID 0
32 #define IPC_SET  1
33 #define IPC_INFO 3
34 
35 #define IPC_64 0x0100
36 
37 #define IPC_PRIVATE ((key_t) 0)
38 
39 key_t ftok (const char *, int);
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 #endif
45