diff options
Diffstat (limited to 'libc-top-half/musl/src/ipc/msgget.c')
-rw-r--r-- | libc-top-half/musl/src/ipc/msgget.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/ipc/msgget.c b/libc-top-half/musl/src/ipc/msgget.c new file mode 100644 index 0000000..30a4b42 --- /dev/null +++ b/libc-top-half/musl/src/ipc/msgget.c @@ -0,0 +1,12 @@ +#include <sys/msg.h> +#include "syscall.h" +#include "ipc.h" + +int msgget(key_t k, int flag) +{ +#ifndef SYS_ipc + return syscall(SYS_msgget, k, flag); +#else + return syscall(SYS_ipc, IPCOP_msgget, k, flag); +#endif +} |