2011-02-12 05:22:29 +00:00
|
|
|
#ifndef _SYS_IPC_H
|
|
|
|
#define _SYS_IPC_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-09-08 03:13:55 +00:00
|
|
|
#include <features.h>
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#define __NEED_uid_t
|
|
|
|
#define __NEED_gid_t
|
|
|
|
#define __NEED_mode_t
|
|
|
|
#define __NEED_key_t
|
|
|
|
|
|
|
|
#include <bits/alltypes.h>
|
|
|
|
|
2012-12-06 21:52:09 +00:00
|
|
|
#define __ipc_perm_key __key
|
|
|
|
#define __ipc_perm_seq __seq
|
2011-04-13 20:45:43 +00:00
|
|
|
|
2012-12-11 02:36:12 +00:00
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
|
|
#define __key key
|
|
|
|
#define __seq seq
|
|
|
|
#endif
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#include <bits/ipc.h>
|
|
|
|
|
2011-04-13 20:45:43 +00:00
|
|
|
#define IPC_CREAT 01000
|
|
|
|
#define IPC_EXCL 02000
|
|
|
|
#define IPC_NOWAIT 04000
|
|
|
|
|
|
|
|
#define IPC_RMID 0
|
|
|
|
#define IPC_SET 1
|
|
|
|
#define IPC_STAT 2
|
|
|
|
#define IPC_INFO 3
|
|
|
|
|
|
|
|
#define IPC_PRIVATE ((key_t) 0)
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
key_t ftok (const char *, int);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|