mirror of
git://git.musl-libc.org/musl
synced 2024-12-17 04:05:05 +00:00
07e865cc5a
some of these definitions were just plain wrong, others based on outdated ancient "non-64" versions of the kernel interface. as much as possible has now been moved out of bits/* these changes break abi (the old abi for these functions was wrong), but since they were not working anyway it can hardly matter.
38 lines
550 B
C
38 lines
550 B
C
#ifndef _SYS_IPC_H
|
|
#define _SYS_IPC_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define __NEED_uid_t
|
|
#define __NEED_gid_t
|
|
#define __NEED_mode_t
|
|
#define __NEED_key_t
|
|
|
|
#include <bits/alltypes.h>
|
|
|
|
#ifdef _GNU_SOURCE
|
|
#define __ipc_perm_key key
|
|
#define __ipc_perm_seq seq
|
|
#endif
|
|
|
|
#include <bits/ipc.h>
|
|
|
|
#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)
|
|
|
|
key_t ftok (const char *, int);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|