X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fmsg.h;h=06f255334b18eec8198b55e1991d962a8a12095f;hb=c41a76f58ce0238172effe982f2cee7bbd2a60a4;hp=4ae522fb3c70c7118fb3e515769ff6ff2f39016b;hpb=095ad156734a5a082e8717e59d76d75db286827c;p=musl diff --git a/include/sys/msg.h b/include/sys/msg.h index 4ae522fb..06f25533 100644 --- a/include/sys/msg.h +++ b/include/sys/msg.h @@ -14,20 +14,20 @@ typedef unsigned long msgqnum_t; typedef unsigned long msglen_t; -struct msqid_ds -{ - struct ipc_perm msg_perm; - time_t msg_stime; - time_t msg_rtime; - time_t msg_ctime; - msgqnum_t msg_qnum; - msglen_t msg_qbytes; - pid_t msg_lspid; - pid_t msg_lrpid; -}; +#include + +#define __msg_cbytes msg_cbytes #define MSG_NOERROR 010000 +#define MSG_STAT 11 +#define MSG_INFO 12 + +struct msginfo { + int msgpool, msgmap, msgmax, msgmnb, msgmni, msgssz, msgtql; + unsigned short msgseg; +}; + int msgctl (int, int, struct msqid_ds *); int msgget (key_t, int); ssize_t msgrcv (int, void *, size_t, long, int);