1*cda5da8dSAndroid Build Coastguard Worker /* 2*cda5da8dSAndroid Build Coastguard Worker * This file is auto-generated. Modifications will be lost. 3*cda5da8dSAndroid Build Coastguard Worker * 4*cda5da8dSAndroid Build Coastguard Worker * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5*cda5da8dSAndroid Build Coastguard Worker * for more information. 6*cda5da8dSAndroid Build Coastguard Worker */ 7*cda5da8dSAndroid Build Coastguard Worker #ifndef _UAPI_LINUX_MSG_H 8*cda5da8dSAndroid Build Coastguard Worker #define _UAPI_LINUX_MSG_H 9*cda5da8dSAndroid Build Coastguard Worker #include <linux/ipc.h> 10*cda5da8dSAndroid Build Coastguard Worker #define MSG_STAT 11 11*cda5da8dSAndroid Build Coastguard Worker #define MSG_INFO 12 12*cda5da8dSAndroid Build Coastguard Worker #define MSG_STAT_ANY 13 13*cda5da8dSAndroid Build Coastguard Worker #define MSG_NOERROR 010000 14*cda5da8dSAndroid Build Coastguard Worker #define MSG_EXCEPT 020000 15*cda5da8dSAndroid Build Coastguard Worker #define MSG_COPY 040000 16*cda5da8dSAndroid Build Coastguard Worker struct __kernel_legacy_msqid_ds { 17*cda5da8dSAndroid Build Coastguard Worker struct __kernel_legacy_ipc_perm msg_perm; 18*cda5da8dSAndroid Build Coastguard Worker struct msg * msg_first; 19*cda5da8dSAndroid Build Coastguard Worker struct msg * msg_last; 20*cda5da8dSAndroid Build Coastguard Worker __kernel_old_time_t msg_stime; 21*cda5da8dSAndroid Build Coastguard Worker __kernel_old_time_t msg_rtime; 22*cda5da8dSAndroid Build Coastguard Worker __kernel_old_time_t msg_ctime; 23*cda5da8dSAndroid Build Coastguard Worker unsigned long msg_lcbytes; 24*cda5da8dSAndroid Build Coastguard Worker unsigned long msg_lqbytes; 25*cda5da8dSAndroid Build Coastguard Worker unsigned short msg_cbytes; 26*cda5da8dSAndroid Build Coastguard Worker unsigned short msg_qnum; 27*cda5da8dSAndroid Build Coastguard Worker unsigned short msg_qbytes; 28*cda5da8dSAndroid Build Coastguard Worker __kernel_ipc_pid_t msg_lspid; 29*cda5da8dSAndroid Build Coastguard Worker __kernel_ipc_pid_t msg_lrpid; 30*cda5da8dSAndroid Build Coastguard Worker }; 31*cda5da8dSAndroid Build Coastguard Worker #include <asm/msgbuf.h> 32*cda5da8dSAndroid Build Coastguard Worker struct msgbuf { 33*cda5da8dSAndroid Build Coastguard Worker __kernel_long_t mtype; 34*cda5da8dSAndroid Build Coastguard Worker char mtext[1]; 35*cda5da8dSAndroid Build Coastguard Worker }; 36*cda5da8dSAndroid Build Coastguard Worker struct msginfo { 37*cda5da8dSAndroid Build Coastguard Worker int msgpool; 38*cda5da8dSAndroid Build Coastguard Worker int msgmap; 39*cda5da8dSAndroid Build Coastguard Worker int msgmax; 40*cda5da8dSAndroid Build Coastguard Worker int msgmnb; 41*cda5da8dSAndroid Build Coastguard Worker int msgmni; 42*cda5da8dSAndroid Build Coastguard Worker int msgssz; 43*cda5da8dSAndroid Build Coastguard Worker int msgtql; 44*cda5da8dSAndroid Build Coastguard Worker unsigned short msgseg; 45*cda5da8dSAndroid Build Coastguard Worker }; 46*cda5da8dSAndroid Build Coastguard Worker #define MSGMNI 32000 47*cda5da8dSAndroid Build Coastguard Worker #define MSGMAX 8192 48*cda5da8dSAndroid Build Coastguard Worker #define MSGMNB 16384 49*cda5da8dSAndroid Build Coastguard Worker #define MSGPOOL (MSGMNI * MSGMNB / 1024) 50*cda5da8dSAndroid Build Coastguard Worker #define MSGTQL MSGMNB 51*cda5da8dSAndroid Build Coastguard Worker #define MSGMAP MSGMNB 52*cda5da8dSAndroid Build Coastguard Worker #define MSGSSZ 16 53*cda5da8dSAndroid Build Coastguard Worker #define __MSGSEG ((MSGPOOL * 1024) / MSGSSZ) 54*cda5da8dSAndroid Build Coastguard Worker #define MSGSEG (__MSGSEG <= 0xffff ? __MSGSEG : 0xffff) 55*cda5da8dSAndroid Build Coastguard Worker #endif 56