1 /* $NetBSD: linux32_syscall.h,v 1.10 2006/09/13 19:55:49 manu Exp $ */ 2 3 /* 4 * System call numbers. 5 * 6 * DO NOT EDIT-- this file is automatically generated. 7 * created from NetBSD: syscalls.master,v 1.6 2006/09/06 12:01:23 manu Exp 8 */ 9 10 #ifndef _LINUX32_SYS_SYSCALL_H_ 11 #define _LINUX32_SYS_SYSCALL_H_ 12 13 /* syscall: "syscall" ret: "int" args: */ 14 #define LINUX32_SYS_syscall 0 15 16 /* syscall: "exit" ret: "int" args: "int" */ 17 #define LINUX32_SYS_exit 1 18 19 /* syscall: "fork" ret: "int" args: */ 20 #define LINUX32_SYS_fork 2 21 22 /* syscall: "netbsd32_read" ret: "netbsd32_ssize_t" args: "int" "netbsd32_voidp" "netbsd32_size_t" */ 23 #define LINUX32_SYS_netbsd32_read 3 24 25 /* syscall: "netbsd32_write" ret: "netbsd32_ssize_t" args: "int" "const netbsd32_voidp" "netbsd32_size_t" */ 26 #define LINUX32_SYS_netbsd32_write 4 27 28 /* syscall: "open" ret: "int" args: "const netbsd32_charp" "int" "int" */ 29 #define LINUX32_SYS_open 5 30 31 /* syscall: "close" ret: "int" args: "int" */ 32 #define LINUX32_SYS_close 6 33 34 /* syscall: "waitpid" ret: "int" args: "int" "netbsd32_intp" "int" */ 35 #define LINUX32_SYS_waitpid 7 36 37 /* syscall: "creat" ret: "int" args: "const netbsd32_charp" "int" */ 38 #define LINUX32_SYS_creat 8 39 40 /* syscall: "link" ret: "int" args: "const netbsd32_charp" "const netbsd32_charp" */ 41 #define LINUX32_SYS_link 9 42 43 /* syscall: "unlink" ret: "int" args: "const netbsd32_charp" */ 44 #define LINUX32_SYS_unlink 10 45 46 /* syscall: "execve" ret: "int" args: "const netbsd32_charp" "netbsd32_charpp" "netbsd32_charpp" */ 47 #define LINUX32_SYS_execve 11 48 49 /* syscall: "chdir" ret: "int" args: "const netbsd32_charp" */ 50 #define LINUX32_SYS_chdir 12 51 52 /* syscall: "time" ret: "int" args: "linux32_timep_t" */ 53 #define LINUX32_SYS_time 13 54 55 /* syscall: "mknod" ret: "int" args: "const netbsd32_charp" "int" "int" */ 56 #define LINUX32_SYS_mknod 14 57 58 /* syscall: "chmod" ret: "int" args: "const netbsd32_charp" "int" */ 59 #define LINUX32_SYS_chmod 15 60 61 /* syscall: "lchown16" ret: "int" args: "const netbsd32_charp" "int" "int" */ 62 #define LINUX32_SYS_lchown16 16 63 64 /* syscall: "break" ret: "int" args: "netbsd32_charp" */ 65 #define LINUX32_SYS_break 17 66 67 /* 18 is obsolete ostat */ 68 /* syscall: "compat_43_netbsd32_olseek" ret: "netbsd32_long" args: "int" "netbsd32_long" "int" */ 69 #define LINUX32_SYS_compat_43_netbsd32_olseek 19 70 71 /* syscall: "getpid" ret: "pid_t" args: */ 72 #define LINUX32_SYS_getpid 20 73 74 /* syscall: "linux_setuid16" ret: "int" args: "uid_t" */ 75 #define LINUX32_SYS_linux_setuid16 23 76 77 /* syscall: "linux_getuid16" ret: "uid_t" args: */ 78 #define LINUX32_SYS_linux_getuid16 24 79 80 /* syscall: "stime" ret: "int" args: "linux32_timep_t" */ 81 #define LINUX32_SYS_stime 25 82 83 /* syscall: "alarm" ret: "int" args: "unsigned int" */ 84 #define LINUX32_SYS_alarm 27 85 86 /* 28 is obsolete ofstat */ 87 /* syscall: "pause" ret: "int" args: */ 88 #define LINUX32_SYS_pause 29 89 90 /* syscall: "utime" ret: "int" args: "const netbsd32_charp" "linux32_utimbufp_t" */ 91 #define LINUX32_SYS_utime 30 92 93 /* 31 is obsolete stty */ 94 /* 32 is obsolete gtty */ 95 /* syscall: "access" ret: "int" args: "const netbsd32_charp" "int" */ 96 #define LINUX32_SYS_access 33 97 98 /* syscall: "nice" ret: "int" args: "int" */ 99 #define LINUX32_SYS_nice 34 100 101 /* 35 is obsolete ftime */ 102 /* syscall: "sync" ret: "int" args: */ 103 #define LINUX32_SYS_sync 36 104 105 /* syscall: "kill" ret: "int" args: "int" "int" */ 106 #define LINUX32_SYS_kill 37 107 108 /* syscall: "rename" ret: "int" args: "const netbsd32_charp" "const netbsd32_charp" */ 109 #define LINUX32_SYS_rename 38 110 111 /* syscall: "mkdir" ret: "int" args: "const netbsd32_charp" "int" */ 112 #define LINUX32_SYS_mkdir 39 113 114 /* syscall: "rmdir" ret: "int" args: "const netbsd32_charp" */ 115 #define LINUX32_SYS_rmdir 40 116 117 /* syscall: "netbsd32_dup" ret: "int" args: "u_int" */ 118 #define LINUX32_SYS_netbsd32_dup 41 119 120 /* syscall: "pipe" ret: "int" args: "netbsd32_intp" */ 121 #define LINUX32_SYS_pipe 42 122 123 /* syscall: "times" ret: "int" args: "linux32_tmsp_t" */ 124 #define LINUX32_SYS_times 43 125 126 /* 44 is obsolete prof */ 127 /* syscall: "brk" ret: "int" args: "netbsd32_charp" */ 128 #define LINUX32_SYS_brk 45 129 130 /* syscall: "linux_setgid16" ret: "int" args: "gid_t" */ 131 #define LINUX32_SYS_linux_setgid16 46 132 133 /* syscall: "linux_getgid16" ret: "gid_t" args: */ 134 #define LINUX32_SYS_linux_getgid16 47 135 136 /* syscall: "signal" ret: "int" args: "int" "linux32_handler_t" */ 137 #define LINUX32_SYS_signal 48 138 139 /* syscall: "linux_geteuid16" ret: "uid_t" args: */ 140 #define LINUX32_SYS_linux_geteuid16 49 141 142 /* syscall: "linux_getegid16" ret: "gid_t" args: */ 143 #define LINUX32_SYS_linux_getegid16 50 144 145 /* syscall: "acct" ret: "int" args: "netbsd32_charp" */ 146 #define LINUX32_SYS_acct 51 147 148 /* 52 is obsolete phys */ 149 /* 53 is obsolete lock */ 150 /* syscall: "ioctl" ret: "int" args: "int" "netbsd32_u_long" "netbsd32_charp" */ 151 #define LINUX32_SYS_ioctl 54 152 153 /* syscall: "fcntl" ret: "int" args: "int" "int" "netbsd32_voidp" */ 154 #define LINUX32_SYS_fcntl 55 155 156 /* 56 is obsolete mpx */ 157 /* syscall: "setpgid" ret: "int" args: "int" "int" */ 158 #define LINUX32_SYS_setpgid 57 159 160 /* 58 is obsolete ulimit */ 161 /* syscall: "oldolduname" ret: "int" args: "linux32_oldold_utsnamep_t" */ 162 #define LINUX32_SYS_oldolduname 59 163 164 /* syscall: "umask" ret: "int" args: "int" */ 165 #define LINUX32_SYS_umask 60 166 167 /* syscall: "chroot" ret: "int" args: "netbsd32_charp" */ 168 #define LINUX32_SYS_chroot 61 169 170 /* syscall: "netbsd32_dup2" ret: "int" args: "u_int" "u_int" */ 171 #define LINUX32_SYS_netbsd32_dup2 63 172 173 /* syscall: "getppid" ret: "pid_t" args: */ 174 #define LINUX32_SYS_getppid 64 175 176 /* syscall: "getpgrp" ret: "int" args: */ 177 #define LINUX32_SYS_getpgrp 65 178 179 /* syscall: "setsid" ret: "int" args: */ 180 #define LINUX32_SYS_setsid 66 181 182 /* syscall: "setreuid16" ret: "int" args: "int" "int" */ 183 #define LINUX32_SYS_setreuid16 70 184 185 /* syscall: "setregid16" ret: "int" args: "int" "int" */ 186 #define LINUX32_SYS_setregid16 71 187 188 /* syscall: "compat_43_netbsd32_osethostname" ret: "int" args: "netbsd32_charp" "u_int" */ 189 #define LINUX32_SYS_compat_43_netbsd32_osethostname 74 190 191 /* syscall: "setrlimit" ret: "int" args: "u_int" "netbsd32_orlimitp_t" */ 192 #define LINUX32_SYS_setrlimit 75 193 194 /* syscall: "getrlimit" ret: "int" args: "u_int" "netbsd32_orlimitp_t" */ 195 #define LINUX32_SYS_getrlimit 76 196 197 /* syscall: "getrusage" ret: "int" args: "int" "netbsd32_rusagep_t" */ 198 #define LINUX32_SYS_getrusage 77 199 200 /* syscall: "gettimeofday" ret: "int" args: "netbsd32_timevalp_t" "netbsd32_timezonep_t" */ 201 #define LINUX32_SYS_gettimeofday 78 202 203 /* syscall: "settimeofday" ret: "int" args: "netbsd32_timevalp_t" "netbsd32_timezonep_t" */ 204 #define LINUX32_SYS_settimeofday 79 205 206 /* syscall: "getgroups16" ret: "int" args: "int" "linux32_gidp_t" */ 207 #define LINUX32_SYS_getgroups16 80 208 209 /* syscall: "setgroups16" ret: "int" args: "int" "linux32_gidp_t" */ 210 #define LINUX32_SYS_setgroups16 81 211 212 /* syscall: "oldselect" ret: "int" args: "linux32_oldselectp_t" */ 213 #define LINUX32_SYS_oldselect 82 214 215 /* syscall: "symlink" ret: "int" args: "netbsd32_charp" "const netbsd32_charp" */ 216 #define LINUX32_SYS_symlink 83 217 218 /* syscall: "lstat" ret: "int" args: "const netbsd32_charp" "netbsd32_stat43p_t" */ 219 #define LINUX32_SYS_lstat 84 220 221 /* syscall: "readlink" ret: "int" args: "const netbsd32_charp" "netbsd32_charp" "int" */ 222 #define LINUX32_SYS_readlink 85 223 224 /* syscall: "swapon" ret: "int" args: "netbsd32_charp" */ 225 #define LINUX32_SYS_swapon 87 226 227 /* syscall: "reboot" ret: "int" args: "int" "int" "int" "netbsd32_voidp" */ 228 #define LINUX32_SYS_reboot 88 229 230 /* syscall: "old_mmap" ret: "int" args: "linux32_oldmmapp" */ 231 #define LINUX32_SYS_old_mmap 90 232 233 /* syscall: "munmap" ret: "int" args: "netbsd32_caddr_t" "int" */ 234 #define LINUX32_SYS_munmap 91 235 236 /* syscall: "truncate" ret: "int" args: "const netbsd32_charp" "netbsd32_long" */ 237 #define LINUX32_SYS_truncate 92 238 239 /* syscall: "ftruncate" ret: "int" args: "int" "long" */ 240 #define LINUX32_SYS_ftruncate 93 241 242 /* syscall: "fchmod" ret: "int" args: "int" "int" */ 243 #define LINUX32_SYS_fchmod 94 244 245 /* syscall: "fchown16" ret: "int" args: "int" "int" "int" */ 246 #define LINUX32_SYS_fchown16 95 247 248 /* syscall: "getpriority" ret: "int" args: "int" "int" */ 249 #define LINUX32_SYS_getpriority 96 250 251 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ 252 #define LINUX32_SYS_setpriority 97 253 254 /* syscall: "socketcall" ret: "int" args: "int" "netbsd32_voidp" */ 255 #define LINUX32_SYS_socketcall 102 256 257 /* syscall: "setitimer" ret: "int" args: "u_int" "netbsd32_itimervalp_t" "netbsd32_itimervalp_t" */ 258 #define LINUX32_SYS_setitimer 104 259 260 /* syscall: "getitimer" ret: "int" args: "u_int" "netbsd32_itimervalp_t" */ 261 #define LINUX32_SYS_getitimer 105 262 263 /* syscall: "wait4" ret: "int" args: "int" "netbsd32_intp" "int" "netbsd32_rusagep_t" */ 264 #define LINUX32_SYS_wait4 114 265 266 /* syscall: "swapoff" ret: "int" args: "const netbsd32_charp" */ 267 #define LINUX32_SYS_swapoff 115 268 269 /* syscall: "sysinfo" ret: "int" args: "linux32_sysinfop_t" */ 270 #define LINUX32_SYS_sysinfo 116 271 272 /* syscall: "fsync" ret: "int" args: "int" */ 273 #define LINUX32_SYS_fsync 118 274 275 /* syscall: "sigreturn" ret: "int" args: "linux32_sigcontextp_t" */ 276 #define LINUX32_SYS_sigreturn 119 277 278 /* syscall: "clone" ret: "int" args: "int" "netbsd32_voidp" */ 279 #define LINUX32_SYS_clone 120 280 281 /* syscall: "uname" ret: "int" args: "linux32_utsnamep" */ 282 #define LINUX32_SYS_uname 122 283 284 /* syscall: "mprotect" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" */ 285 #define LINUX32_SYS_mprotect 125 286 287 /* syscall: "fchdir" ret: "int" args: "int" */ 288 #define LINUX32_SYS_fchdir 133 289 290 /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "netbsd32_caddr_t" "int" */ 291 #define LINUX32_SYS_llseek 140 292 293 /* syscall: "getdents" ret: "int" args: "int" "linux32_direntp_t" "unsigned int" */ 294 #define LINUX32_SYS_getdents 141 295 296 /* syscall: "select" ret: "int" args: "int" "netbsd32_fd_setp_t" "netbsd32_fd_setp_t" "netbsd32_fd_setp_t" "netbsd32_timevalp_t" */ 297 #define LINUX32_SYS_select 142 298 299 /* syscall: "flock" ret: "int" args: "int" "int" */ 300 #define LINUX32_SYS_flock 143 301 302 /* syscall: "readv" ret: "int" args: "int" "const netbsd32_iovecp_t" "u_int" */ 303 #define LINUX32_SYS_readv 145 304 305 /* syscall: "writev" ret: "netbsd32_ssize_t" args: "int" "const netbsd32_iovecp_t" "int" */ 306 #define LINUX32_SYS_writev 146 307 308 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */ 309 #define LINUX32_SYS_getsid 147 310 311 /* syscall: "fdatasync" ret: "int" args: "int" */ 312 #define LINUX32_SYS_fdatasync 148 313 314 /* syscall: "__sysctl" ret: "int" args: "linux32___sysctlp_t" */ 315 #define LINUX32_SYS___sysctl 149 316 317 /* syscall: "mlockall" ret: "int" args: "int" */ 318 #define LINUX32_SYS_mlockall 152 319 320 /* syscall: "munlockall" ret: "int" args: */ 321 #define LINUX32_SYS_munlockall 153 322 323 /* syscall: "sched_getparam" ret: "int" args: "pid_t" "linux32_sched_paramp_t" */ 324 #define LINUX32_SYS_sched_getparam 155 325 326 /* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const linux32_sched_paramp_t" */ 327 #define LINUX32_SYS_sched_setscheduler 156 328 329 /* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */ 330 #define LINUX32_SYS_sched_getscheduler 157 331 332 /* syscall: "nanosleep" ret: "int" args: "const netbsd32_timespecp_t rqtp netbsd32_timespecp_t" */ 333 #define LINUX32_SYS_nanosleep 162 334 335 /* syscall: "mremap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "netbsd32_size_t" "netbsd32_u_long" */ 336 #define LINUX32_SYS_mremap 163 337 338 /* syscall: "setresuid16" ret: "int" args: "uid_t" "uid_t" "uid_t" */ 339 #define LINUX32_SYS_setresuid16 164 340 341 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ 342 #define LINUX32_SYS_poll 168 343 344 /* syscall: "setresgid16" ret: "int" args: "gid_t" "gid_t" "gid_t" */ 345 #define LINUX32_SYS_setresgid16 170 346 347 /* syscall: "rt_sigreturn" ret: "int" args: "linux32_ucontextp_t" */ 348 #define LINUX32_SYS_rt_sigreturn 173 349 350 /* syscall: "rt_sigaction" ret: "int" args: "int" "const linux32_sigactionp_t" "linux32_sigactionp_t" "netbsd32_size_t" */ 351 #define LINUX32_SYS_rt_sigaction 174 352 353 /* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux32_sigsetp_t" "linux32_sigsetp_t" "netbsd32_size_t" */ 354 #define LINUX32_SYS_rt_sigprocmask 175 355 356 /* syscall: "rt_sigsuspend" ret: "int" args: "linux32_sigsetp_t" "netbsd32_size_t" */ 357 #define LINUX32_SYS_rt_sigsuspend 179 358 359 /* syscall: "netbsd32___getcwd" ret: "int" args: "netbsd32_charp" "netbsd32_size_t" */ 360 #define LINUX32_SYS_netbsd32___getcwd 183 361 362 /* syscall: "__vfork14" ret: "int" args: */ 363 #define LINUX32_SYS___vfork14 190 364 365 /* syscall: "ugetrlimit" ret: "int" args: "int" "netbsd32_orlimitp_t" */ 366 #define LINUX32_SYS_ugetrlimit 191 367 368 /* syscall: "mmap2" ret: "linux32_off_t" args: "netbsd32_u_long" "netbsd32_size_t" "int" "int" "int" "linux32_off_t" */ 369 #define LINUX32_SYS_mmap2 192 370 371 /* syscall: "stat64" ret: "int" args: "const netbsd32_charp" "linux32_stat64p" */ 372 #define LINUX32_SYS_stat64 195 373 374 /* syscall: "lstat64" ret: "int" args: "const netbsd32_charp" "linux32_stat64p" */ 375 #define LINUX32_SYS_lstat64 196 376 377 /* syscall: "fstat64" ret: "int" args: "int" "linux32_stat64p" */ 378 #define LINUX32_SYS_fstat64 197 379 380 /* syscall: "getuid" ret: "uid_t" args: */ 381 #define LINUX32_SYS_getuid 199 382 383 /* syscall: "getgid" ret: "gid_t" args: */ 384 #define LINUX32_SYS_getgid 200 385 386 /* syscall: "geteuid" ret: "uid_t" args: */ 387 #define LINUX32_SYS_geteuid 201 388 389 /* syscall: "getegid" ret: "gid_t" args: */ 390 #define LINUX32_SYS_getegid 202 391 392 /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */ 393 #define LINUX32_SYS_setreuid 203 394 395 /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */ 396 #define LINUX32_SYS_setregid 204 397 398 /* syscall: "netbsd32_getgroups" ret: "int" args: "int" "netbsd32_gid_tp" */ 399 #define LINUX32_SYS_netbsd32_getgroups 205 400 401 /* syscall: "netbsd32_setgroups" ret: "int" args: "int" "netbsd32_gid_tp" */ 402 #define LINUX32_SYS_netbsd32_setgroups 206 403 404 /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 405 #define LINUX32_SYS___posix_fchown 207 406 407 /* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */ 408 #define LINUX32_SYS_setresuid 208 409 410 /* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */ 411 #define LINUX32_SYS_setresgid 210 412 413 /* syscall: "setuid" ret: "int" args: "uid_t" */ 414 #define LINUX32_SYS_setuid 213 415 416 /* syscall: "setgid" ret: "int" args: "gid_t" */ 417 #define LINUX32_SYS_setgid 214 418 419 /* syscall: "netbsd32_madvise" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" */ 420 #define LINUX32_SYS_netbsd32_madvise 219 421 422 /* syscall: "getdents64" ret: "int" args: "int" "linux32_dirent64p_t" "unsigned int" */ 423 #define LINUX32_SYS_getdents64 220 424 425 /* syscall: "fcntl64" ret: "int" args: "int" "int" "netbsd32_voidp" */ 426 #define LINUX32_SYS_fcntl64 221 427 428 /* syscall: "gettid" ret: "pid_t" args: */ 429 #define LINUX32_SYS_gettid 224 430 431 /* syscall: "exit_group" ret: "int" args: "int" */ 432 #define LINUX32_SYS_exit_group 252 433 434 #define LINUX32_SYS_MAXSYSCALL 284 435 #define LINUX32_SYS_NSYSENT 512 436 #endif /* _LINUX32_SYS_SYSCALL_H_ */ 437