4 /* This header file defines constants for MINIX inter-process communication.
5 * These definitions are used in the file proc.c.
9 /* Masks and flags for system calls. */
10 #define NON_BLOCKING 0x0080 /* do not block if target not ready */
11 #define FROM_KERNEL 0x0100 /* message from kernel on behalf of a process */
13 #define WILLRECEIVE(target, source_ep) \
14 ((RTS_ISSET(target, RTS_RECEIVING) && !RTS_ISSET(target, RTS_SENDING)) && \
15 (target->p_getfrom_e == ANY || target->p_getfrom_e == source_ep))
17 /* IPC status code macros. */
18 #define IPC_STATUS_REG bx
19 #define IPC_STATUS_GET(p) ((p)->p_reg.IPC_STATUS_REG)
20 #define IPC_STATUS_SET(p, m) ((p)->p_reg.IPC_STATUS_REG = m)
21 #define IPC_STATUS_CLEAR(p) IPC_STATUS_SET(p, 0)
22 #define IPC_STATUS_ADD(p, m) ((p)->p_reg.IPC_STATUS_REG |= m)