123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef _SYS_MSG_H
- # error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
- #endif
- #include <bits/types.h>
- #include <bits/wordsize.h>
- #define MSG_NOERROR 010000
- #ifdef __USE_GNU
- # define MSG_EXCEPT 020000
- #endif
- typedef unsigned long int msgqnum_t;
- typedef unsigned long int msglen_t;
- struct msqid_ds
- {
- struct ipc_perm msg_perm;
- #if (__WORDSIZE == 32) && !defined(__MIPSEL__)
- unsigned long __unused1;
- #endif
- __time_t msg_stime;
- #if (__WORDSIZE == 32) && defined(__MIPSEL__)
- unsigned long __unused1;
- #endif
- #if (__WORDSIZE == 32) && !defined(__MIPSEL__)
- unsigned long __unused2;
- #endif
- __time_t msg_rtime;
- #if (__WORDSIZE == 32) && defined(__MIPSEL__)
- unsigned long __unused2;
- #endif
- #if (__WORDSIZE == 32) && !defined(__MIPSEL__)
- unsigned long __unused3;
- #endif
- __time_t msg_ctime;
- #if (__WORDSIZE == 32) && defined(__MIPSEL__)
- unsigned long __unused3;
- #endif
- unsigned long int __msg_cbytes;
- msgqnum_t msg_qnum;
- msglen_t msg_qbytes;
- __pid_t msg_lspid;
- __pid_t msg_lrpid;
- unsigned long int __unused4;
- unsigned long int __unused5;
- };
- #ifdef __USE_MISC
- # define msg_cbytes __msg_cbytes
- # define MSG_STAT 11
- # define MSG_INFO 12
- struct msginfo
- {
- int msgpool;
- int msgmap;
- int msgmax;
- int msgmnb;
- int msgmni;
- int msgssz;
- int msgtql;
- unsigned short int msgseg;
- };
- #endif
|