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