1 /* $NetBSD: linux32_syscallargs.h,v 1.87 2021/12/02 04:39:45 ryo 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.76 2021/11/27 21:15:07 ryo Exp
8  */
9 
10 #ifndef _LINUX32_SYS_SYSCALLARGS_H_
11 #define	_LINUX32_SYS_SYSCALLARGS_H_
12 
13 /* Forward declaration */
14 struct lwp;
15 
16 #define	LINUX32_SYS_MAXSYSARGS	8
17 
18 #undef	syscallarg
19 #define	syscallarg(x)							\
20 	union {								\
21 		register32_t pad;						\
22 		struct { x datum; } le;					\
23 		struct { /* LINTED zero array dimension */		\
24 			int8_t pad[  /* CONSTCOND */			\
25 				(sizeof (register32_t) < sizeof (x))	\
26 				? 0					\
27 				: sizeof (register32_t) - sizeof (x)];	\
28 			x datum;					\
29 		} be;							\
30 	}
31 
32 #undef check_syscall_args
33 #define check_syscall_args(call) /*LINTED*/ \
34 	typedef char call##_check_args[sizeof (struct call##_args) \
35 		<= LINUX32_SYS_MAXSYSARGS * sizeof (register32_t) ? 1 : -1];
36 
37 struct linux32_sys_exit_args {
38 	syscallarg(int) rval;
39 };
40 check_syscall_args(linux32_sys_exit)
41 
42 struct netbsd32_read_args;
43 
44 struct netbsd32_write_args;
45 
46 struct linux32_sys_open_args {
47 	syscallarg(netbsd32_charp) path;
48 	syscallarg(int) flags;
49 	syscallarg(linux_umode_t) mode;
50 };
51 check_syscall_args(linux32_sys_open)
52 
53 struct netbsd32_close_args;
54 
55 struct linux32_sys_waitpid_args {
56 	syscallarg(int) pid;
57 	syscallarg(netbsd32_intp) status;
58 	syscallarg(int) options;
59 };
60 check_syscall_args(linux32_sys_waitpid)
61 
62 struct linux32_sys_creat_args {
63 	syscallarg(netbsd32_charp) path;
64 	syscallarg(linux_umode_t) mode;
65 };
66 check_syscall_args(linux32_sys_creat)
67 
68 struct netbsd32_link_args;
69 
70 struct linux32_sys_unlink_args {
71 	syscallarg(netbsd32_charp) path;
72 };
73 check_syscall_args(linux32_sys_unlink)
74 
75 struct netbsd32_execve_args;
76 
77 struct netbsd32_chdir_args;
78 
79 struct linux32_sys_time_args {
80 	syscallarg(linux32_timep_t) t;
81 };
82 check_syscall_args(linux32_sys_time)
83 
84 struct linux32_sys_mknod_args {
85 	syscallarg(netbsd32_charp) path;
86 	syscallarg(linux_umode_t) mode;
87 	syscallarg(unsigned) dev;
88 };
89 check_syscall_args(linux32_sys_mknod)
90 
91 struct netbsd32_chmod_args;
92 
93 struct linux32_sys_lchown16_args {
94 	syscallarg(netbsd32_charp) path;
95 	syscallarg(linux32_uid16_t) uid;
96 	syscallarg(linux32_gid16_t) gid;
97 };
98 check_syscall_args(linux32_sys_lchown16)
99 
100 struct linux32_sys_break_args {
101 	syscallarg(netbsd32_charp) nsize;
102 };
103 check_syscall_args(linux32_sys_break)
104 
105 struct compat_43_netbsd32_olseek_args;
106 
107 struct netbsd32_setuid_args;
108 
109 struct linux32_sys_stime_args {
110 	syscallarg(linux32_timep_t) t;
111 };
112 check_syscall_args(linux32_sys_stime)
113 
114 struct linux32_sys_ptrace_args {
115 	syscallarg(int) request;
116 	syscallarg(int) pid;
117 	syscallarg(int) addr;
118 	syscallarg(int) data;
119 };
120 check_syscall_args(linux32_sys_ptrace)
121 
122 struct linux32_sys_alarm_args {
123 	syscallarg(unsigned int) secs;
124 };
125 check_syscall_args(linux32_sys_alarm)
126 
127 struct linux32_sys_utime_args {
128 	syscallarg(netbsd32_charp) path;
129 	syscallarg(linux32_utimbufp_t) times;
130 };
131 check_syscall_args(linux32_sys_utime)
132 
133 struct netbsd32_access_args;
134 
135 struct linux32_sys_nice_args {
136 	syscallarg(int) incr;
137 };
138 check_syscall_args(linux32_sys_nice)
139 
140 struct linux32_sys_kill_args {
141 	syscallarg(int) pid;
142 	syscallarg(int) signum;
143 };
144 check_syscall_args(linux32_sys_kill)
145 
146 struct netbsd32___posix_rename_args;
147 
148 struct netbsd32_mkdir_args;
149 
150 struct netbsd32_rmdir_args;
151 
152 struct netbsd32_dup_args;
153 
154 struct linux32_sys_pipe_args {
155 	syscallarg(netbsd32_intp) fd;
156 };
157 check_syscall_args(linux32_sys_pipe)
158 
159 struct linux32_sys_times_args {
160 	syscallarg(linux32_tmsp_t) tms;
161 };
162 check_syscall_args(linux32_sys_times)
163 
164 struct linux32_sys_brk_args {
165 	syscallarg(netbsd32_charp) nsize;
166 };
167 check_syscall_args(linux32_sys_brk)
168 
169 struct netbsd32_setgid_args;
170 
171 struct linux32_sys_signal_args {
172 	syscallarg(int) signum;
173 	syscallarg(linux32_handlerp_t) handler;
174 };
175 check_syscall_args(linux32_sys_signal)
176 
177 struct netbsd32_acct_args;
178 
179 struct linux32_sys_ioctl_args {
180 	syscallarg(int) fd;
181 	syscallarg(netbsd32_u_long) com;
182 	syscallarg(netbsd32_charp) data;
183 };
184 check_syscall_args(linux32_sys_ioctl)
185 
186 struct linux32_sys_fcntl_args {
187 	syscallarg(int) fd;
188 	syscallarg(int) cmd;
189 	syscallarg(netbsd32_voidp) arg;
190 };
191 check_syscall_args(linux32_sys_fcntl)
192 
193 struct netbsd32_setpgid_args;
194 
195 struct linux32_sys_oldolduname_args {
196 	syscallarg(linux32_oldold_utsnamep_t) up;
197 };
198 check_syscall_args(linux32_sys_oldolduname)
199 
200 struct netbsd32_umask_args;
201 
202 struct netbsd32_chroot_args;
203 
204 struct netbsd32_dup2_args;
205 
206 struct linux32_sys_sigsetmask_args {
207 	syscallarg(linux32_old_sigset_t) mask;
208 };
209 check_syscall_args(linux32_sys_sigsetmask)
210 
211 struct linux32_sys_setreuid16_args {
212 	syscallarg(linux32_uid16_t) ruid;
213 	syscallarg(linux32_uid16_t) euid;
214 };
215 check_syscall_args(linux32_sys_setreuid16)
216 
217 struct linux32_sys_setregid16_args {
218 	syscallarg(linux32_gid16_t) rgid;
219 	syscallarg(linux32_gid16_t) egid;
220 };
221 check_syscall_args(linux32_sys_setregid16)
222 
223 struct compat_43_netbsd32_osethostname_args;
224 
225 struct linux32_sys_setrlimit_args {
226 	syscallarg(u_int) which;
227 	syscallarg(netbsd32_orlimitp_t) rlp;
228 };
229 check_syscall_args(linux32_sys_setrlimit)
230 
231 struct linux32_sys_getrlimit_args {
232 	syscallarg(u_int) which;
233 	syscallarg(netbsd32_orlimitp_t) rlp;
234 };
235 check_syscall_args(linux32_sys_getrlimit)
236 
237 struct compat_50_netbsd32_getrusage_args;
238 
239 struct linux32_sys_gettimeofday_args {
240 	syscallarg(netbsd32_timeval50p_t) tp;
241 	syscallarg(netbsd32_timezonep_t) tzp;
242 };
243 check_syscall_args(linux32_sys_gettimeofday)
244 
245 struct linux32_sys_settimeofday_args {
246 	syscallarg(netbsd32_timeval50p_t) tp;
247 	syscallarg(netbsd32_timezonep_t) tzp;
248 };
249 check_syscall_args(linux32_sys_settimeofday)
250 
251 struct linux32_sys_getgroups16_args {
252 	syscallarg(int) gidsetsize;
253 	syscallarg(linux32_gid16p_t) gidset;
254 };
255 check_syscall_args(linux32_sys_getgroups16)
256 
257 struct linux32_sys_setgroups16_args {
258 	syscallarg(int) gidsetsize;
259 	syscallarg(linux32_gid16p_t) gidset;
260 };
261 check_syscall_args(linux32_sys_setgroups16)
262 
263 struct linux32_sys_oldselect_args {
264 	syscallarg(linux32_oldselectp_t) lsp;
265 };
266 check_syscall_args(linux32_sys_oldselect)
267 
268 struct netbsd32_symlink_args;
269 
270 struct compat_43_netbsd32_lstat43_args;
271 
272 struct netbsd32_readlink_args;
273 
274 struct linux32_sys_swapon_args {
275 	syscallarg(netbsd32_charp) name;
276 };
277 check_syscall_args(linux32_sys_swapon)
278 
279 struct linux32_sys_reboot_args {
280 	syscallarg(int) magic1;
281 	syscallarg(int) magic2;
282 	syscallarg(int) cmd;
283 	syscallarg(netbsd32_voidp) arg;
284 };
285 check_syscall_args(linux32_sys_reboot)
286 
287 struct linux32_sys_readdir_args {
288 	syscallarg(int) fd;
289 	syscallarg(netbsd32_voidp) dent;
290 	syscallarg(unsigned int) count;
291 };
292 check_syscall_args(linux32_sys_readdir)
293 
294 struct linux32_sys_old_mmap_args {
295 	syscallarg(linux32_oldmmapp) lmp;
296 };
297 check_syscall_args(linux32_sys_old_mmap)
298 
299 struct netbsd32_munmap_args;
300 
301 struct compat_43_netbsd32_otruncate_args;
302 
303 struct compat_43_netbsd32_oftruncate_args;
304 
305 struct netbsd32_fchmod_args;
306 
307 struct linux32_sys_fchown16_args {
308 	syscallarg(int) fd;
309 	syscallarg(linux32_uid16_t) uid;
310 	syscallarg(linux32_gid16_t) gid;
311 };
312 check_syscall_args(linux32_sys_fchown16)
313 
314 struct linux32_sys_getpriority_args {
315 	syscallarg(int) which;
316 	syscallarg(int) who;
317 };
318 check_syscall_args(linux32_sys_getpriority)
319 
320 struct netbsd32_setpriority_args;
321 
322 struct netbsd32_profil_args;
323 
324 struct linux32_sys_statfs_args {
325 	syscallarg(netbsd32_charp) path;
326 	syscallarg(linux32_statfsp) sp;
327 };
328 check_syscall_args(linux32_sys_statfs)
329 
330 struct linux32_sys_fstatfs_args {
331 	syscallarg(int) fd;
332 	syscallarg(linux32_statfsp) sp;
333 };
334 check_syscall_args(linux32_sys_fstatfs)
335 
336 struct linux_sys_ioperm_args;
337 
338 struct linux32_sys_socketcall_args {
339 	syscallarg(int) what;
340 	syscallarg(netbsd32_voidp) args;
341 };
342 check_syscall_args(linux32_sys_socketcall)
343 
344 struct compat_50_netbsd32_setitimer_args;
345 
346 struct compat_50_netbsd32_getitimer_args;
347 
348 struct linux32_sys_stat_args {
349 	syscallarg(netbsd32_charp) path;
350 	syscallarg(linux32_statp) sp;
351 };
352 check_syscall_args(linux32_sys_stat)
353 
354 struct linux32_sys_lstat_args {
355 	syscallarg(netbsd32_charp) path;
356 	syscallarg(linux32_statp) sp;
357 };
358 check_syscall_args(linux32_sys_lstat)
359 
360 struct linux32_sys_fstat_args {
361 	syscallarg(int) fd;
362 	syscallarg(linux32_statp) sp;
363 };
364 check_syscall_args(linux32_sys_fstat)
365 
366 struct linux32_sys_olduname_args {
367 	syscallarg(linux32_oldutsnamep_t) up;
368 };
369 check_syscall_args(linux32_sys_olduname)
370 
371 struct linux_sys_iopl_args;
372 
373 struct linux32_sys_wait4_args {
374 	syscallarg(int) pid;
375 	syscallarg(netbsd32_intp) status;
376 	syscallarg(int) options;
377 	syscallarg(netbsd32_rusage50p_t) rusage;
378 };
379 check_syscall_args(linux32_sys_wait4)
380 
381 struct linux32_sys_swapoff_args {
382 	syscallarg(netbsd32_charp) path;
383 };
384 check_syscall_args(linux32_sys_swapoff)
385 
386 struct linux32_sys_sysinfo_args {
387 	syscallarg(linux32_sysinfop_t) arg;
388 };
389 check_syscall_args(linux32_sys_sysinfo)
390 
391 struct linux32_sys_ipc_args {
392 	syscallarg(int) what;
393 	syscallarg(int) a1;
394 	syscallarg(int) a2;
395 	syscallarg(int) a3;
396 	syscallarg(netbsd32_voidp) ptr;
397 };
398 check_syscall_args(linux32_sys_ipc)
399 
400 struct netbsd32_fsync_args;
401 
402 struct linux32_sys_sigreturn_args {
403 	syscallarg(linux32_sigcontextp_t) scp;
404 };
405 check_syscall_args(linux32_sys_sigreturn)
406 
407 struct linux32_sys_clone_args {
408 	syscallarg(int) flags;
409 	syscallarg(netbsd32_voidp) stack;
410 	syscallarg(netbsd32_voidp) parent_tidptr;
411 	syscallarg(netbsd32_voidp) tls;
412 	syscallarg(netbsd32_voidp) child_tidptr;
413 };
414 check_syscall_args(linux32_sys_clone)
415 
416 struct linux32_sys_setdomainname_args {
417 	syscallarg(netbsd32_charp) domainname;
418 	syscallarg(int) len;
419 };
420 check_syscall_args(linux32_sys_setdomainname)
421 
422 struct linux32_sys_uname_args {
423 	syscallarg(linux32_utsnamep) up;
424 };
425 check_syscall_args(linux32_sys_uname)
426 
427 struct linux32_sys_modify_ldt_args {
428 	syscallarg(int) func;
429 	syscallarg(netbsd32_charp) ptr;
430 	syscallarg(netbsd32_size_t) bytecount;
431 };
432 check_syscall_args(linux32_sys_modify_ldt)
433 
434 struct linux32_sys_mprotect_args {
435 	syscallarg(netbsd32_voidp) start;
436 	syscallarg(netbsd32_size_t) len;
437 	syscallarg(int) prot;
438 };
439 check_syscall_args(linux32_sys_mprotect)
440 
441 struct netbsd32_getpgid_args;
442 
443 struct netbsd32_fchdir_args;
444 
445 struct linux32_sys_personality_args {
446 	syscallarg(netbsd32_u_long) per;
447 };
448 check_syscall_args(linux32_sys_personality)
449 
450 struct linux32_sys_setfsuid_args;
451 
452 struct linux32_sys_setfsgid_args;
453 
454 struct linux32_sys_llseek_args {
455 	syscallarg(int) fd;
456 	syscallarg(u_int32_t) ohigh;
457 	syscallarg(u_int32_t) olow;
458 	syscallarg(netbsd32_voidp) res;
459 	syscallarg(int) whence;
460 };
461 check_syscall_args(linux32_sys_llseek)
462 
463 struct linux32_sys_getdents_args {
464 	syscallarg(int) fd;
465 	syscallarg(linux32_direntp_t) dent;
466 	syscallarg(unsigned int) count;
467 };
468 check_syscall_args(linux32_sys_getdents)
469 
470 struct linux32_sys_select_args {
471 	syscallarg(int) nfds;
472 	syscallarg(netbsd32_fd_setp_t) readfds;
473 	syscallarg(netbsd32_fd_setp_t) writefds;
474 	syscallarg(netbsd32_fd_setp_t) exceptfds;
475 	syscallarg(netbsd32_timeval50p_t) timeout;
476 };
477 check_syscall_args(linux32_sys_select)
478 
479 struct netbsd32_flock_args;
480 
481 struct netbsd32___msync13_args;
482 
483 struct netbsd32_readv_args;
484 
485 struct netbsd32_writev_args;
486 
487 struct netbsd32_getsid_args;
488 
489 struct linux32_sys_fdatasync_args {
490 	syscallarg(int) fd;
491 };
492 check_syscall_args(linux32_sys_fdatasync)
493 
494 struct linux32_sys___sysctl_args {
495 	syscallarg(linux32___sysctlp_t) lsp;
496 };
497 check_syscall_args(linux32_sys___sysctl)
498 
499 struct netbsd32_mlock_args;
500 
501 struct netbsd32_munlock_args;
502 
503 struct netbsd32_mlockall_args;
504 
505 struct linux32_sys_sched_setparam_args {
506 	syscallarg(pid_t) pid;
507 	syscallarg(const linux32_sched_paramp_t) sp;
508 };
509 check_syscall_args(linux32_sys_sched_setparam)
510 
511 struct linux32_sys_sched_getparam_args {
512 	syscallarg(pid_t) pid;
513 	syscallarg(linux32_sched_paramp_t) sp;
514 };
515 check_syscall_args(linux32_sys_sched_getparam)
516 
517 struct linux32_sys_sched_setscheduler_args {
518 	syscallarg(pid_t) pid;
519 	syscallarg(int) policy;
520 	syscallarg(linux32_sched_paramp_t) sp;
521 };
522 check_syscall_args(linux32_sys_sched_setscheduler)
523 
524 struct linux32_sys_sched_getscheduler_args {
525 	syscallarg(pid_t) pid;
526 };
527 check_syscall_args(linux32_sys_sched_getscheduler)
528 
529 struct linux32_sys_sched_get_priority_max_args {
530 	syscallarg(int) policy;
531 };
532 check_syscall_args(linux32_sys_sched_get_priority_max)
533 
534 struct linux32_sys_sched_get_priority_min_args {
535 	syscallarg(int) policy;
536 };
537 check_syscall_args(linux32_sys_sched_get_priority_min)
538 
539 struct linux32_sys_nanosleep_args {
540 	syscallarg(linux32_timespecp_t) rqtp;
541 	syscallarg(linux32_timespecp_t) rmtp;
542 };
543 check_syscall_args(linux32_sys_nanosleep)
544 
545 struct linux32_sys_mremap_args {
546 	syscallarg(netbsd32_voidp) old_address;
547 	syscallarg(netbsd32_size_t) old_size;
548 	syscallarg(netbsd32_size_t) new_size;
549 	syscallarg(netbsd32_u_long) flags;
550 };
551 check_syscall_args(linux32_sys_mremap)
552 
553 struct linux32_sys_setresuid16_args {
554 	syscallarg(linux32_uid16_t) ruid;
555 	syscallarg(linux32_uid16_t) euid;
556 	syscallarg(linux32_uid16_t) suid;
557 };
558 check_syscall_args(linux32_sys_setresuid16)
559 
560 struct linux32_sys_getresuid16_args {
561 	syscallarg(linux32_uid16p_t) ruid;
562 	syscallarg(linux32_uid16p_t) euid;
563 	syscallarg(linux32_uid16p_t) suid;
564 };
565 check_syscall_args(linux32_sys_getresuid16)
566 
567 struct netbsd32_poll_args;
568 
569 struct linux32_sys_setresgid16_args {
570 	syscallarg(linux32_gid16_t) rgid;
571 	syscallarg(linux32_gid16_t) egid;
572 	syscallarg(linux32_gid16_t) sgid;
573 };
574 check_syscall_args(linux32_sys_setresgid16)
575 
576 struct linux32_sys_getresgid16_args {
577 	syscallarg(linux32_gid16p_t) rgid;
578 	syscallarg(linux32_gid16p_t) egid;
579 	syscallarg(linux32_gid16p_t) sgid;
580 };
581 check_syscall_args(linux32_sys_getresgid16)
582 
583 struct linux32_sys_rt_sigreturn_args {
584 	syscallarg(linux32_ucontextp_t) ucp;
585 };
586 check_syscall_args(linux32_sys_rt_sigreturn)
587 
588 struct linux32_sys_rt_sigaction_args {
589 	syscallarg(int) signum;
590 	syscallarg(linux32_sigactionp_t) nsa;
591 	syscallarg(linux32_sigactionp_t) osa;
592 	syscallarg(netbsd32_size_t) sigsetsize;
593 };
594 check_syscall_args(linux32_sys_rt_sigaction)
595 
596 struct linux32_sys_rt_sigprocmask_args {
597 	syscallarg(int) how;
598 	syscallarg(linux32_sigsetp_t) set;
599 	syscallarg(linux32_sigsetp_t) oset;
600 	syscallarg(netbsd32_size_t) sigsetsize;
601 };
602 check_syscall_args(linux32_sys_rt_sigprocmask)
603 
604 struct linux32_sys_rt_sigpending_args {
605 	syscallarg(linux32_sigsetp_t) set;
606 	syscallarg(netbsd32_size_t) sigsetsize;
607 };
608 check_syscall_args(linux32_sys_rt_sigpending)
609 
610 struct linux32_sys_rt_sigtimedwait_args {
611 	syscallarg(const linux32_sigsetp_t) set;
612 	syscallarg(linux32_siginfop_t) info;
613 	syscallarg(const linux32_timespecp_t) timeout;
614 };
615 check_syscall_args(linux32_sys_rt_sigtimedwait)
616 
617 struct linux32_sys_rt_queueinfo_args {
618 	syscallarg(int) pid;
619 	syscallarg(int) sig;
620 	syscallarg(linux32_siginfop_t) uinfo;
621 };
622 check_syscall_args(linux32_sys_rt_queueinfo)
623 
624 struct linux32_sys_rt_sigsuspend_args {
625 	syscallarg(linux32_sigsetp_t) unewset;
626 	syscallarg(netbsd32_size_t) sigsetsize;
627 };
628 check_syscall_args(linux32_sys_rt_sigsuspend)
629 
630 struct linux32_sys_pread_args {
631 	syscallarg(int) fd;
632 	syscallarg(netbsd32_voidp) buf;
633 	syscallarg(netbsd32_size_t) nbyte;
634 	syscallarg(netbsd32_off_t) offset;
635 };
636 check_syscall_args(linux32_sys_pread)
637 
638 struct linux32_sys_pwrite_args {
639 	syscallarg(int) fd;
640 	syscallarg(netbsd32_voidp) buf;
641 	syscallarg(netbsd32_size_t) nbyte;
642 	syscallarg(netbsd32_off_t) offset;
643 };
644 check_syscall_args(linux32_sys_pwrite)
645 
646 struct linux32_sys_chown16_args {
647 	syscallarg(netbsd32_charp) path;
648 	syscallarg(linux32_uid16_t) uid;
649 	syscallarg(linux32_gid16_t) gid;
650 };
651 check_syscall_args(linux32_sys_chown16)
652 
653 struct netbsd32___getcwd_args;
654 
655 struct linux32_sys_ugetrlimit_args {
656 	syscallarg(int) which;
657 	syscallarg(netbsd32_orlimitp_t) rlp;
658 };
659 check_syscall_args(linux32_sys_ugetrlimit)
660 
661 struct linux32_sys_mmap2_args {
662 	syscallarg(netbsd32_u_long) addr;
663 	syscallarg(netbsd32_size_t) len;
664 	syscallarg(int) prot;
665 	syscallarg(int) flags;
666 	syscallarg(int) fd;
667 	syscallarg(linux32_off_t) offset;
668 };
669 check_syscall_args(linux32_sys_mmap2)
670 
671 struct linux32_sys_truncate64_args {
672 	syscallarg(netbsd32_charp) path;
673 	syscallarg(uint32_t) lenlo;
674 	syscallarg(uint32_t) lenhi;
675 };
676 check_syscall_args(linux32_sys_truncate64)
677 
678 struct linux32_sys_ftruncate64_args {
679 	syscallarg(unsigned int) fd;
680 	syscallarg(uint32_t) lenlo;
681 	syscallarg(uint32_t) lenhi;
682 };
683 check_syscall_args(linux32_sys_ftruncate64)
684 
685 struct linux32_sys_stat64_args {
686 	syscallarg(netbsd32_charp) path;
687 	syscallarg(linux32_stat64p) sp;
688 };
689 check_syscall_args(linux32_sys_stat64)
690 
691 struct linux32_sys_lstat64_args {
692 	syscallarg(netbsd32_charp) path;
693 	syscallarg(linux32_stat64p) sp;
694 };
695 check_syscall_args(linux32_sys_lstat64)
696 
697 struct linux32_sys_fstat64_args {
698 	syscallarg(int) fd;
699 	syscallarg(linux32_stat64p) sp;
700 };
701 check_syscall_args(linux32_sys_fstat64)
702 
703 struct netbsd32___posix_lchown_args;
704 
705 struct netbsd32_setreuid_args;
706 
707 struct netbsd32_setregid_args;
708 
709 struct netbsd32_getgroups_args;
710 
711 struct netbsd32_setgroups_args;
712 
713 struct netbsd32___posix_fchown_args;
714 
715 struct linux32_sys_setresuid_args {
716 	syscallarg(uid_t) ruid;
717 	syscallarg(uid_t) euid;
718 	syscallarg(uid_t) suid;
719 };
720 check_syscall_args(linux32_sys_setresuid)
721 
722 struct linux32_sys_getresuid_args {
723 	syscallarg(linux32_uidp_t) ruid;
724 	syscallarg(linux32_uidp_t) euid;
725 	syscallarg(linux32_uidp_t) suid;
726 };
727 check_syscall_args(linux32_sys_getresuid)
728 
729 struct linux32_sys_setresgid_args {
730 	syscallarg(gid_t) rgid;
731 	syscallarg(gid_t) egid;
732 	syscallarg(gid_t) sgid;
733 };
734 check_syscall_args(linux32_sys_setresgid)
735 
736 struct linux32_sys_getresgid_args {
737 	syscallarg(linux32_gidp_t) rgid;
738 	syscallarg(linux32_gidp_t) egid;
739 	syscallarg(linux32_gidp_t) sgid;
740 };
741 check_syscall_args(linux32_sys_getresgid)
742 
743 struct netbsd32___posix_chown_args;
744 
745 struct netbsd32_setuid_args;
746 
747 struct netbsd32_setgid_args;
748 
749 struct linux32_sys_setfsuid_args {
750 	syscallarg(uid_t) uid;
751 };
752 check_syscall_args(linux32_sys_setfsuid)
753 
754 struct linux32_sys_setfsgid_args {
755 	syscallarg(gid_t) gid;
756 };
757 check_syscall_args(linux32_sys_setfsgid)
758 
759 struct netbsd32_mincore_args;
760 
761 struct netbsd32_madvise_args;
762 
763 struct linux32_sys_getdents64_args {
764 	syscallarg(int) fd;
765 	syscallarg(linux32_dirent64p_t) dent;
766 	syscallarg(unsigned int) count;
767 };
768 check_syscall_args(linux32_sys_getdents64)
769 #define linux32_sys_fcntl64 linux32_sys_fcntl
770 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
771 
772 struct linux32_sys_fcntl64_args;
773 
774 struct netbsd32_setxattr_args;
775 
776 struct netbsd32_lsetxattr_args;
777 
778 struct netbsd32_fsetxattr_args;
779 
780 struct netbsd32_getxattr_args;
781 
782 struct netbsd32_lgetxattr_args;
783 
784 struct netbsd32_fgetxattr_args;
785 
786 struct netbsd32_listxattr_args;
787 
788 struct netbsd32_llistxattr_args;
789 
790 struct netbsd32_flistxattr_args;
791 
792 struct netbsd32_removexattr_args;
793 
794 struct netbsd32_lremovexattr_args;
795 
796 struct netbsd32_fremovexattr_args;
797 
798 struct linux32_sys_tkill_args {
799 	syscallarg(int) tid;
800 	syscallarg(int) sig;
801 };
802 check_syscall_args(linux32_sys_tkill)
803 
804 struct linux32_sys_futex_args {
805 	syscallarg(linux32_intp_t) uaddr;
806 	syscallarg(int) op;
807 	syscallarg(int) val;
808 	syscallarg(linux32_timespecp_t) timeout;
809 	syscallarg(linux32_intp_t) uaddr2;
810 	syscallarg(int) val3;
811 };
812 check_syscall_args(linux32_sys_futex)
813 
814 struct linux32_sys_sched_setaffinity_args {
815 	syscallarg(pid_t) pid;
816 	syscallarg(unsigned int) len;
817 	syscallarg(linux32_ulongp_t) mask;
818 };
819 check_syscall_args(linux32_sys_sched_setaffinity)
820 
821 struct linux32_sys_sched_getaffinity_args {
822 	syscallarg(pid_t) pid;
823 	syscallarg(unsigned int) len;
824 	syscallarg(linux32_ulongp_t) mask;
825 };
826 check_syscall_args(linux32_sys_sched_getaffinity)
827 
828 struct linux32_sys_set_thread_area_args {
829 	syscallarg(linux32_user_descp_t) desc;
830 };
831 check_syscall_args(linux32_sys_set_thread_area)
832 
833 struct linux32_sys_get_thread_area_args {
834 	syscallarg(linux32_user_descp_t) desc;
835 };
836 check_syscall_args(linux32_sys_get_thread_area)
837 
838 struct linux32_sys_fadvise64_args {
839 	syscallarg(int) fd;
840 	syscallarg(uint32_t) offlo;
841 	syscallarg(uint32_t) offhi;
842 	syscallarg(linux32_size_t) len;
843 	syscallarg(int) advice;
844 };
845 check_syscall_args(linux32_sys_fadvise64)
846 
847 struct linux32_sys_exit_group_args {
848 	syscallarg(int) error_code;
849 };
850 check_syscall_args(linux32_sys_exit_group)
851 
852 struct linux32_sys_set_tid_address_args {
853 	syscallarg(linux32_intp_t) tid;
854 };
855 check_syscall_args(linux32_sys_set_tid_address)
856 
857 struct linux32_sys_timer_create_args {
858 	syscallarg(clockid_t) clockid;
859 	syscallarg(struct linux32_sigevent *) evp;
860 	syscallarg(timer_t *) timerid;
861 };
862 check_syscall_args(linux32_sys_timer_create)
863 
864 struct linux32_sys_timer_settime_args {
865 	syscallarg(timer_t) timerid;
866 	syscallarg(int) flags;
867 	syscallarg(const struct linux32_itimerspec *) tim;
868 	syscallarg(struct linux32_itimerspec *) otim;
869 };
870 check_syscall_args(linux32_sys_timer_settime)
871 
872 struct linux32_sys_timer_gettime_args {
873 	syscallarg(timer_t) timerid;
874 	syscallarg(struct linux32_itimerspec *) tim;
875 };
876 check_syscall_args(linux32_sys_timer_gettime)
877 
878 struct sys_timer_getoverrun_args;
879 
880 struct sys_timer_delete_args;
881 
882 struct linux32_sys_clock_settime_args {
883 	syscallarg(clockid_t) which;
884 	syscallarg(linux32_timespecp_t) tp;
885 };
886 check_syscall_args(linux32_sys_clock_settime)
887 
888 struct linux32_sys_clock_gettime_args {
889 	syscallarg(clockid_t) which;
890 	syscallarg(linux32_timespecp_t) tp;
891 };
892 check_syscall_args(linux32_sys_clock_gettime)
893 
894 struct linux32_sys_clock_getres_args {
895 	syscallarg(clockid_t) which;
896 	syscallarg(linux32_timespecp_t) tp;
897 };
898 check_syscall_args(linux32_sys_clock_getres)
899 
900 struct linux32_sys_clock_nanosleep_args {
901 	syscallarg(clockid_t) which;
902 	syscallarg(int) flags;
903 	syscallarg(linux32_timespecp_t) rqtp;
904 	syscallarg(linux32_timespecp_t) rmtp;
905 };
906 check_syscall_args(linux32_sys_clock_nanosleep)
907 
908 struct linux32_sys_statfs64_args {
909 	syscallarg(netbsd32_charp) path;
910 	syscallarg(netbsd32_size_t) sz;
911 	syscallarg(linux32_statfs64p) sp;
912 };
913 check_syscall_args(linux32_sys_statfs64)
914 
915 struct linux32_sys_fstatfs64_args {
916 	syscallarg(int) fd;
917 	syscallarg(netbsd32_size_t) sz;
918 	syscallarg(linux32_statfs64p) sp;
919 };
920 check_syscall_args(linux32_sys_fstatfs64)
921 
922 struct linux32_sys_tgkill_args {
923 	syscallarg(int) tgid;
924 	syscallarg(int) tid;
925 	syscallarg(int) sig;
926 };
927 check_syscall_args(linux32_sys_tgkill)
928 
929 struct compat_50_netbsd32_utimes_args;
930 
931 struct linux32_sys_fadvise64_64_args {
932 	syscallarg(int) fd;
933 	syscallarg(uint32_t) offlo;
934 	syscallarg(uint32_t) offhi;
935 	syscallarg(uint32_t) lenlo;
936 	syscallarg(uint32_t) lenhi;
937 	syscallarg(int) advice;
938 };
939 check_syscall_args(linux32_sys_fadvise64_64)
940 
941 struct linux32_sys_openat_args {
942 	syscallarg(int) fd;
943 	syscallarg(netbsd32_charp) path;
944 	syscallarg(int) flags;
945 	syscallarg(linux_umode_t) mode;
946 };
947 check_syscall_args(linux32_sys_openat)
948 
949 struct netbsd32_mkdirat_args;
950 
951 struct linux32_sys_mknodat_args {
952 	syscallarg(int) fd;
953 	syscallarg(netbsd32_charp) path;
954 	syscallarg(linux_umode_t) mode;
955 	syscallarg(unsigned) dev;
956 };
957 check_syscall_args(linux32_sys_mknodat)
958 
959 struct linux32_sys_fchownat_args {
960 	syscallarg(int) fd;
961 	syscallarg(netbsd32_charp) path;
962 	syscallarg(uid_t) owner;
963 	syscallarg(gid_t) group;
964 	syscallarg(int) flag;
965 };
966 check_syscall_args(linux32_sys_fchownat)
967 
968 struct linux32_sys_fstatat64_args {
969 	syscallarg(int) fd;
970 	syscallarg(netbsd32_charp) path;
971 	syscallarg(linux32_stat64p) sp;
972 	syscallarg(int) flag;
973 };
974 check_syscall_args(linux32_sys_fstatat64)
975 
976 struct linux32_sys_unlinkat_args {
977 	syscallarg(int) fd;
978 	syscallarg(netbsd32_charp) path;
979 	syscallarg(int) flag;
980 };
981 check_syscall_args(linux32_sys_unlinkat)
982 
983 struct netbsd32_renameat_args;
984 
985 struct linux32_sys_linkat_args {
986 	syscallarg(int) fd1;
987 	syscallarg(netbsd32_charp) name1;
988 	syscallarg(int) fd2;
989 	syscallarg(netbsd32_charp) name2;
990 	syscallarg(int) flags;
991 };
992 check_syscall_args(linux32_sys_linkat)
993 
994 struct netbsd32_symlinkat_args;
995 
996 struct netbsd32_readlinkat_args;
997 
998 struct linux32_sys_fchmodat_args {
999 	syscallarg(int) fd;
1000 	syscallarg(netbsd32_charp) path;
1001 	syscallarg(linux_umode_t) mode;
1002 };
1003 check_syscall_args(linux32_sys_fchmodat)
1004 
1005 struct linux32_sys_faccessat_args {
1006 	syscallarg(int) fd;
1007 	syscallarg(netbsd32_charp) path;
1008 	syscallarg(int) amode;
1009 };
1010 check_syscall_args(linux32_sys_faccessat)
1011 
1012 struct linux32_sys_pselect6_args {
1013 	syscallarg(int) nfds;
1014 	syscallarg(netbsd32_fd_setp_t) readfds;
1015 	syscallarg(netbsd32_fd_setp_t) writefds;
1016 	syscallarg(netbsd32_fd_setp_t) exceptfds;
1017 	syscallarg(linux32_timespecp_t) timeout;
1018 	syscallarg(linux32_sized_sigsetp_t) ss;
1019 };
1020 check_syscall_args(linux32_sys_pselect6)
1021 
1022 struct linux32_sys_ppoll_args {
1023 	syscallarg(netbsd32_pollfdp_t) fds;
1024 	syscallarg(u_int) nfds;
1025 	syscallarg(linux32_timespecp_t) timeout;
1026 	syscallarg(linux32_sigsetp_t) sigset;
1027 };
1028 check_syscall_args(linux32_sys_ppoll)
1029 
1030 struct netbsd32___futex_set_robust_list_args;
1031 
1032 struct netbsd32___futex_get_robust_list_args;
1033 
1034 struct linux32_sys_utimensat_args {
1035 	syscallarg(int) fd;
1036 	syscallarg(netbsd32_charp) path;
1037 	syscallarg(linux32_timespecp_t) times;
1038 	syscallarg(int) flag;
1039 };
1040 check_syscall_args(linux32_sys_utimensat)
1041 
1042 struct linux_sys_timerfd_create_args;
1043 
1044 struct linux32_sys_eventfd_args {
1045 	syscallarg(unsigned int) initval;
1046 };
1047 check_syscall_args(linux32_sys_eventfd)
1048 
1049 struct linux32_sys_fallocate_args {
1050 	syscallarg(int) fd;
1051 	syscallarg(int) mode;
1052 	syscallarg(off_t) offset;
1053 	syscallarg(off_t) len;
1054 };
1055 check_syscall_args(linux32_sys_fallocate)
1056 
1057 struct linux32_sys_timerfd_settime_args {
1058 	syscallarg(int) fd;
1059 	syscallarg(int) flags;
1060 	syscallarg(const struct linux32_itimerspec *) tim;
1061 	syscallarg(struct linux32_itimerspec *) otim;
1062 };
1063 check_syscall_args(linux32_sys_timerfd_settime)
1064 
1065 struct linux32_sys_timerfd_gettime_args {
1066 	syscallarg(int) fd;
1067 	syscallarg(struct linux32_itimerspec *) tim;
1068 };
1069 check_syscall_args(linux32_sys_timerfd_gettime)
1070 
1071 struct linux32_sys_eventfd2_args {
1072 	syscallarg(unsigned int) initval;
1073 	syscallarg(int) flags;
1074 };
1075 check_syscall_args(linux32_sys_eventfd2)
1076 
1077 struct linux32_sys_dup3_args {
1078 	syscallarg(int) from;
1079 	syscallarg(int) to;
1080 	syscallarg(int) flags;
1081 };
1082 check_syscall_args(linux32_sys_dup3)
1083 
1084 struct linux32_sys_pipe2_args {
1085 	syscallarg(netbsd32_intp) fd;
1086 	syscallarg(int) flags;
1087 };
1088 check_syscall_args(linux32_sys_pipe2)
1089 
1090 struct linux32_sys_preadv_args {
1091 	syscallarg(int) fd;
1092 	syscallarg(const netbsd32_iovecp_t) iovp;
1093 	syscallarg(int) iovcnt;
1094 	syscallarg(netbsd32_u_long) off_lo;
1095 	syscallarg(netbsd32_u_long) off_hi;
1096 };
1097 check_syscall_args(linux32_sys_preadv)
1098 
1099 struct linux32_sys_pwritev_args {
1100 	syscallarg(int) fd;
1101 	syscallarg(const netbsd32_iovecp_t) iovp;
1102 	syscallarg(int) iovcnt;
1103 	syscallarg(netbsd32_u_long) off_lo;
1104 	syscallarg(netbsd32_u_long) off_hi;
1105 };
1106 check_syscall_args(linux32_sys_pwritev)
1107 
1108 struct linux32_sys_prlimit64_args {
1109 	syscallarg(pid_t) pid;
1110 	syscallarg(int) which;
1111 	syscallarg(netbsd32_rlimitp_t) new_rlp;
1112 	syscallarg(netbsd32_rlimitp_t) old_rlp;
1113 };
1114 check_syscall_args(linux32_sys_prlimit64)
1115 
1116 /*
1117  * System call prototypes.
1118  */
1119 
1120 int	linux_sys_nosys(struct lwp *, const void *, register_t *);
1121 
1122 int	linux32_sys_exit(struct lwp *, const struct linux32_sys_exit_args *, register_t *);
1123 
1124 int	sys_fork(struct lwp *, const void *, register_t *);
1125 
1126 int	netbsd32_read(struct lwp *, const struct netbsd32_read_args *, register_t *);
1127 
1128 int	netbsd32_write(struct lwp *, const struct netbsd32_write_args *, register_t *);
1129 
1130 int	linux32_sys_open(struct lwp *, const struct linux32_sys_open_args *, register_t *);
1131 
1132 int	netbsd32_close(struct lwp *, const struct netbsd32_close_args *, register_t *);
1133 
1134 int	linux32_sys_waitpid(struct lwp *, const struct linux32_sys_waitpid_args *, register_t *);
1135 
1136 int	linux32_sys_creat(struct lwp *, const struct linux32_sys_creat_args *, register_t *);
1137 
1138 int	netbsd32_link(struct lwp *, const struct netbsd32_link_args *, register_t *);
1139 
1140 int	linux32_sys_unlink(struct lwp *, const struct linux32_sys_unlink_args *, register_t *);
1141 
1142 int	netbsd32_execve(struct lwp *, const struct netbsd32_execve_args *, register_t *);
1143 
1144 int	netbsd32_chdir(struct lwp *, const struct netbsd32_chdir_args *, register_t *);
1145 
1146 int	linux32_sys_time(struct lwp *, const struct linux32_sys_time_args *, register_t *);
1147 
1148 int	linux32_sys_mknod(struct lwp *, const struct linux32_sys_mknod_args *, register_t *);
1149 
1150 int	netbsd32_chmod(struct lwp *, const struct netbsd32_chmod_args *, register_t *);
1151 
1152 int	linux32_sys_lchown16(struct lwp *, const struct linux32_sys_lchown16_args *, register_t *);
1153 
1154 int	linux32_sys_break(struct lwp *, const struct linux32_sys_break_args *, register_t *);
1155 
1156 int	compat_43_netbsd32_olseek(struct lwp *, const struct compat_43_netbsd32_olseek_args *, register_t *);
1157 
1158 int	sys_getpid(struct lwp *, const void *, register_t *);
1159 
1160 int	netbsd32_setuid(struct lwp *, const struct netbsd32_setuid_args *, register_t *);
1161 
1162 int	sys_getuid(struct lwp *, const void *, register_t *);
1163 
1164 int	linux32_sys_stime(struct lwp *, const struct linux32_sys_stime_args *, register_t *);
1165 
1166 int	linux32_sys_ptrace(struct lwp *, const struct linux32_sys_ptrace_args *, register_t *);
1167 
1168 int	linux32_sys_alarm(struct lwp *, const struct linux32_sys_alarm_args *, register_t *);
1169 
1170 int	linux_sys_pause(struct lwp *, const void *, register_t *);
1171 
1172 int	linux32_sys_utime(struct lwp *, const struct linux32_sys_utime_args *, register_t *);
1173 
1174 int	netbsd32_access(struct lwp *, const struct netbsd32_access_args *, register_t *);
1175 
1176 int	linux32_sys_nice(struct lwp *, const struct linux32_sys_nice_args *, register_t *);
1177 
1178 int	sys_sync(struct lwp *, const void *, register_t *);
1179 
1180 int	linux32_sys_kill(struct lwp *, const struct linux32_sys_kill_args *, register_t *);
1181 
1182 int	netbsd32___posix_rename(struct lwp *, const struct netbsd32___posix_rename_args *, register_t *);
1183 
1184 int	netbsd32_mkdir(struct lwp *, const struct netbsd32_mkdir_args *, register_t *);
1185 
1186 int	netbsd32_rmdir(struct lwp *, const struct netbsd32_rmdir_args *, register_t *);
1187 
1188 int	netbsd32_dup(struct lwp *, const struct netbsd32_dup_args *, register_t *);
1189 
1190 int	linux32_sys_pipe(struct lwp *, const struct linux32_sys_pipe_args *, register_t *);
1191 
1192 int	linux32_sys_times(struct lwp *, const struct linux32_sys_times_args *, register_t *);
1193 
1194 int	linux32_sys_brk(struct lwp *, const struct linux32_sys_brk_args *, register_t *);
1195 
1196 int	netbsd32_setgid(struct lwp *, const struct netbsd32_setgid_args *, register_t *);
1197 
1198 int	sys_getgid(struct lwp *, const void *, register_t *);
1199 
1200 int	linux32_sys_signal(struct lwp *, const struct linux32_sys_signal_args *, register_t *);
1201 
1202 int	sys_geteuid(struct lwp *, const void *, register_t *);
1203 
1204 int	sys_getegid(struct lwp *, const void *, register_t *);
1205 
1206 int	netbsd32_acct(struct lwp *, const struct netbsd32_acct_args *, register_t *);
1207 
1208 int	linux32_sys_ioctl(struct lwp *, const struct linux32_sys_ioctl_args *, register_t *);
1209 
1210 int	linux32_sys_fcntl(struct lwp *, const struct linux32_sys_fcntl_args *, register_t *);
1211 
1212 int	netbsd32_setpgid(struct lwp *, const struct netbsd32_setpgid_args *, register_t *);
1213 
1214 int	linux32_sys_oldolduname(struct lwp *, const struct linux32_sys_oldolduname_args *, register_t *);
1215 
1216 int	netbsd32_umask(struct lwp *, const struct netbsd32_umask_args *, register_t *);
1217 
1218 int	netbsd32_chroot(struct lwp *, const struct netbsd32_chroot_args *, register_t *);
1219 
1220 int	netbsd32_dup2(struct lwp *, const struct netbsd32_dup2_args *, register_t *);
1221 
1222 int	sys_getppid(struct lwp *, const void *, register_t *);
1223 
1224 int	sys_getpgrp(struct lwp *, const void *, register_t *);
1225 
1226 int	sys_setsid(struct lwp *, const void *, register_t *);
1227 
1228 int	linux32_sys_siggetmask(struct lwp *, const void *, register_t *);
1229 
1230 int	linux32_sys_sigsetmask(struct lwp *, const struct linux32_sys_sigsetmask_args *, register_t *);
1231 
1232 int	linux32_sys_setreuid16(struct lwp *, const struct linux32_sys_setreuid16_args *, register_t *);
1233 
1234 int	linux32_sys_setregid16(struct lwp *, const struct linux32_sys_setregid16_args *, register_t *);
1235 
1236 int	compat_43_netbsd32_osethostname(struct lwp *, const struct compat_43_netbsd32_osethostname_args *, register_t *);
1237 
1238 int	linux32_sys_setrlimit(struct lwp *, const struct linux32_sys_setrlimit_args *, register_t *);
1239 
1240 int	linux32_sys_getrlimit(struct lwp *, const struct linux32_sys_getrlimit_args *, register_t *);
1241 
1242 int	compat_50_netbsd32_getrusage(struct lwp *, const struct compat_50_netbsd32_getrusage_args *, register_t *);
1243 
1244 int	linux32_sys_gettimeofday(struct lwp *, const struct linux32_sys_gettimeofday_args *, register_t *);
1245 
1246 int	linux32_sys_settimeofday(struct lwp *, const struct linux32_sys_settimeofday_args *, register_t *);
1247 
1248 int	linux32_sys_getgroups16(struct lwp *, const struct linux32_sys_getgroups16_args *, register_t *);
1249 
1250 int	linux32_sys_setgroups16(struct lwp *, const struct linux32_sys_setgroups16_args *, register_t *);
1251 
1252 int	linux32_sys_oldselect(struct lwp *, const struct linux32_sys_oldselect_args *, register_t *);
1253 
1254 int	netbsd32_symlink(struct lwp *, const struct netbsd32_symlink_args *, register_t *);
1255 
1256 int	compat_43_netbsd32_lstat43(struct lwp *, const struct compat_43_netbsd32_lstat43_args *, register_t *);
1257 
1258 int	netbsd32_readlink(struct lwp *, const struct netbsd32_readlink_args *, register_t *);
1259 
1260 int	linux32_sys_swapon(struct lwp *, const struct linux32_sys_swapon_args *, register_t *);
1261 
1262 int	linux32_sys_reboot(struct lwp *, const struct linux32_sys_reboot_args *, register_t *);
1263 
1264 int	linux32_sys_readdir(struct lwp *, const struct linux32_sys_readdir_args *, register_t *);
1265 
1266 int	linux32_sys_old_mmap(struct lwp *, const struct linux32_sys_old_mmap_args *, register_t *);
1267 
1268 int	netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *);
1269 
1270 int	compat_43_netbsd32_otruncate(struct lwp *, const struct compat_43_netbsd32_otruncate_args *, register_t *);
1271 
1272 int	compat_43_netbsd32_oftruncate(struct lwp *, const struct compat_43_netbsd32_oftruncate_args *, register_t *);
1273 
1274 int	netbsd32_fchmod(struct lwp *, const struct netbsd32_fchmod_args *, register_t *);
1275 
1276 int	linux32_sys_fchown16(struct lwp *, const struct linux32_sys_fchown16_args *, register_t *);
1277 
1278 int	linux32_sys_getpriority(struct lwp *, const struct linux32_sys_getpriority_args *, register_t *);
1279 
1280 int	netbsd32_setpriority(struct lwp *, const struct netbsd32_setpriority_args *, register_t *);
1281 
1282 int	netbsd32_profil(struct lwp *, const struct netbsd32_profil_args *, register_t *);
1283 
1284 int	linux32_sys_statfs(struct lwp *, const struct linux32_sys_statfs_args *, register_t *);
1285 
1286 int	linux32_sys_fstatfs(struct lwp *, const struct linux32_sys_fstatfs_args *, register_t *);
1287 
1288 int	linux_sys_ioperm(struct lwp *, const struct linux_sys_ioperm_args *, register_t *);
1289 
1290 int	linux32_sys_socketcall(struct lwp *, const struct linux32_sys_socketcall_args *, register_t *);
1291 
1292 int	compat_50_netbsd32_setitimer(struct lwp *, const struct compat_50_netbsd32_setitimer_args *, register_t *);
1293 
1294 int	compat_50_netbsd32_getitimer(struct lwp *, const struct compat_50_netbsd32_getitimer_args *, register_t *);
1295 
1296 int	linux32_sys_stat(struct lwp *, const struct linux32_sys_stat_args *, register_t *);
1297 
1298 int	linux32_sys_lstat(struct lwp *, const struct linux32_sys_lstat_args *, register_t *);
1299 
1300 int	linux32_sys_fstat(struct lwp *, const struct linux32_sys_fstat_args *, register_t *);
1301 
1302 int	linux32_sys_olduname(struct lwp *, const struct linux32_sys_olduname_args *, register_t *);
1303 
1304 int	linux_sys_iopl(struct lwp *, const struct linux_sys_iopl_args *, register_t *);
1305 
1306 int	linux32_sys_wait4(struct lwp *, const struct linux32_sys_wait4_args *, register_t *);
1307 
1308 int	linux32_sys_swapoff(struct lwp *, const struct linux32_sys_swapoff_args *, register_t *);
1309 
1310 int	linux32_sys_sysinfo(struct lwp *, const struct linux32_sys_sysinfo_args *, register_t *);
1311 
1312 int	linux32_sys_ipc(struct lwp *, const struct linux32_sys_ipc_args *, register_t *);
1313 
1314 int	netbsd32_fsync(struct lwp *, const struct netbsd32_fsync_args *, register_t *);
1315 
1316 int	linux32_sys_sigreturn(struct lwp *, const struct linux32_sys_sigreturn_args *, register_t *);
1317 
1318 int	linux32_sys_clone(struct lwp *, const struct linux32_sys_clone_args *, register_t *);
1319 
1320 int	linux32_sys_setdomainname(struct lwp *, const struct linux32_sys_setdomainname_args *, register_t *);
1321 
1322 int	linux32_sys_uname(struct lwp *, const struct linux32_sys_uname_args *, register_t *);
1323 
1324 int	linux32_sys_modify_ldt(struct lwp *, const struct linux32_sys_modify_ldt_args *, register_t *);
1325 
1326 int	linux32_sys_mprotect(struct lwp *, const struct linux32_sys_mprotect_args *, register_t *);
1327 
1328 int	netbsd32_getpgid(struct lwp *, const struct netbsd32_getpgid_args *, register_t *);
1329 
1330 int	netbsd32_fchdir(struct lwp *, const struct netbsd32_fchdir_args *, register_t *);
1331 
1332 int	linux32_sys_personality(struct lwp *, const struct linux32_sys_personality_args *, register_t *);
1333 
1334 int	linux32_sys_setfsuid(struct lwp *, const struct linux32_sys_setfsuid_args *, register_t *);
1335 
1336 int	linux32_sys_setfsgid(struct lwp *, const struct linux32_sys_setfsgid_args *, register_t *);
1337 
1338 int	linux32_sys_llseek(struct lwp *, const struct linux32_sys_llseek_args *, register_t *);
1339 
1340 int	linux32_sys_getdents(struct lwp *, const struct linux32_sys_getdents_args *, register_t *);
1341 
1342 int	linux32_sys_select(struct lwp *, const struct linux32_sys_select_args *, register_t *);
1343 
1344 int	netbsd32_flock(struct lwp *, const struct netbsd32_flock_args *, register_t *);
1345 
1346 int	netbsd32___msync13(struct lwp *, const struct netbsd32___msync13_args *, register_t *);
1347 
1348 int	netbsd32_readv(struct lwp *, const struct netbsd32_readv_args *, register_t *);
1349 
1350 int	netbsd32_writev(struct lwp *, const struct netbsd32_writev_args *, register_t *);
1351 
1352 int	netbsd32_getsid(struct lwp *, const struct netbsd32_getsid_args *, register_t *);
1353 
1354 int	linux32_sys_fdatasync(struct lwp *, const struct linux32_sys_fdatasync_args *, register_t *);
1355 
1356 int	linux32_sys___sysctl(struct lwp *, const struct linux32_sys___sysctl_args *, register_t *);
1357 
1358 int	netbsd32_mlock(struct lwp *, const struct netbsd32_mlock_args *, register_t *);
1359 
1360 int	netbsd32_munlock(struct lwp *, const struct netbsd32_munlock_args *, register_t *);
1361 
1362 int	netbsd32_mlockall(struct lwp *, const struct netbsd32_mlockall_args *, register_t *);
1363 
1364 int	sys_munlockall(struct lwp *, const void *, register_t *);
1365 
1366 int	linux32_sys_sched_setparam(struct lwp *, const struct linux32_sys_sched_setparam_args *, register_t *);
1367 
1368 int	linux32_sys_sched_getparam(struct lwp *, const struct linux32_sys_sched_getparam_args *, register_t *);
1369 
1370 int	linux32_sys_sched_setscheduler(struct lwp *, const struct linux32_sys_sched_setscheduler_args *, register_t *);
1371 
1372 int	linux32_sys_sched_getscheduler(struct lwp *, const struct linux32_sys_sched_getscheduler_args *, register_t *);
1373 
1374 int	linux_sys_sched_yield(struct lwp *, const void *, register_t *);
1375 
1376 int	linux32_sys_sched_get_priority_max(struct lwp *, const struct linux32_sys_sched_get_priority_max_args *, register_t *);
1377 
1378 int	linux32_sys_sched_get_priority_min(struct lwp *, const struct linux32_sys_sched_get_priority_min_args *, register_t *);
1379 
1380 int	linux32_sys_nanosleep(struct lwp *, const struct linux32_sys_nanosleep_args *, register_t *);
1381 
1382 int	linux32_sys_mremap(struct lwp *, const struct linux32_sys_mremap_args *, register_t *);
1383 
1384 int	linux32_sys_setresuid16(struct lwp *, const struct linux32_sys_setresuid16_args *, register_t *);
1385 
1386 int	linux32_sys_getresuid16(struct lwp *, const struct linux32_sys_getresuid16_args *, register_t *);
1387 
1388 int	netbsd32_poll(struct lwp *, const struct netbsd32_poll_args *, register_t *);
1389 
1390 int	linux32_sys_setresgid16(struct lwp *, const struct linux32_sys_setresgid16_args *, register_t *);
1391 
1392 int	linux32_sys_getresgid16(struct lwp *, const struct linux32_sys_getresgid16_args *, register_t *);
1393 
1394 int	linux32_sys_rt_sigreturn(struct lwp *, const struct linux32_sys_rt_sigreturn_args *, register_t *);
1395 
1396 int	linux32_sys_rt_sigaction(struct lwp *, const struct linux32_sys_rt_sigaction_args *, register_t *);
1397 
1398 int	linux32_sys_rt_sigprocmask(struct lwp *, const struct linux32_sys_rt_sigprocmask_args *, register_t *);
1399 
1400 int	linux32_sys_rt_sigpending(struct lwp *, const struct linux32_sys_rt_sigpending_args *, register_t *);
1401 
1402 int	linux32_sys_rt_sigtimedwait(struct lwp *, const struct linux32_sys_rt_sigtimedwait_args *, register_t *);
1403 
1404 int	linux32_sys_rt_queueinfo(struct lwp *, const struct linux32_sys_rt_queueinfo_args *, register_t *);
1405 
1406 int	linux32_sys_rt_sigsuspend(struct lwp *, const struct linux32_sys_rt_sigsuspend_args *, register_t *);
1407 
1408 int	linux32_sys_pread(struct lwp *, const struct linux32_sys_pread_args *, register_t *);
1409 
1410 int	linux32_sys_pwrite(struct lwp *, const struct linux32_sys_pwrite_args *, register_t *);
1411 
1412 int	linux32_sys_chown16(struct lwp *, const struct linux32_sys_chown16_args *, register_t *);
1413 
1414 int	netbsd32___getcwd(struct lwp *, const struct netbsd32___getcwd_args *, register_t *);
1415 
1416 int	sys___vfork14(struct lwp *, const void *, register_t *);
1417 
1418 int	linux32_sys_ugetrlimit(struct lwp *, const struct linux32_sys_ugetrlimit_args *, register_t *);
1419 
1420 int	linux32_sys_mmap2(struct lwp *, const struct linux32_sys_mmap2_args *, register_t *);
1421 
1422 int	linux32_sys_truncate64(struct lwp *, const struct linux32_sys_truncate64_args *, register_t *);
1423 
1424 int	linux32_sys_ftruncate64(struct lwp *, const struct linux32_sys_ftruncate64_args *, register_t *);
1425 
1426 int	linux32_sys_stat64(struct lwp *, const struct linux32_sys_stat64_args *, register_t *);
1427 
1428 int	linux32_sys_lstat64(struct lwp *, const struct linux32_sys_lstat64_args *, register_t *);
1429 
1430 int	linux32_sys_fstat64(struct lwp *, const struct linux32_sys_fstat64_args *, register_t *);
1431 
1432 int	netbsd32___posix_lchown(struct lwp *, const struct netbsd32___posix_lchown_args *, register_t *);
1433 
1434 int	netbsd32_setreuid(struct lwp *, const struct netbsd32_setreuid_args *, register_t *);
1435 
1436 int	netbsd32_setregid(struct lwp *, const struct netbsd32_setregid_args *, register_t *);
1437 
1438 int	netbsd32_getgroups(struct lwp *, const struct netbsd32_getgroups_args *, register_t *);
1439 
1440 int	netbsd32_setgroups(struct lwp *, const struct netbsd32_setgroups_args *, register_t *);
1441 
1442 int	netbsd32___posix_fchown(struct lwp *, const struct netbsd32___posix_fchown_args *, register_t *);
1443 
1444 int	linux32_sys_setresuid(struct lwp *, const struct linux32_sys_setresuid_args *, register_t *);
1445 
1446 int	linux32_sys_getresuid(struct lwp *, const struct linux32_sys_getresuid_args *, register_t *);
1447 
1448 int	linux32_sys_setresgid(struct lwp *, const struct linux32_sys_setresgid_args *, register_t *);
1449 
1450 int	linux32_sys_getresgid(struct lwp *, const struct linux32_sys_getresgid_args *, register_t *);
1451 
1452 int	netbsd32___posix_chown(struct lwp *, const struct netbsd32___posix_chown_args *, register_t *);
1453 
1454 int	netbsd32_mincore(struct lwp *, const struct netbsd32_mincore_args *, register_t *);
1455 
1456 int	netbsd32_madvise(struct lwp *, const struct netbsd32_madvise_args *, register_t *);
1457 
1458 int	linux32_sys_getdents64(struct lwp *, const struct linux32_sys_getdents64_args *, register_t *);
1459 
1460 #define linux32_sys_fcntl64 linux32_sys_fcntl
1461 #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
1462 int	linux32_sys_fcntl64(struct lwp *, const struct linux32_sys_fcntl64_args *, register_t *);
1463 
1464 int	linux_sys_gettid(struct lwp *, const void *, register_t *);
1465 
1466 int	netbsd32_setxattr(struct lwp *, const struct netbsd32_setxattr_args *, register_t *);
1467 
1468 int	netbsd32_lsetxattr(struct lwp *, const struct netbsd32_lsetxattr_args *, register_t *);
1469 
1470 int	netbsd32_fsetxattr(struct lwp *, const struct netbsd32_fsetxattr_args *, register_t *);
1471 
1472 int	netbsd32_getxattr(struct lwp *, const struct netbsd32_getxattr_args *, register_t *);
1473 
1474 int	netbsd32_lgetxattr(struct lwp *, const struct netbsd32_lgetxattr_args *, register_t *);
1475 
1476 int	netbsd32_fgetxattr(struct lwp *, const struct netbsd32_fgetxattr_args *, register_t *);
1477 
1478 int	netbsd32_listxattr(struct lwp *, const struct netbsd32_listxattr_args *, register_t *);
1479 
1480 int	netbsd32_llistxattr(struct lwp *, const struct netbsd32_llistxattr_args *, register_t *);
1481 
1482 int	netbsd32_flistxattr(struct lwp *, const struct netbsd32_flistxattr_args *, register_t *);
1483 
1484 int	netbsd32_removexattr(struct lwp *, const struct netbsd32_removexattr_args *, register_t *);
1485 
1486 int	netbsd32_lremovexattr(struct lwp *, const struct netbsd32_lremovexattr_args *, register_t *);
1487 
1488 int	netbsd32_fremovexattr(struct lwp *, const struct netbsd32_fremovexattr_args *, register_t *);
1489 
1490 int	linux32_sys_tkill(struct lwp *, const struct linux32_sys_tkill_args *, register_t *);
1491 
1492 int	linux32_sys_futex(struct lwp *, const struct linux32_sys_futex_args *, register_t *);
1493 
1494 int	linux32_sys_sched_setaffinity(struct lwp *, const struct linux32_sys_sched_setaffinity_args *, register_t *);
1495 
1496 int	linux32_sys_sched_getaffinity(struct lwp *, const struct linux32_sys_sched_getaffinity_args *, register_t *);
1497 
1498 int	linux32_sys_set_thread_area(struct lwp *, const struct linux32_sys_set_thread_area_args *, register_t *);
1499 
1500 int	linux32_sys_get_thread_area(struct lwp *, const struct linux32_sys_get_thread_area_args *, register_t *);
1501 
1502 int	linux32_sys_fadvise64(struct lwp *, const struct linux32_sys_fadvise64_args *, register_t *);
1503 
1504 int	linux32_sys_exit_group(struct lwp *, const struct linux32_sys_exit_group_args *, register_t *);
1505 
1506 int	linux32_sys_set_tid_address(struct lwp *, const struct linux32_sys_set_tid_address_args *, register_t *);
1507 
1508 int	linux32_sys_timer_create(struct lwp *, const struct linux32_sys_timer_create_args *, register_t *);
1509 
1510 int	linux32_sys_timer_settime(struct lwp *, const struct linux32_sys_timer_settime_args *, register_t *);
1511 
1512 int	linux32_sys_timer_gettime(struct lwp *, const struct linux32_sys_timer_gettime_args *, register_t *);
1513 
1514 int	sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *);
1515 
1516 int	sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *);
1517 
1518 int	linux32_sys_clock_settime(struct lwp *, const struct linux32_sys_clock_settime_args *, register_t *);
1519 
1520 int	linux32_sys_clock_gettime(struct lwp *, const struct linux32_sys_clock_gettime_args *, register_t *);
1521 
1522 int	linux32_sys_clock_getres(struct lwp *, const struct linux32_sys_clock_getres_args *, register_t *);
1523 
1524 int	linux32_sys_clock_nanosleep(struct lwp *, const struct linux32_sys_clock_nanosleep_args *, register_t *);
1525 
1526 int	linux32_sys_statfs64(struct lwp *, const struct linux32_sys_statfs64_args *, register_t *);
1527 
1528 int	linux32_sys_fstatfs64(struct lwp *, const struct linux32_sys_fstatfs64_args *, register_t *);
1529 
1530 int	linux32_sys_tgkill(struct lwp *, const struct linux32_sys_tgkill_args *, register_t *);
1531 
1532 int	compat_50_netbsd32_utimes(struct lwp *, const struct compat_50_netbsd32_utimes_args *, register_t *);
1533 
1534 int	linux32_sys_fadvise64_64(struct lwp *, const struct linux32_sys_fadvise64_64_args *, register_t *);
1535 
1536 int	linux32_sys_openat(struct lwp *, const struct linux32_sys_openat_args *, register_t *);
1537 
1538 int	netbsd32_mkdirat(struct lwp *, const struct netbsd32_mkdirat_args *, register_t *);
1539 
1540 int	linux32_sys_mknodat(struct lwp *, const struct linux32_sys_mknodat_args *, register_t *);
1541 
1542 int	linux32_sys_fchownat(struct lwp *, const struct linux32_sys_fchownat_args *, register_t *);
1543 
1544 int	linux32_sys_fstatat64(struct lwp *, const struct linux32_sys_fstatat64_args *, register_t *);
1545 
1546 int	linux32_sys_unlinkat(struct lwp *, const struct linux32_sys_unlinkat_args *, register_t *);
1547 
1548 int	netbsd32_renameat(struct lwp *, const struct netbsd32_renameat_args *, register_t *);
1549 
1550 int	linux32_sys_linkat(struct lwp *, const struct linux32_sys_linkat_args *, register_t *);
1551 
1552 int	netbsd32_symlinkat(struct lwp *, const struct netbsd32_symlinkat_args *, register_t *);
1553 
1554 int	netbsd32_readlinkat(struct lwp *, const struct netbsd32_readlinkat_args *, register_t *);
1555 
1556 int	linux32_sys_fchmodat(struct lwp *, const struct linux32_sys_fchmodat_args *, register_t *);
1557 
1558 int	linux32_sys_faccessat(struct lwp *, const struct linux32_sys_faccessat_args *, register_t *);
1559 
1560 int	linux32_sys_pselect6(struct lwp *, const struct linux32_sys_pselect6_args *, register_t *);
1561 
1562 int	linux32_sys_ppoll(struct lwp *, const struct linux32_sys_ppoll_args *, register_t *);
1563 
1564 int	netbsd32___futex_set_robust_list(struct lwp *, const struct netbsd32___futex_set_robust_list_args *, register_t *);
1565 
1566 int	netbsd32___futex_get_robust_list(struct lwp *, const struct netbsd32___futex_get_robust_list_args *, register_t *);
1567 
1568 int	linux32_sys_utimensat(struct lwp *, const struct linux32_sys_utimensat_args *, register_t *);
1569 
1570 int	linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *);
1571 
1572 int	linux32_sys_eventfd(struct lwp *, const struct linux32_sys_eventfd_args *, register_t *);
1573 
1574 int	linux32_sys_fallocate(struct lwp *, const struct linux32_sys_fallocate_args *, register_t *);
1575 
1576 int	linux32_sys_timerfd_settime(struct lwp *, const struct linux32_sys_timerfd_settime_args *, register_t *);
1577 
1578 int	linux32_sys_timerfd_gettime(struct lwp *, const struct linux32_sys_timerfd_gettime_args *, register_t *);
1579 
1580 int	linux32_sys_eventfd2(struct lwp *, const struct linux32_sys_eventfd2_args *, register_t *);
1581 
1582 int	linux32_sys_dup3(struct lwp *, const struct linux32_sys_dup3_args *, register_t *);
1583 
1584 int	linux32_sys_pipe2(struct lwp *, const struct linux32_sys_pipe2_args *, register_t *);
1585 
1586 int	linux32_sys_preadv(struct lwp *, const struct linux32_sys_preadv_args *, register_t *);
1587 
1588 int	linux32_sys_pwritev(struct lwp *, const struct linux32_sys_pwritev_args *, register_t *);
1589 
1590 int	linux32_sys_prlimit64(struct lwp *, const struct linux32_sys_prlimit64_args *, register_t *);
1591 
1592 #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */
1593