From ee7cd3e6b622a8c40236ac26270e369bc28af007 Mon Sep 17 00:00:00 2001 From: pk33 Date: Sun, 3 Nov 2024 01:39:28 +0100 Subject: modesetting tweaks --- musl/sys/ipc.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 musl/sys/ipc.h (limited to 'musl/sys/ipc.h') diff --git a/musl/sys/ipc.h b/musl/sys/ipc.h new file mode 100644 index 0000000..9e366b7 --- /dev/null +++ b/musl/sys/ipc.h @@ -0,0 +1,42 @@ +#ifndef _SYS_IPC_H +#define _SYS_IPC_H +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#define __NEED_uid_t +#define __NEED_gid_t +#define __NEED_mode_t +#define __NEED_key_t + +#include + +#define __ipc_perm_key __key +#define __ipc_perm_seq __seq + +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define __key key +#define __seq seq +#endif + +#include +#include + +#define IPC_CREAT 01000 +#define IPC_EXCL 02000 +#define IPC_NOWAIT 04000 + +#define IPC_RMID 0 +#define IPC_SET 1 +#define IPC_INFO 3 + +#define IPC_PRIVATE ((key_t) 0) + +key_t ftok (const char *, int); + +#ifdef __cplusplus +} +#endif +#endif -- cgit v1.2.3