1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #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 __uclibc_unused4;
- unsigned long int __uclibc_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
|