1 /* $NetBSD: linux32_syscall.h,v 1.23 2007/11/16 12:58:12 njoly 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.20 2007/11/16 12:56:50 njoly Exp 8 */ 9 10 #ifndef _LINUX32_SYS_SYSCALL_H_ 11 #define _LINUX32_SYS_SYSCALL_H_ 12 13 #define LINUX32_SYS_MAXSYSARGS 8 14 15 /* syscall: "syscall" ret: "int" args: */ 16 #define LINUX32_SYS_syscall 0 17 18 /* syscall: "netbsd32_exit" ret: "int" args: "int" */ 19 #define LINUX32_SYS_netbsd32_exit 1 20 21 /* syscall: "fork" ret: "int" args: */ 22 #define LINUX32_SYS_fork 2 23 24 /* syscall: "netbsd32_read" ret: "netbsd32_ssize_t" args: "int" "netbsd32_voidp" "netbsd32_size_t" */ 25 #define LINUX32_SYS_netbsd32_read 3 26 27 /* syscall: "netbsd32_write" ret: "netbsd32_ssize_t" args: "int" "const netbsd32_voidp" "netbsd32_size_t" */ 28 #define LINUX32_SYS_netbsd32_write 4 29 30 /* syscall: "open" ret: "int" args: "const netbsd32_charp" "int" "int" */ 31 #define LINUX32_SYS_open 5 32 33 /* syscall: "netbsd32_close" ret: "int" args: "int" */ 34 #define LINUX32_SYS_netbsd32_close 6 35 36 /* syscall: "waitpid" ret: "int" args: "int" "netbsd32_intp" "int" */ 37 #define LINUX32_SYS_waitpid 7 38 39 /* syscall: "creat" ret: "int" args: "const netbsd32_charp" "int" */ 40 #define LINUX32_SYS_creat 8 41 42 /* syscall: "netbsd32_link" ret: "int" args: "const netbsd32_charp" "const netbsd32_charp" */ 43 #define LINUX32_SYS_netbsd32_link 9 44 45 /* syscall: "unlink" ret: "int" args: "const netbsd32_charp" */ 46 #define LINUX32_SYS_unlink 10 47 48 /* syscall: "netbsd32_execve" ret: "int" args: "const netbsd32_charp" "netbsd32_charpp" "netbsd32_charpp" */ 49 #define LINUX32_SYS_netbsd32_execve 11 50 51 /* syscall: "netbsd32_chdir" ret: "int" args: "const netbsd32_charp" */ 52 #define LINUX32_SYS_netbsd32_chdir 12 53 54 /* syscall: "time" ret: "int" args: "linux32_timep_t" */ 55 #define LINUX32_SYS_time 13 56 57 /* syscall: "mknod" ret: "int" args: "const netbsd32_charp" "int" "int" */ 58 #define LINUX32_SYS_mknod 14 59 60 /* syscall: "netbsd32_chmod" ret: "int" args: "const netbsd32_charp" "int" */ 61 #define LINUX32_SYS_netbsd32_chmod 15 62 63 /* syscall: "lchown16" ret: "int" args: "const netbsd32_charp" "int" "int" */ 64 #define LINUX32_SYS_lchown16 16 65 66 /* syscall: "break" ret: "int" args: "netbsd32_charp" */ 67 #define LINUX32_SYS_break 17 68 69 /* 18 is obsolete ostat */ 70 /* syscall: "compat_43_netbsd32_olseek" ret: "netbsd32_long" args: "int" "netbsd32_long" "int" */ 71 #define LINUX32_SYS_compat_43_netbsd32_olseek 19 72 73 /* syscall: "getpid" ret: "pid_t" args: */ 74 #define LINUX32_SYS_getpid 20 75 76 /* syscall: "linux_setuid16" ret: "int" args: "uid_t" */ 77 #define LINUX32_SYS_linux_setuid16 23 78 79 /* syscall: "linux_getuid16" ret: "uid_t" args: */ 80 #define LINUX32_SYS_linux_getuid16 24 81 82 /* syscall: "stime" ret: "int" args: "linux32_timep_t" */ 83 #define LINUX32_SYS_stime 25 84 85 /* syscall: "alarm" ret: "int" args: "unsigned int" */ 86 #define LINUX32_SYS_alarm 27 87 88 /* 28 is obsolete ofstat */ 89 /* syscall: "pause" ret: "int" args: */ 90 #define LINUX32_SYS_pause 29 91 92 /* syscall: "utime" ret: "int" args: "const netbsd32_charp" "linux32_utimbufp_t" */ 93 #define LINUX32_SYS_utime 30 94 95 /* 31 is obsolete stty */ 96 /* 32 is obsolete gtty */ 97 /* syscall: "netbsd32_access" ret: "int" args: "const netbsd32_charp" "int" */ 98 #define LINUX32_SYS_netbsd32_access 33 99 100 /* syscall: "nice" ret: "int" args: "int" */ 101 #define LINUX32_SYS_nice 34 102 103 /* 35 is obsolete ftime */ 104 /* syscall: "sync" ret: "int" args: */ 105 #define LINUX32_SYS_sync 36 106 107 /* syscall: "kill" ret: "int" args: "int" "int" */ 108 #define LINUX32_SYS_kill 37 109 110 /* syscall: "rename" ret: "int" args: "const netbsd32_charp" "const netbsd32_charp" */ 111 #define LINUX32_SYS_rename 38 112 113 /* syscall: "netbsd32_mkdir" ret: "int" args: "const netbsd32_charp" "int" */ 114 #define LINUX32_SYS_netbsd32_mkdir 39 115 116 /* syscall: "netbsd32_rmdir" ret: "int" args: "const netbsd32_charp" */ 117 #define LINUX32_SYS_netbsd32_rmdir 40 118 119 /* syscall: "netbsd32_dup" ret: "int" args: "u_int" */ 120 #define LINUX32_SYS_netbsd32_dup 41 121 122 /* syscall: "pipe" ret: "int" args: "netbsd32_intp" */ 123 #define LINUX32_SYS_pipe 42 124 125 /* syscall: "times" ret: "int" args: "linux32_tmsp_t" */ 126 #define LINUX32_SYS_times 43 127 128 /* 44 is obsolete prof */ 129 /* syscall: "brk" ret: "int" args: "netbsd32_charp" */ 130 #define LINUX32_SYS_brk 45 131 132 /* syscall: "linux_setgid16" ret: "int" args: "gid_t" */ 133 #define LINUX32_SYS_linux_setgid16 46 134 135 /* syscall: "linux_getgid16" ret: "gid_t" args: */ 136 #define LINUX32_SYS_linux_getgid16 47 137 138 /* syscall: "signal" ret: "int" args: "int" "linux32_handler_t" */ 139 #define LINUX32_SYS_signal 48 140 141 /* syscall: "linux_geteuid16" ret: "uid_t" args: */ 142 #define LINUX32_SYS_linux_geteuid16 49 143 144 /* syscall: "linux_getegid16" ret: "gid_t" args: */ 145 #define LINUX32_SYS_linux_getegid16 50 146 147 /* syscall: "netbsd32_acct" ret: "int" args: "netbsd32_charp" */ 148 #define LINUX32_SYS_netbsd32_acct 51 149 150 /* 52 is obsolete phys */ 151 /* 53 is obsolete lock */ 152 /* syscall: "ioctl" ret: "int" args: "int" "netbsd32_u_long" "netbsd32_charp" */ 153 #define LINUX32_SYS_ioctl 54 154 155 /* syscall: "fcntl" ret: "int" args: "int" "int" "netbsd32_voidp" */ 156 #define LINUX32_SYS_fcntl 55 157 158 /* 56 is obsolete mpx */ 159 /* syscall: "netbsd32_setpgid" ret: "int" args: "int" "int" */ 160 #define LINUX32_SYS_netbsd32_setpgid 57 161 162 /* 58 is obsolete ulimit */ 163 /* syscall: "oldolduname" ret: "int" args: "linux32_oldold_utsnamep_t" */ 164 #define LINUX32_SYS_oldolduname 59 165 166 /* syscall: "netbsd32_umask" ret: "int" args: "int" */ 167 #define LINUX32_SYS_netbsd32_umask 60 168 169 /* syscall: "netbsd32_chroot" ret: "int" args: "netbsd32_charp" */ 170 #define LINUX32_SYS_netbsd32_chroot 61 171 172 /* syscall: "netbsd32_dup2" ret: "int" args: "u_int" "u_int" */ 173 #define LINUX32_SYS_netbsd32_dup2 63 174 175 /* syscall: "getppid" ret: "pid_t" args: */ 176 #define LINUX32_SYS_getppid 64 177 178 /* syscall: "getpgrp" ret: "int" args: */ 179 #define LINUX32_SYS_getpgrp 65 180 181 /* syscall: "setsid" ret: "int" args: */ 182 #define LINUX32_SYS_setsid 66 183 184 /* syscall: "setreuid16" ret: "int" args: "int" "int" */ 185 #define LINUX32_SYS_setreuid16 70 186 187 /* syscall: "setregid16" ret: "int" args: "int" "int" */ 188 #define LINUX32_SYS_setregid16 71 189 190 /* syscall: "compat_43_netbsd32_osethostname" ret: "int" args: "netbsd32_charp" "u_int" */ 191 #define LINUX32_SYS_compat_43_netbsd32_osethostname 74 192 193 /* syscall: "setrlimit" ret: "int" args: "u_int" "netbsd32_orlimitp_t" */ 194 #define LINUX32_SYS_setrlimit 75 195 196 /* syscall: "getrlimit" ret: "int" args: "u_int" "netbsd32_orlimitp_t" */ 197 #define LINUX32_SYS_getrlimit 76 198 199 /* syscall: "netbsd32_getrusage" ret: "int" args: "int" "netbsd32_rusagep_t" */ 200 #define LINUX32_SYS_netbsd32_getrusage 77 201 202 /* syscall: "gettimeofday" ret: "int" args: "netbsd32_timevalp_t" "netbsd32_timezonep_t" */ 203 #define LINUX32_SYS_gettimeofday 78 204 205 /* syscall: "settimeofday" ret: "int" args: "netbsd32_timevalp_t" "netbsd32_timezonep_t" */ 206 #define LINUX32_SYS_settimeofday 79 207 208 /* syscall: "getgroups16" ret: "int" args: "int" "linux32_gidp_t" */ 209 #define LINUX32_SYS_getgroups16 80 210 211 /* syscall: "setgroups16" ret: "int" args: "int" "linux32_gidp_t" */ 212 #define LINUX32_SYS_setgroups16 81 213 214 /* syscall: "oldselect" ret: "int" args: "linux32_oldselectp_t" */ 215 #define LINUX32_SYS_oldselect 82 216 217 /* syscall: "netbsd32_symlink" ret: "int" args: "netbsd32_charp" "const netbsd32_charp" */ 218 #define LINUX32_SYS_netbsd32_symlink 83 219 220 /* syscall: "compat_43_netbsd32_lstat43" ret: "int" args: "const netbsd32_charp" "netbsd32_stat43p_t" */ 221 #define LINUX32_SYS_compat_43_netbsd32_lstat43 84 222 223 /* syscall: "netbsd32_readlink" ret: "int" args: "const netbsd32_charp" "netbsd32_charp" "int" */ 224 #define LINUX32_SYS_netbsd32_readlink 85 225 226 /* syscall: "swapon" ret: "int" args: "netbsd32_charp" */ 227 #define LINUX32_SYS_swapon 87 228 229 /* syscall: "reboot" ret: "int" args: "int" "int" "int" "netbsd32_voidp" */ 230 #define LINUX32_SYS_reboot 88 231 232 /* syscall: "old_mmap" ret: "int" args: "linux32_oldmmapp" */ 233 #define LINUX32_SYS_old_mmap 90 234 235 /* syscall: "netbsd32_munmap" ret: "int" args: "netbsd32_caddr_t" "int" */ 236 #define LINUX32_SYS_netbsd32_munmap 91 237 238 /* syscall: "truncate" ret: "int" args: "const netbsd32_charp" "netbsd32_long" */ 239 #define LINUX32_SYS_truncate 92 240 241 /* syscall: "compat_43_netbsd32_oftruncate" ret: "int" args: "int" "netbsd32_long" */ 242 #define LINUX32_SYS_compat_43_netbsd32_oftruncate 93 243 244 /* syscall: "netbsd32_fchmod" ret: "int" args: "int" "int" */ 245 #define LINUX32_SYS_netbsd32_fchmod 94 246 247 /* syscall: "fchown16" ret: "int" args: "int" "int" "int" */ 248 #define LINUX32_SYS_fchown16 95 249 250 /* syscall: "getpriority" ret: "int" args: "int" "int" */ 251 #define LINUX32_SYS_getpriority 96 252 253 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ 254 #define LINUX32_SYS_setpriority 97 255 256 /* syscall: "statfs" ret: "int" args: "const netbsd32_charp" "linux32_statfsp" */ 257 #define LINUX32_SYS_statfs 99 258 259 /* syscall: "socketcall" ret: "int" args: "int" "netbsd32_voidp" */ 260 #define LINUX32_SYS_socketcall 102 261 262 /* syscall: "netbsd32_setitimer" ret: "int" args: "u_int" "netbsd32_itimervalp_t" "netbsd32_itimervalp_t" */ 263 #define LINUX32_SYS_netbsd32_setitimer 104 264 265 /* syscall: "netbsd32_getitimer" ret: "int" args: "u_int" "netbsd32_itimervalp_t" */ 266 #define LINUX32_SYS_netbsd32_getitimer 105 267 268 /* syscall: "wait4" ret: "int" args: "int" "netbsd32_intp" "int" "netbsd32_rusagep_t" */ 269 #define LINUX32_SYS_wait4 114 270 271 /* syscall: "swapoff" ret: "int" args: "const netbsd32_charp" */ 272 #define LINUX32_SYS_swapoff 115 273 274 /* syscall: "sysinfo" ret: "int" args: "linux32_sysinfop_t" */ 275 #define LINUX32_SYS_sysinfo 116 276 277 /* syscall: "netbsd32_fsync" ret: "int" args: "int" */ 278 #define LINUX32_SYS_netbsd32_fsync 118 279 280 /* syscall: "sigreturn" ret: "int" args: "linux32_sigcontextp_t" */ 281 #define LINUX32_SYS_sigreturn 119 282 283 /* syscall: "clone" ret: "int" args: "int" "netbsd32_voidp" */ 284 #define LINUX32_SYS_clone 120 285 286 /* syscall: "uname" ret: "int" args: "linux32_utsnamep" */ 287 #define LINUX32_SYS_uname 122 288 289 /* syscall: "mprotect" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" */ 290 #define LINUX32_SYS_mprotect 125 291 292 /* syscall: "netbsd32_fchdir" ret: "int" args: "int" */ 293 #define LINUX32_SYS_netbsd32_fchdir 133 294 295 /* syscall: "setfsuid16" ret: "int" args: "uid_t" */ 296 #define LINUX32_SYS_setfsuid16 138 297 298 /* syscall: "getfsuid16" ret: "int" args: */ 299 #define LINUX32_SYS_getfsuid16 139 300 301 /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "netbsd32_caddr_t" "int" */ 302 #define LINUX32_SYS_llseek 140 303 304 /* syscall: "getdents" ret: "int" args: "int" "linux32_direntp_t" "unsigned int" */ 305 #define LINUX32_SYS_getdents 141 306 307 /* syscall: "select" ret: "int" args: "int" "netbsd32_fd_setp_t" "netbsd32_fd_setp_t" "netbsd32_fd_setp_t" "netbsd32_timevalp_t" */ 308 #define LINUX32_SYS_select 142 309 310 /* syscall: "netbsd32_flock" ret: "int" args: "int" "int" */ 311 #define LINUX32_SYS_netbsd32_flock 143 312 313 /* syscall: "netbsd32_readv" ret: "int" args: "int" "const netbsd32_iovecp_t" "u_int" */ 314 #define LINUX32_SYS_netbsd32_readv 145 315 316 /* syscall: "netbsd32_writev" ret: "netbsd32_ssize_t" args: "int" "const netbsd32_iovecp_t" "int" */ 317 #define LINUX32_SYS_netbsd32_writev 146 318 319 /* syscall: "netbsd32_getsid" ret: "pid_t" args: "pid_t" */ 320 #define LINUX32_SYS_netbsd32_getsid 147 321 322 /* syscall: "fdatasync" ret: "int" args: "int" */ 323 #define LINUX32_SYS_fdatasync 148 324 325 /* syscall: "__sysctl" ret: "int" args: "linux32___sysctlp_t" */ 326 #define LINUX32_SYS___sysctl 149 327 328 /* syscall: "netbsd32_mlockall" ret: "int" args: "int" */ 329 #define LINUX32_SYS_netbsd32_mlockall 152 330 331 /* syscall: "munlockall" ret: "int" args: */ 332 #define LINUX32_SYS_munlockall 153 333 334 /* syscall: "sched_getparam" ret: "int" args: "pid_t" "linux32_sched_paramp_t" */ 335 #define LINUX32_SYS_sched_getparam 155 336 337 /* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const linux32_sched_paramp_t" */ 338 #define LINUX32_SYS_sched_setscheduler 156 339 340 /* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */ 341 #define LINUX32_SYS_sched_getscheduler 157 342 343 /* syscall: "sched_yield" ret: "int" args: */ 344 #define LINUX32_SYS_sched_yield 158 345 346 /* syscall: "netbsd32_nanosleep" ret: "int" args: "const netbsd32_timespecp_t rqtp netbsd32_timespecp_t" */ 347 #define LINUX32_SYS_netbsd32_nanosleep 162 348 349 /* syscall: "mremap" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "netbsd32_size_t" "netbsd32_u_long" */ 350 #define LINUX32_SYS_mremap 163 351 352 /* syscall: "setresuid16" ret: "int" args: "uid_t" "uid_t" "uid_t" */ 353 #define LINUX32_SYS_setresuid16 164 354 355 /* syscall: "netbsd32_poll" ret: "int" args: "netbsd32_pollfdp_t" "u_int" "int" */ 356 #define LINUX32_SYS_netbsd32_poll 168 357 358 /* syscall: "setresgid16" ret: "int" args: "gid_t" "gid_t" "gid_t" */ 359 #define LINUX32_SYS_setresgid16 170 360 361 /* syscall: "rt_sigreturn" ret: "int" args: "linux32_ucontextp_t" */ 362 #define LINUX32_SYS_rt_sigreturn 173 363 364 /* syscall: "rt_sigaction" ret: "int" args: "int" "const linux32_sigactionp_t" "linux32_sigactionp_t" "netbsd32_size_t" */ 365 #define LINUX32_SYS_rt_sigaction 174 366 367 /* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux32_sigsetp_t" "linux32_sigsetp_t" "netbsd32_size_t" */ 368 #define LINUX32_SYS_rt_sigprocmask 175 369 370 /* syscall: "rt_sigsuspend" ret: "int" args: "linux32_sigsetp_t" "netbsd32_size_t" */ 371 #define LINUX32_SYS_rt_sigsuspend 179 372 373 /* syscall: "chown16" ret: "int" args: "const netbsd32_charp" "int" "int" */ 374 #define LINUX32_SYS_chown16 182 375 376 /* syscall: "netbsd32___getcwd" ret: "int" args: "netbsd32_charp" "netbsd32_size_t" */ 377 #define LINUX32_SYS_netbsd32___getcwd 183 378 379 /* syscall: "__vfork14" ret: "int" args: */ 380 #define LINUX32_SYS___vfork14 190 381 382 /* syscall: "ugetrlimit" ret: "int" args: "int" "netbsd32_orlimitp_t" */ 383 #define LINUX32_SYS_ugetrlimit 191 384 385 /* syscall: "mmap2" ret: "linux32_off_t" args: "netbsd32_u_long" "netbsd32_size_t" "int" "int" "int" "linux32_off_t" */ 386 #define LINUX32_SYS_mmap2 192 387 388 /* syscall: "stat64" ret: "int" args: "const netbsd32_charp" "linux32_stat64p" */ 389 #define LINUX32_SYS_stat64 195 390 391 /* syscall: "lstat64" ret: "int" args: "const netbsd32_charp" "linux32_stat64p" */ 392 #define LINUX32_SYS_lstat64 196 393 394 /* syscall: "fstat64" ret: "int" args: "int" "linux32_stat64p" */ 395 #define LINUX32_SYS_fstat64 197 396 397 /* syscall: "netbsd32___posix_lchown" ret: "int" args: "const netbsd32_charp" "int" "int" */ 398 #define LINUX32_SYS_netbsd32___posix_lchown 198 399 400 /* syscall: "getuid" ret: "uid_t" args: */ 401 #define LINUX32_SYS_getuid 199 402 403 /* syscall: "getgid" ret: "gid_t" args: */ 404 #define LINUX32_SYS_getgid 200 405 406 /* syscall: "geteuid" ret: "uid_t" args: */ 407 #define LINUX32_SYS_geteuid 201 408 409 /* syscall: "getegid" ret: "gid_t" args: */ 410 #define LINUX32_SYS_getegid 202 411 412 /* syscall: "netbsd32_setreuid" ret: "int" args: "uid_t" "uid_t" */ 413 #define LINUX32_SYS_netbsd32_setreuid 203 414 415 /* syscall: "netbsd32_setregid" ret: "int" args: "gid_t" "gid_t" */ 416 #define LINUX32_SYS_netbsd32_setregid 204 417 418 /* syscall: "netbsd32_getgroups" ret: "int" args: "int" "netbsd32_gid_tp" */ 419 #define LINUX32_SYS_netbsd32_getgroups 205 420 421 /* syscall: "netbsd32_setgroups" ret: "int" args: "int" "netbsd32_gid_tp" */ 422 #define LINUX32_SYS_netbsd32_setgroups 206 423 424 /* syscall: "netbsd32___posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 425 #define LINUX32_SYS_netbsd32___posix_fchown 207 426 427 /* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */ 428 #define LINUX32_SYS_setresuid 208 429 430 /* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */ 431 #define LINUX32_SYS_setresgid 210 432 433 /* syscall: "netbsd32___posix_chown" ret: "int" args: "const netbsd32_charp" "int" "int" */ 434 #define LINUX32_SYS_netbsd32___posix_chown 212 435 436 /* syscall: "netbsd32_setuid" ret: "int" args: "uid_t" */ 437 #define LINUX32_SYS_netbsd32_setuid 213 438 439 /* syscall: "netbsd32_setgid" ret: "int" args: "gid_t" */ 440 #define LINUX32_SYS_netbsd32_setgid 214 441 442 /* syscall: "setfsuid" ret: "int" args: "uid_t" */ 443 #define LINUX32_SYS_setfsuid 215 444 445 /* syscall: "getfsuid" ret: "int" args: */ 446 #define LINUX32_SYS_getfsuid 216 447 448 /* syscall: "netbsd32_madvise" ret: "int" args: "netbsd32_voidp" "netbsd32_size_t" "int" */ 449 #define LINUX32_SYS_netbsd32_madvise 219 450 451 /* syscall: "getdents64" ret: "int" args: "int" "linux32_dirent64p_t" "unsigned int" */ 452 #define LINUX32_SYS_getdents64 220 453 454 /* syscall: "fcntl64" ret: "int" args: "int" "int" "netbsd32_voidp" */ 455 #define LINUX32_SYS_fcntl64 221 456 457 /* syscall: "gettid" ret: "pid_t" args: */ 458 #define LINUX32_SYS_gettid 224 459 460 /* syscall: "exit_group" ret: "int" args: "int" */ 461 #define LINUX32_SYS_exit_group 252 462 463 #define LINUX32_SYS_MAXSYSCALL 284 464 #define LINUX32_SYS_NSYSENT 512 465 #endif /* _LINUX32_SYS_SYSCALL_H_ */ 466