Home | History | Annotate | Line # | Download | only in amd64
linux32_syscallargs.h revision 1.59
      1 /* $NetBSD: linux32_syscallargs.h,v 1.59 2010/07/07 01:31:54 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.56 2010/07/07 01:30:35 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 linux32_sys_statfs_args {
    320 	syscallarg(netbsd32_charp) path;
    321 	syscallarg(linux32_statfsp) sp;
    322 };
    323 check_syscall_args(linux32_sys_statfs)
    324 
    325 struct linux32_sys_fstatfs_args {
    326 	syscallarg(int) fd;
    327 	syscallarg(linux32_statfsp) sp;
    328 };
    329 check_syscall_args(linux32_sys_fstatfs)
    330 
    331 struct linux32_sys_socketcall_args {
    332 	syscallarg(int) what;
    333 	syscallarg(netbsd32_voidp) args;
    334 };
    335 check_syscall_args(linux32_sys_socketcall)
    336 
    337 struct compat_50_netbsd32_setitimer_args;
    338 
    339 struct compat_50_netbsd32_getitimer_args;
    340 
    341 struct linux32_sys_stat_args {
    342 	syscallarg(netbsd32_charp) path;
    343 	syscallarg(linux32_statp) sp;
    344 };
    345 check_syscall_args(linux32_sys_stat)
    346 
    347 struct linux32_sys_lstat_args {
    348 	syscallarg(netbsd32_charp) path;
    349 	syscallarg(linux32_statp) sp;
    350 };
    351 check_syscall_args(linux32_sys_lstat)
    352 
    353 struct linux32_sys_fstat_args {
    354 	syscallarg(int) fd;
    355 	syscallarg(linux32_statp) sp;
    356 };
    357 check_syscall_args(linux32_sys_fstat)
    358 
    359 struct linux32_sys_olduname_args {
    360 	syscallarg(linux32_oldutsnamep_t) up;
    361 };
    362 check_syscall_args(linux32_sys_olduname)
    363 
    364 struct linux32_sys_wait4_args {
    365 	syscallarg(int) pid;
    366 	syscallarg(netbsd32_intp) status;
    367 	syscallarg(int) options;
    368 	syscallarg(netbsd32_rusage50p_t) rusage;
    369 };
    370 check_syscall_args(linux32_sys_wait4)
    371 
    372 struct linux32_sys_swapoff_args {
    373 	syscallarg(netbsd32_charp) path;
    374 };
    375 check_syscall_args(linux32_sys_swapoff)
    376 
    377 struct linux32_sys_sysinfo_args {
    378 	syscallarg(linux32_sysinfop_t) arg;
    379 };
    380 check_syscall_args(linux32_sys_sysinfo)
    381 
    382 struct linux32_sys_ipc_args {
    383 	syscallarg(int) what;
    384 	syscallarg(int) a1;
    385 	syscallarg(int) a2;
    386 	syscallarg(int) a3;
    387 	syscallarg(netbsd32_voidp) ptr;
    388 };
    389 check_syscall_args(linux32_sys_ipc)
    390 
    391 struct netbsd32_fsync_args;
    392 
    393 struct linux32_sys_sigreturn_args {
    394 	syscallarg(linux32_sigcontextp_t) scp;
    395 };
    396 check_syscall_args(linux32_sys_sigreturn)
    397 
    398 struct linux32_sys_clone_args {
    399 	syscallarg(int) flags;
    400 	syscallarg(netbsd32_voidp) stack;
    401 	syscallarg(netbsd32_voidp) parent_tidptr;
    402 	syscallarg(netbsd32_voidp) tls;
    403 	syscallarg(netbsd32_voidp) child_tidptr;
    404 };
    405 check_syscall_args(linux32_sys_clone)
    406 
    407 struct linux32_sys_uname_args {
    408 	syscallarg(linux32_utsnamep) up;
    409 };
    410 check_syscall_args(linux32_sys_uname)
    411 
    412 struct linux32_sys_mprotect_args {
    413 	syscallarg(netbsd32_voidp) start;
    414 	syscallarg(netbsd32_size_t) len;
    415 	syscallarg(int) prot;
    416 };
    417 check_syscall_args(linux32_sys_mprotect)
    418 
    419 struct netbsd32_getpgid_args;
    420 
    421 struct netbsd32_fchdir_args;
    422 
    423 struct linux32_sys_personality_args {
    424 	syscallarg(netbsd32_u_long) per;
    425 };
    426 check_syscall_args(linux32_sys_personality)
    427 
    428 struct linux32_sys_setfsuid_args;
    429 
    430 struct linux32_sys_setfsgid_args;
    431 
    432 struct linux32_sys_llseek_args {
    433 	syscallarg(int) fd;
    434 	syscallarg(u_int32_t) ohigh;
    435 	syscallarg(u_int32_t) olow;
    436 	syscallarg(netbsd32_voidp) res;
    437 	syscallarg(int) whence;
    438 };
    439 check_syscall_args(linux32_sys_llseek)
    440 
    441 struct linux32_sys_getdents_args {
    442 	syscallarg(int) fd;
    443 	syscallarg(linux32_direntp_t) dent;
    444 	syscallarg(unsigned int) count;
    445 };
    446 check_syscall_args(linux32_sys_getdents)
    447 
    448 struct linux32_sys_select_args {
    449 	syscallarg(int) nfds;
    450 	syscallarg(netbsd32_fd_setp_t) readfds;
    451 	syscallarg(netbsd32_fd_setp_t) writefds;
    452 	syscallarg(netbsd32_fd_setp_t) exceptfds;
    453 	syscallarg(netbsd32_timeval50p_t) timeout;
    454 };
    455 check_syscall_args(linux32_sys_select)
    456 
    457 struct netbsd32_flock_args;
    458 
    459 struct netbsd32___msync13_args;
    460 
    461 struct netbsd32_readv_args;
    462 
    463 struct netbsd32_writev_args;
    464 
    465 struct netbsd32_getsid_args;
    466 
    467 struct linux32_sys_fdatasync_args {
    468 	syscallarg(int) fd;
    469 };
    470 check_syscall_args(linux32_sys_fdatasync)
    471 
    472 struct linux32_sys___sysctl_args {
    473 	syscallarg(linux32___sysctlp_t) lsp;
    474 };
    475 check_syscall_args(linux32_sys___sysctl)
    476 
    477 struct netbsd32_mlock_args;
    478 
    479 struct netbsd32_munlock_args;
    480 
    481 struct netbsd32_mlockall_args;
    482 
    483 struct linux32_sys_sched_setparam_args {
    484 	syscallarg(pid_t) pid;
    485 	syscallarg(const linux32_sched_paramp_t) sp;
    486 };
    487 check_syscall_args(linux32_sys_sched_setparam)
    488 
    489 struct linux32_sys_sched_getparam_args {
    490 	syscallarg(pid_t) pid;
    491 	syscallarg(linux32_sched_paramp_t) sp;
    492 };
    493 check_syscall_args(linux32_sys_sched_getparam)
    494 
    495 struct linux32_sys_sched_setscheduler_args {
    496 	syscallarg(pid_t) pid;
    497 	syscallarg(int) policy;
    498 	syscallarg(linux32_sched_paramp_t) sp;
    499 };
    500 check_syscall_args(linux32_sys_sched_setscheduler)
    501 
    502 struct linux32_sys_sched_getscheduler_args {
    503 	syscallarg(pid_t) pid;
    504 };
    505 check_syscall_args(linux32_sys_sched_getscheduler)
    506 
    507 struct linux32_sys_sched_get_priority_max_args {
    508 	syscallarg(int) policy;
    509 };
    510 check_syscall_args(linux32_sys_sched_get_priority_max)
    511 
    512 struct linux32_sys_sched_get_priority_min_args {
    513 	syscallarg(int) policy;
    514 };
    515 check_syscall_args(linux32_sys_sched_get_priority_min)
    516 
    517 struct linux32_sys_nanosleep_args {
    518 	syscallarg(linux32_timespecp_t) rqtp;
    519 	syscallarg(linux32_timespecp_t) rmtp;
    520 };
    521 check_syscall_args(linux32_sys_nanosleep)
    522 
    523 struct linux32_sys_mremap_args {
    524 	syscallarg(netbsd32_voidp) old_address;
    525 	syscallarg(netbsd32_size_t) old_size;
    526 	syscallarg(netbsd32_size_t) new_size;
    527 	syscallarg(netbsd32_u_long) flags;
    528 };
    529 check_syscall_args(linux32_sys_mremap)
    530 
    531 struct linux32_sys_setresuid16_args {
    532 	syscallarg(linux32_uid16_t) ruid;
    533 	syscallarg(linux32_uid16_t) euid;
    534 	syscallarg(linux32_uid16_t) suid;
    535 };
    536 check_syscall_args(linux32_sys_setresuid16)
    537 
    538 struct linux32_sys_getresuid16_args {
    539 	syscallarg(linux32_uid16p_t) ruid;
    540 	syscallarg(linux32_uid16p_t) euid;
    541 	syscallarg(linux32_uid16p_t) suid;
    542 };
    543 check_syscall_args(linux32_sys_getresuid16)
    544 
    545 struct netbsd32_poll_args;
    546 
    547 struct linux32_sys_setresgid16_args {
    548 	syscallarg(linux32_gid16_t) rgid;
    549 	syscallarg(linux32_gid16_t) egid;
    550 	syscallarg(linux32_gid16_t) sgid;
    551 };
    552 check_syscall_args(linux32_sys_setresgid16)
    553 
    554 struct linux32_sys_getresgid16_args {
    555 	syscallarg(linux32_gid16p_t) rgid;
    556 	syscallarg(linux32_gid16p_t) egid;
    557 	syscallarg(linux32_gid16p_t) sgid;
    558 };
    559 check_syscall_args(linux32_sys_getresgid16)
    560 
    561 struct linux32_sys_rt_sigreturn_args {
    562 	syscallarg(linux32_ucontextp_t) ucp;
    563 };
    564 check_syscall_args(linux32_sys_rt_sigreturn)
    565 
    566 struct linux32_sys_rt_sigaction_args {
    567 	syscallarg(int) signum;
    568 	syscallarg(linux32_sigactionp_t) nsa;
    569 	syscallarg(linux32_sigactionp_t) osa;
    570 	syscallarg(netbsd32_size_t) sigsetsize;
    571 };
    572 check_syscall_args(linux32_sys_rt_sigaction)
    573 
    574 struct linux32_sys_rt_sigprocmask_args {
    575 	syscallarg(int) how;
    576 	syscallarg(linux32_sigsetp_t) set;
    577 	syscallarg(linux32_sigsetp_t) oset;
    578 	syscallarg(netbsd32_size_t) sigsetsize;
    579 };
    580 check_syscall_args(linux32_sys_rt_sigprocmask)
    581 
    582 struct linux32_sys_rt_sigpending_args {
    583 	syscallarg(linux32_sigsetp_t) set;
    584 	syscallarg(netbsd32_size_t) sigsetsize;
    585 };
    586 check_syscall_args(linux32_sys_rt_sigpending)
    587 
    588 struct linux32_sys_rt_queueinfo_args {
    589 	syscallarg(int) pid;
    590 	syscallarg(int) sig;
    591 	syscallarg(linux32_siginfop_t) uinfo;
    592 };
    593 check_syscall_args(linux32_sys_rt_queueinfo)
    594 
    595 struct linux32_sys_rt_sigsuspend_args {
    596 	syscallarg(linux32_sigsetp_t) unewset;
    597 	syscallarg(netbsd32_size_t) sigsetsize;
    598 };
    599 check_syscall_args(linux32_sys_rt_sigsuspend)
    600 
    601 struct linux32_sys_pread_args {
    602 	syscallarg(int) fd;
    603 	syscallarg(netbsd32_voidp) buf;
    604 	syscallarg(netbsd32_size_t) nbyte;
    605 	syscallarg(linux32_off_t) offset;
    606 };
    607 check_syscall_args(linux32_sys_pread)
    608 
    609 struct linux32_sys_pwrite_args {
    610 	syscallarg(int) fd;
    611 	syscallarg(netbsd32_voidp) buf;
    612 	syscallarg(netbsd32_size_t) nbyte;
    613 	syscallarg(linux32_off_t) offset;
    614 };
    615 check_syscall_args(linux32_sys_pwrite)
    616 
    617 struct linux32_sys_chown16_args {
    618 	syscallarg(netbsd32_charp) path;
    619 	syscallarg(linux32_uid16_t) uid;
    620 	syscallarg(linux32_gid16_t) gid;
    621 };
    622 check_syscall_args(linux32_sys_chown16)
    623 
    624 struct netbsd32___getcwd_args;
    625 
    626 struct linux32_sys_ugetrlimit_args {
    627 	syscallarg(int) which;
    628 	syscallarg(netbsd32_orlimitp_t) rlp;
    629 };
    630 check_syscall_args(linux32_sys_ugetrlimit)
    631 
    632 struct linux32_sys_mmap2_args {
    633 	syscallarg(netbsd32_u_long) addr;
    634 	syscallarg(netbsd32_size_t) len;
    635 	syscallarg(int) prot;
    636 	syscallarg(int) flags;
    637 	syscallarg(int) fd;
    638 	syscallarg(linux32_off_t) offset;
    639 };
    640 check_syscall_args(linux32_sys_mmap2)
    641 
    642 struct linux32_sys_stat64_args {
    643 	syscallarg(netbsd32_charp) path;
    644 	syscallarg(linux32_stat64p) sp;
    645 };
    646 check_syscall_args(linux32_sys_stat64)
    647 
    648 struct linux32_sys_lstat64_args {
    649 	syscallarg(netbsd32_charp) path;
    650 	syscallarg(linux32_stat64p) sp;
    651 };
    652 check_syscall_args(linux32_sys_lstat64)
    653 
    654 struct linux32_sys_fstat64_args {
    655 	syscallarg(int) fd;
    656 	syscallarg(linux32_stat64p) sp;
    657 };
    658 check_syscall_args(linux32_sys_fstat64)
    659 
    660 struct netbsd32___posix_lchown_args;
    661 
    662 struct netbsd32_setreuid_args;
    663 
    664 struct netbsd32_setregid_args;
    665 
    666 struct netbsd32_getgroups_args;
    667 
    668 struct netbsd32_setgroups_args;
    669 
    670 struct netbsd32___posix_fchown_args;
    671 
    672 struct linux32_sys_setresuid_args {
    673 	syscallarg(uid_t) ruid;
    674 	syscallarg(uid_t) euid;
    675 	syscallarg(uid_t) suid;
    676 };
    677 check_syscall_args(linux32_sys_setresuid)
    678 
    679 struct linux32_sys_getresuid_args {
    680 	syscallarg(linux32_uidp_t) ruid;
    681 	syscallarg(linux32_uidp_t) euid;
    682 	syscallarg(linux32_uidp_t) suid;
    683 };
    684 check_syscall_args(linux32_sys_getresuid)
    685 
    686 struct linux32_sys_setresgid_args {
    687 	syscallarg(gid_t) rgid;
    688 	syscallarg(gid_t) egid;
    689 	syscallarg(gid_t) sgid;
    690 };
    691 check_syscall_args(linux32_sys_setresgid)
    692 
    693 struct linux32_sys_getresgid_args {
    694 	syscallarg(linux32_gidp_t) rgid;
    695 	syscallarg(linux32_gidp_t) egid;
    696 	syscallarg(linux32_gidp_t) sgid;
    697 };
    698 check_syscall_args(linux32_sys_getresgid)
    699 
    700 struct netbsd32___posix_chown_args;
    701 
    702 struct netbsd32_setuid_args;
    703 
    704 struct netbsd32_setgid_args;
    705 
    706 struct linux32_sys_setfsuid_args {
    707 	syscallarg(uid_t) uid;
    708 };
    709 check_syscall_args(linux32_sys_setfsuid)
    710 
    711 struct linux32_sys_setfsgid_args {
    712 	syscallarg(gid_t) gid;
    713 };
    714 check_syscall_args(linux32_sys_setfsgid)
    715 
    716 struct netbsd32_mincore_args;
    717 
    718 struct netbsd32_madvise_args;
    719 
    720 struct linux32_sys_getdents64_args {
    721 	syscallarg(int) fd;
    722 	syscallarg(linux32_dirent64p_t) dent;
    723 	syscallarg(unsigned int) count;
    724 };
    725 check_syscall_args(linux32_sys_getdents64)
    726 #define linux32_sys_fcntl64 linux32_sys_fcntl
    727 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
    728 
    729 struct linux32_sys_fcntl64_args;
    730 
    731 struct linux32_sys_tkill_args {
    732 	syscallarg(int) tid;
    733 	syscallarg(int) sig;
    734 };
    735 check_syscall_args(linux32_sys_tkill)
    736 
    737 struct linux32_sys_futex_args {
    738 	syscallarg(linux32_intp_t) uaddr;
    739 	syscallarg(int) op;
    740 	syscallarg(int) val;
    741 	syscallarg(linux32_timespecp_t) timeout;
    742 	syscallarg(linux32_intp_t) uaddr2;
    743 	syscallarg(int) val3;
    744 };
    745 check_syscall_args(linux32_sys_futex)
    746 
    747 struct linux32_sys_sched_setaffinity_args {
    748 	syscallarg(pid_t) pid;
    749 	syscallarg(unsigned int) len;
    750 	syscallarg(linux32_ulongp_t) mask;
    751 };
    752 check_syscall_args(linux32_sys_sched_setaffinity)
    753 
    754 struct linux32_sys_sched_getaffinity_args {
    755 	syscallarg(pid_t) pid;
    756 	syscallarg(unsigned int) len;
    757 	syscallarg(linux32_ulongp_t) mask;
    758 };
    759 check_syscall_args(linux32_sys_sched_getaffinity)
    760 
    761 struct linux32_sys_set_thread_area_args {
    762 	syscallarg(linux32_user_descp_t) desc;
    763 };
    764 check_syscall_args(linux32_sys_set_thread_area)
    765 
    766 struct linux32_sys_get_thread_area_args {
    767 	syscallarg(linux32_user_descp_t) desc;
    768 };
    769 check_syscall_args(linux32_sys_get_thread_area)
    770 
    771 struct linux32_sys_exit_group_args {
    772 	syscallarg(int) error_code;
    773 };
    774 check_syscall_args(linux32_sys_exit_group)
    775 
    776 struct linux32_sys_set_tid_address_args {
    777 	syscallarg(linux32_intp_t) tid;
    778 };
    779 check_syscall_args(linux32_sys_set_tid_address)
    780 
    781 struct linux32_sys_clock_settime_args {
    782 	syscallarg(clockid_t) which;
    783 	syscallarg(linux32_timespecp_t) tp;
    784 };
    785 check_syscall_args(linux32_sys_clock_settime)
    786 
    787 struct linux32_sys_clock_gettime_args {
    788 	syscallarg(clockid_t) which;
    789 	syscallarg(linux32_timespecp_t) tp;
    790 };
    791 check_syscall_args(linux32_sys_clock_gettime)
    792 
    793 struct linux32_sys_clock_getres_args {
    794 	syscallarg(clockid_t) which;
    795 	syscallarg(linux32_timespecp_t) tp;
    796 };
    797 check_syscall_args(linux32_sys_clock_getres)
    798 
    799 struct linux32_sys_clock_nanosleep_args {
    800 	syscallarg(clockid_t) which;
    801 	syscallarg(int) flags;
    802 	syscallarg(linux32_timespecp_t) rqtp;
    803 	syscallarg(linux32_timespecp_t) rmtp;
    804 };
    805 check_syscall_args(linux32_sys_clock_nanosleep)
    806 
    807 struct linux32_sys_tgkill_args {
    808 	syscallarg(int) tgid;
    809 	syscallarg(int) tid;
    810 	syscallarg(int) sig;
    811 };
    812 check_syscall_args(linux32_sys_tgkill)
    813 
    814 struct linux32_sys_set_robust_list_args {
    815 	syscallarg(linux32_robust_list_headp_t) head;
    816 	syscallarg(linux32_size_t) len;
    817 };
    818 check_syscall_args(linux32_sys_set_robust_list)
    819 
    820 struct linux32_sys_get_robust_list_args {
    821 	syscallarg(linux32_pid_t) pid;
    822 	syscallarg(linux32_robust_list_headpp_t) head;
    823 	syscallarg(linux32_sizep_t) len;
    824 };
    825 check_syscall_args(linux32_sys_get_robust_list)
    826 
    827 /*
    828  * System call prototypes.
    829  */
    830 
    831 int	linux_sys_nosys(struct lwp *, const void *, register_t *);
    832 
    833 int	linux32_sys_exit(struct lwp *, const struct linux32_sys_exit_args *, register_t *);
    834 
    835 int	sys_fork(struct lwp *, const void *, register_t *);
    836 
    837 int	netbsd32_read(struct lwp *, const struct netbsd32_read_args *, register_t *);
    838 
    839 int	netbsd32_write(struct lwp *, const struct netbsd32_write_args *, register_t *);
    840 
    841 int	linux32_sys_open(struct lwp *, const struct linux32_sys_open_args *, register_t *);
    842 
    843 int	netbsd32_close(struct lwp *, const struct netbsd32_close_args *, register_t *);
    844 
    845 int	linux32_sys_waitpid(struct lwp *, const struct linux32_sys_waitpid_args *, register_t *);
    846 
    847 int	linux32_sys_creat(struct lwp *, const struct linux32_sys_creat_args *, register_t *);
    848 
    849 int	netbsd32_link(struct lwp *, const struct netbsd32_link_args *, register_t *);
    850 
    851 int	linux32_sys_unlink(struct lwp *, const struct linux32_sys_unlink_args *, register_t *);
    852 
    853 int	netbsd32_execve(struct lwp *, const struct netbsd32_execve_args *, register_t *);
    854 
    855 int	netbsd32_chdir(struct lwp *, const struct netbsd32_chdir_args *, register_t *);
    856 
    857 int	linux32_sys_time(struct lwp *, const struct linux32_sys_time_args *, register_t *);
    858 
    859 int	linux32_sys_mknod(struct lwp *, const struct linux32_sys_mknod_args *, register_t *);
    860 
    861 int	netbsd32_chmod(struct lwp *, const struct netbsd32_chmod_args *, register_t *);
    862 
    863 int	linux32_sys_lchown16(struct lwp *, const struct linux32_sys_lchown16_args *, register_t *);
    864 
    865 int	linux32_sys_break(struct lwp *, const struct linux32_sys_break_args *, register_t *);
    866 
    867 int	compat_43_netbsd32_olseek(struct lwp *, const struct compat_43_netbsd32_olseek_args *, register_t *);
    868 
    869 int	sys_getpid(struct lwp *, const void *, register_t *);
    870 
    871 int	netbsd32_setuid(struct lwp *, const struct netbsd32_setuid_args *, register_t *);
    872 
    873 int	sys_getuid(struct lwp *, const void *, register_t *);
    874 
    875 int	linux32_sys_stime(struct lwp *, const struct linux32_sys_stime_args *, register_t *);
    876 
    877 int	linux32_sys_ptrace(struct lwp *, const struct linux32_sys_ptrace_args *, register_t *);
    878 
    879 int	linux32_sys_alarm(struct lwp *, const struct linux32_sys_alarm_args *, register_t *);
    880 
    881 int	linux_sys_pause(struct lwp *, const void *, register_t *);
    882 
    883 int	linux32_sys_utime(struct lwp *, const struct linux32_sys_utime_args *, register_t *);
    884 
    885 int	netbsd32_access(struct lwp *, const struct netbsd32_access_args *, register_t *);
    886 
    887 int	linux32_sys_nice(struct lwp *, const struct linux32_sys_nice_args *, register_t *);
    888 
    889 int	sys_sync(struct lwp *, const void *, register_t *);
    890 
    891 int	linux32_sys_kill(struct lwp *, const struct linux32_sys_kill_args *, register_t *);
    892 
    893 int	netbsd32___posix_rename(struct lwp *, const struct netbsd32___posix_rename_args *, register_t *);
    894 
    895 int	netbsd32_mkdir(struct lwp *, const struct netbsd32_mkdir_args *, register_t *);
    896 
    897 int	netbsd32_rmdir(struct lwp *, const struct netbsd32_rmdir_args *, register_t *);
    898 
    899 int	netbsd32_dup(struct lwp *, const struct netbsd32_dup_args *, register_t *);
    900 
    901 int	linux32_sys_pipe(struct lwp *, const struct linux32_sys_pipe_args *, register_t *);
    902 
    903 int	linux32_sys_times(struct lwp *, const struct linux32_sys_times_args *, register_t *);
    904 
    905 int	linux32_sys_brk(struct lwp *, const struct linux32_sys_brk_args *, register_t *);
    906 
    907 int	netbsd32_setgid(struct lwp *, const struct netbsd32_setgid_args *, register_t *);
    908 
    909 int	sys_getgid(struct lwp *, const void *, register_t *);
    910 
    911 int	linux32_sys_signal(struct lwp *, const struct linux32_sys_signal_args *, register_t *);
    912 
    913 int	sys_geteuid(struct lwp *, const void *, register_t *);
    914 
    915 int	sys_getegid(struct lwp *, const void *, register_t *);
    916 
    917 int	netbsd32_acct(struct lwp *, const struct netbsd32_acct_args *, register_t *);
    918 
    919 int	linux32_sys_ioctl(struct lwp *, const struct linux32_sys_ioctl_args *, register_t *);
    920 
    921 int	linux32_sys_fcntl(struct lwp *, const struct linux32_sys_fcntl_args *, register_t *);
    922 
    923 int	netbsd32_setpgid(struct lwp *, const struct netbsd32_setpgid_args *, register_t *);
    924 
    925 int	linux32_sys_oldolduname(struct lwp *, const struct linux32_sys_oldolduname_args *, register_t *);
    926 
    927 int	netbsd32_umask(struct lwp *, const struct netbsd32_umask_args *, register_t *);
    928 
    929 int	netbsd32_chroot(struct lwp *, const struct netbsd32_chroot_args *, register_t *);
    930 
    931 int	netbsd32_dup2(struct lwp *, const struct netbsd32_dup2_args *, register_t *);
    932 
    933 int	sys_getppid(struct lwp *, const void *, register_t *);
    934 
    935 int	sys_getpgrp(struct lwp *, const void *, register_t *);
    936 
    937 int	sys_setsid(struct lwp *, const void *, register_t *);
    938 
    939 int	linux32_sys_siggetmask(struct lwp *, const void *, register_t *);
    940 
    941 int	linux32_sys_sigsetmask(struct lwp *, const struct linux32_sys_sigsetmask_args *, register_t *);
    942 
    943 int	linux32_sys_setreuid16(struct lwp *, const struct linux32_sys_setreuid16_args *, register_t *);
    944 
    945 int	linux32_sys_setregid16(struct lwp *, const struct linux32_sys_setregid16_args *, register_t *);
    946 
    947 int	compat_43_netbsd32_osethostname(struct lwp *, const struct compat_43_netbsd32_osethostname_args *, register_t *);
    948 
    949 int	linux32_sys_setrlimit(struct lwp *, const struct linux32_sys_setrlimit_args *, register_t *);
    950 
    951 int	linux32_sys_getrlimit(struct lwp *, const struct linux32_sys_getrlimit_args *, register_t *);
    952 
    953 int	compat_50_netbsd32_getrusage(struct lwp *, const struct compat_50_netbsd32_getrusage_args *, register_t *);
    954 
    955 int	linux32_sys_gettimeofday(struct lwp *, const struct linux32_sys_gettimeofday_args *, register_t *);
    956 
    957 int	linux32_sys_settimeofday(struct lwp *, const struct linux32_sys_settimeofday_args *, register_t *);
    958 
    959 int	linux32_sys_getgroups16(struct lwp *, const struct linux32_sys_getgroups16_args *, register_t *);
    960 
    961 int	linux32_sys_setgroups16(struct lwp *, const struct linux32_sys_setgroups16_args *, register_t *);
    962 
    963 int	linux32_sys_oldselect(struct lwp *, const struct linux32_sys_oldselect_args *, register_t *);
    964 
    965 int	netbsd32_symlink(struct lwp *, const struct netbsd32_symlink_args *, register_t *);
    966 
    967 int	compat_43_netbsd32_lstat43(struct lwp *, const struct compat_43_netbsd32_lstat43_args *, register_t *);
    968 
    969 int	netbsd32_readlink(struct lwp *, const struct netbsd32_readlink_args *, register_t *);
    970 
    971 int	linux32_sys_swapon(struct lwp *, const struct linux32_sys_swapon_args *, register_t *);
    972 
    973 int	linux32_sys_reboot(struct lwp *, const struct linux32_sys_reboot_args *, register_t *);
    974 
    975 int	linux32_sys_readdir(struct lwp *, const struct linux32_sys_readdir_args *, register_t *);
    976 
    977 int	linux32_sys_old_mmap(struct lwp *, const struct linux32_sys_old_mmap_args *, register_t *);
    978 
    979 int	netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *);
    980 
    981 int	compat_43_netbsd32_otruncate(struct lwp *, const struct compat_43_netbsd32_otruncate_args *, register_t *);
    982 
    983 int	compat_43_netbsd32_oftruncate(struct lwp *, const struct compat_43_netbsd32_oftruncate_args *, register_t *);
    984 
    985 int	netbsd32_fchmod(struct lwp *, const struct netbsd32_fchmod_args *, register_t *);
    986 
    987 int	linux32_sys_fchown16(struct lwp *, const struct linux32_sys_fchown16_args *, register_t *);
    988 
    989 int	linux32_sys_getpriority(struct lwp *, const struct linux32_sys_getpriority_args *, register_t *);
    990 
    991 int	netbsd32_setpriority(struct lwp *, const struct netbsd32_setpriority_args *, register_t *);
    992 
    993 int	linux32_sys_statfs(struct lwp *, const struct linux32_sys_statfs_args *, register_t *);
    994 
    995 int	linux32_sys_fstatfs(struct lwp *, const struct linux32_sys_fstatfs_args *, register_t *);
    996 
    997 int	linux32_sys_socketcall(struct lwp *, const struct linux32_sys_socketcall_args *, register_t *);
    998 
    999 int	compat_50_netbsd32_setitimer(struct lwp *, const struct compat_50_netbsd32_setitimer_args *, register_t *);
   1000 
   1001 int	compat_50_netbsd32_getitimer(struct lwp *, const struct compat_50_netbsd32_getitimer_args *, register_t *);
   1002 
   1003 int	linux32_sys_stat(struct lwp *, const struct linux32_sys_stat_args *, register_t *);
   1004 
   1005 int	linux32_sys_lstat(struct lwp *, const struct linux32_sys_lstat_args *, register_t *);
   1006 
   1007 int	linux32_sys_fstat(struct lwp *, const struct linux32_sys_fstat_args *, register_t *);
   1008 
   1009 int	linux32_sys_olduname(struct lwp *, const struct linux32_sys_olduname_args *, register_t *);
   1010 
   1011 int	linux32_sys_wait4(struct lwp *, const struct linux32_sys_wait4_args *, register_t *);
   1012 
   1013 int	linux32_sys_swapoff(struct lwp *, const struct linux32_sys_swapoff_args *, register_t *);
   1014 
   1015 int	linux32_sys_sysinfo(struct lwp *, const struct linux32_sys_sysinfo_args *, register_t *);
   1016 
   1017 int	linux32_sys_ipc(struct lwp *, const struct linux32_sys_ipc_args *, register_t *);
   1018 
   1019 int	netbsd32_fsync(struct lwp *, const struct netbsd32_fsync_args *, register_t *);
   1020 
   1021 int	linux32_sys_sigreturn(struct lwp *, const struct linux32_sys_sigreturn_args *, register_t *);
   1022 
   1023 int	linux32_sys_clone(struct lwp *, const struct linux32_sys_clone_args *, register_t *);
   1024 
   1025 int	linux32_sys_uname(struct lwp *, const struct linux32_sys_uname_args *, register_t *);
   1026 
   1027 int	linux32_sys_mprotect(struct lwp *, const struct linux32_sys_mprotect_args *, register_t *);
   1028 
   1029 int	netbsd32_getpgid(struct lwp *, const struct netbsd32_getpgid_args *, register_t *);
   1030 
   1031 int	netbsd32_fchdir(struct lwp *, const struct netbsd32_fchdir_args *, register_t *);
   1032 
   1033 int	linux32_sys_personality(struct lwp *, const struct linux32_sys_personality_args *, register_t *);
   1034 
   1035 int	linux32_sys_setfsuid(struct lwp *, const struct linux32_sys_setfsuid_args *, register_t *);
   1036 
   1037 int	linux32_sys_setfsgid(struct lwp *, const struct linux32_sys_setfsgid_args *, register_t *);
   1038 
   1039 int	linux32_sys_llseek(struct lwp *, const struct linux32_sys_llseek_args *, register_t *);
   1040 
   1041 int	linux32_sys_getdents(struct lwp *, const struct linux32_sys_getdents_args *, register_t *);
   1042 
   1043 int	linux32_sys_select(struct lwp *, const struct linux32_sys_select_args *, register_t *);
   1044 
   1045 int	netbsd32_flock(struct lwp *, const struct netbsd32_flock_args *, register_t *);
   1046 
   1047 int	netbsd32___msync13(struct lwp *, const struct netbsd32___msync13_args *, register_t *);
   1048 
   1049 int	netbsd32_readv(struct lwp *, const struct netbsd32_readv_args *, register_t *);
   1050 
   1051 int	netbsd32_writev(struct lwp *, const struct netbsd32_writev_args *, register_t *);
   1052 
   1053 int	netbsd32_getsid(struct lwp *, const struct netbsd32_getsid_args *, register_t *);
   1054 
   1055 int	linux32_sys_fdatasync(struct lwp *, const struct linux32_sys_fdatasync_args *, register_t *);
   1056 
   1057 int	linux32_sys___sysctl(struct lwp *, const struct linux32_sys___sysctl_args *, register_t *);
   1058 
   1059 int	netbsd32_mlock(struct lwp *, const struct netbsd32_mlock_args *, register_t *);
   1060 
   1061 int	netbsd32_munlock(struct lwp *, const struct netbsd32_munlock_args *, register_t *);
   1062 
   1063 int	netbsd32_mlockall(struct lwp *, const struct netbsd32_mlockall_args *, register_t *);
   1064 
   1065 int	sys_munlockall(struct lwp *, const void *, register_t *);
   1066 
   1067 int	linux32_sys_sched_setparam(struct lwp *, const struct linux32_sys_sched_setparam_args *, register_t *);
   1068 
   1069 int	linux32_sys_sched_getparam(struct lwp *, const struct linux32_sys_sched_getparam_args *, register_t *);
   1070 
   1071 int	linux32_sys_sched_setscheduler(struct lwp *, const struct linux32_sys_sched_setscheduler_args *, register_t *);
   1072 
   1073 int	linux32_sys_sched_getscheduler(struct lwp *, const struct linux32_sys_sched_getscheduler_args *, register_t *);
   1074 
   1075 int	linux_sys_sched_yield(struct lwp *, const void *, register_t *);
   1076 
   1077 int	linux32_sys_sched_get_priority_max(struct lwp *, const struct linux32_sys_sched_get_priority_max_args *, register_t *);
   1078 
   1079 int	linux32_sys_sched_get_priority_min(struct lwp *, const struct linux32_sys_sched_get_priority_min_args *, register_t *);
   1080 
   1081 int	linux32_sys_nanosleep(struct lwp *, const struct linux32_sys_nanosleep_args *, register_t *);
   1082 
   1083 int	linux32_sys_mremap(struct lwp *, const struct linux32_sys_mremap_args *, register_t *);
   1084 
   1085 int	linux32_sys_setresuid16(struct lwp *, const struct linux32_sys_setresuid16_args *, register_t *);
   1086 
   1087 int	linux32_sys_getresuid16(struct lwp *, const struct linux32_sys_getresuid16_args *, register_t *);
   1088 
   1089 int	netbsd32_poll(struct lwp *, const struct netbsd32_poll_args *, register_t *);
   1090 
   1091 int	linux32_sys_setresgid16(struct lwp *, const struct linux32_sys_setresgid16_args *, register_t *);
   1092 
   1093 int	linux32_sys_getresgid16(struct lwp *, const struct linux32_sys_getresgid16_args *, register_t *);
   1094 
   1095 int	linux32_sys_rt_sigreturn(struct lwp *, const struct linux32_sys_rt_sigreturn_args *, register_t *);
   1096 
   1097 int	linux32_sys_rt_sigaction(struct lwp *, const struct linux32_sys_rt_sigaction_args *, register_t *);
   1098 
   1099 int	linux32_sys_rt_sigprocmask(struct lwp *, const struct linux32_sys_rt_sigprocmask_args *, register_t *);
   1100 
   1101 int	linux32_sys_rt_sigpending(struct lwp *, const struct linux32_sys_rt_sigpending_args *, register_t *);
   1102 
   1103 int	linux32_sys_rt_queueinfo(struct lwp *, const struct linux32_sys_rt_queueinfo_args *, register_t *);
   1104 
   1105 int	linux32_sys_rt_sigsuspend(struct lwp *, const struct linux32_sys_rt_sigsuspend_args *, register_t *);
   1106 
   1107 int	linux32_sys_pread(struct lwp *, const struct linux32_sys_pread_args *, register_t *);
   1108 
   1109 int	linux32_sys_pwrite(struct lwp *, const struct linux32_sys_pwrite_args *, register_t *);
   1110 
   1111 int	linux32_sys_chown16(struct lwp *, const struct linux32_sys_chown16_args *, register_t *);
   1112 
   1113 int	netbsd32___getcwd(struct lwp *, const struct netbsd32___getcwd_args *, register_t *);
   1114 
   1115 int	sys___vfork14(struct lwp *, const void *, register_t *);
   1116 
   1117 int	linux32_sys_ugetrlimit(struct lwp *, const struct linux32_sys_ugetrlimit_args *, register_t *);
   1118 
   1119 int	linux32_sys_mmap2(struct lwp *, const struct linux32_sys_mmap2_args *, register_t *);
   1120 
   1121 int	linux32_sys_stat64(struct lwp *, const struct linux32_sys_stat64_args *, register_t *);
   1122 
   1123 int	linux32_sys_lstat64(struct lwp *, const struct linux32_sys_lstat64_args *, register_t *);
   1124 
   1125 int	linux32_sys_fstat64(struct lwp *, const struct linux32_sys_fstat64_args *, register_t *);
   1126 
   1127 int	netbsd32___posix_lchown(struct lwp *, const struct netbsd32___posix_lchown_args *, register_t *);
   1128 
   1129 int	netbsd32_setreuid(struct lwp *, const struct netbsd32_setreuid_args *, register_t *);
   1130 
   1131 int	netbsd32_setregid(struct lwp *, const struct netbsd32_setregid_args *, register_t *);
   1132 
   1133 int	netbsd32_getgroups(struct lwp *, const struct netbsd32_getgroups_args *, register_t *);
   1134 
   1135 int	netbsd32_setgroups(struct lwp *, const struct netbsd32_setgroups_args *, register_t *);
   1136 
   1137 int	netbsd32___posix_fchown(struct lwp *, const struct netbsd32___posix_fchown_args *, register_t *);
   1138 
   1139 int	linux32_sys_setresuid(struct lwp *, const struct linux32_sys_setresuid_args *, register_t *);
   1140 
   1141 int	linux32_sys_getresuid(struct lwp *, const struct linux32_sys_getresuid_args *, register_t *);
   1142 
   1143 int	linux32_sys_setresgid(struct lwp *, const struct linux32_sys_setresgid_args *, register_t *);
   1144 
   1145 int	linux32_sys_getresgid(struct lwp *, const struct linux32_sys_getresgid_args *, register_t *);
   1146 
   1147 int	netbsd32___posix_chown(struct lwp *, const struct netbsd32___posix_chown_args *, register_t *);
   1148 
   1149 int	netbsd32_mincore(struct lwp *, const struct netbsd32_mincore_args *, register_t *);
   1150 
   1151 int	netbsd32_madvise(struct lwp *, const struct netbsd32_madvise_args *, register_t *);
   1152 
   1153 int	linux32_sys_getdents64(struct lwp *, const struct linux32_sys_getdents64_args *, register_t *);
   1154 
   1155 #define linux32_sys_fcntl64 linux32_sys_fcntl
   1156 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
   1157 int	linux32_sys_fcntl64(struct lwp *, const struct linux32_sys_fcntl64_args *, register_t *);
   1158 
   1159 int	linux_sys_gettid(struct lwp *, const void *, register_t *);
   1160 
   1161 int	linux32_sys_tkill(struct lwp *, const struct linux32_sys_tkill_args *, register_t *);
   1162 
   1163 int	linux32_sys_futex(struct lwp *, const struct linux32_sys_futex_args *, register_t *);
   1164 
   1165 int	linux32_sys_sched_setaffinity(struct lwp *, const struct linux32_sys_sched_setaffinity_args *, register_t *);
   1166 
   1167 int	linux32_sys_sched_getaffinity(struct lwp *, const struct linux32_sys_sched_getaffinity_args *, register_t *);
   1168 
   1169 int	linux32_sys_set_thread_area(struct lwp *, const struct linux32_sys_set_thread_area_args *, register_t *);
   1170 
   1171 int	linux32_sys_get_thread_area(struct lwp *, const struct linux32_sys_get_thread_area_args *, register_t *);
   1172 
   1173 int	linux32_sys_exit_group(struct lwp *, const struct linux32_sys_exit_group_args *, register_t *);
   1174 
   1175 int	linux32_sys_set_tid_address(struct lwp *, const struct linux32_sys_set_tid_address_args *, register_t *);
   1176 
   1177 int	linux32_sys_clock_settime(struct lwp *, const struct linux32_sys_clock_settime_args *, register_t *);
   1178 
   1179 int	linux32_sys_clock_gettime(struct lwp *, const struct linux32_sys_clock_gettime_args *, register_t *);
   1180 
   1181 int	linux32_sys_clock_getres(struct lwp *, const struct linux32_sys_clock_getres_args *, register_t *);
   1182 
   1183 int	linux32_sys_clock_nanosleep(struct lwp *, const struct linux32_sys_clock_nanosleep_args *, register_t *);
   1184 
   1185 int	linux32_sys_tgkill(struct lwp *, const struct linux32_sys_tgkill_args *, register_t *);
   1186 
   1187 int	linux32_sys_set_robust_list(struct lwp *, const struct linux32_sys_set_robust_list_args *, register_t *);
   1188 
   1189 int	linux32_sys_get_robust_list(struct lwp *, const struct linux32_sys_get_robust_list_args *, register_t *);
   1190 
   1191 #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */
   1192