Home | History | Annotate | Line # | Download | only in amd64
linux32_syscallargs.h revision 1.48
      1 /* $NetBSD: linux32_syscallargs.h,v 1.48 2009/01/11 02:45:48 christos 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.44 2008/12/12 23:36:18 njoly 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 netbsd32_exit_args;
     35 
     36 struct netbsd32_read_args;
     37 
     38 struct netbsd32_write_args;
     39 
     40 struct linux32_sys_open_args {
     41 	syscallarg(netbsd32_charp) path;
     42 	syscallarg(int) flags;
     43 	syscallarg(int) mode;
     44 };
     45 check_syscall_args(linux32_sys_open)
     46 
     47 struct netbsd32_close_args;
     48 
     49 struct linux32_sys_waitpid_args {
     50 	syscallarg(int) pid;
     51 	syscallarg(netbsd32_intp) status;
     52 	syscallarg(int) options;
     53 };
     54 check_syscall_args(linux32_sys_waitpid)
     55 
     56 struct linux32_sys_creat_args {
     57 	syscallarg(netbsd32_charp) path;
     58 	syscallarg(int) mode;
     59 };
     60 check_syscall_args(linux32_sys_creat)
     61 
     62 struct netbsd32_link_args;
     63 
     64 struct linux32_sys_unlink_args {
     65 	syscallarg(netbsd32_charp) path;
     66 };
     67 check_syscall_args(linux32_sys_unlink)
     68 
     69 struct netbsd32_execve_args;
     70 
     71 struct netbsd32_chdir_args;
     72 
     73 struct linux32_sys_time_args {
     74 	syscallarg(linux32_timep_t) t;
     75 };
     76 check_syscall_args(linux32_sys_time)
     77 
     78 struct linux32_sys_mknod_args {
     79 	syscallarg(netbsd32_charp) path;
     80 	syscallarg(int) mode;
     81 	syscallarg(int) dev;
     82 };
     83 check_syscall_args(linux32_sys_mknod)
     84 
     85 struct netbsd32_chmod_args;
     86 
     87 struct linux32_sys_lchown16_args {
     88 	syscallarg(netbsd32_charp) path;
     89 	syscallarg(linux32_uid16_t) uid;
     90 	syscallarg(linux32_gid16_t) gid;
     91 };
     92 check_syscall_args(linux32_sys_lchown16)
     93 
     94 struct linux32_sys_break_args {
     95 	syscallarg(netbsd32_charp) nsize;
     96 };
     97 check_syscall_args(linux32_sys_break)
     98 
     99 struct compat_43_netbsd32_olseek_args;
    100 
    101 struct netbsd32_setuid_args;
    102 
    103 struct linux32_sys_stime_args {
    104 	syscallarg(linux32_timep_t) t;
    105 };
    106 check_syscall_args(linux32_sys_stime)
    107 
    108 struct linux32_sys_ptrace_args {
    109 	syscallarg(int) request;
    110 	syscallarg(int) pid;
    111 	syscallarg(int) addr;
    112 	syscallarg(int) data;
    113 };
    114 check_syscall_args(linux32_sys_ptrace)
    115 
    116 struct linux32_sys_alarm_args {
    117 	syscallarg(unsigned int) secs;
    118 };
    119 check_syscall_args(linux32_sys_alarm)
    120 
    121 struct linux32_sys_utime_args {
    122 	syscallarg(netbsd32_charp) path;
    123 	syscallarg(linux32_utimbufp_t) times;
    124 };
    125 check_syscall_args(linux32_sys_utime)
    126 
    127 struct netbsd32_access_args;
    128 
    129 struct linux32_sys_nice_args {
    130 	syscallarg(int) incr;
    131 };
    132 check_syscall_args(linux32_sys_nice)
    133 
    134 struct linux32_sys_kill_args {
    135 	syscallarg(int) pid;
    136 	syscallarg(int) signum;
    137 };
    138 check_syscall_args(linux32_sys_kill)
    139 
    140 struct netbsd32___posix_rename_args;
    141 
    142 struct netbsd32_mkdir_args;
    143 
    144 struct netbsd32_rmdir_args;
    145 
    146 struct netbsd32_dup_args;
    147 
    148 struct linux32_sys_pipe_args {
    149 	syscallarg(netbsd32_intp) fd;
    150 };
    151 check_syscall_args(linux32_sys_pipe)
    152 
    153 struct linux32_sys_times_args {
    154 	syscallarg(linux32_tmsp_t) tms;
    155 };
    156 check_syscall_args(linux32_sys_times)
    157 
    158 struct linux32_sys_brk_args {
    159 	syscallarg(netbsd32_charp) nsize;
    160 };
    161 check_syscall_args(linux32_sys_brk)
    162 
    163 struct netbsd32_setgid_args;
    164 
    165 struct linux32_sys_signal_args {
    166 	syscallarg(int) signum;
    167 	syscallarg(linux32_handler_t) handler;
    168 };
    169 check_syscall_args(linux32_sys_signal)
    170 
    171 struct netbsd32_acct_args;
    172 
    173 struct linux32_sys_ioctl_args {
    174 	syscallarg(int) fd;
    175 	syscallarg(netbsd32_u_long) com;
    176 	syscallarg(netbsd32_charp) data;
    177 };
    178 check_syscall_args(linux32_sys_ioctl)
    179 
    180 struct linux32_sys_fcntl_args {
    181 	syscallarg(int) fd;
    182 	syscallarg(int) cmd;
    183 	syscallarg(netbsd32_voidp) arg;
    184 };
    185 check_syscall_args(linux32_sys_fcntl)
    186 
    187 struct netbsd32_setpgid_args;
    188 
    189 struct linux32_sys_oldolduname_args {
    190 	syscallarg(linux32_oldold_utsnamep_t) up;
    191 };
    192 check_syscall_args(linux32_sys_oldolduname)
    193 
    194 struct netbsd32_umask_args;
    195 
    196 struct netbsd32_chroot_args;
    197 
    198 struct netbsd32_dup2_args;
    199 
    200 struct linux32_sys_setreuid16_args {
    201 	syscallarg(linux32_uid16_t) ruid;
    202 	syscallarg(linux32_uid16_t) euid;
    203 };
    204 check_syscall_args(linux32_sys_setreuid16)
    205 
    206 struct linux32_sys_setregid16_args {
    207 	syscallarg(linux32_gid16_t) rgid;
    208 	syscallarg(linux32_gid16_t) egid;
    209 };
    210 check_syscall_args(linux32_sys_setregid16)
    211 
    212 struct compat_43_netbsd32_osethostname_args;
    213 
    214 struct linux32_sys_setrlimit_args {
    215 	syscallarg(u_int) which;
    216 	syscallarg(netbsd32_orlimitp_t) rlp;
    217 };
    218 check_syscall_args(linux32_sys_setrlimit)
    219 
    220 struct linux32_sys_getrlimit_args {
    221 	syscallarg(u_int) which;
    222 	syscallarg(netbsd32_orlimitp_t) rlp;
    223 };
    224 check_syscall_args(linux32_sys_getrlimit)
    225 
    226 struct compat_50_netbsd32_getrusage_args;
    227 
    228 struct linux32_sys_gettimeofday_args {
    229 	syscallarg(netbsd32_timevalp_t) tp;
    230 	syscallarg(netbsd32_timezonep_t) tzp;
    231 };
    232 check_syscall_args(linux32_sys_gettimeofday)
    233 
    234 struct linux32_sys_settimeofday_args {
    235 	syscallarg(netbsd32_timevalp_t) tp;
    236 	syscallarg(netbsd32_timezonep_t) tzp;
    237 };
    238 check_syscall_args(linux32_sys_settimeofday)
    239 
    240 struct linux32_sys_getgroups16_args {
    241 	syscallarg(int) gidsetsize;
    242 	syscallarg(linux32_gid16p_t) gidset;
    243 };
    244 check_syscall_args(linux32_sys_getgroups16)
    245 
    246 struct linux32_sys_setgroups16_args {
    247 	syscallarg(int) gidsetsize;
    248 	syscallarg(linux32_gid16p_t) gidset;
    249 };
    250 check_syscall_args(linux32_sys_setgroups16)
    251 
    252 struct linux32_sys_oldselect_args {
    253 	syscallarg(linux32_oldselectp_t) lsp;
    254 };
    255 check_syscall_args(linux32_sys_oldselect)
    256 
    257 struct netbsd32_symlink_args;
    258 
    259 struct compat_43_netbsd32_lstat43_args;
    260 
    261 struct netbsd32_readlink_args;
    262 
    263 struct linux32_sys_swapon_args {
    264 	syscallarg(netbsd32_charp) name;
    265 };
    266 check_syscall_args(linux32_sys_swapon)
    267 
    268 struct linux32_sys_reboot_args {
    269 	syscallarg(int) magic1;
    270 	syscallarg(int) magic2;
    271 	syscallarg(int) cmd;
    272 	syscallarg(netbsd32_voidp) arg;
    273 };
    274 check_syscall_args(linux32_sys_reboot)
    275 
    276 struct linux32_sys_readdir_args {
    277 	syscallarg(int) fd;
    278 	syscallarg(netbsd32_voidp) dent;
    279 	syscallarg(unsigned int) count;
    280 };
    281 check_syscall_args(linux32_sys_readdir)
    282 
    283 struct linux32_sys_old_mmap_args {
    284 	syscallarg(linux32_oldmmapp) lmp;
    285 };
    286 check_syscall_args(linux32_sys_old_mmap)
    287 
    288 struct netbsd32_munmap_args;
    289 
    290 struct compat_43_netbsd32_otruncate_args;
    291 
    292 struct compat_43_netbsd32_oftruncate_args;
    293 
    294 struct netbsd32_fchmod_args;
    295 
    296 struct linux32_sys_fchown16_args {
    297 	syscallarg(int) fd;
    298 	syscallarg(linux32_uid16_t) uid;
    299 	syscallarg(linux32_gid16_t) gid;
    300 };
    301 check_syscall_args(linux32_sys_fchown16)
    302 
    303 struct linux32_sys_getpriority_args {
    304 	syscallarg(int) which;
    305 	syscallarg(int) who;
    306 };
    307 check_syscall_args(linux32_sys_getpriority)
    308 
    309 struct netbsd32_setpriority_args;
    310 
    311 struct linux32_sys_statfs_args {
    312 	syscallarg(netbsd32_charp) path;
    313 	syscallarg(linux32_statfsp) sp;
    314 };
    315 check_syscall_args(linux32_sys_statfs)
    316 
    317 struct linux32_sys_socketcall_args {
    318 	syscallarg(int) what;
    319 	syscallarg(netbsd32_voidp) args;
    320 };
    321 check_syscall_args(linux32_sys_socketcall)
    322 
    323 struct compat_50_netbsd32_setitimer_args;
    324 
    325 struct compat_50_netbsd32_getitimer_args;
    326 
    327 struct linux32_sys_olduname_args {
    328 	syscallarg(linux32_oldutsnamep_t) up;
    329 };
    330 check_syscall_args(linux32_sys_olduname)
    331 
    332 struct linux32_sys_wait4_args {
    333 	syscallarg(int) pid;
    334 	syscallarg(netbsd32_intp) status;
    335 	syscallarg(int) options;
    336 	syscallarg(netbsd32_rusagep_t) rusage;
    337 };
    338 check_syscall_args(linux32_sys_wait4)
    339 
    340 struct linux32_sys_swapoff_args {
    341 	syscallarg(netbsd32_charp) path;
    342 };
    343 check_syscall_args(linux32_sys_swapoff)
    344 
    345 struct linux32_sys_sysinfo_args {
    346 	syscallarg(linux32_sysinfop_t) arg;
    347 };
    348 check_syscall_args(linux32_sys_sysinfo)
    349 
    350 struct linux32_sys_ipc_args {
    351 	syscallarg(int) what;
    352 	syscallarg(int) a1;
    353 	syscallarg(int) a2;
    354 	syscallarg(int) a3;
    355 	syscallarg(netbsd32_voidp) ptr;
    356 };
    357 check_syscall_args(linux32_sys_ipc)
    358 
    359 struct netbsd32_fsync_args;
    360 
    361 struct linux32_sys_sigreturn_args {
    362 	syscallarg(linux32_sigcontextp_t) scp;
    363 };
    364 check_syscall_args(linux32_sys_sigreturn)
    365 
    366 struct linux32_sys_clone_args {
    367 	syscallarg(int) flags;
    368 	syscallarg(netbsd32_voidp) stack;
    369 };
    370 check_syscall_args(linux32_sys_clone)
    371 
    372 struct linux32_sys_uname_args {
    373 	syscallarg(linux32_utsnamep) up;
    374 };
    375 check_syscall_args(linux32_sys_uname)
    376 
    377 struct linux32_sys_mprotect_args {
    378 	syscallarg(netbsd32_voidp) start;
    379 	syscallarg(netbsd32_size_t) len;
    380 	syscallarg(int) prot;
    381 };
    382 check_syscall_args(linux32_sys_mprotect)
    383 
    384 struct netbsd32_getpgid_args;
    385 
    386 struct netbsd32_fchdir_args;
    387 
    388 struct linux32_sys_setfsuid_args;
    389 
    390 struct linux32_sys_setfsgid_args;
    391 
    392 struct linux32_sys_llseek_args {
    393 	syscallarg(int) fd;
    394 	syscallarg(u_int32_t) ohigh;
    395 	syscallarg(u_int32_t) olow;
    396 	syscallarg(netbsd32_voidp) res;
    397 	syscallarg(int) whence;
    398 };
    399 check_syscall_args(linux32_sys_llseek)
    400 
    401 struct linux32_sys_getdents_args {
    402 	syscallarg(int) fd;
    403 	syscallarg(linux32_direntp_t) dent;
    404 	syscallarg(unsigned int) count;
    405 };
    406 check_syscall_args(linux32_sys_getdents)
    407 
    408 struct linux32_sys_select_args {
    409 	syscallarg(int) nfds;
    410 	syscallarg(netbsd32_fd_setp_t) readfds;
    411 	syscallarg(netbsd32_fd_setp_t) writefds;
    412 	syscallarg(netbsd32_fd_setp_t) exceptfds;
    413 	syscallarg(netbsd32_timevalp_t) timeout;
    414 };
    415 check_syscall_args(linux32_sys_select)
    416 
    417 struct netbsd32_flock_args;
    418 
    419 struct netbsd32___msync13_args;
    420 
    421 struct netbsd32_readv_args;
    422 
    423 struct netbsd32_writev_args;
    424 
    425 struct netbsd32_getsid_args;
    426 
    427 struct linux32_sys_fdatasync_args {
    428 	syscallarg(int) fd;
    429 };
    430 check_syscall_args(linux32_sys_fdatasync)
    431 
    432 struct linux32_sys___sysctl_args {
    433 	syscallarg(linux32___sysctlp_t) lsp;
    434 };
    435 check_syscall_args(linux32_sys___sysctl)
    436 
    437 struct netbsd32_mlock_args;
    438 
    439 struct netbsd32_munlock_args;
    440 
    441 struct netbsd32_mlockall_args;
    442 
    443 struct linux32_sys_sched_getparam_args {
    444 	syscallarg(pid_t) pid;
    445 	syscallarg(linux32_sched_paramp_t) sp;
    446 };
    447 check_syscall_args(linux32_sys_sched_getparam)
    448 
    449 struct linux32_sys_sched_setscheduler_args {
    450 	syscallarg(pid_t) pid;
    451 	syscallarg(int) policy;
    452 	syscallarg(linux32_sched_paramp_t) sp;
    453 };
    454 check_syscall_args(linux32_sys_sched_setscheduler)
    455 
    456 struct linux32_sys_sched_getscheduler_args {
    457 	syscallarg(pid_t) pid;
    458 };
    459 check_syscall_args(linux32_sys_sched_getscheduler)
    460 
    461 struct linux32_sys_sched_get_priority_max_args {
    462 	syscallarg(int) policy;
    463 };
    464 check_syscall_args(linux32_sys_sched_get_priority_max)
    465 
    466 struct linux32_sys_sched_get_priority_min_args {
    467 	syscallarg(int) policy;
    468 };
    469 check_syscall_args(linux32_sys_sched_get_priority_min)
    470 
    471 struct linux32_sys_nanosleep_args {
    472 	syscallarg(linux32_timespecp_t) rqtp;
    473 	syscallarg(linux32_timespecp_t) rmtp;
    474 };
    475 check_syscall_args(linux32_sys_nanosleep)
    476 
    477 struct linux32_sys_mremap_args {
    478 	syscallarg(netbsd32_voidp) old_address;
    479 	syscallarg(netbsd32_size_t) old_size;
    480 	syscallarg(netbsd32_size_t) new_size;
    481 	syscallarg(netbsd32_u_long) flags;
    482 };
    483 check_syscall_args(linux32_sys_mremap)
    484 
    485 struct linux32_sys_setresuid16_args {
    486 	syscallarg(linux32_uid16_t) ruid;
    487 	syscallarg(linux32_uid16_t) euid;
    488 	syscallarg(linux32_uid16_t) suid;
    489 };
    490 check_syscall_args(linux32_sys_setresuid16)
    491 
    492 struct linux32_sys_getresuid16_args {
    493 	syscallarg(linux32_uid16p_t) ruid;
    494 	syscallarg(linux32_uid16p_t) euid;
    495 	syscallarg(linux32_uid16p_t) suid;
    496 };
    497 check_syscall_args(linux32_sys_getresuid16)
    498 
    499 struct netbsd32_poll_args;
    500 
    501 struct linux32_sys_setresgid16_args {
    502 	syscallarg(linux32_gid16_t) rgid;
    503 	syscallarg(linux32_gid16_t) egid;
    504 	syscallarg(linux32_gid16_t) sgid;
    505 };
    506 check_syscall_args(linux32_sys_setresgid16)
    507 
    508 struct linux32_sys_getresgid16_args {
    509 	syscallarg(linux32_gid16p_t) rgid;
    510 	syscallarg(linux32_gid16p_t) egid;
    511 	syscallarg(linux32_gid16p_t) sgid;
    512 };
    513 check_syscall_args(linux32_sys_getresgid16)
    514 
    515 struct linux32_sys_rt_sigreturn_args {
    516 	syscallarg(linux32_ucontextp_t) ucp;
    517 };
    518 check_syscall_args(linux32_sys_rt_sigreturn)
    519 
    520 struct linux32_sys_rt_sigaction_args {
    521 	syscallarg(int) signum;
    522 	syscallarg(linux32_sigactionp_t) nsa;
    523 	syscallarg(linux32_sigactionp_t) osa;
    524 	syscallarg(netbsd32_size_t) sigsetsize;
    525 };
    526 check_syscall_args(linux32_sys_rt_sigaction)
    527 
    528 struct linux32_sys_rt_sigprocmask_args {
    529 	syscallarg(int) how;
    530 	syscallarg(linux32_sigsetp_t) set;
    531 	syscallarg(linux32_sigsetp_t) oset;
    532 	syscallarg(netbsd32_size_t) sigsetsize;
    533 };
    534 check_syscall_args(linux32_sys_rt_sigprocmask)
    535 
    536 struct linux32_sys_rt_sigpending_args {
    537 	syscallarg(linux32_sigsetp_t) set;
    538 	syscallarg(netbsd32_size_t) sigsetsize;
    539 };
    540 check_syscall_args(linux32_sys_rt_sigpending)
    541 
    542 struct linux32_sys_rt_sigsuspend_args {
    543 	syscallarg(linux32_sigsetp_t) unewset;
    544 	syscallarg(netbsd32_size_t) sigsetsize;
    545 };
    546 check_syscall_args(linux32_sys_rt_sigsuspend)
    547 
    548 struct linux32_sys_pread_args {
    549 	syscallarg(int) fd;
    550 	syscallarg(netbsd32_voidp) buf;
    551 	syscallarg(netbsd32_size_t) nbyte;
    552 	syscallarg(linux32_off_t) offset;
    553 };
    554 check_syscall_args(linux32_sys_pread)
    555 
    556 struct linux32_sys_pwrite_args {
    557 	syscallarg(int) fd;
    558 	syscallarg(netbsd32_voidp) buf;
    559 	syscallarg(netbsd32_size_t) nbyte;
    560 	syscallarg(linux32_off_t) offset;
    561 };
    562 check_syscall_args(linux32_sys_pwrite)
    563 
    564 struct linux32_sys_chown16_args {
    565 	syscallarg(netbsd32_charp) path;
    566 	syscallarg(linux32_uid16_t) uid;
    567 	syscallarg(linux32_gid16_t) gid;
    568 };
    569 check_syscall_args(linux32_sys_chown16)
    570 
    571 struct netbsd32___getcwd_args;
    572 
    573 struct linux32_sys_ugetrlimit_args {
    574 	syscallarg(int) which;
    575 	syscallarg(netbsd32_orlimitp_t) rlp;
    576 };
    577 check_syscall_args(linux32_sys_ugetrlimit)
    578 
    579 struct linux32_sys_mmap2_args {
    580 	syscallarg(netbsd32_u_long) addr;
    581 	syscallarg(netbsd32_size_t) len;
    582 	syscallarg(int) prot;
    583 	syscallarg(int) flags;
    584 	syscallarg(int) fd;
    585 	syscallarg(linux32_off_t) offset;
    586 };
    587 check_syscall_args(linux32_sys_mmap2)
    588 
    589 struct linux32_sys_stat64_args {
    590 	syscallarg(netbsd32_charp) path;
    591 	syscallarg(linux32_stat64p) sp;
    592 };
    593 check_syscall_args(linux32_sys_stat64)
    594 
    595 struct linux32_sys_lstat64_args {
    596 	syscallarg(netbsd32_charp) path;
    597 	syscallarg(linux32_stat64p) sp;
    598 };
    599 check_syscall_args(linux32_sys_lstat64)
    600 
    601 struct linux32_sys_fstat64_args {
    602 	syscallarg(int) fd;
    603 	syscallarg(linux32_stat64p) sp;
    604 };
    605 check_syscall_args(linux32_sys_fstat64)
    606 
    607 struct netbsd32___posix_lchown_args;
    608 
    609 struct netbsd32_setreuid_args;
    610 
    611 struct netbsd32_setregid_args;
    612 
    613 struct netbsd32_getgroups_args;
    614 
    615 struct netbsd32_setgroups_args;
    616 
    617 struct netbsd32___posix_fchown_args;
    618 
    619 struct linux32_sys_setresuid_args {
    620 	syscallarg(uid_t) ruid;
    621 	syscallarg(uid_t) euid;
    622 	syscallarg(uid_t) suid;
    623 };
    624 check_syscall_args(linux32_sys_setresuid)
    625 
    626 struct linux32_sys_getresuid_args {
    627 	syscallarg(linux32_uidp_t) ruid;
    628 	syscallarg(linux32_uidp_t) euid;
    629 	syscallarg(linux32_uidp_t) suid;
    630 };
    631 check_syscall_args(linux32_sys_getresuid)
    632 
    633 struct linux32_sys_setresgid_args {
    634 	syscallarg(gid_t) rgid;
    635 	syscallarg(gid_t) egid;
    636 	syscallarg(gid_t) sgid;
    637 };
    638 check_syscall_args(linux32_sys_setresgid)
    639 
    640 struct linux32_sys_getresgid_args {
    641 	syscallarg(linux32_gidp_t) rgid;
    642 	syscallarg(linux32_gidp_t) egid;
    643 	syscallarg(linux32_gidp_t) sgid;
    644 };
    645 check_syscall_args(linux32_sys_getresgid)
    646 
    647 struct netbsd32___posix_chown_args;
    648 
    649 struct netbsd32_setuid_args;
    650 
    651 struct netbsd32_setgid_args;
    652 
    653 struct linux32_sys_setfsuid_args {
    654 	syscallarg(uid_t) uid;
    655 };
    656 check_syscall_args(linux32_sys_setfsuid)
    657 
    658 struct linux32_sys_setfsgid_args {
    659 	syscallarg(gid_t) gid;
    660 };
    661 check_syscall_args(linux32_sys_setfsgid)
    662 
    663 struct netbsd32_madvise_args;
    664 
    665 struct linux32_sys_getdents64_args {
    666 	syscallarg(int) fd;
    667 	syscallarg(linux32_dirent64p_t) dent;
    668 	syscallarg(unsigned int) count;
    669 };
    670 check_syscall_args(linux32_sys_getdents64)
    671 #define linux32_sys_fcntl64 linux32_sys_fcntl
    672 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
    673 
    674 struct linux32_sys_fcntl64_args;
    675 
    676 struct linux32_sys_exit_group_args {
    677 	syscallarg(int) error_code;
    678 };
    679 check_syscall_args(linux32_sys_exit_group)
    680 
    681 struct linux32_sys_clock_settime_args {
    682 	syscallarg(clockid_t) which;
    683 	syscallarg(linux32_timespecp_t) tp;
    684 };
    685 check_syscall_args(linux32_sys_clock_settime)
    686 
    687 struct linux32_sys_clock_gettime_args {
    688 	syscallarg(clockid_t) which;
    689 	syscallarg(linux32_timespecp_t) tp;
    690 };
    691 check_syscall_args(linux32_sys_clock_gettime)
    692 
    693 struct linux32_sys_clock_getres_args {
    694 	syscallarg(clockid_t) which;
    695 	syscallarg(linux32_timespecp_t) tp;
    696 };
    697 check_syscall_args(linux32_sys_clock_getres)
    698 
    699 struct linux32_sys_clock_nanosleep_args {
    700 	syscallarg(clockid_t) which;
    701 	syscallarg(int) flags;
    702 	syscallarg(linux32_timespecp_t) rqtp;
    703 	syscallarg(linux32_timespecp_t) rmtp;
    704 };
    705 check_syscall_args(linux32_sys_clock_nanosleep)
    706 
    707 /*
    708  * System call prototypes.
    709  */
    710 
    711 int	linux_sys_nosys(struct lwp *, const void *, register_t *);
    712 
    713 int	netbsd32_exit(struct lwp *, const struct netbsd32_exit_args *, register_t *);
    714 
    715 int	sys_fork(struct lwp *, const void *, register_t *);
    716 
    717 int	netbsd32_read(struct lwp *, const struct netbsd32_read_args *, register_t *);
    718 
    719 int	netbsd32_write(struct lwp *, const struct netbsd32_write_args *, register_t *);
    720 
    721 int	linux32_sys_open(struct lwp *, const struct linux32_sys_open_args *, register_t *);
    722 
    723 int	netbsd32_close(struct lwp *, const struct netbsd32_close_args *, register_t *);
    724 
    725 int	linux32_sys_waitpid(struct lwp *, const struct linux32_sys_waitpid_args *, register_t *);
    726 
    727 int	linux32_sys_creat(struct lwp *, const struct linux32_sys_creat_args *, register_t *);
    728 
    729 int	netbsd32_link(struct lwp *, const struct netbsd32_link_args *, register_t *);
    730 
    731 int	linux32_sys_unlink(struct lwp *, const struct linux32_sys_unlink_args *, register_t *);
    732 
    733 int	netbsd32_execve(struct lwp *, const struct netbsd32_execve_args *, register_t *);
    734 
    735 int	netbsd32_chdir(struct lwp *, const struct netbsd32_chdir_args *, register_t *);
    736 
    737 int	linux32_sys_time(struct lwp *, const struct linux32_sys_time_args *, register_t *);
    738 
    739 int	linux32_sys_mknod(struct lwp *, const struct linux32_sys_mknod_args *, register_t *);
    740 
    741 int	netbsd32_chmod(struct lwp *, const struct netbsd32_chmod_args *, register_t *);
    742 
    743 int	linux32_sys_lchown16(struct lwp *, const struct linux32_sys_lchown16_args *, register_t *);
    744 
    745 int	linux32_sys_break(struct lwp *, const struct linux32_sys_break_args *, register_t *);
    746 
    747 int	compat_43_netbsd32_olseek(struct lwp *, const struct compat_43_netbsd32_olseek_args *, register_t *);
    748 
    749 int	linux_sys_getpid(struct lwp *, const void *, register_t *);
    750 
    751 int	netbsd32_setuid(struct lwp *, const struct netbsd32_setuid_args *, register_t *);
    752 
    753 int	sys_getuid(struct lwp *, const void *, register_t *);
    754 
    755 int	linux32_sys_stime(struct lwp *, const struct linux32_sys_stime_args *, register_t *);
    756 
    757 int	linux32_sys_ptrace(struct lwp *, const struct linux32_sys_ptrace_args *, register_t *);
    758 
    759 int	linux32_sys_alarm(struct lwp *, const struct linux32_sys_alarm_args *, register_t *);
    760 
    761 int	linux_sys_pause(struct lwp *, const void *, register_t *);
    762 
    763 int	linux32_sys_utime(struct lwp *, const struct linux32_sys_utime_args *, register_t *);
    764 
    765 int	netbsd32_access(struct lwp *, const struct netbsd32_access_args *, register_t *);
    766 
    767 int	linux32_sys_nice(struct lwp *, const struct linux32_sys_nice_args *, register_t *);
    768 
    769 int	sys_sync(struct lwp *, const void *, register_t *);
    770 
    771 int	linux32_sys_kill(struct lwp *, const struct linux32_sys_kill_args *, register_t *);
    772 
    773 int	netbsd32___posix_rename(struct lwp *, const struct netbsd32___posix_rename_args *, register_t *);
    774 
    775 int	netbsd32_mkdir(struct lwp *, const struct netbsd32_mkdir_args *, register_t *);
    776 
    777 int	netbsd32_rmdir(struct lwp *, const struct netbsd32_rmdir_args *, register_t *);
    778 
    779 int	netbsd32_dup(struct lwp *, const struct netbsd32_dup_args *, register_t *);
    780 
    781 int	linux32_sys_pipe(struct lwp *, const struct linux32_sys_pipe_args *, register_t *);
    782 
    783 int	linux32_sys_times(struct lwp *, const struct linux32_sys_times_args *, register_t *);
    784 
    785 int	linux32_sys_brk(struct lwp *, const struct linux32_sys_brk_args *, register_t *);
    786 
    787 int	netbsd32_setgid(struct lwp *, const struct netbsd32_setgid_args *, register_t *);
    788 
    789 int	sys_getgid(struct lwp *, const void *, register_t *);
    790 
    791 int	linux32_sys_signal(struct lwp *, const struct linux32_sys_signal_args *, register_t *);
    792 
    793 int	sys_geteuid(struct lwp *, const void *, register_t *);
    794 
    795 int	sys_getegid(struct lwp *, const void *, register_t *);
    796 
    797 int	netbsd32_acct(struct lwp *, const struct netbsd32_acct_args *, register_t *);
    798 
    799 int	linux32_sys_ioctl(struct lwp *, const struct linux32_sys_ioctl_args *, register_t *);
    800 
    801 int	linux32_sys_fcntl(struct lwp *, const struct linux32_sys_fcntl_args *, register_t *);
    802 
    803 int	netbsd32_setpgid(struct lwp *, const struct netbsd32_setpgid_args *, register_t *);
    804 
    805 int	linux32_sys_oldolduname(struct lwp *, const struct linux32_sys_oldolduname_args *, register_t *);
    806 
    807 int	netbsd32_umask(struct lwp *, const struct netbsd32_umask_args *, register_t *);
    808 
    809 int	netbsd32_chroot(struct lwp *, const struct netbsd32_chroot_args *, register_t *);
    810 
    811 int	netbsd32_dup2(struct lwp *, const struct netbsd32_dup2_args *, register_t *);
    812 
    813 int	linux_sys_getppid(struct lwp *, const void *, register_t *);
    814 
    815 int	sys_getpgrp(struct lwp *, const void *, register_t *);
    816 
    817 int	sys_setsid(struct lwp *, const void *, register_t *);
    818 
    819 int	linux32_sys_setreuid16(struct lwp *, const struct linux32_sys_setreuid16_args *, register_t *);
    820 
    821 int	linux32_sys_setregid16(struct lwp *, const struct linux32_sys_setregid16_args *, register_t *);
    822 
    823 int	compat_43_netbsd32_osethostname(struct lwp *, const struct compat_43_netbsd32_osethostname_args *, register_t *);
    824 
    825 int	linux32_sys_setrlimit(struct lwp *, const struct linux32_sys_setrlimit_args *, register_t *);
    826 
    827 int	linux32_sys_getrlimit(struct lwp *, const struct linux32_sys_getrlimit_args *, register_t *);
    828 
    829 int	compat_50_netbsd32_getrusage(struct lwp *, const struct compat_50_netbsd32_getrusage_args *, register_t *);
    830 
    831 int	linux32_sys_gettimeofday(struct lwp *, const struct linux32_sys_gettimeofday_args *, register_t *);
    832 
    833 int	linux32_sys_settimeofday(struct lwp *, const struct linux32_sys_settimeofday_args *, register_t *);
    834 
    835 int	linux32_sys_getgroups16(struct lwp *, const struct linux32_sys_getgroups16_args *, register_t *);
    836 
    837 int	linux32_sys_setgroups16(struct lwp *, const struct linux32_sys_setgroups16_args *, register_t *);
    838 
    839 int	linux32_sys_oldselect(struct lwp *, const struct linux32_sys_oldselect_args *, register_t *);
    840 
    841 int	netbsd32_symlink(struct lwp *, const struct netbsd32_symlink_args *, register_t *);
    842 
    843 int	compat_43_netbsd32_lstat43(struct lwp *, const struct compat_43_netbsd32_lstat43_args *, register_t *);
    844 
    845 int	netbsd32_readlink(struct lwp *, const struct netbsd32_readlink_args *, register_t *);
    846 
    847 int	linux32_sys_swapon(struct lwp *, const struct linux32_sys_swapon_args *, register_t *);
    848 
    849 int	linux32_sys_reboot(struct lwp *, const struct linux32_sys_reboot_args *, register_t *);
    850 
    851 int	linux32_sys_readdir(struct lwp *, const struct linux32_sys_readdir_args *, register_t *);
    852 
    853 int	linux32_sys_old_mmap(struct lwp *, const struct linux32_sys_old_mmap_args *, register_t *);
    854 
    855 int	netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *);
    856 
    857 int	compat_43_netbsd32_otruncate(struct lwp *, const struct compat_43_netbsd32_otruncate_args *, register_t *);
    858 
    859 int	compat_43_netbsd32_oftruncate(struct lwp *, const struct compat_43_netbsd32_oftruncate_args *, register_t *);
    860 
    861 int	netbsd32_fchmod(struct lwp *, const struct netbsd32_fchmod_args *, register_t *);
    862 
    863 int	linux32_sys_fchown16(struct lwp *, const struct linux32_sys_fchown16_args *, register_t *);
    864 
    865 int	linux32_sys_getpriority(struct lwp *, const struct linux32_sys_getpriority_args *, register_t *);
    866 
    867 int	netbsd32_setpriority(struct lwp *, const struct netbsd32_setpriority_args *, register_t *);
    868 
    869 int	linux32_sys_statfs(struct lwp *, const struct linux32_sys_statfs_args *, register_t *);
    870 
    871 int	linux32_sys_socketcall(struct lwp *, const struct linux32_sys_socketcall_args *, register_t *);
    872 
    873 int	compat_50_netbsd32_setitimer(struct lwp *, const struct compat_50_netbsd32_setitimer_args *, register_t *);
    874 
    875 int	compat_50_netbsd32_getitimer(struct lwp *, const struct compat_50_netbsd32_getitimer_args *, register_t *);
    876 
    877 int	linux32_sys_olduname(struct lwp *, const struct linux32_sys_olduname_args *, register_t *);
    878 
    879 int	linux32_sys_wait4(struct lwp *, const struct linux32_sys_wait4_args *, register_t *);
    880 
    881 int	linux32_sys_swapoff(struct lwp *, const struct linux32_sys_swapoff_args *, register_t *);
    882 
    883 int	linux32_sys_sysinfo(struct lwp *, const struct linux32_sys_sysinfo_args *, register_t *);
    884 
    885 int	linux32_sys_ipc(struct lwp *, const struct linux32_sys_ipc_args *, register_t *);
    886 
    887 int	netbsd32_fsync(struct lwp *, const struct netbsd32_fsync_args *, register_t *);
    888 
    889 int	linux32_sys_sigreturn(struct lwp *, const struct linux32_sys_sigreturn_args *, register_t *);
    890 
    891 int	linux32_sys_clone(struct lwp *, const struct linux32_sys_clone_args *, register_t *);
    892 
    893 int	linux32_sys_uname(struct lwp *, const struct linux32_sys_uname_args *, register_t *);
    894 
    895 int	linux32_sys_mprotect(struct lwp *, const struct linux32_sys_mprotect_args *, register_t *);
    896 
    897 int	netbsd32_getpgid(struct lwp *, const struct netbsd32_getpgid_args *, register_t *);
    898 
    899 int	netbsd32_fchdir(struct lwp *, const struct netbsd32_fchdir_args *, register_t *);
    900 
    901 int	linux32_sys_setfsuid(struct lwp *, const struct linux32_sys_setfsuid_args *, register_t *);
    902 
    903 int	linux32_sys_setfsgid(struct lwp *, const struct linux32_sys_setfsgid_args *, register_t *);
    904 
    905 int	linux32_sys_llseek(struct lwp *, const struct linux32_sys_llseek_args *, register_t *);
    906 
    907 int	linux32_sys_getdents(struct lwp *, const struct linux32_sys_getdents_args *, register_t *);
    908 
    909 int	linux32_sys_select(struct lwp *, const struct linux32_sys_select_args *, register_t *);
    910 
    911 int	netbsd32_flock(struct lwp *, const struct netbsd32_flock_args *, register_t *);
    912 
    913 int	netbsd32___msync13(struct lwp *, const struct netbsd32___msync13_args *, register_t *);
    914 
    915 int	netbsd32_readv(struct lwp *, const struct netbsd32_readv_args *, register_t *);
    916 
    917 int	netbsd32_writev(struct lwp *, const struct netbsd32_writev_args *, register_t *);
    918 
    919 int	netbsd32_getsid(struct lwp *, const struct netbsd32_getsid_args *, register_t *);
    920 
    921 int	linux32_sys_fdatasync(struct lwp *, const struct linux32_sys_fdatasync_args *, register_t *);
    922 
    923 int	linux32_sys___sysctl(struct lwp *, const struct linux32_sys___sysctl_args *, register_t *);
    924 
    925 int	netbsd32_mlock(struct lwp *, const struct netbsd32_mlock_args *, register_t *);
    926 
    927 int	netbsd32_munlock(struct lwp *, const struct netbsd32_munlock_args *, register_t *);
    928 
    929 int	netbsd32_mlockall(struct lwp *, const struct netbsd32_mlockall_args *, register_t *);
    930 
    931 int	sys_munlockall(struct lwp *, const void *, register_t *);
    932 
    933 int	linux32_sys_sched_getparam(struct lwp *, const struct linux32_sys_sched_getparam_args *, register_t *);
    934 
    935 int	linux32_sys_sched_setscheduler(struct lwp *, const struct linux32_sys_sched_setscheduler_args *, register_t *);
    936 
    937 int	linux32_sys_sched_getscheduler(struct lwp *, const struct linux32_sys_sched_getscheduler_args *, register_t *);
    938 
    939 int	linux_sys_sched_yield(struct lwp *, const void *, register_t *);
    940 
    941 int	linux32_sys_sched_get_priority_max(struct lwp *, const struct linux32_sys_sched_get_priority_max_args *, register_t *);
    942 
    943 int	linux32_sys_sched_get_priority_min(struct lwp *, const struct linux32_sys_sched_get_priority_min_args *, register_t *);
    944 
    945 int	linux32_sys_nanosleep(struct lwp *, const struct linux32_sys_nanosleep_args *, register_t *);
    946 
    947 int	linux32_sys_mremap(struct lwp *, const struct linux32_sys_mremap_args *, register_t *);
    948 
    949 int	linux32_sys_setresuid16(struct lwp *, const struct linux32_sys_setresuid16_args *, register_t *);
    950 
    951 int	linux32_sys_getresuid16(struct lwp *, const struct linux32_sys_getresuid16_args *, register_t *);
    952 
    953 int	netbsd32_poll(struct lwp *, const struct netbsd32_poll_args *, register_t *);
    954 
    955 int	linux32_sys_setresgid16(struct lwp *, const struct linux32_sys_setresgid16_args *, register_t *);
    956 
    957 int	linux32_sys_getresgid16(struct lwp *, const struct linux32_sys_getresgid16_args *, register_t *);
    958 
    959 int	linux32_sys_rt_sigreturn(struct lwp *, const struct linux32_sys_rt_sigreturn_args *, register_t *);
    960 
    961 int	linux32_sys_rt_sigaction(struct lwp *, const struct linux32_sys_rt_sigaction_args *, register_t *);
    962 
    963 int	linux32_sys_rt_sigprocmask(struct lwp *, const struct linux32_sys_rt_sigprocmask_args *, register_t *);
    964 
    965 int	linux32_sys_rt_sigpending(struct lwp *, const struct linux32_sys_rt_sigpending_args *, register_t *);
    966 
    967 int	linux32_sys_rt_sigsuspend(struct lwp *, const struct linux32_sys_rt_sigsuspend_args *, register_t *);
    968 
    969 int	linux32_sys_pread(struct lwp *, const struct linux32_sys_pread_args *, register_t *);
    970 
    971 int	linux32_sys_pwrite(struct lwp *, const struct linux32_sys_pwrite_args *, register_t *);
    972 
    973 int	linux32_sys_chown16(struct lwp *, const struct linux32_sys_chown16_args *, register_t *);
    974 
    975 int	netbsd32___getcwd(struct lwp *, const struct netbsd32___getcwd_args *, register_t *);
    976 
    977 int	sys___vfork14(struct lwp *, const void *, register_t *);
    978 
    979 int	linux32_sys_ugetrlimit(struct lwp *, const struct linux32_sys_ugetrlimit_args *, register_t *);
    980 
    981 int	linux32_sys_mmap2(struct lwp *, const struct linux32_sys_mmap2_args *, register_t *);
    982 
    983 int	linux32_sys_stat64(struct lwp *, const struct linux32_sys_stat64_args *, register_t *);
    984 
    985 int	linux32_sys_lstat64(struct lwp *, const struct linux32_sys_lstat64_args *, register_t *);
    986 
    987 int	linux32_sys_fstat64(struct lwp *, const struct linux32_sys_fstat64_args *, register_t *);
    988 
    989 int	netbsd32___posix_lchown(struct lwp *, const struct netbsd32___posix_lchown_args *, register_t *);
    990 
    991 int	netbsd32_setreuid(struct lwp *, const struct netbsd32_setreuid_args *, register_t *);
    992 
    993 int	netbsd32_setregid(struct lwp *, const struct netbsd32_setregid_args *, register_t *);
    994 
    995 int	netbsd32_getgroups(struct lwp *, const struct netbsd32_getgroups_args *, register_t *);
    996 
    997 int	netbsd32_setgroups(struct lwp *, const struct netbsd32_setgroups_args *, register_t *);
    998 
    999 int	netbsd32___posix_fchown(struct lwp *, const struct netbsd32___posix_fchown_args *, register_t *);
   1000 
   1001 int	linux32_sys_setresuid(struct lwp *, const struct linux32_sys_setresuid_args *, register_t *);
   1002 
   1003 int	linux32_sys_getresuid(struct lwp *, const struct linux32_sys_getresuid_args *, register_t *);
   1004 
   1005 int	linux32_sys_setresgid(struct lwp *, const struct linux32_sys_setresgid_args *, register_t *);
   1006 
   1007 int	linux32_sys_getresgid(struct lwp *, const struct linux32_sys_getresgid_args *, register_t *);
   1008 
   1009 int	netbsd32___posix_chown(struct lwp *, const struct netbsd32___posix_chown_args *, register_t *);
   1010 
   1011 int	netbsd32_madvise(struct lwp *, const struct netbsd32_madvise_args *, register_t *);
   1012 
   1013 int	linux32_sys_getdents64(struct lwp *, const struct linux32_sys_getdents64_args *, register_t *);
   1014 
   1015 #define linux32_sys_fcntl64 linux32_sys_fcntl
   1016 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
   1017 int	linux32_sys_fcntl64(struct lwp *, const struct linux32_sys_fcntl64_args *, register_t *);
   1018 
   1019 int	linux_sys_gettid(struct lwp *, const void *, register_t *);
   1020 
   1021 int	linux32_sys_exit_group(struct lwp *, const struct linux32_sys_exit_group_args *, register_t *);
   1022 
   1023 int	linux32_sys_clock_settime(struct lwp *, const struct linux32_sys_clock_settime_args *, register_t *);
   1024 
   1025 int	linux32_sys_clock_gettime(struct lwp *, const struct linux32_sys_clock_gettime_args *, register_t *);
   1026 
   1027 int	linux32_sys_clock_getres(struct lwp *, const struct linux32_sys_clock_getres_args *, register_t *);
   1028 
   1029 int	linux32_sys_clock_nanosleep(struct lwp *, const struct linux32_sys_clock_nanosleep_args *, register_t *);
   1030 
   1031 #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */
   1032