* better
[mascara-docs.git] / i386 / linux-2.3.21 / arch / mips / kernel / syscalls.h
blobbd9fe3feb3996c1dc3bcf45225522ace1b47c7f1
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
5 * for more details.
7 * Copyright (C) 1995, 1996, 1997, 1998 by Ralf Baechle
8 */
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 */
19 SYS(sys_exit, 1)
20 SYS(sys_fork, 0)
21 SYS(sys_read, 3)
22 SYS(sys_write, 3)
23 SYS(sys_open, 3) /* 4005 */
24 SYS(sys_close, 3)
25 SYS(sys_waitpid, 3)
26 SYS(sys_creat, 2)
27 SYS(sys_link, 2)
28 SYS(sys_unlink, 1) /* 4010 */
29 SYS(sys_execve, 0)
30 SYS(sys_chdir, 1)
31 SYS(sys_time, 1)
32 SYS(sys_mknod, 3)
33 SYS(sys_chmod, 2) /* 4015 */
34 SYS(sys_lchown, 3)
35 SYS(sys_ni_syscall, 0)
36 SYS(sys_stat, 2)
37 SYS(sys_lseek, 3)
38 SYS(sys_getpid, 0) /* 4020 */
39 SYS(sys_mount, 5)
40 SYS(sys_oldumount, 1)
41 SYS(sys_setuid, 1)
42 SYS(sys_getuid, 0)
43 SYS(sys_stime, 1) /* 4025 */
44 SYS(sys_ptrace, 4)
45 SYS(sys_alarm, 1)
46 SYS(sys_fstat, 2)
47 SYS(sys_pause, 0)
48 SYS(sys_utime, 2) /* 4030 */
49 SYS(sys_ni_syscall, 0)
50 SYS(sys_ni_syscall, 0)
51 SYS(sys_access, 2)
52 SYS(sys_nice, 1)
53 SYS(sys_ni_syscall, 0) /* 4035 */
54 SYS(sys_sync, 0)
55 SYS(sys_kill, 2)
56 SYS(sys_rename, 2)
57 SYS(sys_mkdir, 2)
58 SYS(sys_rmdir, 1) /* 4040 */
59 SYS(sys_dup, 1)
60 SYS(sys_pipe, 0)
61 SYS(sys_times, 1)
62 SYS(sys_ni_syscall, 0)
63 SYS(sys_brk, 1) /* 4045 */
64 SYS(sys_setgid, 1)
65 SYS(sys_getgid, 0)
66 SYS(sys_ni_syscall, 0) /* was signal(2) */
67 SYS(sys_geteuid, 0)
68 SYS(sys_getegid, 0) /* 4050 */
69 SYS(sys_acct, 0)
70 SYS(sys_umount, 2)
71 SYS(sys_ni_syscall, 0)
72 SYS(sys_ioctl, 3)
73 SYS(sys_fcntl, 3) /* 4055 */
74 SYS(sys_ni_syscall, 2)
75 SYS(sys_setpgid, 2)
76 SYS(sys_ni_syscall, 0)
77 SYS(sys_olduname, 1)
78 SYS(sys_umask, 1) /* 4060 */
79 SYS(sys_chroot, 1)
80 SYS(sys_ustat, 2)
81 SYS(sys_dup2, 2)
82 SYS(sys_getppid, 0)
83 SYS(sys_getpgrp, 0) /* 4065 */
84 SYS(sys_setsid, 0)
85 SYS(sys_sigaction, 3)
86 SYS(sys_sgetmask, 0)
87 SYS(sys_ssetmask, 1)
88 SYS(sys_setreuid, 2) /* 4070 */
89 SYS(sys_setregid, 2)
90 SYS(sys_sigsuspend, 0)
91 SYS(sys_sigpending, 1)
92 SYS(sys_sethostname, 2)
93 SYS(sys_setrlimit, 2) /* 4075 */
94 SYS(sys_getrlimit, 2)
95 SYS(sys_getrusage, 2)
96 SYS(sys_gettimeofday, 2)
97 SYS(sys_settimeofday, 2)
98 SYS(sys_getgroups, 2) /* 4080 */
99 SYS(sys_setgroups, 2)
100 SYS(sys_ni_syscall, 0) /* old_select */
101 SYS(sys_symlink, 2)
102 SYS(sys_lstat, 2)
103 SYS(sys_readlink, 3) /* 4085 */
104 SYS(sys_uselib, 1)
105 SYS(sys_swapon, 2)
106 SYS(sys_reboot, 3)
107 SYS(old_readdir, 3)
108 SYS(sys_mmap, 6) /* 4090 */
109 SYS(sys_munmap, 2)
110 SYS(sys_truncate, 2)
111 SYS(sys_ftruncate, 2)
112 SYS(sys_fchmod, 2)
113 SYS(sys_fchown, 3) /* 4095 */
114 SYS(sys_getpriority, 2)
115 SYS(sys_setpriority, 3)
116 SYS(sys_ni_syscall, 0)
117 SYS(sys_statfs, 2)
118 SYS(sys_fstatfs, 2) /* 4100 */
119 SYS(sys_ioperm, 3)
120 SYS(sys_socketcall, 2)
121 SYS(sys_syslog, 3)
122 SYS(sys_setitimer, 3)
123 SYS(sys_getitimer, 2) /* 4105 */
124 SYS(sys_newstat, 2)
125 SYS(sys_newlstat, 2)
126 SYS(sys_newfstat, 2)
127 SYS(sys_uname, 1)
128 SYS(sys_iopl, 0) /* Well, actually 17 args ... */ /* 4110 */
129 SYS(sys_vhangup, 0)
130 SYS(sys_idle, 0)
131 SYS(sys_vm86, 1)
132 SYS(sys_wait4, 4)
133 SYS(sys_swapoff, 1) /* 4115 */
134 SYS(sys_sysinfo, 1)
135 SYS(sys_ipc, 6)
136 SYS(sys_fsync, 1)
137 SYS(sys_sigreturn, 0)
138 SYS(sys_clone, 0) /* 4120 */
139 SYS(sys_setdomainname, 2)
140 SYS(sys_newuname, 1)
141 SYS(sys_ni_syscall, 0) /* sys_modify_ldt */
142 SYS(sys_adjtimex, 1)
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 */
149 SYS(sys_quotactl, 0)
150 SYS(sys_getpgid, 1)
151 SYS(sys_fchdir, 1)
152 SYS(sys_bdflush, 2)
153 SYS(sys_sysfs, 3) /* 4135 */
154 SYS(sys_personality, 1)
155 SYS(sys_ni_syscall, 0) /* for afs_syscall */
156 SYS(sys_setfsuid, 1)
157 SYS(sys_setfsgid, 1)
158 SYS(sys_llseek, 5) /* 4140 */
159 SYS(sys_getdents, 3)
160 SYS(sys_select, 5)
161 SYS(sys_flock, 2)
162 SYS(sys_msync, 3)
163 SYS(sys_readv, 3) /* 4145 */
164 SYS(sys_writev, 3)
165 SYS(sys_cacheflush, 3)
166 SYS(sys_cachectl, 3)
167 SYS(sys_sysmips, 4)
168 SYS(sys_ni_syscall, 0) /* 4150 */
169 SYS(sys_getsid, 1)
170 SYS(sys_fdatasync, 0)
171 SYS(sys_sysctl, 1)
172 SYS(sys_mlock, 2)
173 SYS(sys_munlock, 2) /* 4155 */
174 SYS(sys_mlockall, 1)
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 */
184 SYS(sys_nanosleep,2)
185 SYS(sys_mremap,4)
186 SYS(sys_accept, 3)
187 SYS(sys_bind, 3)
188 SYS(sys_connect, 3) /* 4170 */
189 SYS(sys_getpeername, 3)
190 SYS(sys_getsockname, 3)
191 SYS(sys_getsockopt, 5)
192 SYS(sys_listen, 2)
193 SYS(sys_recv, 4) /* 4175 */
194 SYS(sys_recvfrom, 6)
195 SYS(sys_recvmsg, 3)
196 SYS(sys_send, 4)
197 SYS(sys_sendmsg, 3)
198 SYS(sys_sendto, 6) /* 4180 */
199 SYS(sys_setsockopt, 5)
200 SYS(sys_shutdown, 2)
201 SYS(sys_socket, 3)
202 SYS(sys_socketpair, 4)
203 SYS(sys_setresuid, 3) /* 4185 */
204 SYS(sys_getresuid, 3)
205 SYS(sys_query_module, 5)
206 SYS(sys_poll, 3)
207 SYS(sys_nfsservctl, 3)
208 SYS(sys_setresgid, 3) /* 4190 */
209 SYS(sys_getresgid, 3)
210 SYS(sys_prctl, 5)
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 */
219 SYS(sys_pwrite, 4)
220 SYS(sys_chown, 3)
221 SYS(sys_getcwd, 2)
222 SYS(sys_capget, 2)
223 SYS(sys_capset, 2) /* 4205 */
224 SYS(sys_sigaltstack, 2)
225 SYS(sys_sendfile, 3)
226 SYS(sys_ni_syscall, 0)
227 SYS(sys_ni_syscall, 0)