4 /* System call numbers that are passed when trapping to the kernel. */
5 #define SEND 1 /* blocking send */
6 #define RECEIVE 2 /* blocking receive */
7 #define SENDREC 3 /* SEND + RECEIVE */
8 #define NOTIFY 4 /* asynchronous notify */
9 #define SENDNB 5 /* nonblocking send */
10 #define SENDA 16 /* asynchronous send */
12 /* Macros for IPC status code manipulation. */
13 #define IPC_STATUS_CALL_SHIFT 0
14 #define IPC_STATUS_CALL_MASK 0x3F
15 #define IPC_STATUS_CALL(status) \
16 (((status) >> IPC_STATUS_CALL_SHIFT) & IPC_STATUS_CALL_MASK)
17 #define IPC_STATUS_CALL_TO(call) \
18 (((call) & IPC_STATUS_CALL_MASK) << IPC_STATUS_CALL_SHIFT)
20 #define IPC_FLG_MSG_FROM_KERNEL 1 /* this message originated in the kernel on
21 behalf of a process, this is a trusted
22 message, never reply to the sender
24 #define IPC_STATUS_FLAGS_SHIFT 16
25 #define IPC_STATUS_FLAGS(flgs) ((flgs) << IPC_STATUS_FLAGS_SHIFT)
26 #define IPC_STATUS_FLAGS_TEST(status, flgs) \
27 (((status) >> IPC_STATUS_FLAGS_SHIFT) & (flgs))
28 #endif /* IPC_CONST_H */