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