microblaze: add ulps file
[uclibc-ng.git] / librt / mq_close.c
blobcf04044ccaee96ae2e2bfade207ed71ccd0f7f85
1 /*
2 * mq_close.c - close a message queue.
3 */
5 #include <errno.h>
6 #include <unistd.h>
7 #include <sys/syscall.h>
9 #include <mqueue.h>
11 #ifdef __NR_mq_open
14 * Remove the association between message queue descriptor and its
15 * message queue.
17 int mq_close(mqd_t mqdes)
19 return close(mqdes);
22 #endif