summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/ipc/msgsnd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/ipc/msgsnd.c')
-rw-r--r--libc-top-half/musl/src/ipc/msgsnd.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/ipc/msgsnd.c b/libc-top-half/musl/src/ipc/msgsnd.c
new file mode 100644
index 0000000..99bb17e
--- /dev/null
+++ b/libc-top-half/musl/src/ipc/msgsnd.c
@@ -0,0 +1,12 @@
+#include <sys/msg.h>
+#include "syscall.h"
+#include "ipc.h"
+
+int msgsnd(int q, const void *m, size_t len, int flag)
+{
+#ifndef SYS_ipc
+ return syscall_cp(SYS_msgsnd, q, m, len, flag);
+#else
+ return syscall_cp(SYS_ipc, IPCOP_msgsnd, q, len, flag, m);
+#endif
+}