Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #ifndef _SYS_IPC_H |
| 2 | #define _SYS_IPC_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
| 7 | #define __NEED_uid_t |
| 8 | #define __NEED_gid_t |
| 9 | #define __NEED_mode_t |
| 10 | #define __NEED_key_t |
| 11 | |
| 12 | #include <bits/alltypes.h> |
| 13 | |
Rich Felker | 07e865c | 2011-04-13 16:45:43 -0400 | [diff] [blame] | 14 | #ifdef _GNU_SOURCE |
| 15 | #define __ipc_perm_key key |
| 16 | #define __ipc_perm_seq seq |
| 17 | #endif |
| 18 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 19 | #include <bits/ipc.h> |
| 20 | |
Rich Felker | 07e865c | 2011-04-13 16:45:43 -0400 | [diff] [blame] | 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_STAT 2 |
| 28 | #define IPC_INFO 3 |
| 29 | |
| 30 | #define IPC_PRIVATE ((key_t) 0) |
| 31 | |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 32 | key_t ftok (const char *, int); |
| 33 | |
| 34 | #ifdef __cplusplus |
| 35 | } |
| 36 | #endif |
| 37 | #endif |