1 /* $NetBSD: linux32_syscallargs.h,v 1.81 2020/04/26 19:20:58 thorpej Exp $ */ 2 3 /* 4 * System call argument lists. 5 * 6 * DO NOT EDIT-- this file is automatically generated. 7 * created from NetBSD: syscalls.master,v 1.71 2020/04/26 18:53:33 thorpej Exp 8 */ 9 10 #ifndef _LINUX32_SYS_SYSCALLARGS_H_ 11 #define _LINUX32_SYS_SYSCALLARGS_H_ 12 13 /* Forward declaration */ 14 struct lwp; 15 16 #define LINUX32_SYS_MAXSYSARGS 8 17 18 #undef syscallarg 19 #define syscallarg(x) \ 20 union { \ 21 register32_t pad; \ 22 struct { x datum; } le; \ 23 struct { /* LINTED zero array dimension */ \ 24 int8_t pad[ /* CONSTCOND */ \ 25 (sizeof (register32_t) < sizeof (x)) \ 26 ? 0 \ 27 : sizeof (register32_t) - sizeof (x)]; \ 28 x datum; \ 29 } be; \ 30 } 31 32 #undef check_syscall_args 33 #define check_syscall_args(call) /*LINTED*/ \ 34 typedef char call##_check_args[sizeof (struct call##_args) \ 35 <= LINUX32_SYS_MAXSYSARGS * sizeof (register32_t) ? 1 : -1]; 36 37 struct linux32_sys_exit_args { 38 syscallarg(int) rval; 39 }; 40 check_syscall_args(linux32_sys_exit) 41 42 struct netbsd32_read_args; 43 44 struct netbsd32_write_args; 45 46 struct linux32_sys_open_args { 47 syscallarg(netbsd32_charp) path; 48 syscallarg(int) flags; 49 syscallarg(linux_umode_t) mode; 50 }; 51 check_syscall_args(linux32_sys_open) 52 53 struct netbsd32_close_args; 54 55 struct linux32_sys_waitpid_args { 56 syscallarg(int) pid; 57 syscallarg(netbsd32_intp) status; 58 syscallarg(int) options; 59 }; 60 check_syscall_args(linux32_sys_waitpid) 61 62 struct linux32_sys_creat_args { 63 syscallarg(netbsd32_charp) path; 64 syscallarg(linux_umode_t) mode; 65 }; 66 check_syscall_args(linux32_sys_creat) 67 68 struct netbsd32_link_args; 69 70 struct linux32_sys_unlink_args { 71 syscallarg(netbsd32_charp) path; 72 }; 73 check_syscall_args(linux32_sys_unlink) 74 75 struct netbsd32_execve_args; 76 77 struct netbsd32_chdir_args; 78 79 struct linux32_sys_time_args { 80 syscallarg(linux32_timep_t) t; 81 }; 82 check_syscall_args(linux32_sys_time) 83 84 struct linux32_sys_mknod_args { 85 syscallarg(netbsd32_charp) path; 86 syscallarg(linux_umode_t) mode; 87 syscallarg(unsigned) dev; 88 }; 89 check_syscall_args(linux32_sys_mknod) 90 91 struct netbsd32_chmod_args; 92 93 struct linux32_sys_lchown16_args { 94 syscallarg(netbsd32_charp) path; 95 syscallarg(linux32_uid16_t) uid; 96 syscallarg(linux32_gid16_t) gid; 97 }; 98 check_syscall_args(linux32_sys_lchown16) 99 100 struct linux32_sys_break_args { 101 syscallarg(netbsd32_charp) nsize; 102 }; 103 check_syscall_args(linux32_sys_break) 104 105 struct compat_43_netbsd32_olseek_args; 106 107 struct netbsd32_setuid_args; 108 109 struct linux32_sys_stime_args { 110 syscallarg(linux32_timep_t) t; 111 }; 112 check_syscall_args(linux32_sys_stime) 113 114 struct linux32_sys_ptrace_args { 115 syscallarg(int) request; 116 syscallarg(int) pid; 117 syscallarg(int) addr; 118 syscallarg(int) data; 119 }; 120 check_syscall_args(linux32_sys_ptrace) 121 122 struct linux32_sys_alarm_args { 123 syscallarg(unsigned int) secs; 124 }; 125 check_syscall_args(linux32_sys_alarm) 126 127 struct linux32_sys_utime_args { 128 syscallarg(netbsd32_charp) path; 129 syscallarg(linux32_utimbufp_t) times; 130 }; 131 check_syscall_args(linux32_sys_utime) 132 133 struct netbsd32_access_args; 134 135 struct linux32_sys_nice_args { 136 syscallarg(int) incr; 137 }; 138 check_syscall_args(linux32_sys_nice) 139 140 struct linux32_sys_kill_args { 141 syscallarg(int) pid; 142 syscallarg(int) signum; 143 }; 144 check_syscall_args(linux32_sys_kill) 145 146 struct netbsd32___posix_rename_args; 147 148 struct netbsd32_mkdir_args; 149 150 struct netbsd32_rmdir_args; 151 152 struct netbsd32_dup_args; 153 154 struct linux32_sys_pipe_args { 155 syscallarg(netbsd32_intp) fd; 156 }; 157 check_syscall_args(linux32_sys_pipe) 158 159 struct linux32_sys_times_args { 160 syscallarg(linux32_tmsp_t) tms; 161 }; 162 check_syscall_args(linux32_sys_times) 163 164 struct linux32_sys_brk_args { 165 syscallarg(netbsd32_charp) nsize; 166 }; 167 check_syscall_args(linux32_sys_brk) 168 169 struct netbsd32_setgid_args; 170 171 struct linux32_sys_signal_args { 172 syscallarg(int) signum; 173 syscallarg(linux32_handlerp_t) handler; 174 }; 175 check_syscall_args(linux32_sys_signal) 176 177 struct netbsd32_acct_args; 178 179 struct linux32_sys_ioctl_args { 180 syscallarg(int) fd; 181 syscallarg(netbsd32_u_long) com; 182 syscallarg(netbsd32_charp) data; 183 }; 184 check_syscall_args(linux32_sys_ioctl) 185 186 struct linux32_sys_fcntl_args { 187 syscallarg(int) fd; 188 syscallarg(int) cmd; 189 syscallarg(netbsd32_voidp) arg; 190 }; 191 check_syscall_args(linux32_sys_fcntl) 192 193 struct netbsd32_setpgid_args; 194 195 struct linux32_sys_oldolduname_args { 196 syscallarg(linux32_oldold_utsnamep_t) up; 197 }; 198 check_syscall_args(linux32_sys_oldolduname) 199 200 struct netbsd32_umask_args; 201 202 struct netbsd32_chroot_args; 203 204 struct netbsd32_dup2_args; 205 206 struct linux32_sys_sigsetmask_args { 207 syscallarg(linux32_old_sigset_t) mask; 208 }; 209 check_syscall_args(linux32_sys_sigsetmask) 210 211 struct linux32_sys_setreuid16_args { 212 syscallarg(linux32_uid16_t) ruid; 213 syscallarg(linux32_uid16_t) euid; 214 }; 215 check_syscall_args(linux32_sys_setreuid16) 216 217 struct linux32_sys_setregid16_args { 218 syscallarg(linux32_gid16_t) rgid; 219 syscallarg(linux32_gid16_t) egid; 220 }; 221 check_syscall_args(linux32_sys_setregid16) 222 223 struct compat_43_netbsd32_osethostname_args; 224 225 struct linux32_sys_setrlimit_args { 226 syscallarg(u_int) which; 227 syscallarg(netbsd32_orlimitp_t) rlp; 228 }; 229 check_syscall_args(linux32_sys_setrlimit) 230 231 struct linux32_sys_getrlimit_args { 232 syscallarg(u_int) which; 233 syscallarg(netbsd32_orlimitp_t) rlp; 234 }; 235 check_syscall_args(linux32_sys_getrlimit) 236 237 struct compat_50_netbsd32_getrusage_args; 238 239 struct linux32_sys_gettimeofday_args { 240 syscallarg(netbsd32_timeval50p_t) tp; 241 syscallarg(netbsd32_timezonep_t) tzp; 242 }; 243 check_syscall_args(linux32_sys_gettimeofday) 244 245 struct linux32_sys_settimeofday_args { 246 syscallarg(netbsd32_timeval50p_t) tp; 247 syscallarg(netbsd32_timezonep_t) tzp; 248 }; 249 check_syscall_args(linux32_sys_settimeofday) 250 251 struct linux32_sys_getgroups16_args { 252 syscallarg(int) gidsetsize; 253 syscallarg(linux32_gid16p_t) gidset; 254 }; 255 check_syscall_args(linux32_sys_getgroups16) 256 257 struct linux32_sys_setgroups16_args { 258 syscallarg(int) gidsetsize; 259 syscallarg(linux32_gid16p_t) gidset; 260 }; 261 check_syscall_args(linux32_sys_setgroups16) 262 263 struct linux32_sys_oldselect_args { 264 syscallarg(linux32_oldselectp_t) lsp; 265 }; 266 check_syscall_args(linux32_sys_oldselect) 267 268 struct netbsd32_symlink_args; 269 270 struct compat_43_netbsd32_lstat43_args; 271 272 struct netbsd32_readlink_args; 273 274 struct linux32_sys_swapon_args { 275 syscallarg(netbsd32_charp) name; 276 }; 277 check_syscall_args(linux32_sys_swapon) 278 279 struct linux32_sys_reboot_args { 280 syscallarg(int) magic1; 281 syscallarg(int) magic2; 282 syscallarg(int) cmd; 283 syscallarg(netbsd32_voidp) arg; 284 }; 285 check_syscall_args(linux32_sys_reboot) 286 287 struct linux32_sys_readdir_args { 288 syscallarg(int) fd; 289 syscallarg(netbsd32_voidp) dent; 290 syscallarg(unsigned int) count; 291 }; 292 check_syscall_args(linux32_sys_readdir) 293 294 struct linux32_sys_old_mmap_args { 295 syscallarg(linux32_oldmmapp) lmp; 296 }; 297 check_syscall_args(linux32_sys_old_mmap) 298 299 struct netbsd32_munmap_args; 300 301 struct compat_43_netbsd32_otruncate_args; 302 303 struct compat_43_netbsd32_oftruncate_args; 304 305 struct netbsd32_fchmod_args; 306 307 struct linux32_sys_fchown16_args { 308 syscallarg(int) fd; 309 syscallarg(linux32_uid16_t) uid; 310 syscallarg(linux32_gid16_t) gid; 311 }; 312 check_syscall_args(linux32_sys_fchown16) 313 314 struct linux32_sys_getpriority_args { 315 syscallarg(int) which; 316 syscallarg(int) who; 317 }; 318 check_syscall_args(linux32_sys_getpriority) 319 320 struct netbsd32_setpriority_args; 321 322 struct netbsd32_profil_args; 323 324 struct linux32_sys_statfs_args { 325 syscallarg(netbsd32_charp) path; 326 syscallarg(linux32_statfsp) sp; 327 }; 328 check_syscall_args(linux32_sys_statfs) 329 330 struct linux32_sys_fstatfs_args { 331 syscallarg(int) fd; 332 syscallarg(linux32_statfsp) sp; 333 }; 334 check_syscall_args(linux32_sys_fstatfs) 335 336 struct linux_sys_ioperm_args; 337 338 struct linux32_sys_socketcall_args { 339 syscallarg(int) what; 340 syscallarg(netbsd32_voidp) args; 341 }; 342 check_syscall_args(linux32_sys_socketcall) 343 344 struct compat_50_netbsd32_setitimer_args; 345 346 struct compat_50_netbsd32_getitimer_args; 347 348 struct linux32_sys_stat_args { 349 syscallarg(netbsd32_charp) path; 350 syscallarg(linux32_statp) sp; 351 }; 352 check_syscall_args(linux32_sys_stat) 353 354 struct linux32_sys_lstat_args { 355 syscallarg(netbsd32_charp) path; 356 syscallarg(linux32_statp) sp; 357 }; 358 check_syscall_args(linux32_sys_lstat) 359 360 struct linux32_sys_fstat_args { 361 syscallarg(int) fd; 362 syscallarg(linux32_statp) sp; 363 }; 364 check_syscall_args(linux32_sys_fstat) 365 366 struct linux32_sys_olduname_args { 367 syscallarg(linux32_oldutsnamep_t) up; 368 }; 369 check_syscall_args(linux32_sys_olduname) 370 371 struct linux_sys_iopl_args; 372 373 struct linux32_sys_wait4_args { 374 syscallarg(int) pid; 375 syscallarg(netbsd32_intp) status; 376 syscallarg(int) options; 377 syscallarg(netbsd32_rusage50p_t) rusage; 378 }; 379 check_syscall_args(linux32_sys_wait4) 380 381 struct linux32_sys_swapoff_args { 382 syscallarg(netbsd32_charp) path; 383 }; 384 check_syscall_args(linux32_sys_swapoff) 385 386 struct linux32_sys_sysinfo_args { 387 syscallarg(linux32_sysinfop_t) arg; 388 }; 389 check_syscall_args(linux32_sys_sysinfo) 390 391 struct linux32_sys_ipc_args { 392 syscallarg(int) what; 393 syscallarg(int) a1; 394 syscallarg(int) a2; 395 syscallarg(int) a3; 396 syscallarg(netbsd32_voidp) ptr; 397 }; 398 check_syscall_args(linux32_sys_ipc) 399 400 struct netbsd32_fsync_args; 401 402 struct linux32_sys_sigreturn_args { 403 syscallarg(linux32_sigcontextp_t) scp; 404 }; 405 check_syscall_args(linux32_sys_sigreturn) 406 407 struct linux32_sys_clone_args { 408 syscallarg(int) flags; 409 syscallarg(netbsd32_voidp) stack; 410 syscallarg(netbsd32_voidp) parent_tidptr; 411 syscallarg(netbsd32_voidp) tls; 412 syscallarg(netbsd32_voidp) child_tidptr; 413 }; 414 check_syscall_args(linux32_sys_clone) 415 416 struct linux32_sys_setdomainname_args { 417 syscallarg(netbsd32_charp) domainname; 418 syscallarg(int) len; 419 }; 420 check_syscall_args(linux32_sys_setdomainname) 421 422 struct linux32_sys_uname_args { 423 syscallarg(linux32_utsnamep) up; 424 }; 425 check_syscall_args(linux32_sys_uname) 426 427 struct linux32_sys_modify_ldt_args { 428 syscallarg(int) func; 429 syscallarg(netbsd32_charp) ptr; 430 syscallarg(netbsd32_size_t) bytecount; 431 }; 432 check_syscall_args(linux32_sys_modify_ldt) 433 434 struct linux32_sys_mprotect_args { 435 syscallarg(netbsd32_voidp) start; 436 syscallarg(netbsd32_size_t) len; 437 syscallarg(int) prot; 438 }; 439 check_syscall_args(linux32_sys_mprotect) 440 441 struct netbsd32_getpgid_args; 442 443 struct netbsd32_fchdir_args; 444 445 struct linux32_sys_personality_args { 446 syscallarg(netbsd32_u_long) per; 447 }; 448 check_syscall_args(linux32_sys_personality) 449 450 struct linux32_sys_setfsuid_args; 451 452 struct linux32_sys_setfsgid_args; 453 454 struct linux32_sys_llseek_args { 455 syscallarg(int) fd; 456 syscallarg(u_int32_t) ohigh; 457 syscallarg(u_int32_t) olow; 458 syscallarg(netbsd32_voidp) res; 459 syscallarg(int) whence; 460 }; 461 check_syscall_args(linux32_sys_llseek) 462 463 struct linux32_sys_getdents_args { 464 syscallarg(int) fd; 465 syscallarg(linux32_direntp_t) dent; 466 syscallarg(unsigned int) count; 467 }; 468 check_syscall_args(linux32_sys_getdents) 469 470 struct linux32_sys_select_args { 471 syscallarg(int) nfds; 472 syscallarg(netbsd32_fd_setp_t) readfds; 473 syscallarg(netbsd32_fd_setp_t) writefds; 474 syscallarg(netbsd32_fd_setp_t) exceptfds; 475 syscallarg(netbsd32_timeval50p_t) timeout; 476 }; 477 check_syscall_args(linux32_sys_select) 478 479 struct netbsd32_flock_args; 480 481 struct netbsd32___msync13_args; 482 483 struct netbsd32_readv_args; 484 485 struct netbsd32_writev_args; 486 487 struct netbsd32_getsid_args; 488 489 struct linux32_sys_fdatasync_args { 490 syscallarg(int) fd; 491 }; 492 check_syscall_args(linux32_sys_fdatasync) 493 494 struct linux32_sys___sysctl_args { 495 syscallarg(linux32___sysctlp_t) lsp; 496 }; 497 check_syscall_args(linux32_sys___sysctl) 498 499 struct netbsd32_mlock_args; 500 501 struct netbsd32_munlock_args; 502 503 struct netbsd32_mlockall_args; 504 505 struct linux32_sys_sched_setparam_args { 506 syscallarg(pid_t) pid; 507 syscallarg(const linux32_sched_paramp_t) sp; 508 }; 509 check_syscall_args(linux32_sys_sched_setparam) 510 511 struct linux32_sys_sched_getparam_args { 512 syscallarg(pid_t) pid; 513 syscallarg(linux32_sched_paramp_t) sp; 514 }; 515 check_syscall_args(linux32_sys_sched_getparam) 516 517 struct linux32_sys_sched_setscheduler_args { 518 syscallarg(pid_t) pid; 519 syscallarg(int) policy; 520 syscallarg(linux32_sched_paramp_t) sp; 521 }; 522 check_syscall_args(linux32_sys_sched_setscheduler) 523 524 struct linux32_sys_sched_getscheduler_args { 525 syscallarg(pid_t) pid; 526 }; 527 check_syscall_args(linux32_sys_sched_getscheduler) 528 529 struct linux32_sys_sched_get_priority_max_args { 530 syscallarg(int) policy; 531 }; 532 check_syscall_args(linux32_sys_sched_get_priority_max) 533 534 struct linux32_sys_sched_get_priority_min_args { 535 syscallarg(int) policy; 536 }; 537 check_syscall_args(linux32_sys_sched_get_priority_min) 538 539 struct linux32_sys_nanosleep_args { 540 syscallarg(linux32_timespecp_t) rqtp; 541 syscallarg(linux32_timespecp_t) rmtp; 542 }; 543 check_syscall_args(linux32_sys_nanosleep) 544 545 struct linux32_sys_mremap_args { 546 syscallarg(netbsd32_voidp) old_address; 547 syscallarg(netbsd32_size_t) old_size; 548 syscallarg(netbsd32_size_t) new_size; 549 syscallarg(netbsd32_u_long) flags; 550 }; 551 check_syscall_args(linux32_sys_mremap) 552 553 struct linux32_sys_setresuid16_args { 554 syscallarg(linux32_uid16_t) ruid; 555 syscallarg(linux32_uid16_t) euid; 556 syscallarg(linux32_uid16_t) suid; 557 }; 558 check_syscall_args(linux32_sys_setresuid16) 559 560 struct linux32_sys_getresuid16_args { 561 syscallarg(linux32_uid16p_t) ruid; 562 syscallarg(linux32_uid16p_t) euid; 563 syscallarg(linux32_uid16p_t) suid; 564 }; 565 check_syscall_args(linux32_sys_getresuid16) 566 567 struct netbsd32_poll_args; 568 569 struct linux32_sys_setresgid16_args { 570 syscallarg(linux32_gid16_t) rgid; 571 syscallarg(linux32_gid16_t) egid; 572 syscallarg(linux32_gid16_t) sgid; 573 }; 574 check_syscall_args(linux32_sys_setresgid16) 575 576 struct linux32_sys_getresgid16_args { 577 syscallarg(linux32_gid16p_t) rgid; 578 syscallarg(linux32_gid16p_t) egid; 579 syscallarg(linux32_gid16p_t) sgid; 580 }; 581 check_syscall_args(linux32_sys_getresgid16) 582 583 struct linux32_sys_rt_sigreturn_args { 584 syscallarg(linux32_ucontextp_t) ucp; 585 }; 586 check_syscall_args(linux32_sys_rt_sigreturn) 587 588 struct linux32_sys_rt_sigaction_args { 589 syscallarg(int) signum; 590 syscallarg(linux32_sigactionp_t) nsa; 591 syscallarg(linux32_sigactionp_t) osa; 592 syscallarg(netbsd32_size_t) sigsetsize; 593 }; 594 check_syscall_args(linux32_sys_rt_sigaction) 595 596 struct linux32_sys_rt_sigprocmask_args { 597 syscallarg(int) how; 598 syscallarg(linux32_sigsetp_t) set; 599 syscallarg(linux32_sigsetp_t) oset; 600 syscallarg(netbsd32_size_t) sigsetsize; 601 }; 602 check_syscall_args(linux32_sys_rt_sigprocmask) 603 604 struct linux32_sys_rt_sigpending_args { 605 syscallarg(linux32_sigsetp_t) set; 606 syscallarg(netbsd32_size_t) sigsetsize; 607 }; 608 check_syscall_args(linux32_sys_rt_sigpending) 609 610 struct linux32_sys_rt_sigtimedwait_args { 611 syscallarg(const linux32_sigsetp_t) set; 612 syscallarg(linux32_siginfop_t) info; 613 syscallarg(const linux32_timespecp_t) timeout; 614 }; 615 check_syscall_args(linux32_sys_rt_sigtimedwait) 616 617 struct linux32_sys_rt_queueinfo_args { 618 syscallarg(int) pid; 619 syscallarg(int) sig; 620 syscallarg(linux32_siginfop_t) uinfo; 621 }; 622 check_syscall_args(linux32_sys_rt_queueinfo) 623 624 struct linux32_sys_rt_sigsuspend_args { 625 syscallarg(linux32_sigsetp_t) unewset; 626 syscallarg(netbsd32_size_t) sigsetsize; 627 }; 628 check_syscall_args(linux32_sys_rt_sigsuspend) 629 630 struct linux32_sys_pread_args { 631 syscallarg(int) fd; 632 syscallarg(netbsd32_voidp) buf; 633 syscallarg(netbsd32_size_t) nbyte; 634 syscallarg(netbsd32_off_t) offset; 635 }; 636 check_syscall_args(linux32_sys_pread) 637 638 struct linux32_sys_pwrite_args { 639 syscallarg(int) fd; 640 syscallarg(netbsd32_voidp) buf; 641 syscallarg(netbsd32_size_t) nbyte; 642 syscallarg(netbsd32_off_t) offset; 643 }; 644 check_syscall_args(linux32_sys_pwrite) 645 646 struct linux32_sys_chown16_args { 647 syscallarg(netbsd32_charp) path; 648 syscallarg(linux32_uid16_t) uid; 649 syscallarg(linux32_gid16_t) gid; 650 }; 651 check_syscall_args(linux32_sys_chown16) 652 653 struct netbsd32___getcwd_args; 654 655 struct linux32_sys_ugetrlimit_args { 656 syscallarg(int) which; 657 syscallarg(netbsd32_orlimitp_t) rlp; 658 }; 659 check_syscall_args(linux32_sys_ugetrlimit) 660 661 struct linux32_sys_mmap2_args { 662 syscallarg(netbsd32_u_long) addr; 663 syscallarg(netbsd32_size_t) len; 664 syscallarg(int) prot; 665 syscallarg(int) flags; 666 syscallarg(int) fd; 667 syscallarg(linux32_off_t) offset; 668 }; 669 check_syscall_args(linux32_sys_mmap2) 670 671 struct linux32_sys_truncate64_args { 672 syscallarg(netbsd32_charp) path; 673 syscallarg(uint32_t) lenlo; 674 syscallarg(uint32_t) lenhi; 675 }; 676 check_syscall_args(linux32_sys_truncate64) 677 678 struct linux32_sys_ftruncate64_args { 679 syscallarg(unsigned int) fd; 680 syscallarg(uint32_t) lenlo; 681 syscallarg(uint32_t) lenhi; 682 }; 683 check_syscall_args(linux32_sys_ftruncate64) 684 685 struct linux32_sys_stat64_args { 686 syscallarg(netbsd32_charp) path; 687 syscallarg(linux32_stat64p) sp; 688 }; 689 check_syscall_args(linux32_sys_stat64) 690 691 struct linux32_sys_lstat64_args { 692 syscallarg(netbsd32_charp) path; 693 syscallarg(linux32_stat64p) sp; 694 }; 695 check_syscall_args(linux32_sys_lstat64) 696 697 struct linux32_sys_fstat64_args { 698 syscallarg(int) fd; 699 syscallarg(linux32_stat64p) sp; 700 }; 701 check_syscall_args(linux32_sys_fstat64) 702 703 struct netbsd32___posix_lchown_args; 704 705 struct netbsd32_setreuid_args; 706 707 struct netbsd32_setregid_args; 708 709 struct netbsd32_getgroups_args; 710 711 struct netbsd32_setgroups_args; 712 713 struct netbsd32___posix_fchown_args; 714 715 struct linux32_sys_setresuid_args { 716 syscallarg(uid_t) ruid; 717 syscallarg(uid_t) euid; 718 syscallarg(uid_t) suid; 719 }; 720 check_syscall_args(linux32_sys_setresuid) 721 722 struct linux32_sys_getresuid_args { 723 syscallarg(linux32_uidp_t) ruid; 724 syscallarg(linux32_uidp_t) euid; 725 syscallarg(linux32_uidp_t) suid; 726 }; 727 check_syscall_args(linux32_sys_getresuid) 728 729 struct linux32_sys_setresgid_args { 730 syscallarg(gid_t) rgid; 731 syscallarg(gid_t) egid; 732 syscallarg(gid_t) sgid; 733 }; 734 check_syscall_args(linux32_sys_setresgid) 735 736 struct linux32_sys_getresgid_args { 737 syscallarg(linux32_gidp_t) rgid; 738 syscallarg(linux32_gidp_t) egid; 739 syscallarg(linux32_gidp_t) sgid; 740 }; 741 check_syscall_args(linux32_sys_getresgid) 742 743 struct netbsd32___posix_chown_args; 744 745 struct netbsd32_setuid_args; 746 747 struct netbsd32_setgid_args; 748 749 struct linux32_sys_setfsuid_args { 750 syscallarg(uid_t) uid; 751 }; 752 check_syscall_args(linux32_sys_setfsuid) 753 754 struct linux32_sys_setfsgid_args { 755 syscallarg(gid_t) gid; 756 }; 757 check_syscall_args(linux32_sys_setfsgid) 758 759 struct netbsd32_mincore_args; 760 761 struct netbsd32_madvise_args; 762 763 struct linux32_sys_getdents64_args { 764 syscallarg(int) fd; 765 syscallarg(linux32_dirent64p_t) dent; 766 syscallarg(unsigned int) count; 767 }; 768 check_syscall_args(linux32_sys_getdents64) 769 #define linux32_sys_fcntl64 linux32_sys_fcntl 770 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 771 772 struct linux32_sys_fcntl64_args; 773 774 struct netbsd32_setxattr_args; 775 776 struct netbsd32_lsetxattr_args; 777 778 struct netbsd32_fsetxattr_args; 779 780 struct netbsd32_getxattr_args; 781 782 struct netbsd32_lgetxattr_args; 783 784 struct netbsd32_fgetxattr_args; 785 786 struct netbsd32_listxattr_args; 787 788 struct netbsd32_llistxattr_args; 789 790 struct netbsd32_flistxattr_args; 791 792 struct netbsd32_removexattr_args; 793 794 struct netbsd32_lremovexattr_args; 795 796 struct netbsd32_fremovexattr_args; 797 798 struct linux32_sys_tkill_args { 799 syscallarg(int) tid; 800 syscallarg(int) sig; 801 }; 802 check_syscall_args(linux32_sys_tkill) 803 804 struct linux32_sys_futex_args { 805 syscallarg(linux32_intp_t) uaddr; 806 syscallarg(int) op; 807 syscallarg(int) val; 808 syscallarg(linux32_timespecp_t) timeout; 809 syscallarg(linux32_intp_t) uaddr2; 810 syscallarg(int) val3; 811 }; 812 check_syscall_args(linux32_sys_futex) 813 814 struct linux32_sys_sched_setaffinity_args { 815 syscallarg(pid_t) pid; 816 syscallarg(unsigned int) len; 817 syscallarg(linux32_ulongp_t) mask; 818 }; 819 check_syscall_args(linux32_sys_sched_setaffinity) 820 821 struct linux32_sys_sched_getaffinity_args { 822 syscallarg(pid_t) pid; 823 syscallarg(unsigned int) len; 824 syscallarg(linux32_ulongp_t) mask; 825 }; 826 check_syscall_args(linux32_sys_sched_getaffinity) 827 828 struct linux32_sys_set_thread_area_args { 829 syscallarg(linux32_user_descp_t) desc; 830 }; 831 check_syscall_args(linux32_sys_set_thread_area) 832 833 struct linux32_sys_get_thread_area_args { 834 syscallarg(linux32_user_descp_t) desc; 835 }; 836 check_syscall_args(linux32_sys_get_thread_area) 837 838 struct linux32_sys_fadvise64_args { 839 syscallarg(int) fd; 840 syscallarg(uint32_t) offlo; 841 syscallarg(uint32_t) offhi; 842 syscallarg(linux32_size_t) len; 843 syscallarg(int) advice; 844 }; 845 check_syscall_args(linux32_sys_fadvise64) 846 847 struct linux32_sys_exit_group_args { 848 syscallarg(int) error_code; 849 }; 850 check_syscall_args(linux32_sys_exit_group) 851 852 struct linux32_sys_set_tid_address_args { 853 syscallarg(linux32_intp_t) tid; 854 }; 855 check_syscall_args(linux32_sys_set_tid_address) 856 857 struct linux32_sys_clock_settime_args { 858 syscallarg(clockid_t) which; 859 syscallarg(linux32_timespecp_t) tp; 860 }; 861 check_syscall_args(linux32_sys_clock_settime) 862 863 struct linux32_sys_clock_gettime_args { 864 syscallarg(clockid_t) which; 865 syscallarg(linux32_timespecp_t) tp; 866 }; 867 check_syscall_args(linux32_sys_clock_gettime) 868 869 struct linux32_sys_clock_getres_args { 870 syscallarg(clockid_t) which; 871 syscallarg(linux32_timespecp_t) tp; 872 }; 873 check_syscall_args(linux32_sys_clock_getres) 874 875 struct linux32_sys_clock_nanosleep_args { 876 syscallarg(clockid_t) which; 877 syscallarg(int) flags; 878 syscallarg(linux32_timespecp_t) rqtp; 879 syscallarg(linux32_timespecp_t) rmtp; 880 }; 881 check_syscall_args(linux32_sys_clock_nanosleep) 882 883 struct linux32_sys_statfs64_args { 884 syscallarg(netbsd32_charp) path; 885 syscallarg(netbsd32_size_t) sz; 886 syscallarg(linux32_statfs64p) sp; 887 }; 888 check_syscall_args(linux32_sys_statfs64) 889 890 struct linux32_sys_fstatfs64_args { 891 syscallarg(int) fd; 892 syscallarg(netbsd32_size_t) sz; 893 syscallarg(linux32_statfs64p) sp; 894 }; 895 check_syscall_args(linux32_sys_fstatfs64) 896 897 struct linux32_sys_tgkill_args { 898 syscallarg(int) tgid; 899 syscallarg(int) tid; 900 syscallarg(int) sig; 901 }; 902 check_syscall_args(linux32_sys_tgkill) 903 904 struct compat_50_netbsd32_utimes_args; 905 906 struct linux32_sys_fadvise64_64_args { 907 syscallarg(int) fd; 908 syscallarg(uint32_t) offlo; 909 syscallarg(uint32_t) offhi; 910 syscallarg(uint32_t) lenlo; 911 syscallarg(uint32_t) lenhi; 912 syscallarg(int) advice; 913 }; 914 check_syscall_args(linux32_sys_fadvise64_64) 915 916 struct linux32_sys_openat_args { 917 syscallarg(int) fd; 918 syscallarg(netbsd32_charp) path; 919 syscallarg(int) flags; 920 syscallarg(linux_umode_t) mode; 921 }; 922 check_syscall_args(linux32_sys_openat) 923 924 struct netbsd32_mkdirat_args; 925 926 struct linux32_sys_mknodat_args { 927 syscallarg(int) fd; 928 syscallarg(netbsd32_charp) path; 929 syscallarg(linux_umode_t) mode; 930 syscallarg(unsigned) dev; 931 }; 932 check_syscall_args(linux32_sys_mknodat) 933 934 struct linux32_sys_fchownat_args { 935 syscallarg(int) fd; 936 syscallarg(netbsd32_charp) path; 937 syscallarg(uid_t) owner; 938 syscallarg(gid_t) group; 939 syscallarg(int) flag; 940 }; 941 check_syscall_args(linux32_sys_fchownat) 942 943 struct linux32_sys_fstatat64_args { 944 syscallarg(int) fd; 945 syscallarg(netbsd32_charp) path; 946 syscallarg(linux32_stat64p) sp; 947 syscallarg(int) flag; 948 }; 949 check_syscall_args(linux32_sys_fstatat64) 950 951 struct linux32_sys_unlinkat_args { 952 syscallarg(int) fd; 953 syscallarg(netbsd32_charp) path; 954 syscallarg(int) flag; 955 }; 956 check_syscall_args(linux32_sys_unlinkat) 957 958 struct netbsd32_renameat_args; 959 960 struct linux32_sys_linkat_args { 961 syscallarg(int) fd1; 962 syscallarg(netbsd32_charp) name1; 963 syscallarg(int) fd2; 964 syscallarg(netbsd32_charp) name2; 965 syscallarg(int) flags; 966 }; 967 check_syscall_args(linux32_sys_linkat) 968 969 struct netbsd32_symlinkat_args; 970 971 struct netbsd32_readlinkat_args; 972 973 struct linux32_sys_fchmodat_args { 974 syscallarg(int) fd; 975 syscallarg(netbsd32_charp) path; 976 syscallarg(linux_umode_t) mode; 977 }; 978 check_syscall_args(linux32_sys_fchmodat) 979 980 struct linux32_sys_faccessat_args { 981 syscallarg(int) fd; 982 syscallarg(netbsd32_charp) path; 983 syscallarg(int) amode; 984 }; 985 check_syscall_args(linux32_sys_faccessat) 986 987 struct linux32_sys_ppoll_args { 988 syscallarg(netbsd32_pollfdp_t) fds; 989 syscallarg(u_int) nfds; 990 syscallarg(linux32_timespecp_t) timeout; 991 syscallarg(linux32_sigsetp_t) sigset; 992 }; 993 check_syscall_args(linux32_sys_ppoll) 994 995 struct netbsd32___futex_set_robust_list_args; 996 997 struct netbsd32___futex_get_robust_list_args; 998 999 struct linux32_sys_utimensat_args { 1000 syscallarg(int) fd; 1001 syscallarg(netbsd32_charp) path; 1002 syscallarg(linux32_timespecp_t) times; 1003 syscallarg(int) flag; 1004 }; 1005 check_syscall_args(linux32_sys_utimensat) 1006 1007 struct linux32_sys_fallocate_args { 1008 syscallarg(int) fd; 1009 syscallarg(int) mode; 1010 syscallarg(off_t) offset; 1011 syscallarg(off_t) len; 1012 }; 1013 check_syscall_args(linux32_sys_fallocate) 1014 1015 struct linux32_sys_dup3_args { 1016 syscallarg(int) from; 1017 syscallarg(int) to; 1018 syscallarg(int) flags; 1019 }; 1020 check_syscall_args(linux32_sys_dup3) 1021 1022 struct linux32_sys_pipe2_args { 1023 syscallarg(netbsd32_intp) fd; 1024 syscallarg(int) flags; 1025 }; 1026 check_syscall_args(linux32_sys_pipe2) 1027 1028 /* 1029 * System call prototypes. 1030 */ 1031 1032 int linux_sys_nosys(struct lwp *, const void *, register_t *); 1033 1034 int linux32_sys_exit(struct lwp *, const struct linux32_sys_exit_args *, register_t *); 1035 1036 int sys_fork(struct lwp *, const void *, register_t *); 1037 1038 int netbsd32_read(struct lwp *, const struct netbsd32_read_args *, register_t *); 1039 1040 int netbsd32_write(struct lwp *, const struct netbsd32_write_args *, register_t *); 1041 1042 int linux32_sys_open(struct lwp *, const struct linux32_sys_open_args *, register_t *); 1043 1044 int netbsd32_close(struct lwp *, const struct netbsd32_close_args *, register_t *); 1045 1046 int linux32_sys_waitpid(struct lwp *, const struct linux32_sys_waitpid_args *, register_t *); 1047 1048 int linux32_sys_creat(struct lwp *, const struct linux32_sys_creat_args *, register_t *); 1049 1050 int netbsd32_link(struct lwp *, const struct netbsd32_link_args *, register_t *); 1051 1052 int linux32_sys_unlink(struct lwp *, const struct linux32_sys_unlink_args *, register_t *); 1053 1054 int netbsd32_execve(struct lwp *, const struct netbsd32_execve_args *, register_t *); 1055 1056 int netbsd32_chdir(struct lwp *, const struct netbsd32_chdir_args *, register_t *); 1057 1058 int linux32_sys_time(struct lwp *, const struct linux32_sys_time_args *, register_t *); 1059 1060 int linux32_sys_mknod(struct lwp *, const struct linux32_sys_mknod_args *, register_t *); 1061 1062 int netbsd32_chmod(struct lwp *, const struct netbsd32_chmod_args *, register_t *); 1063 1064 int linux32_sys_lchown16(struct lwp *, const struct linux32_sys_lchown16_args *, register_t *); 1065 1066 int linux32_sys_break(struct lwp *, const struct linux32_sys_break_args *, register_t *); 1067 1068 int compat_43_netbsd32_olseek(struct lwp *, const struct compat_43_netbsd32_olseek_args *, register_t *); 1069 1070 int sys_getpid(struct lwp *, const void *, register_t *); 1071 1072 int netbsd32_setuid(struct lwp *, const struct netbsd32_setuid_args *, register_t *); 1073 1074 int sys_getuid(struct lwp *, const void *, register_t *); 1075 1076 int linux32_sys_stime(struct lwp *, const struct linux32_sys_stime_args *, register_t *); 1077 1078 int linux32_sys_ptrace(struct lwp *, const struct linux32_sys_ptrace_args *, register_t *); 1079 1080 int linux32_sys_alarm(struct lwp *, const struct linux32_sys_alarm_args *, register_t *); 1081 1082 int linux_sys_pause(struct lwp *, const void *, register_t *); 1083 1084 int linux32_sys_utime(struct lwp *, const struct linux32_sys_utime_args *, register_t *); 1085 1086 int netbsd32_access(struct lwp *, const struct netbsd32_access_args *, register_t *); 1087 1088 int linux32_sys_nice(struct lwp *, const struct linux32_sys_nice_args *, register_t *); 1089 1090 int sys_sync(struct lwp *, const void *, register_t *); 1091 1092 int linux32_sys_kill(struct lwp *, const struct linux32_sys_kill_args *, register_t *); 1093 1094 int netbsd32___posix_rename(struct lwp *, const struct netbsd32___posix_rename_args *, register_t *); 1095 1096 int netbsd32_mkdir(struct lwp *, const struct netbsd32_mkdir_args *, register_t *); 1097 1098 int netbsd32_rmdir(struct lwp *, const struct netbsd32_rmdir_args *, register_t *); 1099 1100 int netbsd32_dup(struct lwp *, const struct netbsd32_dup_args *, register_t *); 1101 1102 int linux32_sys_pipe(struct lwp *, const struct linux32_sys_pipe_args *, register_t *); 1103 1104 int linux32_sys_times(struct lwp *, const struct linux32_sys_times_args *, register_t *); 1105 1106 int linux32_sys_brk(struct lwp *, const struct linux32_sys_brk_args *, register_t *); 1107 1108 int netbsd32_setgid(struct lwp *, const struct netbsd32_setgid_args *, register_t *); 1109 1110 int sys_getgid(struct lwp *, const void *, register_t *); 1111 1112 int linux32_sys_signal(struct lwp *, const struct linux32_sys_signal_args *, register_t *); 1113 1114 int sys_geteuid(struct lwp *, const void *, register_t *); 1115 1116 int sys_getegid(struct lwp *, const void *, register_t *); 1117 1118 int netbsd32_acct(struct lwp *, const struct netbsd32_acct_args *, register_t *); 1119 1120 int linux32_sys_ioctl(struct lwp *, const struct linux32_sys_ioctl_args *, register_t *); 1121 1122 int linux32_sys_fcntl(struct lwp *, const struct linux32_sys_fcntl_args *, register_t *); 1123 1124 int netbsd32_setpgid(struct lwp *, const struct netbsd32_setpgid_args *, register_t *); 1125 1126 int linux32_sys_oldolduname(struct lwp *, const struct linux32_sys_oldolduname_args *, register_t *); 1127 1128 int netbsd32_umask(struct lwp *, const struct netbsd32_umask_args *, register_t *); 1129 1130 int netbsd32_chroot(struct lwp *, const struct netbsd32_chroot_args *, register_t *); 1131 1132 int netbsd32_dup2(struct lwp *, const struct netbsd32_dup2_args *, register_t *); 1133 1134 int sys_getppid(struct lwp *, const void *, register_t *); 1135 1136 int sys_getpgrp(struct lwp *, const void *, register_t *); 1137 1138 int sys_setsid(struct lwp *, const void *, register_t *); 1139 1140 int linux32_sys_siggetmask(struct lwp *, const void *, register_t *); 1141 1142 int linux32_sys_sigsetmask(struct lwp *, const struct linux32_sys_sigsetmask_args *, register_t *); 1143 1144 int linux32_sys_setreuid16(struct lwp *, const struct linux32_sys_setreuid16_args *, register_t *); 1145 1146 int linux32_sys_setregid16(struct lwp *, const struct linux32_sys_setregid16_args *, register_t *); 1147 1148 int compat_43_netbsd32_osethostname(struct lwp *, const struct compat_43_netbsd32_osethostname_args *, register_t *); 1149 1150 int linux32_sys_setrlimit(struct lwp *, const struct linux32_sys_setrlimit_args *, register_t *); 1151 1152 int linux32_sys_getrlimit(struct lwp *, const struct linux32_sys_getrlimit_args *, register_t *); 1153 1154 int compat_50_netbsd32_getrusage(struct lwp *, const struct compat_50_netbsd32_getrusage_args *, register_t *); 1155 1156 int linux32_sys_gettimeofday(struct lwp *, const struct linux32_sys_gettimeofday_args *, register_t *); 1157 1158 int linux32_sys_settimeofday(struct lwp *, const struct linux32_sys_settimeofday_args *, register_t *); 1159 1160 int linux32_sys_getgroups16(struct lwp *, const struct linux32_sys_getgroups16_args *, register_t *); 1161 1162 int linux32_sys_setgroups16(struct lwp *, const struct linux32_sys_setgroups16_args *, register_t *); 1163 1164 int linux32_sys_oldselect(struct lwp *, const struct linux32_sys_oldselect_args *, register_t *); 1165 1166 int netbsd32_symlink(struct lwp *, const struct netbsd32_symlink_args *, register_t *); 1167 1168 int compat_43_netbsd32_lstat43(struct lwp *, const struct compat_43_netbsd32_lstat43_args *, register_t *); 1169 1170 int netbsd32_readlink(struct lwp *, const struct netbsd32_readlink_args *, register_t *); 1171 1172 int linux32_sys_swapon(struct lwp *, const struct linux32_sys_swapon_args *, register_t *); 1173 1174 int linux32_sys_reboot(struct lwp *, const struct linux32_sys_reboot_args *, register_t *); 1175 1176 int linux32_sys_readdir(struct lwp *, const struct linux32_sys_readdir_args *, register_t *); 1177 1178 int linux32_sys_old_mmap(struct lwp *, const struct linux32_sys_old_mmap_args *, register_t *); 1179 1180 int netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *); 1181 1182 int compat_43_netbsd32_otruncate(struct lwp *, const struct compat_43_netbsd32_otruncate_args *, register_t *); 1183 1184 int compat_43_netbsd32_oftruncate(struct lwp *, const struct compat_43_netbsd32_oftruncate_args *, register_t *); 1185 1186 int netbsd32_fchmod(struct lwp *, const struct netbsd32_fchmod_args *, register_t *); 1187 1188 int linux32_sys_fchown16(struct lwp *, const struct linux32_sys_fchown16_args *, register_t *); 1189 1190 int linux32_sys_getpriority(struct lwp *, const struct linux32_sys_getpriority_args *, register_t *); 1191 1192 int netbsd32_setpriority(struct lwp *, const struct netbsd32_setpriority_args *, register_t *); 1193 1194 int netbsd32_profil(struct lwp *, const struct netbsd32_profil_args *, register_t *); 1195 1196 int linux32_sys_statfs(struct lwp *, const struct linux32_sys_statfs_args *, register_t *); 1197 1198 int linux32_sys_fstatfs(struct lwp *, const struct linux32_sys_fstatfs_args *, register_t *); 1199 1200 int linux_sys_ioperm(struct lwp *, const struct linux_sys_ioperm_args *, register_t *); 1201 1202 int linux32_sys_socketcall(struct lwp *, const struct linux32_sys_socketcall_args *, register_t *); 1203 1204 int compat_50_netbsd32_setitimer(struct lwp *, const struct compat_50_netbsd32_setitimer_args *, register_t *); 1205 1206 int compat_50_netbsd32_getitimer(struct lwp *, const struct compat_50_netbsd32_getitimer_args *, register_t *); 1207 1208 int linux32_sys_stat(struct lwp *, const struct linux32_sys_stat_args *, register_t *); 1209 1210 int linux32_sys_lstat(struct lwp *, const struct linux32_sys_lstat_args *, register_t *); 1211 1212 int linux32_sys_fstat(struct lwp *, const struct linux32_sys_fstat_args *, register_t *); 1213 1214 int linux32_sys_olduname(struct lwp *, const struct linux32_sys_olduname_args *, register_t *); 1215 1216 int linux_sys_iopl(struct lwp *, const struct linux_sys_iopl_args *, register_t *); 1217 1218 int linux32_sys_wait4(struct lwp *, const struct linux32_sys_wait4_args *, register_t *); 1219 1220 int linux32_sys_swapoff(struct lwp *, const struct linux32_sys_swapoff_args *, register_t *); 1221 1222 int linux32_sys_sysinfo(struct lwp *, const struct linux32_sys_sysinfo_args *, register_t *); 1223 1224 int linux32_sys_ipc(struct lwp *, const struct linux32_sys_ipc_args *, register_t *); 1225 1226 int netbsd32_fsync(struct lwp *, const struct netbsd32_fsync_args *, register_t *); 1227 1228 int linux32_sys_sigreturn(struct lwp *, const struct linux32_sys_sigreturn_args *, register_t *); 1229 1230 int linux32_sys_clone(struct lwp *, const struct linux32_sys_clone_args *, register_t *); 1231 1232 int linux32_sys_setdomainname(struct lwp *, const struct linux32_sys_setdomainname_args *, register_t *); 1233 1234 int linux32_sys_uname(struct lwp *, const struct linux32_sys_uname_args *, register_t *); 1235 1236 int linux32_sys_modify_ldt(struct lwp *, const struct linux32_sys_modify_ldt_args *, register_t *); 1237 1238 int linux32_sys_mprotect(struct lwp *, const struct linux32_sys_mprotect_args *, register_t *); 1239 1240 int netbsd32_getpgid(struct lwp *, const struct netbsd32_getpgid_args *, register_t *); 1241 1242 int netbsd32_fchdir(struct lwp *, const struct netbsd32_fchdir_args *, register_t *); 1243 1244 int linux32_sys_personality(struct lwp *, const struct linux32_sys_personality_args *, register_t *); 1245 1246 int linux32_sys_setfsuid(struct lwp *, const struct linux32_sys_setfsuid_args *, register_t *); 1247 1248 int linux32_sys_setfsgid(struct lwp *, const struct linux32_sys_setfsgid_args *, register_t *); 1249 1250 int linux32_sys_llseek(struct lwp *, const struct linux32_sys_llseek_args *, register_t *); 1251 1252 int linux32_sys_getdents(struct lwp *, const struct linux32_sys_getdents_args *, register_t *); 1253 1254 int linux32_sys_select(struct lwp *, const struct linux32_sys_select_args *, register_t *); 1255 1256 int netbsd32_flock(struct lwp *, const struct netbsd32_flock_args *, register_t *); 1257 1258 int netbsd32___msync13(struct lwp *, const struct netbsd32___msync13_args *, register_t *); 1259 1260 int netbsd32_readv(struct lwp *, const struct netbsd32_readv_args *, register_t *); 1261 1262 int netbsd32_writev(struct lwp *, const struct netbsd32_writev_args *, register_t *); 1263 1264 int netbsd32_getsid(struct lwp *, const struct netbsd32_getsid_args *, register_t *); 1265 1266 int linux32_sys_fdatasync(struct lwp *, const struct linux32_sys_fdatasync_args *, register_t *); 1267 1268 int linux32_sys___sysctl(struct lwp *, const struct linux32_sys___sysctl_args *, register_t *); 1269 1270 int netbsd32_mlock(struct lwp *, const struct netbsd32_mlock_args *, register_t *); 1271 1272 int netbsd32_munlock(struct lwp *, const struct netbsd32_munlock_args *, register_t *); 1273 1274 int netbsd32_mlockall(struct lwp *, const struct netbsd32_mlockall_args *, register_t *); 1275 1276 int sys_munlockall(struct lwp *, const void *, register_t *); 1277 1278 int linux32_sys_sched_setparam(struct lwp *, const struct linux32_sys_sched_setparam_args *, register_t *); 1279 1280 int linux32_sys_sched_getparam(struct lwp *, const struct linux32_sys_sched_getparam_args *, register_t *); 1281 1282 int linux32_sys_sched_setscheduler(struct lwp *, const struct linux32_sys_sched_setscheduler_args *, register_t *); 1283 1284 int linux32_sys_sched_getscheduler(struct lwp *, const struct linux32_sys_sched_getscheduler_args *, register_t *); 1285 1286 int linux_sys_sched_yield(struct lwp *, const void *, register_t *); 1287 1288 int linux32_sys_sched_get_priority_max(struct lwp *, const struct linux32_sys_sched_get_priority_max_args *, register_t *); 1289 1290 int linux32_sys_sched_get_priority_min(struct lwp *, const struct linux32_sys_sched_get_priority_min_args *, register_t *); 1291 1292 int linux32_sys_nanosleep(struct lwp *, const struct linux32_sys_nanosleep_args *, register_t *); 1293 1294 int linux32_sys_mremap(struct lwp *, const struct linux32_sys_mremap_args *, register_t *); 1295 1296 int linux32_sys_setresuid16(struct lwp *, const struct linux32_sys_setresuid16_args *, register_t *); 1297 1298 int linux32_sys_getresuid16(struct lwp *, const struct linux32_sys_getresuid16_args *, register_t *); 1299 1300 int netbsd32_poll(struct lwp *, const struct netbsd32_poll_args *, register_t *); 1301 1302 int linux32_sys_setresgid16(struct lwp *, const struct linux32_sys_setresgid16_args *, register_t *); 1303 1304 int linux32_sys_getresgid16(struct lwp *, const struct linux32_sys_getresgid16_args *, register_t *); 1305 1306 int linux32_sys_rt_sigreturn(struct lwp *, const struct linux32_sys_rt_sigreturn_args *, register_t *); 1307 1308 int linux32_sys_rt_sigaction(struct lwp *, const struct linux32_sys_rt_sigaction_args *, register_t *); 1309 1310 int linux32_sys_rt_sigprocmask(struct lwp *, const struct linux32_sys_rt_sigprocmask_args *, register_t *); 1311 1312 int linux32_sys_rt_sigpending(struct lwp *, const struct linux32_sys_rt_sigpending_args *, register_t *); 1313 1314 int linux32_sys_rt_sigtimedwait(struct lwp *, const struct linux32_sys_rt_sigtimedwait_args *, register_t *); 1315 1316 int linux32_sys_rt_queueinfo(struct lwp *, const struct linux32_sys_rt_queueinfo_args *, register_t *); 1317 1318 int linux32_sys_rt_sigsuspend(struct lwp *, const struct linux32_sys_rt_sigsuspend_args *, register_t *); 1319 1320 int linux32_sys_pread(struct lwp *, const struct linux32_sys_pread_args *, register_t *); 1321 1322 int linux32_sys_pwrite(struct lwp *, const struct linux32_sys_pwrite_args *, register_t *); 1323 1324 int linux32_sys_chown16(struct lwp *, const struct linux32_sys_chown16_args *, register_t *); 1325 1326 int netbsd32___getcwd(struct lwp *, const struct netbsd32___getcwd_args *, register_t *); 1327 1328 int sys___vfork14(struct lwp *, const void *, register_t *); 1329 1330 int linux32_sys_ugetrlimit(struct lwp *, const struct linux32_sys_ugetrlimit_args *, register_t *); 1331 1332 int linux32_sys_mmap2(struct lwp *, const struct linux32_sys_mmap2_args *, register_t *); 1333 1334 int linux32_sys_truncate64(struct lwp *, const struct linux32_sys_truncate64_args *, register_t *); 1335 1336 int linux32_sys_ftruncate64(struct lwp *, const struct linux32_sys_ftruncate64_args *, register_t *); 1337 1338 int linux32_sys_stat64(struct lwp *, const struct linux32_sys_stat64_args *, register_t *); 1339 1340 int linux32_sys_lstat64(struct lwp *, const struct linux32_sys_lstat64_args *, register_t *); 1341 1342 int linux32_sys_fstat64(struct lwp *, const struct linux32_sys_fstat64_args *, register_t *); 1343 1344 int netbsd32___posix_lchown(struct lwp *, const struct netbsd32___posix_lchown_args *, register_t *); 1345 1346 int netbsd32_setreuid(struct lwp *, const struct netbsd32_setreuid_args *, register_t *); 1347 1348 int netbsd32_setregid(struct lwp *, const struct netbsd32_setregid_args *, register_t *); 1349 1350 int netbsd32_getgroups(struct lwp *, const struct netbsd32_getgroups_args *, register_t *); 1351 1352 int netbsd32_setgroups(struct lwp *, const struct netbsd32_setgroups_args *, register_t *); 1353 1354 int netbsd32___posix_fchown(struct lwp *, const struct netbsd32___posix_fchown_args *, register_t *); 1355 1356 int linux32_sys_setresuid(struct lwp *, const struct linux32_sys_setresuid_args *, register_t *); 1357 1358 int linux32_sys_getresuid(struct lwp *, const struct linux32_sys_getresuid_args *, register_t *); 1359 1360 int linux32_sys_setresgid(struct lwp *, const struct linux32_sys_setresgid_args *, register_t *); 1361 1362 int linux32_sys_getresgid(struct lwp *, const struct linux32_sys_getresgid_args *, register_t *); 1363 1364 int netbsd32___posix_chown(struct lwp *, const struct netbsd32___posix_chown_args *, register_t *); 1365 1366 int netbsd32_mincore(struct lwp *, const struct netbsd32_mincore_args *, register_t *); 1367 1368 int netbsd32_madvise(struct lwp *, const struct netbsd32_madvise_args *, register_t *); 1369 1370 int linux32_sys_getdents64(struct lwp *, const struct linux32_sys_getdents64_args *, register_t *); 1371 1372 #define linux32_sys_fcntl64 linux32_sys_fcntl 1373 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 1374 int linux32_sys_fcntl64(struct lwp *, const struct linux32_sys_fcntl64_args *, register_t *); 1375 1376 int linux_sys_gettid(struct lwp *, const void *, register_t *); 1377 1378 int netbsd32_setxattr(struct lwp *, const struct netbsd32_setxattr_args *, register_t *); 1379 1380 int netbsd32_lsetxattr(struct lwp *, const struct netbsd32_lsetxattr_args *, register_t *); 1381 1382 int netbsd32_fsetxattr(struct lwp *, const struct netbsd32_fsetxattr_args *, register_t *); 1383 1384 int netbsd32_getxattr(struct lwp *, const struct netbsd32_getxattr_args *, register_t *); 1385 1386 int netbsd32_lgetxattr(struct lwp *, const struct netbsd32_lgetxattr_args *, register_t *); 1387 1388 int netbsd32_fgetxattr(struct lwp *, const struct netbsd32_fgetxattr_args *, register_t *); 1389 1390 int netbsd32_listxattr(struct lwp *, const struct netbsd32_listxattr_args *, register_t *); 1391 1392 int netbsd32_llistxattr(struct lwp *, const struct netbsd32_llistxattr_args *, register_t *); 1393 1394 int netbsd32_flistxattr(struct lwp *, const struct netbsd32_flistxattr_args *, register_t *); 1395 1396 int netbsd32_removexattr(struct lwp *, const struct netbsd32_removexattr_args *, register_t *); 1397 1398 int netbsd32_lremovexattr(struct lwp *, const struct netbsd32_lremovexattr_args *, register_t *); 1399 1400 int netbsd32_fremovexattr(struct lwp *, const struct netbsd32_fremovexattr_args *, register_t *); 1401 1402 int linux32_sys_tkill(struct lwp *, const struct linux32_sys_tkill_args *, register_t *); 1403 1404 int linux32_sys_futex(struct lwp *, const struct linux32_sys_futex_args *, register_t *); 1405 1406 int linux32_sys_sched_setaffinity(struct lwp *, const struct linux32_sys_sched_setaffinity_args *, register_t *); 1407 1408 int linux32_sys_sched_getaffinity(struct lwp *, const struct linux32_sys_sched_getaffinity_args *, register_t *); 1409 1410 int linux32_sys_set_thread_area(struct lwp *, const struct linux32_sys_set_thread_area_args *, register_t *); 1411 1412 int linux32_sys_get_thread_area(struct lwp *, const struct linux32_sys_get_thread_area_args *, register_t *); 1413 1414 int linux32_sys_fadvise64(struct lwp *, const struct linux32_sys_fadvise64_args *, register_t *); 1415 1416 int linux32_sys_exit_group(struct lwp *, const struct linux32_sys_exit_group_args *, register_t *); 1417 1418 int linux32_sys_set_tid_address(struct lwp *, const struct linux32_sys_set_tid_address_args *, register_t *); 1419 1420 int linux32_sys_clock_settime(struct lwp *, const struct linux32_sys_clock_settime_args *, register_t *); 1421 1422 int linux32_sys_clock_gettime(struct lwp *, const struct linux32_sys_clock_gettime_args *, register_t *); 1423 1424 int linux32_sys_clock_getres(struct lwp *, const struct linux32_sys_clock_getres_args *, register_t *); 1425 1426 int linux32_sys_clock_nanosleep(struct lwp *, const struct linux32_sys_clock_nanosleep_args *, register_t *); 1427 1428 int linux32_sys_statfs64(struct lwp *, const struct linux32_sys_statfs64_args *, register_t *); 1429 1430 int linux32_sys_fstatfs64(struct lwp *, const struct linux32_sys_fstatfs64_args *, register_t *); 1431 1432 int linux32_sys_tgkill(struct lwp *, const struct linux32_sys_tgkill_args *, register_t *); 1433 1434 int compat_50_netbsd32_utimes(struct lwp *, const struct compat_50_netbsd32_utimes_args *, register_t *); 1435 1436 int linux32_sys_fadvise64_64(struct lwp *, const struct linux32_sys_fadvise64_64_args *, register_t *); 1437 1438 int linux32_sys_openat(struct lwp *, const struct linux32_sys_openat_args *, register_t *); 1439 1440 int netbsd32_mkdirat(struct lwp *, const struct netbsd32_mkdirat_args *, register_t *); 1441 1442 int linux32_sys_mknodat(struct lwp *, const struct linux32_sys_mknodat_args *, register_t *); 1443 1444 int linux32_sys_fchownat(struct lwp *, const struct linux32_sys_fchownat_args *, register_t *); 1445 1446 int linux32_sys_fstatat64(struct lwp *, const struct linux32_sys_fstatat64_args *, register_t *); 1447 1448 int linux32_sys_unlinkat(struct lwp *, const struct linux32_sys_unlinkat_args *, register_t *); 1449 1450 int netbsd32_renameat(struct lwp *, const struct netbsd32_renameat_args *, register_t *); 1451 1452 int linux32_sys_linkat(struct lwp *, const struct linux32_sys_linkat_args *, register_t *); 1453 1454 int netbsd32_symlinkat(struct lwp *, const struct netbsd32_symlinkat_args *, register_t *); 1455 1456 int netbsd32_readlinkat(struct lwp *, const struct netbsd32_readlinkat_args *, register_t *); 1457 1458 int linux32_sys_fchmodat(struct lwp *, const struct linux32_sys_fchmodat_args *, register_t *); 1459 1460 int linux32_sys_faccessat(struct lwp *, const struct linux32_sys_faccessat_args *, register_t *); 1461 1462 int linux32_sys_ppoll(struct lwp *, const struct linux32_sys_ppoll_args *, register_t *); 1463 1464 int netbsd32___futex_set_robust_list(struct lwp *, const struct netbsd32___futex_set_robust_list_args *, register_t *); 1465 1466 int netbsd32___futex_get_robust_list(struct lwp *, const struct netbsd32___futex_get_robust_list_args *, register_t *); 1467 1468 int linux32_sys_utimensat(struct lwp *, const struct linux32_sys_utimensat_args *, register_t *); 1469 1470 int linux32_sys_fallocate(struct lwp *, const struct linux32_sys_fallocate_args *, register_t *); 1471 1472 int linux32_sys_dup3(struct lwp *, const struct linux32_sys_dup3_args *, register_t *); 1473 1474 int linux32_sys_pipe2(struct lwp *, const struct linux32_sys_pipe2_args *, register_t *); 1475 1476 #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */ 1477