mq_send.c 333 B

12345678910111213141516
  1. /*
  2. * mq_send.c - functions for sending to message queue.
  3. */
  4. #include <errno.h>
  5. #include <stddef.h>
  6. #include <sys/syscall.h>
  7. #include <mqueue.h>
  8. #ifdef __NR_mq_timedsend
  9. int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio)
  10. {
  11. return mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio, NULL);
  12. }
  13. #endif