mq_receive.c 394 B

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