blob: 217848cca723a0d8f55259a1adc52314a71996ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* mq_receive.c - functions for receiving from message queue.
*/
#include <errno.h>
#include <stddef.h>
#include <sys/syscall.h>
#include <mqueue.h>
#if defined(__NR_mq_timedreceive) || defined(__NR_mq_timedreceive_time64)
ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio)
{
return mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio, NULL);
}
#endif
|