source:
trunk/src/emx/include/sys/msg.h@
1315
| Last change on this file since 1315 was 340, checked in by , 22 years ago | |
|---|---|
|
|
| File size: 1.2 KB | |
| Line | |
|---|---|
| 1 | /* sys/msg.h (emx+gcc) */ |
| 2 | |
| 3 | #ifndef _SYS_MSG_H |
| 4 | #define _SYS_MSG_H |
| 5 | |
| 6 | #include <sys/ipc.h> |
| 7 | #include <sys/_types.h> |
| 8 | |
| 9 | #if !defined(_TIME_T_DECLARED) && !defined(_TIME_T) /* bird: emx */ |
| 10 | typedef __time_t time_t; |
| 11 | #define _TIME_T_DECLARED |
| 12 | #define _TIME_T /* bird: emx */ |
| 13 | #endif |
| 14 | |
| 15 | |
| 16 | #if !defined (_MSG) |
| 17 | #define _MSG |
| 18 | struct msg |
| 19 | { |
| 20 | struct msg *msg_next; |
| 21 | long msg_type; |
| 22 | short msg_ts; |
| 23 | short msg_spot; |
| 24 | }; |
| 25 | #endif |
| 26 | |
| 27 | #if !defined (_MSQID_DS) |
| 28 | #define _MSQID_DS |
| 29 | struct msqid_ds |
| 30 | { |
| 31 | struct ipc_perm msg_perm; |
| 32 | struct msg *msg_first; |
| 33 | struct msg *msg_last; |
| 34 | unsigned short msg_cbytes; |
| 35 | unsigned short msg_qnum; |
| 36 | unsigned short msg_qbytes; |
