summaryrefslogtreecommitdiff
path: root/librt/mq_send.c
blob: 079e804f7c019d677940c4efebbd70f566a33f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * mq_send.c - functions for sending to message queue.
 */

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

#include <mqueue.h>

#if defined(__NR_mq_timedsend) || defined(__NR_mq_timedsend_time64)
int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio)
{
	return mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio, NULL);
}
#endif