sigaltstck: add missing include
[libc-test.git] / src / api / sys_msg.c
blobd9a863123c4aefdaa07c5a87c5137b9d7a191fe5
1 #include <sys/msg.h>
2 #define T(t) (t*)0;
3 #define F(t,n) {t *y = &x.n;}
4 #define C(n) switch(n){case n:;}
5 static void f()
7 T(msgqnum_t)
8 T(msglen_t)
9 T(pid_t)
10 T(size_t)
11 T(ssize_t)
12 T(time_t)
13 C(MSG_NOERROR)
15 struct msqid_ds x;
16 F(struct ipc_perm, msg_perm)
17 F(msgqnum_t, msg_qnum)
18 F(msglen_t,msg_qbytes)
19 F(pid_t, msg_lspid)
20 F(pid_t, msg_lrpid)
21 F(time_t, msg_stime)
22 F(time_t, msg_rtime)
23 F(time_t,msg_ctime)
25 {int(*p)(int,int,struct msqid_ds*) = msgctl;}
26 {int(*p)(key_t,int) = msgget;}
27 {ssize_t(*p)(int,void*,size_t,long,int) = msgrcv;}
28 {int(*p)(int,const void*,size_t,int) = msgsnd;}