summaryrefslogtreecommitdiff
path: root/src/mq/mq_receive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mq/mq_receive.c')
-rw-r--r--src/mq/mq_receive.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mq/mq_receive.c b/src/mq/mq_receive.c
new file mode 100644
index 00000000..0b1bb4e4
--- /dev/null
+++ b/src/mq/mq_receive.c
@@ -0,0 +1,6 @@
+#include <mqueue.h>
+
+ssize_t mq_receive(mqd_t mqd, char *msg, size_t len, unsigned *prio)
+{
+ return mq_timedreceive(mqd, msg, len, prio, 0);
+}