-
Notifications
You must be signed in to change notification settings - Fork 0
/
syscall.h
40 lines (40 loc) · 1.04 KB
/
syscall.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// System call numbers
#define SYS_fork 1
#define SYS_exit 2
#define SYS_wait 3
#define SYS_pipe 4
#define SYS_read 5
#define SYS_kill 6
#define SYS_exec 7
#define SYS_fstat 8
#define SYS_chdir 9
#define SYS_dup 10
#define SYS_getpid 11
#define SYS_sbrk 12
#define SYS_sleep 13
#define SYS_uptime 14
#define SYS_open 15
#define SYS_write 16
#define SYS_mknod 17
#define SYS_unlink 18
#define SYS_link 19
#define SYS_mkdir 20
#define SYS_close 21
#define SYS_inc_num 22
#define SYS_invoked_syscalls 23
#define SYS_sort_syscalls 24
#define SYS_get_count 25
#define SYS_log_syscalls 26
#define SYS_ticketlockinit 27
#define SYS_ticketlocktest 28
#define SYS_rwinit 29
#define SYS_rwtest 30
#define SYS_rwinit2 31
#define SYS_rwtest2 32
#define SYS_set_luck 33
#define SYS_set_fcfs 34
#define SYS_set_priority 35
#define SYS_print_process 36
#define SYS_shm_open 37
#define SYS_shm_attach 38
#define SYS_shm_close 39