78 |
7u83 |
1 |
#ifndef __TENDRA_SYS_MSG_H
|
|
|
2 |
#define __TENDRA_SYS_MSG_H
|
|
|
3 |
|
|
|
4 |
#include <sys/types.h>
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
/*
|
|
|
8 |
* The MSG_NOERROR identifier value, the msqid_ds struct and the msg struct
|
|
|
9 |
* are as defined by the SV API Intel 386 Processor Supplement.
|
|
|
10 |
*/
|
|
|
11 |
|
|
|
12 |
#define MSG_NOERROR 010000 /* don't complain about too long msgs */
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
typedef unsigned long msglen_t;
|
|
|
16 |
typedef unsigned long msgqnum_t;
|
|
|
17 |
|
|
|
18 |
struct msqid_ds {
|
|
|
19 |
struct ipc_perm msg_perm; /* msg queue permission bits */
|
|
|
20 |
struct msg *__msg_first; /* first message in the queue */
|
|
|
21 |
struct msg *__msg_last; /* last message in the queue */
|
|
|
22 |
msglen_t msg_cbytes; /* number of bytes in use on the queue */
|
|
|
23 |
msgqnum_t msg_qnum; /* number of msgs in the queue */
|
|
|
24 |
msglen_t msg_qbytes; /* max # of bytes on the queue */
|
|
|
25 |
pid_t msg_lspid; /* pid of last msgsnd() */
|
|
|
26 |
pid_t msg_lrpid; /* pid of last msgrcv() */
|
|
|
27 |
time_t msg_stime; /* time of last msgsnd() */
|
|
|
28 |
time_t msg_rtime; /* time of last msgrcv() */
|
|
|
29 |
time_t msg_ctime; /* time of last msgctl() */
|
|
|
30 |
};
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
#endif
|
|
|
34 |
|