1 1.1 fvdl /* 2 1.1 fvdl * System call numbers. 3 1.1 fvdl * 4 1.1 fvdl * DO NOT EDIT-- this file is automatically generated. 5 1.23 christos * created from NetBSD: syscalls.master,v 1.21 1997/10/16 23:53:07 christos Exp 6 1.1 fvdl */ 7 1.1 fvdl 8 1.18 thorpej /* syscall: "syscall" ret: "int" args: */ 9 1.1 fvdl #define LINUX_SYS_syscall 0 10 1.18 thorpej 11 1.18 thorpej /* syscall: "exit" ret: "int" args: "int" */ 12 1.1 fvdl #define LINUX_SYS_exit 1 13 1.18 thorpej 14 1.18 thorpej /* syscall: "fork" ret: "int" args: */ 15 1.14 mycroft #define LINUX_SYS_fork 2 16 1.18 thorpej 17 1.18 thorpej /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */ 18 1.1 fvdl #define LINUX_SYS_read 3 19 1.18 thorpej 20 1.18 thorpej /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */ 21 1.1 fvdl #define LINUX_SYS_write 4 22 1.18 thorpej 23 1.18 thorpej /* syscall: "open" ret: "int" args: "char *" "int" "int" */ 24 1.14 mycroft #define LINUX_SYS_open 5 25 1.18 thorpej 26 1.18 thorpej /* syscall: "close" ret: "int" args: "int" */ 27 1.1 fvdl #define LINUX_SYS_close 6 28 1.18 thorpej 29 1.18 thorpej /* syscall: "waitpid" ret: "int" args: "int" "int *" "int" */ 30 1.14 mycroft #define LINUX_SYS_waitpid 7 31 1.18 thorpej 32 1.18 thorpej /* syscall: "creat" ret: "int" args: "char *" "int" */ 33 1.14 mycroft #define LINUX_SYS_creat 8 34 1.18 thorpej 35 1.18 thorpej /* syscall: "link" ret: "int" args: "char *" "char *" */ 36 1.1 fvdl #define LINUX_SYS_link 9 37 1.18 thorpej 38 1.18 thorpej /* syscall: "unlink" ret: "int" args: "char *" */ 39 1.14 mycroft #define LINUX_SYS_unlink 10 40 1.18 thorpej 41 1.18 thorpej /* syscall: "execve" ret: "int" args: "char *" "char **" "char **" */ 42 1.14 mycroft #define LINUX_SYS_execve 11 43 1.18 thorpej 44 1.18 thorpej /* syscall: "chdir" ret: "int" args: "char *" */ 45 1.14 mycroft #define LINUX_SYS_chdir 12 46 1.18 thorpej 47 1.18 thorpej /* syscall: "time" ret: "int" args: "linux_time_t *" */ 48 1.14 mycroft #define LINUX_SYS_time 13 49 1.18 thorpej 50 1.18 thorpej /* syscall: "mknod" ret: "int" args: "char *" "int" "int" */ 51 1.14 mycroft #define LINUX_SYS_mknod 14 52 1.18 thorpej 53 1.18 thorpej /* syscall: "chmod" ret: "int" args: "char *" "int" */ 54 1.14 mycroft #define LINUX_SYS_chmod 15 55 1.18 thorpej 56 1.18 thorpej /* syscall: "chown" ret: "int" args: "char *" "int" "int" */ 57 1.14 mycroft #define LINUX_SYS_chown 16 58 1.18 thorpej 59 1.18 thorpej /* syscall: "break" ret: "int" args: "char *" */ 60 1.14 mycroft #define LINUX_SYS_break 17 61 1.18 thorpej 62 1.14 mycroft /* 18 is obsolete ostat */ 63 1.18 thorpej /* syscall: "lseek" ret: "long" args: "int" "long" "int" */ 64 1.14 mycroft #define LINUX_SYS_lseek 19 65 1.18 thorpej 66 1.18 thorpej /* syscall: "getpid" ret: "pid_t" args: */ 67 1.1 fvdl #define LINUX_SYS_getpid 20 68 1.18 thorpej 69 1.18 thorpej /* syscall: "setuid" ret: "int" args: "uid_t" */ 70 1.1 fvdl #define LINUX_SYS_setuid 23 71 1.18 thorpej 72 1.18 thorpej /* syscall: "getuid" ret: "uid_t" args: */ 73 1.1 fvdl #define LINUX_SYS_getuid 24 74 1.18 thorpej 75 1.18 thorpej /* syscall: "alarm" ret: "int" args: "unsigned int" */ 76 1.14 mycroft #define LINUX_SYS_alarm 27 77 1.18 thorpej 78 1.14 mycroft /* 28 is obsolete ofstat */ 79 1.18 thorpej /* syscall: "pause" ret: "int" args: */ 80 1.14 mycroft #define LINUX_SYS_pause 29 81 1.18 thorpej 82 1.18 thorpej /* syscall: "utime" ret: "int" args: "char *" "struct linux_utimbuf *" */ 83 1.14 mycroft #define LINUX_SYS_utime 30 84 1.18 thorpej 85 1.18 thorpej /* syscall: "access" ret: "int" args: "char *" "int" */ 86 1.14 mycroft #define LINUX_SYS_access 33 87 1.19 augustss 88 1.19 augustss /* syscall: "nice" ret: "int" args: "int" */ 89 1.19 augustss #define LINUX_SYS_nice 34 90 1.18 thorpej 91 1.18 thorpej /* syscall: "sync" ret: "int" args: */ 92 1.1 fvdl #define LINUX_SYS_sync 36 93 1.18 thorpej 94 1.18 thorpej /* syscall: "kill" ret: "int" args: "int" "int" */ 95 1.14 mycroft #define LINUX_SYS_kill 37 96 1.18 thorpej 97 1.18 thorpej /* syscall: "rename" ret: "int" args: "char *" "char *" */ 98 1.14 mycroft #define LINUX_SYS_rename 38 99 1.18 thorpej 100 1.18 thorpej /* syscall: "mkdir" ret: "int" args: "char *" "int" */ 101 1.14 mycroft #define LINUX_SYS_mkdir 39 102 1.18 thorpej 103 1.18 thorpej /* syscall: "rmdir" ret: "int" args: "char *" */ 104 1.14 mycroft #define LINUX_SYS_rmdir 40 105 1.18 thorpej 106 1.18 thorpej /* syscall: "dup" ret: "int" args: "u_int" */ 107 1.1 fvdl #define LINUX_SYS_dup 41 108 1.18 thorpej 109 1.18 thorpej /* syscall: "pipe" ret: "int" args: "int *" */ 110 1.14 mycroft #define LINUX_SYS_pipe 42 111 1.18 thorpej 112 1.18 thorpej /* syscall: "times" ret: "int" args: "struct times *" */ 113 1.14 mycroft #define LINUX_SYS_times 43 114 1.18 thorpej 115 1.18 thorpej /* syscall: "brk" ret: "int" args: "char *" */ 116 1.14 mycroft #define LINUX_SYS_brk 45 117 1.18 thorpej 118 1.18 thorpej /* syscall: "setgid" ret: "int" args: "gid_t" */ 119 1.1 fvdl #define LINUX_SYS_setgid 46 120 1.18 thorpej 121 1.18 thorpej /* syscall: "getgid" ret: "gid_t" args: */ 122 1.1 fvdl #define LINUX_SYS_getgid 47 123 1.18 thorpej 124 1.18 thorpej /* syscall: "signal" ret: "int" args: "int" "linux_handler_t" */ 125 1.14 mycroft #define LINUX_SYS_signal 48 126 1.18 thorpej 127 1.18 thorpej /* syscall: "geteuid" ret: "uid_t" args: */ 128 1.1 fvdl #define LINUX_SYS_geteuid 49 129 1.18 thorpej 130 1.18 thorpej /* syscall: "getegid" ret: "gid_t" args: */ 131 1.1 fvdl #define LINUX_SYS_getegid 50 132 1.18 thorpej 133 1.18 thorpej /* syscall: "acct" ret: "int" args: "char *" */ 134 1.1 fvdl #define LINUX_SYS_acct 51 135 1.18 thorpej 136 1.18 thorpej /* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */ 137 1.14 mycroft #define LINUX_SYS_ioctl 54 138 1.18 thorpej 139 1.18 thorpej /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */ 140 1.14 mycroft #define LINUX_SYS_fcntl 55 141 1.18 thorpej 142 1.18 thorpej /* syscall: "setpgid" ret: "int" args: "int" "int" */ 143 1.1 fvdl #define LINUX_SYS_setpgid 57 144 1.18 thorpej 145 1.18 thorpej /* syscall: "oldolduname" ret: "int" args: "struct linux_oldold_utsname *" */ 146 1.14 mycroft #define LINUX_SYS_oldolduname 59 147 1.18 thorpej 148 1.18 thorpej /* syscall: "umask" ret: "int" args: "int" */ 149 1.1 fvdl #define LINUX_SYS_umask 60 150 1.18 thorpej 151 1.18 thorpej /* syscall: "chroot" ret: "int" args: "char *" */ 152 1.1 fvdl #define LINUX_SYS_chroot 61 153 1.18 thorpej 154 1.18 thorpej /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */ 155 1.1 fvdl #define LINUX_SYS_dup2 63 156 1.18 thorpej 157 1.18 thorpej /* syscall: "getppid" ret: "pid_t" args: */ 158 1.1 fvdl #define LINUX_SYS_getppid 64 159 1.18 thorpej 160 1.18 thorpej /* syscall: "getpgrp" ret: "int" args: */ 161 1.1 fvdl #define LINUX_SYS_getpgrp 65 162 1.18 thorpej 163 1.18 thorpej /* syscall: "setsid" ret: "int" args: */ 164 1.1 fvdl #define LINUX_SYS_setsid 66 165 1.18 thorpej 166 1.18 thorpej /* syscall: "sigaction" ret: "int" args: "int" "struct linux_sigaction *" "struct linux_sigaction *" */ 167 1.14 mycroft #define LINUX_SYS_sigaction 67 168 1.18 thorpej 169 1.18 thorpej /* syscall: "siggetmask" ret: "int" args: */ 170 1.14 mycroft #define LINUX_SYS_siggetmask 68 171 1.18 thorpej 172 1.18 thorpej /* syscall: "sigsetmask" ret: "int" args: "linux_sigset_t" */ 173 1.14 mycroft #define LINUX_SYS_sigsetmask 69 174 1.18 thorpej 175 1.18 thorpej /* syscall: "setreuid" ret: "int" args: "int" "int" */ 176 1.14 mycroft #define LINUX_SYS_setreuid 70 177 1.18 thorpej 178 1.18 thorpej /* syscall: "setregid" ret: "int" args: "int" "int" */ 179 1.14 mycroft #define LINUX_SYS_setregid 71 180 1.18 thorpej 181 1.18 thorpej /* syscall: "sigsuspend" ret: "int" args: "caddr_t" "int" "int" */ 182 1.14 mycroft #define LINUX_SYS_sigsuspend 72 183 1.18 thorpej 184 1.18 thorpej /* syscall: "sigpending" ret: "int" args: "linux_sigset_t *" */ 185 1.14 mycroft #define LINUX_SYS_sigpending 73 186 1.18 thorpej 187 1.18 thorpej /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */ 188 1.14 mycroft #define LINUX_SYS_sethostname 74 189 1.18 thorpej 190 1.22 mycroft /* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */ 191 1.14 mycroft #define LINUX_SYS_setrlimit 75 192 1.18 thorpej 193 1.22 mycroft /* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */ 194 1.14 mycroft #define LINUX_SYS_getrlimit 76 195 1.18 thorpej 196 1.18 thorpej /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */ 197 1.1 fvdl #define LINUX_SYS_getrusage 77 198 1.18 thorpej 199 1.18 thorpej /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ 200 1.1 fvdl #define LINUX_SYS_gettimeofday 78 201 1.18 thorpej 202 1.18 thorpej /* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ 203 1.1 fvdl #define LINUX_SYS_settimeofday 79 204 1.18 thorpej 205 1.18 thorpej /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */ 206 1.1 fvdl #define LINUX_SYS_getgroups 80 207 1.18 thorpej 208 1.18 thorpej /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */ 209 1.1 fvdl #define LINUX_SYS_setgroups 81 210 1.18 thorpej 211 1.18 thorpej /* syscall: "oldselect" ret: "int" args: "struct linux_select *" */ 212 1.14 mycroft #define LINUX_SYS_oldselect 82 213 1.18 thorpej 214 1.18 thorpej /* syscall: "symlink" ret: "int" args: "char *" "char *" */ 215 1.14 mycroft #define LINUX_SYS_symlink 83 216 1.18 thorpej 217 1.23 christos /* syscall: "oolstat" ret: "int" args: "char *" "struct stat43 *" */ 218 1.23 christos #define LINUX_SYS_oolstat 84 219 1.18 thorpej 220 1.18 thorpej /* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */ 221 1.14 mycroft #define LINUX_SYS_readlink 85 222 1.18 thorpej 223 1.18 thorpej /* syscall: "uselib" ret: "int" args: "char *" */ 224 1.14 mycroft #define LINUX_SYS_uselib 86 225 1.18 thorpej 226 1.18 thorpej /* syscall: "swapon" ret: "int" args: "char *" */ 227 1.1 fvdl #define LINUX_SYS_swapon 87 228 1.18 thorpej 229 1.18 thorpej /* syscall: "reboot" ret: "int" args: "int" */ 230 1.1 fvdl #define LINUX_SYS_reboot 88 231 1.18 thorpej 232 1.18 thorpej /* syscall: "readdir" ret: "int" args: "int" "caddr_t" "unsigned int" */ 233 1.14 mycroft #define LINUX_SYS_readdir 89 234 1.18 thorpej 235 1.18 thorpej /* syscall: "mmap" ret: "int" args: "struct linux_mmap *" */ 236 1.14 mycroft #define LINUX_SYS_mmap 90 237 1.18 thorpej 238 1.18 thorpej /* syscall: "munmap" ret: "int" args: "caddr_t" "int" */ 239 1.1 fvdl #define LINUX_SYS_munmap 91 240 1.18 thorpej 241 1.18 thorpej /* syscall: "truncate" ret: "int" args: "char *" "long" */ 242 1.14 mycroft #define LINUX_SYS_truncate 92 243 1.18 thorpej 244 1.18 thorpej /* syscall: "ftruncate" ret: "int" args: "int" "long" */ 245 1.14 mycroft #define LINUX_SYS_ftruncate 93 246 1.18 thorpej 247 1.18 thorpej /* syscall: "fchmod" ret: "int" args: "int" "int" */ 248 1.1 fvdl #define LINUX_SYS_fchmod 94 249 1.18 thorpej 250 1.18 thorpej /* syscall: "fchown" ret: "int" args: "int" "int" "int" */ 251 1.14 mycroft #define LINUX_SYS_fchown 95 252 1.18 thorpej 253 1.18 thorpej /* syscall: "getpriority" ret: "int" args: "int" "int" */ 254 1.1 fvdl #define LINUX_SYS_getpriority 96 255 1.18 thorpej 256 1.18 thorpej /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ 257 1.1 fvdl #define LINUX_SYS_setpriority 97 258 1.18 thorpej 259 1.18 thorpej /* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */ 260 1.1 fvdl #define LINUX_SYS_profil 98 261 1.18 thorpej 262 1.18 thorpej /* syscall: "statfs" ret: "int" args: "char *" "struct linux_statfs *" */ 263 1.14 mycroft #define LINUX_SYS_statfs 99 264 1.18 thorpej 265 1.18 thorpej /* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */ 266 1.14 mycroft #define LINUX_SYS_fstatfs 100 267 1.18 thorpej 268 1.18 thorpej /* syscall: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */ 269 1.14 mycroft #define LINUX_SYS_ioperm 101 270 1.18 thorpej 271 1.18 thorpej /* syscall: "socketcall" ret: "int" args: "int" "void *" */ 272 1.14 mycroft #define LINUX_SYS_socketcall 102 273 1.18 thorpej 274 1.18 thorpej /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */ 275 1.1 fvdl #define LINUX_SYS_setitimer 104 276 1.18 thorpej 277 1.18 thorpej /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */ 278 1.1 fvdl #define LINUX_SYS_getitimer 105 279 1.18 thorpej 280 1.18 thorpej /* syscall: "stat" ret: "int" args: "char *" "struct linux_stat *" */ 281 1.14 mycroft #define LINUX_SYS_stat 106 282 1.18 thorpej 283 1.18 thorpej /* syscall: "lstat" ret: "int" args: "char *" "struct linux_stat *" */ 284 1.14 mycroft #define LINUX_SYS_lstat 107 285 1.18 thorpej 286 1.18 thorpej /* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */ 287 1.14 mycroft #define LINUX_SYS_fstat 108 288 1.18 thorpej 289 1.18 thorpej /* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */ 290 1.14 mycroft #define LINUX_SYS_olduname 109 291 1.18 thorpej 292 1.18 thorpej /* syscall: "iopl" ret: "int" args: "int" */ 293 1.14 mycroft #define LINUX_SYS_iopl 110 294 1.18 thorpej 295 1.18 thorpej /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */ 296 1.14 mycroft #define LINUX_SYS_wait4 114 297 1.18 thorpej 298 1.18 thorpej /* syscall: "ipc" ret: "int" args: "int" "int" "int" "int" "caddr_t" */ 299 1.14 mycroft #define LINUX_SYS_ipc 117 300 1.18 thorpej 301 1.18 thorpej /* syscall: "fsync" ret: "int" args: "int" */ 302 1.1 fvdl #define LINUX_SYS_fsync 118 303 1.18 thorpej 304 1.18 thorpej /* syscall: "sigreturn" ret: "int" args: "struct linux_sigcontext *" */ 305 1.14 mycroft #define LINUX_SYS_sigreturn 119 306 1.18 thorpej 307 1.18 thorpej /* syscall: "setdomainname" ret: "int" args: "char *" "int" */ 308 1.14 mycroft #define LINUX_SYS_setdomainname 121 309 1.18 thorpej 310 1.18 thorpej /* syscall: "uname" ret: "int" args: "struct linux_utsname *" */ 311 1.14 mycroft #define LINUX_SYS_uname 122 312 1.18 thorpej 313 1.18 thorpej /* syscall: "modify_ldt" ret: "int" args: "int" "void *" "size_t" */ 314 1.14 mycroft #define LINUX_SYS_modify_ldt 123 315 1.18 thorpej 316 1.18 thorpej /* syscall: "mprotect" ret: "int" args: "caddr_t" "int" "int" */ 317 1.1 fvdl #define LINUX_SYS_mprotect 125 318 1.18 thorpej 319 1.18 thorpej /* syscall: "sigprocmask" ret: "int" args: "int" "linux_sigset_t *" "linux_sigset_t *" */ 320 1.14 mycroft #define LINUX_SYS_sigprocmask 126 321 1.18 thorpej 322 1.18 thorpej /* syscall: "getpgid" ret: "int" args: "int" */ 323 1.14 mycroft #define LINUX_SYS_getpgid 132 324 1.18 thorpej 325 1.18 thorpej /* syscall: "fchdir" ret: "int" args: "int" */ 326 1.1 fvdl #define LINUX_SYS_fchdir 133 327 1.18 thorpej 328 1.18 thorpej /* syscall: "personality" ret: "int" args: "int" */ 329 1.14 mycroft #define LINUX_SYS_personality 136 330 1.18 thorpej 331 1.18 thorpej /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "caddr_t" "int" */ 332 1.14 mycroft #define LINUX_SYS_llseek 140 333 1.18 thorpej 334 1.18 thorpej /* syscall: "getdents" ret: "int" args: "int" "void *" "unsigned" */ 335 1.14 mycroft #define LINUX_SYS_getdents 141 336 1.18 thorpej 337 1.18 thorpej /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ 338 1.14 mycroft #define LINUX_SYS_select 142 339 1.18 thorpej 340 1.18 thorpej /* syscall: "flock" ret: "int" args: "int" "int" */ 341 1.11 fvdl #define LINUX_SYS_flock 143 342 1.18 thorpej 343 1.18 thorpej /* syscall: "msync" ret: "int" args: "caddr_t" "int" "int" */ 344 1.16 fvdl #define LINUX_SYS_msync 144 345 1.18 thorpej 346 1.18 thorpej /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */ 347 1.16 fvdl #define LINUX_SYS_readv 145 348 1.18 thorpej 349 1.18 thorpej /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */ 350 1.16 fvdl #define LINUX_SYS_writev 146 351 1.18 thorpej 352 1.18 thorpej /* syscall: "getsid" ret: "int" args: "int" */ 353 1.17 fvdl #define LINUX_SYS_getsid 147 354 1.18 thorpej 355 1.18 thorpej /* syscall: "fdatasync" ret: "int" args: "int" */ 356 1.17 fvdl #define LINUX_SYS_fdatasync 148 357 1.18 thorpej 358 1.18 thorpej /* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */ 359 1.17 fvdl #define LINUX_SYS___sysctl 149 360 1.18 thorpej 361 1.18 thorpej /* syscall: "mlock" ret: "int" args: "caddr_t" "size_t" */ 362 1.17 fvdl #define LINUX_SYS_mlock 150 363 1.18 thorpej 364 1.18 thorpej /* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */ 365 1.17 fvdl #define LINUX_SYS_munlock 151 366 1.21 mycroft 367 1.21 mycroft /* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */ 368 1.21 mycroft #define LINUX_SYS_mremap 163 369 1.18 thorpej 370 1.17 fvdl #define LINUX_SYS_MAXSYSCALL 164 371