aboutsummaryrefslogtreecommitdiff
path: root/syscall.c
blob: aca96237f88ac1ff0a9c9a771695d0265db8ed08 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
char * syscall_list[] = { "setup",		/* 0 */
			"exit",
			"fork",
			"read",
			"write",
			"open",
			"close",
			"waitpid",
			"creat",
			"link",
			"unlink",		/* 10 */
			"execve",
			"chdir",
			"time",
			"mknod",
			"chmod",
			"chown",
			"break",
			"oldstat",
			"lseek",
			"getpid",		/* 20 */
			"mount",
			"umount",
			"setuid",
			"getuid",
			"stime",
			"ptrace",
			"alarm",
			"oldfstat",
			"pause",
			"utime",		/* 30 */
			"stty",
			"gtty",
			"access",
			"nice",
			"ftime",
			"sync",
			"kill",
			"rename",
			"mkdir",
			"rmdir",		/* 40 */
			"dup",
			"pipe",
			"times",
			"prof",
			"brk",
			"setgid",
			"getgid",
			"signal",
			"geteuid",
			"getegid",		/* 50 */
			"acct",
			"phys",
			"lock",
			"ioctl",
			"fcntl",
			"mpx",
			"setpgid",
			"ulimit",
			"oldolduname",
			"umask",		/* 60 */
			"chroot",
			"ustat",
			"dup2",
			"getppid",
			"getpgrp",
			"setsid",
			"sigaction",
			"sgetmask",
			"ssetmask",
			"setreuid",		/* 70 */
			"setregid",
			"sigsuspend",
			"sigpending",
			"sethostname",
			"setrlimit",
			"getrlimit",
			"getrusage",
			"gettimeofday",
			"settimeofday",
			"getgroups",		/* 80 */
			"setgroups",
			"select",
			"symlink",
			"oldlstat",
			"readlink",
			"uselib",
			"swapon",
			"reboot",
			"readdir",
			"mmap",			/* 90 */
			"munmap",
			"truncate",
			"ftruncate",
			"fchmod",
			"fchown",
			"getpriority",
			"setpriority",
			"profil",
			"statfs",
			"fstatfs",		/* 100 */
			"ioperm",
			"socketcall",
			"syslog",
			"setitimer",
			"getitimer",
			"stat",
			"lstat",
			"fstat",
			"olduname",
			"iopl",			/* 110 */
			"vhangup",
			"idle",
			"vm86",
			"wait4",
			"swapoff",
			"sysinfo",
			"ipc",
			"fsync",
			"sigreturn",
			"clone",		/* 120 */
			"setdomainname",
			"uname",
			"modify_ldt",
			"adjtimex",
			"mprotect",
			"sigprocmask",
			"create_module",
			"init_module",
			"delete_module",
			"get_kernel_syms",	/* 130 */
			"quotactl",
			"getpgid",
			"fchdir",
			"bdflush",
			"sysfs",
			"personality",
			"afs_syscall",
			"setfsuid",
			"setfsgid",
			"_llseek",		/* 140 */
			"getdents",
			"_newselect",
			"flock",
			"msync",
			"readv",
			"writev",
			"getsid",
			"fdatasync",
			"_sysctl",
			"mlock",		/* 150 */
			"munlock",
			"mlockall",
			"munlockall",
			"sched_setparam",
			"sched_getparam",
			"sched_setscheduler",
			"sched_getscheduler",
			"sched_yield",
			"sched_get_priority_max",
			"sched_get_priority_min",	/* 160 */
			"sched_rr_get_interval",
			"nanosleep",
			"mremap",
};