2 struct ipc_perm msg_perm; /* structure for operation permission */
3 time_t msg_stime; /* time of last msgsnd command */
4 time_t msg_rtime; /* time of last msgrcv command */
5 time_t msg_ctime; /* time of last change */
6 msgqnum_t msg_qnum; /* number of messages currently on queue */
7 msglen_t msg_qbytes; /* max number of bytes allowed on queue */
8 pid_t msg_lspid; /* pid of last msgsnd() */
9 pid_t msg_lrpid; /* pid of last msgrcv() */
10 struct msg *msg_first; /* first message on queue, unused */
11 struct msg *msg_last; /* last message in queue, unused */
12 unsigned long int msg_cbytes; /* current number of bytes on queue */