Part of the FPU changes; forgot to add these files in FPU commit.
[minix.git] / kernel / ipc.h
blob5311eac5619b387f2bd56d1157c0e1b5f9dd8d19
1 #ifndef IPC_H
2 #define IPC_H
4 /* This header file defines constants for MINIX inter-process communication.
5 * These definitions are used in the file proc.c.
6 */
7 #include <minix/com.h>
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))
25 #endif /* IPC_H */