summaryrefslogtreecommitdiff
path: root/lib/mlibc/options/posix/include/sys/ipc.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-07 17:28:52 -0500
committerIan Moffett <ian@osmora.org>2024-03-07 18:24:51 -0500
commitf5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 (patch)
tree93b156621dc0303816b37f60ba88051b702d92f6 /lib/mlibc/options/posix/include/sys/ipc.h
parentbd5969fc876a10b18613302db7087ef3c40f18e1 (diff)
build: Build mlibc + add distclean target
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/mlibc/options/posix/include/sys/ipc.h')
-rw-r--r--lib/mlibc/options/posix/include/sys/ipc.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/lib/mlibc/options/posix/include/sys/ipc.h b/lib/mlibc/options/posix/include/sys/ipc.h
deleted file mode 100644
index 8318dde..0000000
--- a/lib/mlibc/options/posix/include/sys/ipc.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef _SYS_IPC_H
-#define _SYS_IPC_H
-
-#include <abi-bits/uid_t.h>
-#include <abi-bits/gid_t.h>
-#include <abi-bits/mode_t.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#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)
-
-#if defined(__aarch64__) || defined(__i386__)
-#define IPC_64 0x100
-#elif defined(__x86_64__) || (defined(__riscv) && __riscv_xlen == 64)
-#define IPC_64 0
-#else
-#error "Unsupported arch!"
-#endif
-
-typedef int key_t;
-
-struct ipc_perm {
- key_t __ipc_perm_key;
- uid_t uid;
- gid_t gid;
- uid_t cuid;
- gid_t cgid;
- mode_t mode;
- int __ipc_perm_seq;
-};
-
-#ifndef __MLIBC_ABI_ONLY
-
-key_t ftok(const char *, int);
-
-#endif /* !__MLIBC_ABI_ONLY */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif