mq_close.c 309 B

12345678910111213141516171819202122
  1. /*
  2. * mq_close.c - close a message queue.
  3. */
  4. #include <errno.h>
  5. #include <unistd.h>
  6. #include <sys/syscall.h>
  7. #include <mqueue.h>
  8. #ifdef __NR_mq_open
  9. /*
  10. * Remove the association between message queue descriptor and its
  11. * message queue.
  12. */
  13. int mq_close(mqd_t mqdes)
  14. {
  15. return close(mqdes);
  16. }
  17. #endif