2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001, 2002 by Ralf Baechle
10 * This file is being included twice - once to build a list of all
11 * syscalls and once to build a table of how many arguments each syscall
12 * accepts. Syscalls that receive a pointer to the saved registers are
13 * marked as having zero arguments.
15 * The binary compatibility calls are in a separate list.
17 SYS(sys_syscall
, 0) /* 4000 */
22 SYS(sys_open
, 3) /* 4005 */
27 SYS(sys_unlink
, 1) /* 4010 */
32 SYS(sys_chmod
, 2) /* 4015 */
34 SYS(sys_ni_syscall
, 0)
35 SYS(sys_ni_syscall
, 0) /* was sys_stat */
37 SYS(sys_getpid
, 0) /* 4020 */
42 SYS(sys_stime
, 1) /* 4025 */
45 SYS(sys_ni_syscall
, 0) /* was sys_fstat */
47 SYS(sys_utime
, 2) /* 4030 */
48 SYS(sys_ni_syscall
, 0)
49 SYS(sys_ni_syscall
, 0)
52 SYS(sys_ni_syscall
, 0) /* 4035 */
57 SYS(sys_rmdir
, 1) /* 4040 */
61 SYS(sys_ni_syscall
, 0)
62 SYS(sys_brk
, 1) /* 4045 */
65 SYS(sys_ni_syscall
, 0) /* was signal(2) */
67 SYS(sys_getegid
, 0) /* 4050 */
70 SYS(sys_ni_syscall
, 0)
72 SYS(sys_fcntl
, 3) /* 4055 */
73 SYS(sys_ni_syscall
, 2)
75 SYS(sys_ni_syscall
, 0)
77 SYS(sys_umask
, 1) /* 4060 */
82 SYS(sys_getpgrp
, 0) /* 4065 */
87 SYS(sys_setreuid
, 2) /* 4070 */
89 SYS(sys_sigsuspend
, 0)
90 SYS(sys_sigpending
, 1)
91 SYS(sys_sethostname
, 2)
92 SYS(sys_setrlimit
, 2) /* 4075 */
95 SYS(sys_gettimeofday
, 2)
96 SYS(sys_settimeofday
, 2)
97 SYS(sys_getgroups
, 2) /* 4080 */
99 SYS(sys_ni_syscall
, 0) /* old_select */
101 SYS(sys_ni_syscall
, 0) /* was sys_lstat */
102 SYS(sys_readlink
, 3) /* 4085 */
107 SYS(old_mmap
, 6) /* 4090 */
110 SYS(sys_ftruncate
, 2)
112 SYS(sys_fchown
, 3) /* 4095 */
113 SYS(sys_getpriority
, 2)
114 SYS(sys_setpriority
, 3)
115 SYS(sys_ni_syscall
, 0)
117 SYS(sys_fstatfs
, 2) /* 4100 */
118 SYS(sys_ni_syscall
, 0) /* was ioperm(2) */
119 SYS(sys_socketcall
, 2)
121 SYS(sys_setitimer
, 3)
122 SYS(sys_getitimer
, 2) /* 4105 */
127 SYS(sys_ni_syscall
, 0) /* 4110 was iopl(2) */
129 SYS(sys_ni_syscall
, 0) /* was sys_idle() */
130 SYS(sys_ni_syscall
, 0) /* was sys_vm86 */
132 SYS(sys_swapoff
, 1) /* 4115 */
136 SYS(sys_sigreturn
, 0)
137 SYS(sys_clone
, 0) /* 4120 */
138 SYS(sys_setdomainname
, 2)
140 SYS(sys_ni_syscall
, 0) /* sys_modify_ldt */
142 SYS(sys_mprotect
, 3) /* 4125 */
143 SYS(sys_sigprocmask
, 3)
144 SYS(sys_ni_syscall
, 0) /* was create_module */
145 SYS(sys_init_module
, 5)
146 SYS(sys_delete_module
, 1)
147 SYS(sys_ni_syscall
, 0) /* 4130, was get_kernel_syms */
152 SYS(sys_sysfs
, 3) /* 4135 */
153 SYS(sys_personality
, 1)
154 SYS(sys_ni_syscall
, 0) /* for afs_syscall */
157 SYS(sys_llseek
, 5) /* 4140 */
162 SYS(sys_readv
, 3) /* 4145 */
164 SYS(sys_cacheflush
, 3)
167 SYS(sys_ni_syscall
, 0) /* 4150 */
169 SYS(sys_fdatasync
, 0)
172 SYS(sys_munlock
, 2) /* 4155 */
174 SYS(sys_munlockall
, 0)
175 SYS(sys_sched_setparam
,2)
176 SYS(sys_sched_getparam
,2)
177 SYS(sys_sched_setscheduler
,3) /* 4160 */
178 SYS(sys_sched_getscheduler
,1)
179 SYS(sys_sched_yield
,0)
180 SYS(sys_sched_get_priority_max
,1)
181 SYS(sys_sched_get_priority_min
,1)
182 SYS(sys_sched_rr_get_interval
,2) /* 4165 */
187 SYS(sys_connect
, 3) /* 4170 */
188 SYS(sys_getpeername
, 3)
189 SYS(sys_getsockname
, 3)
190 SYS(sys_getsockopt
, 5)
192 SYS(sys_recv
, 4) /* 4175 */
197 SYS(sys_sendto
, 6) /* 4180 */
198 SYS(sys_setsockopt
, 5)
201 SYS(sys_socketpair
, 4)
202 SYS(sys_setresuid
, 3) /* 4185 */
203 SYS(sys_getresuid
, 3)
204 SYS(sys_ni_syscall
, 0) /* sys_query_module */
206 SYS(sys_nfsservctl
, 3)
207 SYS(sys_setresgid
, 3) /* 4190 */
208 SYS(sys_getresgid
, 3)
210 SYS(sys_rt_sigreturn
, 0)
211 SYS(sys_rt_sigaction
, 4)
212 SYS(sys_rt_sigprocmask
, 4) /* 4195 */
213 SYS(sys_rt_sigpending
, 2)
214 SYS(sys_rt_sigtimedwait
, 4)
215 SYS(sys_rt_sigqueueinfo
, 3)
216 SYS(sys_rt_sigsuspend
, 0)
217 SYS(sys_pread64
, 6) /* 4200 */
222 SYS(sys_capset
, 2) /* 4205 */
223 SYS(sys_sigaltstack
, 0)
225 SYS(sys_ni_syscall
, 0)
226 SYS(sys_ni_syscall
, 0)
227 SYS(sys_mmap2
, 6) /* 4210 */
228 SYS(sys_truncate64
, 4)
229 SYS(sys_ftruncate64
, 4)
232 SYS(sys_fstat64
, 2) /* 4215 */
233 SYS(sys_pivot_root
, 2)
236 SYS(sys_getdents64
, 3)
237 SYS(sys_fcntl64
, 3) /* 4220 */
238 SYS(sys_ni_syscall
, 0)
240 SYS(sys_readahead
, 5)
242 SYS(sys_lsetxattr
, 5) /* 4225 */
243 SYS(sys_fsetxattr
, 5)
245 SYS(sys_lgetxattr
, 4)
246 SYS(sys_fgetxattr
, 4)
247 SYS(sys_listxattr
, 3) /* 4230 */
248 SYS(sys_llistxattr
, 3)
249 SYS(sys_flistxattr
, 3)
250 SYS(sys_removexattr
, 2)
251 SYS(sys_lremovexattr
, 2)
252 SYS(sys_fremovexattr
, 2) /* 4235 */
254 SYS(sys_sendfile64
, 5)
256 SYS(sys_sched_setaffinity
, 3)
257 SYS(sys_sched_getaffinity
, 3) /* 4240 */
259 SYS(sys_io_destroy
, 1)
260 SYS(sys_io_getevents
, 5)
261 SYS(sys_io_submit
, 3)
262 SYS(sys_io_cancel
, 3) /* 4245 */
263 SYS(sys_exit_group
, 1)
264 SYS(sys_lookup_dcookie
, 3)
265 SYS(sys_epoll_create
, 1)
266 SYS(sys_epoll_ctl
, 4)
267 SYS(sys_epoll_wait
, 3) /* 4250 */
268 SYS(sys_remap_file_pages
, 5)
269 SYS(sys_set_tid_address
, 1)
270 SYS(sys_restart_syscall
, 0) /* XXX */
271 SYS(sys_fadvise64
, 6)
272 SYS(sys_statfs64
, 3) /* 4255 */
273 SYS(sys_fstatfs64
, 2)