Reorganized system call library; uses separate file per call now.
New configuration header file to include/ exclude functionality. Extracted privileged features from struct proc and create new struct priv. Renamed various system calls for readability.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#ifndef IPC_H
|
||||
#define IPC_H
|
||||
|
||||
/* Masks and flags for system calls. */
|
||||
#define SYSCALL_FUNC 0x0F /* mask for system call function */
|
||||
#define SYSCALL_FLAGS 0xF0 /* mask for system call flags */
|
||||
@@ -11,10 +14,13 @@
|
||||
#define RECEIVE 2 /* function code for receiving messages */
|
||||
#define SENDREC 3 /* function code for SEND + RECEIVE */
|
||||
#define NOTIFY 4 /* function code for notifications */
|
||||
#define ALERT 5 /* function code for alerting */
|
||||
|
||||
/* Call masks indicating which system calls a process can make. */
|
||||
#define EMPTY_CALL_MASK (0)
|
||||
#define USER_CALL_MASK (1 << SENDREC)
|
||||
#define _USER_CALL_MASK ((1 << SENDREC) | (1 << ALERT))
|
||||
#define SYSTEM_CALL_MASK (~0)
|
||||
#define USER_CALL_MASK (~0)
|
||||
|
||||
|
||||
#endif /* IPC_H */
|
||||
|
||||
Reference in New Issue
Block a user