summaryrefslogtreecommitdiffstats
path: root/librt/mq_close.c
blob: 055ad1fec253798178be3b0d477be9992cf8c609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * mq_close.c - close a message queue.
 */

#include <errno.h>
#include <unistd.h>
#include <sys/syscall.h>

#include <mqueue.h>

#ifdef __NR_mq_open

/*
 * Remove the association between message queue descriptor and its
 * message queue.
 */
int mq_close(mqd_t mqdes)
{
    return close(mqdes);
}

#endif