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