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