1 /* $Id: syscalls.h,v 1.15 1998/09/19 19:16:17 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
7 * Copyright (C) 1995, 1996, 1997, 1998 by Ralf Baechle
11 * This file is being included twice - once to build a list of all
12 * syscalls and once to build a table of how many arguments each syscall
13 * accepts. Syscalls that receive a pointer to the saved registers are
14 * marked as having zero arguments.
16 * The binary compatibility calls are in a separate list.
18 SYS(sys_syscall
, 0) /* 4000 */
23 SYS(sys_open
, 3) /* 4005 */
28 SYS(sys_unlink
, 1) /* 4010 */
33 SYS(sys_chmod
, 2) /* 4015 */
35 SYS(sys_ni_syscall
, 0)
38 SYS(sys_getpid
, 0) /* 4020 */
43 SYS(sys_stime
, 1) /* 4025 */
48 SYS(sys_utime
, 2) /* 4030 */
49 SYS(sys_ni_syscall
, 0)
50 SYS(sys_ni_syscall
, 0)
53 SYS(sys_ni_syscall
, 0) /* 4035 */
58 SYS(sys_rmdir
, 1) /* 4040 */
62 SYS(sys_ni_syscall
, 0)
63 SYS(sys_brk
, 1) /* 4045 */
66 SYS(sys_ni_syscall
, 0) /* was signal(2) */
68 SYS(sys_getegid
, 0) /* 4050 */
71 SYS(sys_ni_syscall
, 0)
73 SYS(sys_fcntl
, 3) /* 4055 */
74 SYS(sys_ni_syscall
, 2)
76 SYS(sys_ni_syscall
, 0)
78 SYS(sys_umask
, 1) /* 4060 */
83 SYS(sys_getpgrp
, 0) /* 4065 */
88 SYS(sys_setreuid
, 2) /* 4070 */
90 SYS(sys_sigsuspend
, 0)
91 SYS(sys_sigpending
, 1)
92 SYS(sys_sethostname
, 2)
93 SYS(sys_setrlimit
, 2) /* 4075 */
96 SYS(sys_gettimeofday
, 2)
97 SYS(sys_settimeofday
, 2)
98 SYS(sys_getgroups
, 2) /* 4080 */
100 SYS(sys_ni_syscall
, 0) /* old_select */
103 SYS(sys_readlink
, 3) /* 4085 */
108 SYS(sys_mmap
, 6) /* 4090 */
111 SYS(sys_ftruncate
, 2)
113 SYS(sys_fchown
, 3) /* 4095 */
114 SYS(sys_getpriority
, 2)
115 SYS(sys_setpriority
, 3)
116 SYS(sys_ni_syscall
, 0)
118 SYS(sys_fstatfs
, 2) /* 4100 */
120 SYS(sys_socketcall
, 2)
122 SYS(sys_setitimer
, 3)
123 SYS(sys_getitimer
, 2) /* 4105 */
128 SYS(sys_iopl
, 0) /* Well, actually 17 args ... */ /* 4110 */
133 SYS(sys_swapoff
, 1) /* 4115 */
137 SYS(sys_sigreturn
, 0)
138 SYS(sys_clone
, 0) /* 4120 */
139 SYS(sys_setdomainname
, 2)
141 SYS(sys_ni_syscall
, 0) /* sys_modify_ldt */
143 SYS(sys_mprotect
, 3) /* 4125 */
144 SYS(sys_sigprocmask
, 3)
145 SYS(sys_create_module
, 2)
146 SYS(sys_init_module
, 5)
147 SYS(sys_delete_module
, 1)
148 SYS(sys_get_kernel_syms
, 1) /* 4130 */
153 SYS(sys_sysfs
, 3) /* 4135 */
154 SYS(sys_personality
, 1)
155 SYS(sys_ni_syscall
, 0) /* for afs_syscall */
158 SYS(sys_llseek
, 5) /* 4140 */
163 SYS(sys_readv
, 3) /* 4145 */
165 SYS(sys_cacheflush
, 3)
168 SYS(sys_ni_syscall
, 0) /* 4150 */
170 SYS(sys_fdatasync
, 0)
173 SYS(sys_munlock
, 2) /* 4155 */
175 SYS(sys_munlockall
, 0)
176 SYS(sys_sched_setparam
,2)
177 SYS(sys_sched_getparam
,2)
178 SYS(sys_sched_setscheduler
,3) /* 4160 */
179 SYS(sys_sched_getscheduler
,1)
180 SYS(sys_sched_yield
,0)
181 SYS(sys_sched_get_priority_max
,1)
182 SYS(sys_sched_get_priority_min
,1)
183 SYS(sys_sched_rr_get_interval
,2) /* 4165 */
188 SYS(sys_connect
, 3) /* 4170 */
189 SYS(sys_getpeername
, 3)
190 SYS(sys_getsockname
, 3)
191 SYS(sys_getsockopt
, 5)
193 SYS(sys_recv
, 4) /* 4175 */
198 SYS(sys_sendto
, 6) /* 4180 */
199 SYS(sys_setsockopt
, 5)
202 SYS(sys_socketpair
, 4)
203 SYS(sys_setresuid
, 3) /* 4185 */
204 SYS(sys_getresuid
, 3)
205 SYS(sys_query_module
, 5)
207 SYS(sys_nfsservctl
, 3)
208 SYS(sys_setresgid
, 3) /* 4190 */
209 SYS(sys_getresgid
, 3)
211 SYS(sys_rt_sigreturn
, 0)
212 SYS(sys_rt_sigaction
, 4)
213 SYS(sys_rt_sigprocmask
, 4) /* 4195 */
214 SYS(sys_rt_sigpending
, 2)
215 SYS(sys_rt_sigtimedwait
, 4)
216 SYS(sys_rt_sigqueueinfo
, 3)
217 SYS(sys_rt_sigsuspend
, 2)
218 SYS(sys_pread
, 4) /* 4200 */
223 SYS(sys_capset
, 2) /* 4205 */
224 SYS(sys_sigaltstack
, 2)
226 SYS(sys_ni_syscall
, 0)
227 SYS(sys_ni_syscall
, 0)