Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/msg.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | struct msqid_ds { | ||||
msglen_t msg_qbytes; /* max # of bytes on the queue */ | msglen_t msg_qbytes; /* max # of bytes on the queue */ | ||||
pid_t msg_lspid; /* pid of last msgsnd() */ | pid_t msg_lspid; /* pid of last msgsnd() */ | ||||
pid_t msg_lrpid; /* pid of last msgrcv() */ | pid_t msg_lrpid; /* pid of last msgrcv() */ | ||||
time_t msg_stime; /* time of last msgsnd() */ | time_t msg_stime; /* time of last msgsnd() */ | ||||
time_t msg_rtime; /* time of last msgrcv() */ | time_t msg_rtime; /* time of last msgrcv() */ | ||||
time_t msg_ctime; /* time of last msgctl() */ | time_t msg_ctime; /* time of last msgctl() */ | ||||
}; | }; | ||||
#if __BSD_VISIBLE | |||||
/* | |||||
* Structure describing a message. The SVID doesn't suggest any | |||||
* particular name for this structure. There is a reference in the | |||||
* msgop man page that reads "The structure mymsg is an example of what | |||||
* this user defined buffer might look like, and includes the following | |||||
* members:". This sentence is followed by two lines equivalent | |||||
* to the mtype and mtext field declarations below. It isn't clear | |||||
* if "mymsg" refers to the name of the structure type or the name of an | |||||
* instance of the structure... | |||||
*/ | |||||
struct mymsg { | |||||
long mtype; /* message type (+ve integer) */ | |||||
char mtext[1]; /* message body */ | |||||
}; | |||||
#endif | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
struct msg { | struct msg { | ||||
struct msg *msg_next; /* next msg in the chain */ | struct msg *msg_next; /* next msg in the chain */ | ||||
long msg_type; /* type of this message */ | long msg_type; /* type of this message */ | ||||
/* >0 -> type of this message */ | /* >0 -> type of this message */ | ||||
/* 0 -> free header */ | /* 0 -> free header */ | ||||
u_short msg_ts; /* size of this message */ | u_short msg_ts; /* size of this message */ | ||||
short msg_spot; /* location of start of msg in buffer */ | short msg_spot; /* location of start of msg in buffer */ | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |