Improved NOTIFY system: fixed a minor error, ignore pending notifications
on SENDREC system calls. To be done: resource (buffer pool) management; make it structurally impossible to run out of buffers.
This commit is contained in:
@@ -5,12 +5,14 @@
|
||||
/* Masks and flags for system calls. */
|
||||
#define SYSCALL_FUNC 0x0F /* mask for system call function */
|
||||
#define SYSCALL_FLAGS 0xF0 /* mask for system call flags */
|
||||
#define NON_BLOCKING 0x10 /* don't block, but return */
|
||||
#define NON_BLOCKING 0x10 /* prevent blocking, return error */
|
||||
#define FRESH_ANSWER 0x20 /* ignore pending notifications as answer */
|
||||
/* default behaviour for SENDREC calls */
|
||||
|
||||
/* System calls (numbers passed when trapping to the kernel) */
|
||||
#define SEND 1 /* function code for sending messages */
|
||||
#define RECEIVE 2 /* function code for receiving messages */
|
||||
#define BOTH 3 /* function code for SEND + RECEIVE */
|
||||
#define SENDREC 3 /* function code for SEND + RECEIVE */
|
||||
#define NOTIFY 4 /* function code for notifications */
|
||||
#define NB_SEND (SEND | NON_BLOCKING) /* non-blocking SEND */
|
||||
#define NB_RECEIVE (RECEIVE | NON_BLOCKING) /* non-blocking RECEIVE */
|
||||
|
||||
Reference in New Issue
Block a user