aboutsummaryrefslogtreecommitdiff
path: root/librt/mq_close.c
blob: cf04044ccaee96ae2e2bfade207ed71ccd0f7f85 (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