blob: 8e2f71725c8c614bcc0ccd4f37e06b1601d9040a [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#ifndef _SYS_IPC_H
2#define _SYS_IPC_H
3#ifdef __cplusplus
4extern "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 Felker07e865c2011-04-13 16:45:43 -040014#ifdef _GNU_SOURCE
15#define __ipc_perm_key key
16#define __ipc_perm_seq seq
17#endif
18
Rich Felker0b44a032011-02-12 00:22:29 -050019#include <bits/ipc.h>
20
Rich Felker07e865c2011-04-13 16:45:43 -040021#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 Felker0b44a032011-02-12 00:22:29 -050032key_t ftok (const char *, int);
33
34#ifdef __cplusplus
35}
36#endif
37#endif