aboutsummaryrefslogtreecommitdiff
path: root/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/9-1-buildonly.c
blob: d97279b4a6319fab51dc8c4a47d3d25a1dbdea26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
  Test for the existence and valid prototype
  of the mq_timedreceive function as specified on
  line 9692 of the Base Definitions document
*/

#include <mqueue.h>
#include <time.h>
#include "posixtest.h"

void test_mq_timedreceive_prototype(void)
{
	mqd_t mqdes;
	struct timespec abstime;
	size_t msg_len;
	ssize_t size;
	char *msgp;
	unsigned msg_prio;

	mqdes = 0;
	msg_len = 0;
	msgp = NULL;

	size = mq_timedreceive(mqdes, msgp, msg_len, &msg_prio, &abstime);
	(void)size;
}