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