summaryrefslogtreecommitdiff
path: root/src/ipc/msgget.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-05 16:33:55 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-05 16:33:55 -0400
commit8bb82b4e58cb4dedb276151c47a799c1e51af230 (patch)
treee66f3383300fc7be6fa04ce824394c6ff953c84c /src/ipc/msgget.c
parent0438e9fd63bedaa43173fc26b567568ecddac55d (diff)
downloadmusl-8bb82b4e58cb4dedb276151c47a799c1e51af230.tar.gz
add sysv ipc message queues (completely untested)
Diffstat (limited to 'src/ipc/msgget.c')
-rw-r--r--src/ipc/msgget.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ipc/msgget.c b/src/ipc/msgget.c
new file mode 100644
index 00000000..9d79fe76
--- /dev/null
+++ b/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)
+{
+#ifdef __NR_msgget
+ return syscall(SYS_msgget, k, flag);
+#else
+ return syscall(SYS_ipc, IPCOP_msgget, k, flag);
+#endif
+}