1 /* 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 4 * for more details. 5 * 6 * Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001, 2002 by Ralf Baechle 7 */ 8 9 /* 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. 14 * 15 * The binary compatibility calls are in a separate list. 16 */ 17 SYS(sys_syscall, 0) /* 4000 */ 18 SYS(sys_exit, 1) 19 SYS(sys_fork, 0) 20 SYS(sys_read, 3) 21 SYS(sys_write, 3) 22 SYS(sys_open, 3) /* 4005 */ 23 SYS(sys_close, 1) 24 SYS(sys_waitpid, 3) 25 SYS(sys_creat, 2) 26 SYS(sys_link, 2) 27 SYS(sys_unlink, 1) /* 4010 */ 28 SYS(sys_execve, 0) 29 SYS(sys_chdir, 1) 30 SYS(sys_time, 1) 31 SYS(sys_mknod, 3) 32 SYS(sys_chmod, 2) /* 4015 */ 33 SYS(sys_lchown, 3) 34 SYS(sys_ni_syscall, 0) 35 SYS(sys_ni_syscall, 0) /* was sys_stat */ 36 SYS(sys_lseek, 3) 37 SYS(sys_getpid, 0) /* 4020 */ 38 SYS(sys_mount, 5) 39 SYS(sys_oldumount, 1) 40 SYS(sys_setuid, 1) 41 SYS(sys_getuid, 0) 42 SYS(sys_stime, 1) /* 4025 */ 43 SYS(sys_ptrace, 4) 44 SYS(sys_alarm, 1) 45 SYS(sys_ni_syscall, 0) /* was sys_fstat */ 46 SYS(sys_pause, 0) 47 SYS(sys_utime, 2) /* 4030 */ 48 SYS(sys_ni_syscall, 0) 49 SYS(sys_ni_syscall, 0) 50 SYS(sys_access, 2) 51 SYS(sys_nice, 1) 52 SYS(sys_ni_syscall, 0) /* 4035 */ 53 SYS(sys_sync, 0) 54 SYS(sys_kill, 2) 55 SYS(sys_rename, 2) 56 SYS(sys_mkdir, 2) 57 SYS(sys_rmdir, 1) /* 4040 */ 58 SYS(sys_dup, 1) 59 SYS(sys_pipe, 0) 60 SYS(sys_times, 1) 61 SYS(sys_ni_syscall, 0) 62 SYS(sys_brk, 1) /* 4045 */ 63 SYS(sys_setgid, 1) 64 SYS(sys_getgid, 0) 65 SYS(sys_ni_syscall, 0) /* was signal(2) */ 66 SYS(sys_geteuid, 0) 67 SYS(sys_getegid, 0) /* 4050 */ 68 SYS(sys_acct, 0) 69 SYS(sys_umount, 2) 70 SYS(sys_ni_syscall, 0) 71 SYS(sys_ioctl, 3) 72 SYS(sys_fcntl, 3) /* 4055 */ 73 SYS(sys_ni_syscall, 2) 74 SYS(sys_setpgid, 2) 75 SYS(sys_ni_syscall, 0) 76 SYS(sys_olduname, 1) 77 SYS(sys_umask, 1) /* 4060 */ 78 SYS(sys_chroot, 1) 79 SYS(sys_ustat, 2) 80 SYS(sys_dup2, 2) 81 SYS(sys_getppid, 0) 82 SYS(sys_getpgrp, 0) /* 4065 */ 83 SYS(sys_setsid, 0) 84 SYS(sys_sigaction, 3) 85 SYS(sys_sgetmask, 0) 86 SYS(sys_ssetmask, 1) 87 SYS(sys_setreuid, 2) /* 4070 */ 88 SYS(sys_setregid, 2) 89 SYS(sys_sigsuspend, 0) 90 SYS(sys_sigpending, 1) 91 SYS(sys_sethostname, 2) 92 SYS(sys_setrlimit, 2) /* 4075 */ 93 SYS(sys_getrlimit, 2) 94 SYS(sys_getrusage, 2) 95 SYS(sys_gettimeofday, 2) 96 SYS(sys_settimeofday, 2) 97 SYS(sys_getgroups, 2) /* 4080 */ 98 SYS(sys_setgroups, 2) 99 SYS(sys_ni_syscall, 0) /* old_select */ 100 SYS(sys_symlink, 2) 101 SYS(sys_ni_syscall, 0) /* was sys_lstat */ 102 SYS(sys_readlink, 3) /* 4085 */ 103 SYS(sys_uselib, 1) 104 SYS(sys_swapon, 2) 105 SYS(sys_reboot, 3) 106 SYS(old_readdir, 3) 107 SYS(old_mmap, 6) /* 4090 */ 108 SYS(sys_munmap, 2) 109 SYS(sys_truncate, 2) 110 SYS(sys_ftruncate, 2) 111 SYS(sys_fchmod, 2) 112 SYS(sys_fchown, 3) /* 4095 */ 113 SYS(sys_getpriority, 2) 114 SYS(sys_setpriority, 3) 115 SYS(sys_ni_syscall, 0) 116 SYS(sys_statfs, 2) 117 SYS(sys_fstatfs, 2) /* 4100 */ 118 SYS(sys_ni_syscall, 3) /* was ioperm(2) */ 119 SYS(sys_socketcall, 2) 120 SYS(sys_syslog, 3) 121 SYS(sys_setitimer, 3) 122 SYS(sys_getitimer, 2) /* 4105 */ 123 SYS(sys_newstat, 2) 124 SYS(sys_newlstat, 2) 125 SYS(sys_newfstat, 2) 126 SYS(sys_uname, 1) 127 SYS(sys_ni_syscall, 0) /* 4110 was iopl(2) */ 128 SYS(sys_vhangup, 0) 129 SYS(sys_ni_syscall, 0) /* was sys_idle() */ 130 SYS(sys_ni_syscall, 0) /* was vm86(2) */ 131 SYS(sys_wait4, 4) 132 SYS(sys_swapoff, 1) /* 4115 */ 133 SYS(sys_sysinfo, 1) 134 SYS(sys_ipc, 6) 135 SYS(sys_fsync, 1) 136 SYS(sys_sigreturn, 0) 137 SYS(sys_clone, 0) /* 4120 */ 138 SYS(sys_setdomainname, 2) 139 SYS(sys_newuname, 1) 140 SYS(sys_ni_syscall, 0) /* sys_modify_ldt */ 141 SYS(sys_adjtimex, 1) 142 SYS(sys_mprotect, 3) /* 4125 */ 143 SYS(sys_sigprocmask, 3) 144 SYS(sys_create_module, 2) 145 SYS(sys_init_module, 5) 146 SYS(sys_delete_module, 1) 147 SYS(sys_get_kernel_syms, 1) /* 4130 */ 148 SYS(sys_quotactl, 0) 149 SYS(sys_getpgid, 1) 150 SYS(sys_fchdir, 1) 151 SYS(sys_bdflush, 2) 152 SYS(sys_sysfs, 3) /* 4135 */ 153 SYS(sys_personality, 1) 154 SYS(sys_ni_syscall, 0) /* for afs_syscall */ 155 SYS(sys_setfsuid, 1) 156 SYS(sys_setfsgid, 1) 157 SYS(sys_llseek, 5) /* 4140 */ 158 SYS(sys_getdents, 3) 159 SYS(sys_select, 5) 160 SYS(sys_flock, 2) 161 SYS(sys_msync, 3) 162 SYS(sys_readv, 3) /* 4145 */ 163 SYS(sys_writev, 3) 164 SYS(sys_cacheflush, 3) 165 SYS(sys_cachectl, 3) 166 SYS(sys_sysmips, 4) 167 SYS(sys_ni_syscall, 0) /* 4150 */ 168 SYS(sys_getsid, 1) 169 SYS(sys_fdatasync, 0) 170 SYS(sys_sysctl, 1) 171 SYS(sys_mlock, 2) 172 SYS(sys_munlock, 2) /* 4155 */ 173 SYS(sys_mlockall, 1) 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 */ 183 SYS(sys_nanosleep,2) 184 SYS(sys_mremap,4) 185 SYS(sys_accept, 3) 186 SYS(sys_bind, 3) 187 SYS(sys_connect, 3) /* 4170 */ 188 SYS(sys_getpeername, 3) 189 SYS(sys_getsockname, 3) 190 SYS(sys_getsockopt, 5) 191 SYS(sys_listen, 2) 192 SYS(sys_recv, 4) /* 4175 */ 193 SYS(sys_recvfrom, 6) 194 SYS(sys_recvmsg, 3) 195 SYS(sys_send, 4) 196 SYS(sys_sendmsg, 3) 197 SYS(sys_sendto, 6) /* 4180 */ 198 SYS(sys_setsockopt, 5) 199 SYS(sys_shutdown, 2) 200 SYS(sys_socket, 3) 201 SYS(sys_socketpair, 4) 202 SYS(sys_setresuid, 3) /* 4185 */ 203 SYS(sys_getresuid, 3) 204 SYS(sys_query_module, 5) 205 SYS(sys_poll, 3) 206 SYS(sys_nfsservctl, 3) 207 SYS(sys_setresgid, 3) /* 4190 */ 208 SYS(sys_getresgid, 3) 209 SYS(sys_prctl, 5) 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_pread, 6) /* 4200 */ 218 SYS(sys_pwrite, 6) 219 SYS(sys_chown, 3) 220 SYS(sys_getcwd, 2) 221 SYS(sys_capget, 2) 222 SYS(sys_capset, 2) /* 4205 */ 223 SYS(sys_sigaltstack, 0) 224 SYS(sys_sendfile, 4) 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) 230 SYS(sys_stat64, 2) 231 SYS(sys_lstat64, 2) 232 SYS(sys_fstat64, 2) /* 4215 */ 233 SYS(sys_pivot_root, 2) 234 SYS(sys_mincore, 3) 235 SYS(sys_madvise, 3) 236 SYS(sys_getdents64, 3) 237 SYS(sys_fcntl64, 3) /* 4220 */ 238 SYS(sys_ni_syscall, 0) 239 SYS(sys_gettid, 0) 240 SYS(sys_readahead, 5) 241 SYS(sys_setxattr, 5) 242 SYS(sys_lsetxattr, 5) /* 4225 */ 243 SYS(sys_fsetxattr, 5) 244 SYS(sys_getxattr, 4) 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 */ 253 SYS(sys_tkill, 2) 254 SYS(sys_sendfile64, 5) 255 SYS(sys_ni_syscall, 0) /* res. for futex */ 256 SYS(sys_ni_syscall, 0) /* res. for sched_setaffinity */ 257 SYS(sys_ni_syscall, 0) /* 4240 res. for sched_getaffinity */ 258