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 */
12 /* System call numbers that are passed when trapping to the kernel. */
13 #define SEND 1 /* blocking send */
14 #define RECEIVE 2 /* blocking receive */
15 #define SENDREC 3 /* SEND + RECEIVE */
16 #define NOTIFY 4 /* asynchronous notify */
17 #define SENDNB 5 /* nonblocking send */
18 #define SENDA 16 /* asynchronous send */
20 #define WILLRECEIVE(target, source_ep) \
21 ((RTS_ISSET(target, RTS_RECEIVING) && !RTS_ISSET(target, RTS_SENDING)) && \
22 (target->p_getfrom_e == ANY || target->p_getfrom_e == source_ep))