14 #define __NEED_ssize_t
16 #include <bits/alltypes.h>
18 typedef unsigned long msgqnum_t
;
19 typedef unsigned long msglen_t
;
23 #define __msg_cbytes msg_cbytes
25 #define MSG_NOERROR 010000
26 #define MSG_EXCEPT 020000
30 #define MSG_STAT_ANY 13
33 int msgpool
, msgmap
, msgmax
, msgmnb
, msgmni
, msgssz
, msgtql
;
34 unsigned short msgseg
;
37 int msgctl (int, int, struct msqid_ds
*);
38 int msgget (key_t
, int);
39 ssize_t
msgrcv (int, void *, size_t, long, int);
40 int msgsnd (int, const void *, size_t, int);
42 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)