Linux Audio

Check our new training course

Embedded Linux Audio

Check our new training course
with Creative Commons CC-BY-SA
lecture materials

Bootlin logo

Elixir Cross Referencer

Loading...
/*
 * 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