1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
15 #include <linux/ipc.h>
20 #define MSG_NOERROR 010000
21 #define MSG_EXCEPT 020000
24 struct ipc_perm msg_perm;
25 struct msg *msg_first;
27 __kernel_time_t msg_stime;
28 __kernel_time_t msg_rtime;
29 __kernel_time_t msg_ctime;
30 unsigned long msg_lcbytes;
31 unsigned long msg_lqbytes;
32 unsigned short msg_cbytes;
33 unsigned short msg_qnum;
34 unsigned short msg_qbytes;
35 __kernel_ipc_pid_t msg_lspid;
36 __kernel_ipc_pid_t msg_lrpid;
39 #include <asm/msgbuf.h>
54 unsigned short msgseg;
61 #define MSGPOOL (MSGMNI*MSGMNB/1024)
65 #define __MSGSEG ((MSGPOOL*1024)/ MSGSSZ)
66 #define MSGSEG (__MSGSEG <= 0xffff ? __MSGSEG : 0xffff)