mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-24 06:04:36 +03:00

the macro was the wrong way round, additionally GNU defines __ prefixed versions, which are used by qemu.
42 lines
631 B
C
42 lines
631 B
C
#ifndef _SYS_IPC_H
|
|
#define _SYS_IPC_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <features.h>
|
|
|
|
#define __NEED_uid_t
|
|
#define __NEED_gid_t
|
|
#define __NEED_mode_t
|
|
#define __NEED_key_t
|
|
|
|
#include <bits/alltypes.h>
|
|
|
|
#ifdef _GNU_SOURCE
|
|
#define key __ipc_perm_key
|
|
#define seq __ipc_perm_seq
|
|
#define __key __ipc_perm_key
|
|
#define __seq __ipc_perm_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
|