summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/msgrcv.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/msgrcv.c')
-rw-r--r--lib/libc/gen/msgrcv.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libc/gen/msgrcv.c b/lib/libc/gen/msgrcv.c
new file mode 100644
index 0000000..5c1e387
--- /dev/null
+++ b/lib/libc/gen/msgrcv.c
@@ -0,0 +1,17 @@
+#include <sys/types.h>
+#include <sys/ipc.h>
+#include <sys/msg.h>
+
+#if __STDC__
+int msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg)
+#else
+int msgrcv(msqid, msgp, msgsz, msgtyp, msgflg)
+ int msqid;
+ void *msgp;
+ size_t msgsz;
+ long msgtyp;
+ int msgflg;
+#endif
+{
+ return (msgsys(3, msqid, msgp, msgsz, msgtyp, msgflg));
+}
OpenPOWER on IntegriCloud