1 /* $NetBSD: netbsd32_syscallargs.h,v 1.158 2023/07/30 05:31:30 rin 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.143 2023/07/30 05:30:45 rin Exp
8  */
9 
10 #ifndef _NETBSD32_SYS_SYSCALLARGS_H_
11 #define	_NETBSD32_SYS_SYSCALLARGS_H_
12 
13 /* Forward declaration */
14 struct lwp;
15 
16 #define	NETBSD32_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 		<= NETBSD32_SYS_MAXSYSARGS * sizeof (register32_t) ? 1 : -1];
36 
37 struct netbsd32_syscall_args {
38 	syscallarg(int) code;
39 	syscallarg(register32_t) args[NETBSD32_SYS_MAXSYSARGS];
40 };
41 
42 struct netbsd32_exit_args {
43 	syscallarg(int) rval;
44 };
45 check_syscall_args(netbsd32_exit)
46 
47 struct netbsd32_read_args {
48 	syscallarg(int) fd;
49 	syscallarg(netbsd32_voidp) buf;
50 	syscallarg(netbsd32_size_t) nbyte;
51 };
52 check_syscall_args(netbsd32_read)
53 
54 struct netbsd32_write_args {
55 	syscallarg(int) fd;
56 	syscallarg(netbsd32_voidp) buf;
57 	syscallarg(netbsd32_size_t) nbyte;
58 };
59 check_syscall_args(netbsd32_write)
60 
61 struct netbsd32_open_args {
62 	syscallarg(netbsd32_charp) path;
63 	syscallarg(int) flags;
64 	syscallarg(mode_t) mode;
65 };
66 check_syscall_args(netbsd32_open)
67 
68 struct netbsd32_close_args {
69 	syscallarg(int) fd;
70 };
71 check_syscall_args(netbsd32_close)
72 
73 struct compat_50_netbsd32_wait4_args {
74 	syscallarg(int) pid;
75 	syscallarg(netbsd32_intp) status;
76 	syscallarg(int) options;
77 	syscallarg(netbsd32_rusage50p_t) rusage;
78 };
79 check_syscall_args(compat_50_netbsd32_wait4)
80 
81 struct compat_43_netbsd32_ocreat_args {
82 	syscallarg(netbsd32_charp) path;
83 	syscallarg(mode_t) mode;
84 };
85 check_syscall_args(compat_43_netbsd32_ocreat)
86 
87 struct netbsd32_link_args {
88 	syscallarg(netbsd32_charp) path;
89 	syscallarg(netbsd32_charp) link;
90 };
91 check_syscall_args(netbsd32_link)
92 
93 struct netbsd32_unlink_args {
94 	syscallarg(netbsd32_charp) path;
95 };
96 check_syscall_args(netbsd32_unlink)
97 
98 struct netbsd32_chdir_args {
99 	syscallarg(netbsd32_charp) path;
100 };
101 check_syscall_args(netbsd32_chdir)
102 
103 struct netbsd32_fchdir_args {
104 	syscallarg(int) fd;
105 };
106 check_syscall_args(netbsd32_fchdir)
107 
108 struct compat_50_netbsd32_mknod_args {
109 	syscallarg(netbsd32_charp) path;
110 	syscallarg(mode_t) mode;
111 	syscallarg(uint32_t) dev;
112 };
113 check_syscall_args(compat_50_netbsd32_mknod)
114 
115 struct netbsd32_chmod_args {
116 	syscallarg(netbsd32_charp) path;
117 	syscallarg(mode_t) mode;
118 };
119 check_syscall_args(netbsd32_chmod)
120 
121 struct netbsd32_chown_args {
122 	syscallarg(netbsd32_charp) path;
123 	syscallarg(uid_t) uid;
124 	syscallarg(gid_t) gid;
125 };
126 check_syscall_args(netbsd32_chown)
127 
128 struct netbsd32_break_args {
129 	syscallarg(netbsd32_charp) nsize;
130 };
131 check_syscall_args(netbsd32_break)
132 
133 struct compat_20_netbsd32_getfsstat_args {
134 	syscallarg(netbsd32_statfsp_t) buf;
135 	syscallarg(netbsd32_long) bufsize;
136 	syscallarg(int) flags;
137 };
138 check_syscall_args(compat_20_netbsd32_getfsstat)
139 
140 struct compat_43_netbsd32_olseek_args {
141 	syscallarg(int) fd;
142 	syscallarg(netbsd32_long) offset;
143 	syscallarg(int) whence;
144 };
145 check_syscall_args(compat_43_netbsd32_olseek)
146 
147 struct compat_40_netbsd32_mount_args {
148 	syscallarg(netbsd32_charp) type;
149 	syscallarg(netbsd32_charp) path;
150 	syscallarg(int) flags;
151 	syscallarg(netbsd32_voidp) data;
152 };
153 check_syscall_args(compat_40_netbsd32_mount)
154 
155 struct netbsd32_unmount_args {
156 	syscallarg(netbsd32_charp) path;
157 	syscallarg(int) flags;
158 };
159 check_syscall_args(netbsd32_unmount)
160 
161 struct netbsd32_setuid_args {
162 	syscallarg(uid_t) uid;
163 };
164 check_syscall_args(netbsd32_setuid)
165 
166 struct netbsd32_ptrace_args {
167 	syscallarg(int) req;
168 	syscallarg(pid_t) pid;
169 	syscallarg(netbsd32_voidp) addr;
170 	syscallarg(int) data;
171 };
172 check_syscall_args(netbsd32_ptrace)
173 
174 struct netbsd32_recvmsg_args {
175 	syscallarg(int) s;
176 	syscallarg(netbsd32_msghdrp_t) msg;
177 	syscallarg(int) flags;
178 };
179 check_syscall_args(netbsd32_recvmsg)
180 
181 struct netbsd32_sendmsg_args {
182 	syscallarg(int) s;
183 	syscallarg(netbsd32_msghdrp_t) msg;
184 	syscallarg(int) flags;
185 };
186 check_syscall_args(netbsd32_sendmsg)
187 
188 struct netbsd32_recvfrom_args {
189 	syscallarg(int) s;
190 	syscallarg(netbsd32_voidp) buf;
191 	syscallarg(netbsd32_size_t) len;
192 	syscallarg(int) flags;
193 	syscallarg(netbsd32_sockaddrp_t) from;
194 	syscallarg(netbsd32_intp) fromlenaddr;
195 };
196 check_syscall_args(netbsd32_recvfrom)
197 
198 struct netbsd32_accept_args {
199 	syscallarg(int) s;
200 	syscallarg(netbsd32_sockaddrp_t) name;
201 	syscallarg(netbsd32_intp) anamelen;
202 };
203 check_syscall_args(netbsd32_accept)
204 
205 struct netbsd32_getpeername_args {
206 	syscallarg(int) fdes;
207 	syscallarg(netbsd32_sockaddrp_t) asa;
208 	syscallarg(netbsd32_intp) alen;
209 };
210 check_syscall_args(netbsd32_getpeername)
211 
212 struct netbsd32_getsockname_args {
213 	syscallarg(int) fdes;
214 	syscallarg(netbsd32_sockaddrp_t) asa;
215 	syscallarg(netbsd32_intp) alen;
216 };
217 check_syscall_args(netbsd32_getsockname)
218 
219 struct netbsd32_access_args {
220 	syscallarg(netbsd32_charp) path;
221 	syscallarg(int) flags;
222 };
223 check_syscall_args(netbsd32_access)
224 
225 struct netbsd32_chflags_args {
226 	syscallarg(netbsd32_charp) path;
227 	syscallarg(netbsd32_u_long) flags;
228 };
229 check_syscall_args(netbsd32_chflags)
230 
231 struct netbsd32_fchflags_args {
232 	syscallarg(int) fd;
233 	syscallarg(netbsd32_u_long) flags;
234 };
235 check_syscall_args(netbsd32_fchflags)
236 
237 struct netbsd32_kill_args {
238 	syscallarg(int) pid;
239 	syscallarg(int) signum;
240 };
241 check_syscall_args(netbsd32_kill)
242 
243 struct compat_43_netbsd32_stat43_args {
244 	syscallarg(netbsd32_charp) path;
245 	syscallarg(netbsd32_stat43p_t) ub;
246 };
247 check_syscall_args(compat_43_netbsd32_stat43)
248 
249 struct compat_43_netbsd32_lstat43_args {
250 	syscallarg(netbsd32_charp) path;
251 	syscallarg(netbsd32_stat43p_t) ub;
252 };
253 check_syscall_args(compat_43_netbsd32_lstat43)
254 
255 struct netbsd32_dup_args {
256 	syscallarg(int) fd;
257 };
258 check_syscall_args(netbsd32_dup)
259 
260 struct netbsd32_profil_args {
261 	syscallarg(netbsd32_voidp) samples;
262 	syscallarg(netbsd32_size_t) size;
263 	syscallarg(netbsd32_u_long) offset;
264 	syscallarg(u_int) scale;
265 };
266 check_syscall_args(netbsd32_profil)
267 
268 struct netbsd32_ktrace_args {
269 	syscallarg(netbsd32_charp) fname;
270 	syscallarg(int) ops;
271 	syscallarg(int) facs;
272 	syscallarg(int) pid;
273 };
274 check_syscall_args(netbsd32_ktrace)
275 
276 struct netbsd32_sigaction_args {
277 	syscallarg(int) signum;
278 	syscallarg(netbsd32_sigactionp_t) nsa;
279 	syscallarg(netbsd32_sigactionp_t) osa;
280 };
281 check_syscall_args(netbsd32_sigaction)
282 
283 struct compat_13_netbsd32_sigprocmask_args {
284 	syscallarg(int) how;
285 	syscallarg(int) mask;
286 };
287 check_syscall_args(compat_13_netbsd32_sigprocmask)
288 
289 struct netbsd32___getlogin_args {
290 	syscallarg(netbsd32_charp) namebuf;
291 	syscallarg(u_int) namelen;
292 };
293 check_syscall_args(netbsd32___getlogin)
294 
295 struct netbsd32_setlogin_args {
296 	syscallarg(netbsd32_charp) namebuf;
297 };
298 check_syscall_args(netbsd32_setlogin)
299 
300 struct netbsd32_acct_args {
301 	syscallarg(netbsd32_charp) path;
302 };
303 check_syscall_args(netbsd32_acct)
304 
305 struct compat_13_netbsd32_sigaltstack13_args {
306 	syscallarg(netbsd32_sigaltstack13p_t) nss;
307 	syscallarg(netbsd32_sigaltstack13p_t) oss;
308 };
309 check_syscall_args(compat_13_netbsd32_sigaltstack13)
310 
311 struct netbsd32_ioctl_args {
312 	syscallarg(int) fd;
313 	syscallarg(netbsd32_u_long) com;
314 	syscallarg(netbsd32_voidp) data;
315 };
316 check_syscall_args(netbsd32_ioctl)
317 
318 struct compat_12_netbsd32_reboot_args {
319 	syscallarg(int) opt;
320 };
321 check_syscall_args(compat_12_netbsd32_reboot)
322 
323 struct netbsd32_revoke_args {
324 	syscallarg(netbsd32_charp) path;
325 };
326 check_syscall_args(netbsd32_revoke)
327 
328 struct netbsd32_symlink_args {
329 	syscallarg(netbsd32_charp) path;
330 	syscallarg(netbsd32_charp) link;
331 };
332 check_syscall_args(netbsd32_symlink)
333 
334 struct netbsd32_readlink_args {
335 	syscallarg(netbsd32_charp) path;
336 	syscallarg(netbsd32_charp) buf;
337 	syscallarg(netbsd32_size_t) count;
338 };
339 check_syscall_args(netbsd32_readlink)
340 
341 struct netbsd32_execve_args {
342 	syscallarg(netbsd32_charp) path;
343 	syscallarg(netbsd32_charpp) argp;
344 	syscallarg(netbsd32_charpp) envp;
345 };
346 check_syscall_args(netbsd32_execve)
347 
348 struct netbsd32_umask_args {
349 	syscallarg(mode_t) newmask;
350 };
351 check_syscall_args(netbsd32_umask)
352 
353 struct netbsd32_chroot_args {
354 	syscallarg(netbsd32_charp) path;
355 };
356 check_syscall_args(netbsd32_chroot)
357 
358 struct compat_43_netbsd32_fstat43_args {
359 	syscallarg(int) fd;
360 	syscallarg(netbsd32_stat43p_t) sb;
361 };
362 check_syscall_args(compat_43_netbsd32_fstat43)
363 
364 struct compat_43_netbsd32_ogetkerninfo_args {
365 	syscallarg(int) op;
366 	syscallarg(netbsd32_charp) where;
367 	syscallarg(netbsd32_intp) size;
368 	syscallarg(int) arg;
369 };
370 check_syscall_args(compat_43_netbsd32_ogetkerninfo)
371 
372 struct compat_12_netbsd32_msync_args {
373 	syscallarg(netbsd32_voidp) addr;
374 	syscallarg(netbsd32_size_t) len;
375 };
376 check_syscall_args(compat_12_netbsd32_msync)
377 
378 struct compat_43_netbsd32_ommap_args {
379 	syscallarg(netbsd32_voidp) addr;
380 	syscallarg(netbsd32_size_t) len;
381 	syscallarg(int) prot;
382 	syscallarg(int) flags;
383 	syscallarg(int) fd;
384 	syscallarg(netbsd32_long) pos;
385 };
386 check_syscall_args(compat_43_netbsd32_ommap)
387 
388 struct netbsd32_ovadvise_args {
389 	syscallarg(int) anom;
390 };
391 check_syscall_args(netbsd32_ovadvise)
392 
393 struct netbsd32_munmap_args {
394 	syscallarg(netbsd32_voidp) addr;
395 	syscallarg(netbsd32_size_t) len;
396 };
397 check_syscall_args(netbsd32_munmap)
398 
399 struct netbsd32_mprotect_args {
400 	syscallarg(netbsd32_voidp) addr;
401 	syscallarg(netbsd32_size_t) len;
402 	syscallarg(int) prot;
403 };
404 check_syscall_args(netbsd32_mprotect)
405 
406 struct netbsd32_madvise_args {
407 	syscallarg(netbsd32_voidp) addr;
408 	syscallarg(netbsd32_size_t) len;
409 	syscallarg(int) behav;
410 };
411 check_syscall_args(netbsd32_madvise)
412 
413 struct netbsd32_mincore_args {
414 	syscallarg(netbsd32_voidp) addr;
415 	syscallarg(netbsd32_size_t) len;
416 	syscallarg(netbsd32_charp) vec;
417 };
418 check_syscall_args(netbsd32_mincore)
419 
420 struct netbsd32_getgroups_args {
421 	syscallarg(int) gidsetsize;
422 	syscallarg(netbsd32_gid_tp) gidset;
423 };
424 check_syscall_args(netbsd32_getgroups)
425 
426 struct netbsd32_setgroups_args {
427 	syscallarg(int) gidsetsize;
428 	syscallarg(netbsd32_gid_tp) gidset;
429 };
430 check_syscall_args(netbsd32_setgroups)
431 
432 struct netbsd32_setpgid_args {
433 	syscallarg(int) pid;
434 	syscallarg(int) pgid;
435 };
436 check_syscall_args(netbsd32_setpgid)
437 
438 struct compat_50_netbsd32_setitimer_args {
439 	syscallarg(int) which;
440 	syscallarg(netbsd32_itimerval50p_t) itv;
441 	syscallarg(netbsd32_itimerval50p_t) oitv;
442 };
443 check_syscall_args(compat_50_netbsd32_setitimer)
444 
445 struct compat_12_netbsd32_oswapon_args {
446 	syscallarg(netbsd32_charp) name;
447 };
448 check_syscall_args(compat_12_netbsd32_oswapon)
449 
450 struct compat_50_netbsd32_getitimer_args {
451 	syscallarg(int) which;
452 	syscallarg(netbsd32_itimerval50p_t) itv;
453 };
454 check_syscall_args(compat_50_netbsd32_getitimer)
455 
456 struct compat_43_netbsd32_ogethostname_args {
457 	syscallarg(netbsd32_charp) hostname;
458 	syscallarg(u_int) len;
459 };
460 check_syscall_args(compat_43_netbsd32_ogethostname)
461 
462 struct compat_43_netbsd32_osethostname_args {
463 	syscallarg(netbsd32_charp) hostname;
464 	syscallarg(u_int) len;
465 };
466 check_syscall_args(compat_43_netbsd32_osethostname)
467 
468 struct netbsd32_dup2_args {
469 	syscallarg(int) from;
470 	syscallarg(int) to;
471 };
472 check_syscall_args(netbsd32_dup2)
473 
474 struct netbsd32_getrandom_args {
475 	syscallarg(netbsd32_voidp) buf;
476 	syscallarg(netbsd32_size_t) buflen;
477 	syscallarg(unsigned int) flags;
478 };
479 check_syscall_args(netbsd32_getrandom)
480 
481 struct netbsd32_fcntl_args {
482 	syscallarg(int) fd;
483 	syscallarg(int) cmd;
484 	syscallarg(netbsd32_voidp) arg;
485 };
486 check_syscall_args(netbsd32_fcntl)
487 
488 struct compat_50_netbsd32_select_args {
489 	syscallarg(int) nd;
490 	syscallarg(netbsd32_fd_setp_t) in;
491 	syscallarg(netbsd32_fd_setp_t) ou;
492 	syscallarg(netbsd32_fd_setp_t) ex;
493 	syscallarg(netbsd32_timeval50p_t) tv;
494 };
495 check_syscall_args(compat_50_netbsd32_select)
496 
497 struct netbsd32_fsync_args {
498 	syscallarg(int) fd;
499 };
500 check_syscall_args(netbsd32_fsync)
501 
502 struct netbsd32_setpriority_args {
503 	syscallarg(int) which;
504 	syscallarg(int) who;
505 	syscallarg(int) prio;
506 };
507 check_syscall_args(netbsd32_setpriority)
508 
509 struct compat_30_netbsd32_socket_args {
510 	syscallarg(int) domain;
511 	syscallarg(int) type;
512 	syscallarg(int) protocol;
513 };
514 check_syscall_args(compat_30_netbsd32_socket)
515 
516 struct netbsd32_connect_args {
517 	syscallarg(int) s;
518 	syscallarg(netbsd32_sockaddrp_t) name;
519 	syscallarg(int) namelen;
520 };
521 check_syscall_args(netbsd32_connect)
522 
523 struct compat_43_netbsd32_oaccept_args {
524 	syscallarg(int) s;
525 	syscallarg(netbsd32_voidp) name;
526 	syscallarg(netbsd32_intp) anamelen;
527 };
528 check_syscall_args(compat_43_netbsd32_oaccept)
529 
530 struct netbsd32_getpriority_args {
531 	syscallarg(int) which;
532 	syscallarg(int) who;
533 };
534 check_syscall_args(netbsd32_getpriority)
535 
536 struct compat_43_netbsd32_osend_args {
537 	syscallarg(int) s;
538 	syscallarg(netbsd32_voidp) buf;
539 	syscallarg(int) len;
540 	syscallarg(int) flags;
541 };
542 check_syscall_args(compat_43_netbsd32_osend)
543 
544 struct compat_43_netbsd32_orecv_args {
545 	syscallarg(int) s;
546 	syscallarg(netbsd32_voidp) buf;
547 	syscallarg(int) len;
548 	syscallarg(int) flags;
549 };
550 check_syscall_args(compat_43_netbsd32_orecv)
551 
552 struct compat_13_netbsd32_sigreturn_args {
553 	syscallarg(netbsd32_sigcontextp_t) sigcntxp;
554 };
555 check_syscall_args(compat_13_netbsd32_sigreturn)
556 
557 struct netbsd32_bind_args {
558 	syscallarg(int) s;
559 	syscallarg(netbsd32_sockaddrp_t) name;
560 	syscallarg(int) namelen;
561 };
562 check_syscall_args(netbsd32_bind)
563 
564 struct netbsd32_setsockopt_args {
565 	syscallarg(int) s;
566 	syscallarg(int) level;
567 	syscallarg(int) name;
568 	syscallarg(netbsd32_voidp) val;
569 	syscallarg(int) valsize;
570 };
571 check_syscall_args(netbsd32_setsockopt)
572 
573 struct netbsd32_listen_args {
574 	syscallarg(int) s;
575 	syscallarg(int) backlog;
576 };
577 check_syscall_args(netbsd32_listen)
578 
579 struct compat_43_netbsd32_osigvec_args {
580 	syscallarg(int) signum;
581 	syscallarg(netbsd32_sigvecp_t) nsv;
582 	syscallarg(netbsd32_sigvecp_t) osv;
583 };
584 check_syscall_args(compat_43_netbsd32_osigvec)
585 
586 struct compat_43_netbsd32_sigblock_args {
587 	syscallarg(int) mask;
588 };
589 check_syscall_args(compat_43_netbsd32_sigblock)
590 
591 struct compat_43_netbsd32_sigsetmask_args {
592 	syscallarg(int) mask;
593 };
594 check_syscall_args(compat_43_netbsd32_sigsetmask)
595 
596 struct compat_13_netbsd32_sigsuspend_args {
597 	syscallarg(int) mask;
598 };
599 check_syscall_args(compat_13_netbsd32_sigsuspend)
600 
601 struct compat_43_netbsd32_osigstack_args {
602 	syscallarg(netbsd32_sigstackp_t) nss;
603 	syscallarg(netbsd32_sigstackp_t) oss;
604 };
605 check_syscall_args(compat_43_netbsd32_osigstack)
606 
607 struct compat_43_netbsd32_orecvmsg_args {
608 	syscallarg(int) s;
609 	syscallarg(netbsd32_omsghdrp_t) msg;
610 	syscallarg(int) flags;
611 };
612 check_syscall_args(compat_43_netbsd32_orecvmsg)
613 
614 struct compat_43_netbsd32_osendmsg_args {
615 	syscallarg(int) s;
616 	syscallarg(netbsd32_voidp) msg;
617 	syscallarg(int) flags;
618 };
619 check_syscall_args(compat_43_netbsd32_osendmsg)
620 
621 struct compat_50_netbsd32_gettimeofday_args {
622 	syscallarg(netbsd32_timeval50p_t) tp;
623 	syscallarg(netbsd32_timezonep_t) tzp;
624 };
625 check_syscall_args(compat_50_netbsd32_gettimeofday)
626 
627 struct compat_50_netbsd32_getrusage_args {
628 	syscallarg(int) who;
629 	syscallarg(netbsd32_rusage50p_t) rusage;
630 };
631 check_syscall_args(compat_50_netbsd32_getrusage)
632 
633 struct netbsd32_getsockopt_args {
634 	syscallarg(int) s;
635 	syscallarg(int) level;
636 	syscallarg(int) name;
637 	syscallarg(netbsd32_voidp) val;
638 	syscallarg(netbsd32_intp) avalsize;
639 };
640 check_syscall_args(netbsd32_getsockopt)
641 
642 struct netbsd32_readv_args {
643 	syscallarg(int) fd;
644 	syscallarg(netbsd32_iovecp_t) iovp;
645 	syscallarg(int) iovcnt;
646 };
647 check_syscall_args(netbsd32_readv)
648 
649 struct netbsd32_writev_args {
650 	syscallarg(int) fd;
651 	syscallarg(netbsd32_iovecp_t) iovp;
652 	syscallarg(int) iovcnt;
653 };
654 check_syscall_args(netbsd32_writev)
655 
656 struct compat_50_netbsd32_settimeofday_args {
657 	syscallarg(netbsd32_timeval50p_t) tv;
658 	syscallarg(netbsd32_timezonep_t) tzp;
659 };
660 check_syscall_args(compat_50_netbsd32_settimeofday)
661 
662 struct netbsd32_fchown_args {
663 	syscallarg(int) fd;
664 	syscallarg(uid_t) uid;
665 	syscallarg(gid_t) gid;
666 };
667 check_syscall_args(netbsd32_fchown)
668 
669 struct netbsd32_fchmod_args {
670 	syscallarg(int) fd;
671 	syscallarg(mode_t) mode;
672 };
673 check_syscall_args(netbsd32_fchmod)
674 
675 struct compat_43_netbsd32_orecvfrom_args {
676 	syscallarg(int) s;
677 	syscallarg(netbsd32_voidp) buf;
678 	syscallarg(netbsd32_size_t) len;
679 	syscallarg(int) flags;
680 	syscallarg(netbsd32_voidp) from;
681 	syscallarg(netbsd32_intp) fromlenaddr;
682 };
683 check_syscall_args(compat_43_netbsd32_orecvfrom)
684 
685 struct netbsd32_setreuid_args {
686 	syscallarg(uid_t) ruid;
687 	syscallarg(uid_t) euid;
688 };
689 check_syscall_args(netbsd32_setreuid)
690 
691 struct netbsd32_setregid_args {
692 	syscallarg(gid_t) rgid;
693 	syscallarg(gid_t) egid;
694 };
695 check_syscall_args(netbsd32_setregid)
696 
697 struct netbsd32_rename_args {
698 	syscallarg(netbsd32_charp) from;
699 	syscallarg(netbsd32_charp) to;
700 };
701 check_syscall_args(netbsd32_rename)
702 
703 struct compat_43_netbsd32_otruncate_args {
704 	syscallarg(netbsd32_charp) path;
705 	syscallarg(netbsd32_long) length;
706 };
707 check_syscall_args(compat_43_netbsd32_otruncate)
708 
709 struct compat_43_netbsd32_oftruncate_args {
710 	syscallarg(int) fd;
711 	syscallarg(netbsd32_long) length;
712 };
713 check_syscall_args(compat_43_netbsd32_oftruncate)
714 
715 struct netbsd32_flock_args {
716 	syscallarg(int) fd;
717 	syscallarg(int) how;
718 };
719 check_syscall_args(netbsd32_flock)
720 
721 struct netbsd32_mkfifo_args {
722 	syscallarg(netbsd32_charp) path;
723 	syscallarg(mode_t) mode;
724 };
725 check_syscall_args(netbsd32_mkfifo)
726 
727 struct netbsd32_sendto_args {
728 	syscallarg(int) s;
729 	syscallarg(netbsd32_voidp) buf;
730 	syscallarg(netbsd32_size_t) len;
731 	syscallarg(int) flags;
732 	syscallarg(netbsd32_sockaddrp_t) to;
733 	syscallarg(int) tolen;
734 };
735 check_syscall_args(netbsd32_sendto)
736 
737 struct netbsd32_shutdown_args {
738 	syscallarg(int) s;
739 	syscallarg(int) how;
740 };
741 check_syscall_args(netbsd32_shutdown)
742 
743 struct netbsd32_socketpair_args {
744 	syscallarg(int) domain;
745 	syscallarg(int) type;
746 	syscallarg(int) protocol;
747 	syscallarg(netbsd32_intp) rsv;
748 };
749 check_syscall_args(netbsd32_socketpair)
750 
751 struct netbsd32_mkdir_args {
752 	syscallarg(netbsd32_charp) path;
753 	syscallarg(mode_t) mode;
754 };
755 check_syscall_args(netbsd32_mkdir)
756 
757 struct netbsd32_rmdir_args {
758 	syscallarg(netbsd32_charp) path;
759 };
760 check_syscall_args(netbsd32_rmdir)
761 
762 struct compat_50_netbsd32_utimes_args {
763 	syscallarg(netbsd32_charp) path;
764 	syscallarg(netbsd32_timeval50p_t) tptr;
765 };
766 check_syscall_args(compat_50_netbsd32_utimes)
767 
768 struct compat_50_netbsd32_adjtime_args {
769 	syscallarg(netbsd32_timeval50p_t) delta;
770 	syscallarg(netbsd32_timeval50p_t) olddelta;
771 };
772 check_syscall_args(compat_50_netbsd32_adjtime)
773 
774 struct compat_43_netbsd32_ogetpeername_args {
775 	syscallarg(int) fdes;
776 	syscallarg(netbsd32_voidp) asa;
777 	syscallarg(netbsd32_intp) alen;
778 };
779 check_syscall_args(compat_43_netbsd32_ogetpeername)
780 
781 struct compat_43_netbsd32_sethostid_args {
782 	syscallarg(int32_t) hostid;
783 };
784 check_syscall_args(compat_43_netbsd32_sethostid)
785 
786 struct compat_43_netbsd32_ogetrlimit_args {
787 	syscallarg(int) which;
788 	syscallarg(netbsd32_orlimitp_t) rlp;
789 };
790 check_syscall_args(compat_43_netbsd32_ogetrlimit)
791 
792 struct compat_43_netbsd32_osetrlimit_args {
793 	syscallarg(int) which;
794 	syscallarg(netbsd32_orlimitp_t) rlp;
795 };
796 check_syscall_args(compat_43_netbsd32_osetrlimit)
797 
798 struct compat_43_netbsd32_killpg_args {
799 	syscallarg(int) pgid;
800 	syscallarg(int) signum;
801 };
802 check_syscall_args(compat_43_netbsd32_killpg)
803 
804 struct compat_50_netbsd32_quotactl_args {
805 	syscallarg(netbsd32_charp) path;
806 	syscallarg(int) cmd;
807 	syscallarg(int) uid;
808 	syscallarg(netbsd32_voidp) arg;
809 };
810 check_syscall_args(compat_50_netbsd32_quotactl)
811 
812 struct compat_43_netbsd32_ogetsockname_args {
813 	syscallarg(int) fdec;
814 	syscallarg(netbsd32_voidp) asa;
815 	syscallarg(netbsd32_intp) alen;
816 };
817 check_syscall_args(compat_43_netbsd32_ogetsockname)
818 
819 struct netbsd32_nfssvc_args {
820 	syscallarg(int) flag;
821 	syscallarg(netbsd32_voidp) argp;
822 };
823 check_syscall_args(netbsd32_nfssvc)
824 
825 struct compat_43_netbsd32_ogetdirentries_args {
826 	syscallarg(int) fd;
827 	syscallarg(netbsd32_charp) buf;
828 	syscallarg(u_int) count;
829 	syscallarg(netbsd32_longp) basep;
830 };
831 check_syscall_args(compat_43_netbsd32_ogetdirentries)
832 
833 struct compat_20_netbsd32_statfs_args {
834 	syscallarg(netbsd32_charp) path;
835 	syscallarg(netbsd32_statfsp_t) buf;
836 };
837 check_syscall_args(compat_20_netbsd32_statfs)
838 
839 struct compat_20_netbsd32_fstatfs_args {
840 	syscallarg(int) fd;
841 	syscallarg(netbsd32_statfsp_t) buf;
842 };
843 check_syscall_args(compat_20_netbsd32_fstatfs)
844 
845 struct compat_30_netbsd32_getfh_args {
846 	syscallarg(netbsd32_charp) fname;
847 	syscallarg(netbsd32_compat_30_fhandlep_t) fhp;
848 };
849 check_syscall_args(compat_30_netbsd32_getfh)
850 
851 struct compat_09_netbsd32_ogetdomainname_args {
852 	syscallarg(netbsd32_charp) domainname;
853 	syscallarg(int) len;
854 };
855 check_syscall_args(compat_09_netbsd32_ogetdomainname)
856 
857 struct compat_09_netbsd32_osetdomainname_args {
858 	syscallarg(netbsd32_charp) domainname;
859 	syscallarg(int) len;
860 };
861 check_syscall_args(compat_09_netbsd32_osetdomainname)
862 
863 struct compat_09_netbsd32_uname_args {
864 	syscallarg(netbsd32_outsnamep_t) name;
865 };
866 check_syscall_args(compat_09_netbsd32_uname)
867 
868 struct netbsd32_sysarch_args {
869 	syscallarg(int) op;
870 	syscallarg(netbsd32_voidp) parms;
871 };
872 check_syscall_args(netbsd32_sysarch)
873 
874 struct netbsd32___futex_args {
875 	syscallarg(netbsd32_intp) uaddr;
876 	syscallarg(int) op;
877 	syscallarg(int) val;
878 	syscallarg(const netbsd32_timespecp_t) timeout;
879 	syscallarg(netbsd32_intp) uaddr2;
880 	syscallarg(int) val2;
881 	syscallarg(int) val3;
882 };
883 check_syscall_args(netbsd32___futex)
884 
885 struct netbsd32___futex_set_robust_list_args {
886 	syscallarg(netbsd32_voidp) head;
887 	syscallarg(netbsd32_size_t) len;
888 };
889 check_syscall_args(netbsd32___futex_set_robust_list)
890 
891 struct netbsd32___futex_get_robust_list_args {
892 	syscallarg(lwpid_t) lwpid;
893 	syscallarg(netbsd32_voidp) headp;
894 	syscallarg(netbsd32_size_tp) lenp;
895 };
896 check_syscall_args(netbsd32___futex_get_robust_list)
897 
898 struct compat_10_netbsd32_semsys_args {
899 	syscallarg(int) which;
900 	syscallarg(int) a2;
901 	syscallarg(int) a3;
902 	syscallarg(int) a4;
903 	syscallarg(int) a5;
904 };
905 check_syscall_args(compat_10_netbsd32_semsys)
906 
907 struct compat_10_netbsd32_msgsys_args {
908 	syscallarg(int) which;
909 	syscallarg(int) a2;
910 	syscallarg(int) a3;
911 	syscallarg(int) a4;
912 	syscallarg(int) a5;
913 	syscallarg(int) a6;
914 };
915 check_syscall_args(compat_10_netbsd32_msgsys)
916 
917 struct compat_10_netbsd32_shmsys_args {
918 	syscallarg(int) which;
919 	syscallarg(int) a2;
920 	syscallarg(int) a3;
921 	syscallarg(int) a4;
922 };
923 check_syscall_args(compat_10_netbsd32_shmsys)
924 
925 struct netbsd32_pread_args {
926 	syscallarg(int) fd;
927 	syscallarg(netbsd32_voidp) buf;
928 	syscallarg(netbsd32_size_t) nbyte;
929 	syscallarg(int) PAD;
930 	syscallarg(netbsd32_off_t) offset;
931 };
932 check_syscall_args(netbsd32_pread)
933 
934 struct netbsd32_pwrite_args {
935 	syscallarg(int) fd;
936 	syscallarg(netbsd32_voidp) buf;
937 	syscallarg(netbsd32_size_t) nbyte;
938 	syscallarg(int) PAD;
939 	syscallarg(netbsd32_off_t) offset;
940 };
941 check_syscall_args(netbsd32_pwrite)
942 
943 struct compat_30_netbsd32_ntp_gettime_args {
944 	syscallarg(netbsd32_ntptimeval50p_t) ntvp;
945 };
946 check_syscall_args(compat_30_netbsd32_ntp_gettime)
947 #if defined(NTP) || !defined(_KERNEL_OPT)
948 
949 struct netbsd32_ntp_adjtime_args {
950 	syscallarg(netbsd32_timexp_t) tp;
951 };
952 check_syscall_args(netbsd32_ntp_adjtime)
953 #else
954 #endif
955 
956 struct netbsd32_timerfd_create_args {
957 	syscallarg(netbsd32_clockid_t) clock_id;
958 	syscallarg(int) flags;
959 };
960 check_syscall_args(netbsd32_timerfd_create)
961 
962 struct netbsd32_timerfd_settime_args {
963 	syscallarg(int) fd;
964 	syscallarg(int) flags;
965 	syscallarg(const netbsd32_itimerspecp_t) new_value;
966 	syscallarg(netbsd32_itimerspecp_t) old_value;
967 };
968 check_syscall_args(netbsd32_timerfd_settime)
969 
970 struct netbsd32_timerfd_gettime_args {
971 	syscallarg(int) fd;
972 	syscallarg(netbsd32_itimerspecp_t) curr_value;
973 };
974 check_syscall_args(netbsd32_timerfd_gettime)
975 
976 struct netbsd32_setgid_args {
977 	syscallarg(gid_t) gid;
978 };
979 check_syscall_args(netbsd32_setgid)
980 
981 struct netbsd32_setegid_args {
982 	syscallarg(gid_t) egid;
983 };
984 check_syscall_args(netbsd32_setegid)
985 
986 struct netbsd32_seteuid_args {
987 	syscallarg(uid_t) euid;
988 };
989 check_syscall_args(netbsd32_seteuid)
990 
991 struct compat_12_netbsd32_stat12_args {
992 	syscallarg(netbsd32_charp) path;
993 	syscallarg(netbsd32_stat12p_t) ub;
994 };
995 check_syscall_args(compat_12_netbsd32_stat12)
996 
997 struct compat_12_netbsd32_fstat12_args {
998 	syscallarg(int) fd;
999 	syscallarg(netbsd32_stat12p_t) sb;
1000 };
1001 check_syscall_args(compat_12_netbsd32_fstat12)
1002 
1003 struct compat_12_netbsd32_lstat12_args {
1004 	syscallarg(netbsd32_charp) path;
1005 	syscallarg(netbsd32_stat12p_t) ub;
1006 };
1007 check_syscall_args(compat_12_netbsd32_lstat12)
1008 
1009 struct netbsd32_pathconf_args {
1010 	syscallarg(netbsd32_charp) path;
1011 	syscallarg(int) name;
1012 };
1013 check_syscall_args(netbsd32_pathconf)
1014 
1015 struct netbsd32_fpathconf_args {
1016 	syscallarg(int) fd;
1017 	syscallarg(int) name;
1018 };
1019 check_syscall_args(netbsd32_fpathconf)
1020 
1021 struct netbsd32_getsockopt2_args {
1022 	syscallarg(int) s;
1023 	syscallarg(int) level;
1024 	syscallarg(int) name;
1025 	syscallarg(netbsd32_voidp) val;
1026 	syscallarg(netbsd32_intp) avalsize;
1027 };
1028 check_syscall_args(netbsd32_getsockopt2)
1029 
1030 struct netbsd32_getrlimit_args {
1031 	syscallarg(int) which;
1032 	syscallarg(netbsd32_rlimitp_t) rlp;
1033 };
1034 check_syscall_args(netbsd32_getrlimit)
1035 
1036 struct netbsd32_setrlimit_args {
1037 	syscallarg(int) which;
1038 	syscallarg(netbsd32_rlimitp_t) rlp;
1039 };
1040 check_syscall_args(netbsd32_setrlimit)
1041 
1042 struct compat_12_netbsd32_getdirentries_args {
1043 	syscallarg(int) fd;
1044 	syscallarg(netbsd32_charp) buf;
1045 	syscallarg(u_int) count;
1046 	syscallarg(netbsd32_longp) basep;
1047 };
1048 check_syscall_args(compat_12_netbsd32_getdirentries)
1049 
1050 struct netbsd32_mmap_args {
1051 	syscallarg(netbsd32_voidp) addr;
1052 	syscallarg(netbsd32_size_t) len;
1053 	syscallarg(int) prot;
1054 	syscallarg(int) flags;
1055 	syscallarg(int) fd;
1056 	syscallarg(netbsd32_long) PAD;
1057 	syscallarg(netbsd32_off_t) pos;
1058 };
1059 check_syscall_args(netbsd32_mmap)
1060 
1061 struct netbsd32____syscall_args {
1062 	syscallarg(quad_t) code;
1063 	syscallarg(register32_t) args[NETBSD32_SYS_MAXSYSARGS];
1064 };
1065 
1066 struct netbsd32_lseek_args {
1067 	syscallarg(int) fd;
1068 	syscallarg(int) PAD;
1069 	syscallarg(netbsd32_off_t) offset;
1070 	syscallarg(int) whence;
1071 };
1072 check_syscall_args(netbsd32_lseek)
1073 
1074 struct netbsd32_truncate_args {
1075 	syscallarg(netbsd32_charp) path;
1076 	syscallarg(int) PAD;
1077 	syscallarg(netbsd32_off_t) length;
1078 };
1079 check_syscall_args(netbsd32_truncate)
1080 
1081 struct netbsd32_ftruncate_args {
1082 	syscallarg(int) fd;
1083 	syscallarg(int) PAD;
1084 	syscallarg(netbsd32_off_t) length;
1085 };
1086 check_syscall_args(netbsd32_ftruncate)
1087 
1088 struct netbsd32___sysctl_args {
1089 	syscallarg(netbsd32_intp) name;
1090 	syscallarg(u_int) namelen;
1091 	syscallarg(netbsd32_voidp) oldv;
1092 	syscallarg(netbsd32_size_tp) oldlenp;
1093 	syscallarg(netbsd32_voidp) newv;
1094 	syscallarg(netbsd32_size_t) newlen;
1095 };
1096 check_syscall_args(netbsd32___sysctl)
1097 
1098 struct netbsd32_mlock_args {
1099 	syscallarg(netbsd32_voidp) addr;
1100 	syscallarg(netbsd32_size_t) len;
1101 };
1102 check_syscall_args(netbsd32_mlock)
1103 
1104 struct netbsd32_munlock_args {
1105 	syscallarg(netbsd32_voidp) addr;
1106 	syscallarg(netbsd32_size_t) len;
1107 };
1108 check_syscall_args(netbsd32_munlock)
1109 
1110 struct netbsd32_undelete_args {
1111 	syscallarg(netbsd32_charp) path;
1112 };
1113 check_syscall_args(netbsd32_undelete)
1114 
1115 struct compat_50_netbsd32_futimes_args {
1116 	syscallarg(int) fd;
1117 	syscallarg(netbsd32_timeval50p_t) tptr;
1118 };
1119 check_syscall_args(compat_50_netbsd32_futimes)
1120 
1121 struct netbsd32_getpgid_args {
1122 	syscallarg(pid_t) pid;
1123 };
1124 check_syscall_args(netbsd32_getpgid)
1125 
1126 struct netbsd32_reboot_args {
1127 	syscallarg(int) opt;
1128 	syscallarg(netbsd32_charp) bootstr;
1129 };
1130 check_syscall_args(netbsd32_reboot)
1131 
1132 struct netbsd32_poll_args {
1133 	syscallarg(netbsd32_pollfdp_t) fds;
1134 	syscallarg(u_int) nfds;
1135 	syscallarg(int) timeout;
1136 };
1137 check_syscall_args(netbsd32_poll)
1138 
1139 struct compat_14_netbsd32___semctl_args {
1140 	syscallarg(int) semid;
1141 	syscallarg(int) semnum;
1142 	syscallarg(int) cmd;
1143 	syscallarg(netbsd32_semunu_t) arg;
1144 };
1145 check_syscall_args(compat_14_netbsd32___semctl)
1146 
1147 struct netbsd32_semget_args {
1148 	syscallarg(netbsd32_key_t) key;
1149 	syscallarg(int) nsems;
1150 	syscallarg(int) semflg;
1151 };
1152 check_syscall_args(netbsd32_semget)
1153 
1154 struct netbsd32_semop_args {
1155 	syscallarg(int) semid;
1156 	syscallarg(netbsd32_sembufp_t) sops;
1157 	syscallarg(netbsd32_size_t) nsops;
1158 };
1159 check_syscall_args(netbsd32_semop)
1160 
1161 struct netbsd32_semconfig_args {
1162 	syscallarg(int) flag;
1163 };
1164 check_syscall_args(netbsd32_semconfig)
1165 
1166 struct compat_14_netbsd32_msgctl_args {
1167 	syscallarg(int) msqid;
1168 	syscallarg(int) cmd;
1169 	syscallarg(netbsd32_msqid_ds14p_t) buf;
1170 };
1171 check_syscall_args(compat_14_netbsd32_msgctl)
1172 
1173 struct netbsd32_msgget_args {
1174 	syscallarg(netbsd32_key_t) key;
1175 	syscallarg(int) msgflg;
1176 };
1177 check_syscall_args(netbsd32_msgget)
1178 
1179 struct netbsd32_msgsnd_args {
1180 	syscallarg(int) msqid;
1181 	syscallarg(netbsd32_voidp) msgp;
1182 	syscallarg(netbsd32_size_t) msgsz;
1183 	syscallarg(int) msgflg;
1184 };
1185 check_syscall_args(netbsd32_msgsnd)
1186 
1187 struct netbsd32_msgrcv_args {
1188 	syscallarg(int) msqid;
1189 	syscallarg(netbsd32_voidp) msgp;
1190 	syscallarg(netbsd32_size_t) msgsz;
1191 	syscallarg(netbsd32_long) msgtyp;
1192 	syscallarg(int) msgflg;
1193 };
1194 check_syscall_args(netbsd32_msgrcv)
1195 
1196 struct netbsd32_shmat_args {
1197 	syscallarg(int) shmid;
1198 	syscallarg(netbsd32_voidp) shmaddr;
1199 	syscallarg(int) shmflg;
1200 };
1201 check_syscall_args(netbsd32_shmat)
1202 
1203 struct compat_14_netbsd32_shmctl_args {
1204 	syscallarg(int) shmid;
1205 	syscallarg(int) cmd;
1206 	syscallarg(netbsd32_shmid_dsp_t) buf;
1207 };
1208 check_syscall_args(compat_14_netbsd32_shmctl)
1209 
1210 struct netbsd32_shmdt_args {
1211 	syscallarg(netbsd32_voidp) shmaddr;
1212 };
1213 check_syscall_args(netbsd32_shmdt)
1214 
1215 struct netbsd32_shmget_args {
1216 	syscallarg(netbsd32_key_t) key;
1217 	syscallarg(netbsd32_size_t) size;
1218 	syscallarg(int) shmflg;
1219 };
1220 check_syscall_args(netbsd32_shmget)
1221 
1222 struct compat_50_netbsd32_clock_gettime_args {
1223 	syscallarg(netbsd32_clockid_t) clock_id;
1224 	syscallarg(netbsd32_timespec50p_t) tp;
1225 };
1226 check_syscall_args(compat_50_netbsd32_clock_gettime)
1227 
1228 struct compat_50_netbsd32_clock_settime_args {
1229 	syscallarg(netbsd32_clockid_t) clock_id;
1230 	syscallarg(netbsd32_timespec50p_t) tp;
1231 };
1232 check_syscall_args(compat_50_netbsd32_clock_settime)
1233 
1234 struct compat_50_netbsd32_clock_getres_args {
1235 	syscallarg(netbsd32_clockid_t) clock_id;
1236 	syscallarg(netbsd32_timespec50p_t) tp;
1237 };
1238 check_syscall_args(compat_50_netbsd32_clock_getres)
1239 
1240 struct netbsd32_timer_create_args {
1241 	syscallarg(netbsd32_clockid_t) clock_id;
1242 	syscallarg(netbsd32_sigeventp_t) evp;
1243 	syscallarg(netbsd32_timerp_t) timerid;
1244 };
1245 check_syscall_args(netbsd32_timer_create)
1246 
1247 struct netbsd32_timer_delete_args {
1248 	syscallarg(netbsd32_timer_t) timerid;
1249 };
1250 check_syscall_args(netbsd32_timer_delete)
1251 
1252 struct compat_50_netbsd32_timer_settime_args {
1253 	syscallarg(netbsd32_timer_t) timerid;
1254 	syscallarg(int) flags;
1255 	syscallarg(netbsd32_itimerspec50p_t) value;
1256 	syscallarg(netbsd32_itimerspec50p_t) ovalue;
1257 };
1258 check_syscall_args(compat_50_netbsd32_timer_settime)
1259 
1260 struct compat_50_netbsd32_timer_gettime_args {
1261 	syscallarg(netbsd32_timer_t) timerid;
1262 	syscallarg(netbsd32_itimerspec50p_t) value;
1263 };
1264 check_syscall_args(compat_50_netbsd32_timer_gettime)
1265 
1266 struct netbsd32_timer_getoverrun_args {
1267 	syscallarg(netbsd32_timer_t) timerid;
1268 };
1269 check_syscall_args(netbsd32_timer_getoverrun)
1270 
1271 struct compat_50_netbsd32_nanosleep_args {
1272 	syscallarg(netbsd32_timespec50p_t) rqtp;
1273 	syscallarg(netbsd32_timespec50p_t) rmtp;
1274 };
1275 check_syscall_args(compat_50_netbsd32_nanosleep)
1276 
1277 struct netbsd32_fdatasync_args {
1278 	syscallarg(int) fd;
1279 };
1280 check_syscall_args(netbsd32_fdatasync)
1281 
1282 struct netbsd32_mlockall_args {
1283 	syscallarg(int) flags;
1284 };
1285 check_syscall_args(netbsd32_mlockall)
1286 
1287 struct compat_50_netbsd32___sigtimedwait_args {
1288 	syscallarg(netbsd32_sigsetp_t) set;
1289 	syscallarg(netbsd32_siginfop_t) info;
1290 	syscallarg(netbsd32_timespec50p_t) timeout;
1291 };
1292 check_syscall_args(compat_50_netbsd32___sigtimedwait)
1293 
1294 struct netbsd32_sigqueueinfo_args {
1295 	syscallarg(pid_t) pid;
1296 	syscallarg(const netbsd32_siginfop_t) info;
1297 };
1298 check_syscall_args(netbsd32_sigqueueinfo)
1299 
1300 struct netbsd32_modctl_args {
1301 	syscallarg(int) cmd;
1302 	syscallarg(netbsd32_voidp) arg;
1303 };
1304 check_syscall_args(netbsd32_modctl)
1305 
1306 struct netbsd32__ksem_init_args {
1307 	syscallarg(unsigned int) value;
1308 	syscallarg(netbsd32_semidp_t) idp;
1309 };
1310 check_syscall_args(netbsd32__ksem_init)
1311 
1312 struct netbsd32__ksem_open_args {
1313 	syscallarg(netbsd32_charp) name;
1314 	syscallarg(int) oflag;
1315 	syscallarg(mode_t) mode;
1316 	syscallarg(unsigned int) value;
1317 	syscallarg(netbsd32_semidp_t) idp;
1318 };
1319 check_syscall_args(netbsd32__ksem_open)
1320 
1321 struct netbsd32__ksem_unlink_args {
1322 	syscallarg(netbsd32_charp) name;
1323 };
1324 check_syscall_args(netbsd32__ksem_unlink)
1325 
1326 struct netbsd32__ksem_close_args {
1327 	syscallarg(netbsd32_intptr_t) id;
1328 };
1329 check_syscall_args(netbsd32__ksem_close)
1330 
1331 struct netbsd32__ksem_post_args {
1332 	syscallarg(netbsd32_intptr_t) id;
1333 };
1334 check_syscall_args(netbsd32__ksem_post)
1335 
1336 struct netbsd32__ksem_wait_args {
1337 	syscallarg(netbsd32_intptr_t) id;
1338 };
1339 check_syscall_args(netbsd32__ksem_wait)
1340 
1341 struct netbsd32__ksem_trywait_args {
1342 	syscallarg(netbsd32_intptr_t) id;
1343 };
1344 check_syscall_args(netbsd32__ksem_trywait)
1345 
1346 struct netbsd32__ksem_getvalue_args {
1347 	syscallarg(netbsd32_intptr_t) id;
1348 	syscallarg(netbsd32_intp) value;
1349 };
1350 check_syscall_args(netbsd32__ksem_getvalue)
1351 
1352 struct netbsd32__ksem_destroy_args {
1353 	syscallarg(netbsd32_intptr_t) id;
1354 };
1355 check_syscall_args(netbsd32__ksem_destroy)
1356 
1357 struct netbsd32__ksem_timedwait_args {
1358 	syscallarg(intptr_t) id;
1359 	syscallarg(const netbsd32_timespecp_t) abstime;
1360 };
1361 check_syscall_args(netbsd32__ksem_timedwait)
1362 
1363 struct netbsd32_mq_open_args {
1364 	syscallarg(const netbsd32_charp) name;
1365 	syscallarg(int) oflag;
1366 	syscallarg(mode_t) mode;
1367 	syscallarg(netbsd32_mq_attrp_t) attr;
1368 };
1369 check_syscall_args(netbsd32_mq_open)
1370 
1371 struct netbsd32_mq_close_args {
1372 	syscallarg(mqd_t) mqdes;
1373 };
1374 check_syscall_args(netbsd32_mq_close)
1375 
1376 struct netbsd32_mq_unlink_args {
1377 	syscallarg(const netbsd32_charp) name;
1378 };
1379 check_syscall_args(netbsd32_mq_unlink)
1380 
1381 struct netbsd32_mq_getattr_args {
1382 	syscallarg(mqd_t) mqdes;
1383 	syscallarg(netbsd32_mq_attrp_t) mqstat;
1384 };
1385 check_syscall_args(netbsd32_mq_getattr)
1386 
1387 struct netbsd32_mq_setattr_args {
1388 	syscallarg(mqd_t) mqdes;
1389 	syscallarg(const netbsd32_mq_attrp_t) mqstat;
1390 	syscallarg(netbsd32_mq_attrp_t) omqstat;
1391 };
1392 check_syscall_args(netbsd32_mq_setattr)
1393 
1394 struct netbsd32_mq_notify_args {
1395 	syscallarg(mqd_t) mqdes;
1396 	syscallarg(const netbsd32_sigeventp_t) notification;
1397 };
1398 check_syscall_args(netbsd32_mq_notify)
1399 
1400 struct netbsd32_mq_send_args {
1401 	syscallarg(mqd_t) mqdes;
1402 	syscallarg(const netbsd32_charp) msg_ptr;
1403 	syscallarg(netbsd32_size_t) msg_len;
1404 	syscallarg(unsigned) msg_prio;
1405 };
1406 check_syscall_args(netbsd32_mq_send)
1407 
1408 struct netbsd32_mq_receive_args {
1409 	syscallarg(mqd_t) mqdes;
1410 	syscallarg(netbsd32_charp) msg_ptr;
1411 	syscallarg(netbsd32_size_t) msg_len;
1412 	syscallarg(netbsd32_uintp) msg_prio;
1413 };
1414 check_syscall_args(netbsd32_mq_receive)
1415 
1416 struct compat_50_netbsd32_mq_timedsend_args {
1417 	syscallarg(mqd_t) mqdes;
1418 	syscallarg(const netbsd32_charp) msg_ptr;
1419 	syscallarg(netbsd32_size_t) msg_len;
1420 	syscallarg(unsigned) msg_prio;
1421 	syscallarg(const netbsd32_timespec50p_t) abs_timeout;
1422 };
1423 check_syscall_args(compat_50_netbsd32_mq_timedsend)
1424 
1425 struct compat_50_netbsd32_mq_timedreceive_args {
1426 	syscallarg(mqd_t) mqdes;
1427 	syscallarg(netbsd32_charp) msg_ptr;
1428 	syscallarg(netbsd32_size_t) msg_len;
1429 	syscallarg(netbsd32_uintp) msg_prio;
1430 	syscallarg(const netbsd32_timespec50p_t) abs_timeout;
1431 };
1432 check_syscall_args(compat_50_netbsd32_mq_timedreceive)
1433 
1434 struct netbsd32_eventfd_args {
1435 	syscallarg(unsigned int) val;
1436 	syscallarg(int) flags;
1437 };
1438 check_syscall_args(netbsd32_eventfd)
1439 
1440 struct netbsd32___posix_rename_args {
1441 	syscallarg(netbsd32_charp) from;
1442 	syscallarg(netbsd32_charp) to;
1443 };
1444 check_syscall_args(netbsd32___posix_rename)
1445 
1446 struct netbsd32_swapctl_args {
1447 	syscallarg(int) cmd;
1448 	syscallarg(netbsd32_voidp) arg;
1449 	syscallarg(int) misc;
1450 };
1451 check_syscall_args(netbsd32_swapctl)
1452 
1453 struct compat_30_netbsd32_getdents_args {
1454 	syscallarg(int) fd;
1455 	syscallarg(netbsd32_charp) buf;
1456 	syscallarg(netbsd32_size_t) count;
1457 };
1458 check_syscall_args(compat_30_netbsd32_getdents)
1459 
1460 struct netbsd32_minherit_args {
1461 	syscallarg(netbsd32_voidp) addr;
1462 	syscallarg(netbsd32_size_t) len;
1463 	syscallarg(int) inherit;
1464 };
1465 check_syscall_args(netbsd32_minherit)
1466 
1467 struct netbsd32_lchmod_args {
1468 	syscallarg(netbsd32_charp) path;
1469 	syscallarg(mode_t) mode;
1470 };
1471 check_syscall_args(netbsd32_lchmod)
1472 
1473 struct netbsd32_lchown_args {
1474 	syscallarg(netbsd32_charp) path;
1475 	syscallarg(uid_t) uid;
1476 	syscallarg(gid_t) gid;
1477 };
1478 check_syscall_args(netbsd32_lchown)
1479 
1480 struct compat_50_netbsd32_lutimes_args {
1481 	syscallarg(netbsd32_charp) path;
1482 	syscallarg(netbsd32_timeval50p_t) tptr;
1483 };
1484 check_syscall_args(compat_50_netbsd32_lutimes)
1485 
1486 struct netbsd32___msync13_args {
1487 	syscallarg(netbsd32_voidp) addr;
1488 	syscallarg(netbsd32_size_t) len;
1489 	syscallarg(int) flags;
1490 };
1491 check_syscall_args(netbsd32___msync13)
1492 
1493 struct compat_30_netbsd32___stat13_args {
1494 	syscallarg(netbsd32_charp) path;
1495 	syscallarg(netbsd32_stat13p_t) ub;
1496 };
1497 check_syscall_args(compat_30_netbsd32___stat13)
1498 
1499 struct compat_30_netbsd32___fstat13_args {
1500 	syscallarg(int) fd;
1501 	syscallarg(netbsd32_stat13p_t) sb;
1502 };
1503 check_syscall_args(compat_30_netbsd32___fstat13)
1504 
1505 struct compat_30_netbsd32___lstat13_args {
1506 	syscallarg(netbsd32_charp) path;
1507 	syscallarg(netbsd32_stat13p_t) ub;
1508 };
1509 check_syscall_args(compat_30_netbsd32___lstat13)
1510 
1511 struct netbsd32___sigaltstack14_args {
1512 	syscallarg(netbsd32_sigaltstackp_t) nss;
1513 	syscallarg(netbsd32_sigaltstackp_t) oss;
1514 };
1515 check_syscall_args(netbsd32___sigaltstack14)
1516 
1517 struct netbsd32___posix_chown_args {
1518 	syscallarg(netbsd32_charp) path;
1519 	syscallarg(uid_t) uid;
1520 	syscallarg(gid_t) gid;
1521 };
1522 check_syscall_args(netbsd32___posix_chown)
1523 
1524 struct netbsd32___posix_fchown_args {
1525 	syscallarg(int) fd;
1526 	syscallarg(uid_t) uid;
1527 	syscallarg(gid_t) gid;
1528 };
1529 check_syscall_args(netbsd32___posix_fchown)
1530 
1531 struct netbsd32___posix_lchown_args {
1532 	syscallarg(netbsd32_charp) path;
1533 	syscallarg(uid_t) uid;
1534 	syscallarg(gid_t) gid;
1535 };
1536 check_syscall_args(netbsd32___posix_lchown)
1537 
1538 struct netbsd32_getsid_args {
1539 	syscallarg(pid_t) pid;
1540 };
1541 check_syscall_args(netbsd32_getsid)
1542 
1543 struct netbsd32___clone_args {
1544 	syscallarg(int) flags;
1545 	syscallarg(netbsd32_voidp) stack;
1546 };
1547 check_syscall_args(netbsd32___clone)
1548 
1549 struct netbsd32_fktrace_args {
1550 	syscallarg(int) fd;
1551 	syscallarg(int) ops;
1552 	syscallarg(int) facs;
1553 	syscallarg(int) pid;
1554 };
1555 check_syscall_args(netbsd32_fktrace)
1556 
1557 struct netbsd32_preadv_args {
1558 	syscallarg(int) fd;
1559 	syscallarg(netbsd32_iovecp_t) iovp;
1560 	syscallarg(int) iovcnt;
1561 	syscallarg(int) PAD;
1562 	syscallarg(netbsd32_off_t) offset;
1563 };
1564 check_syscall_args(netbsd32_preadv)
1565 
1566 struct netbsd32_pwritev_args {
1567 	syscallarg(int) fd;
1568 	syscallarg(netbsd32_iovecp_t) iovp;
1569 	syscallarg(int) iovcnt;
1570 	syscallarg(int) PAD;
1571 	syscallarg(netbsd32_off_t) offset;
1572 };
1573 check_syscall_args(netbsd32_pwritev)
1574 
1575 struct netbsd32___sigaction14_args {
1576 	syscallarg(int) signum;
1577 	syscallarg(netbsd32_sigactionp_t) nsa;
1578 	syscallarg(netbsd32_sigactionp_t) osa;
1579 };
1580 check_syscall_args(netbsd32___sigaction14)
1581 
1582 struct netbsd32___sigpending14_args {
1583 	syscallarg(netbsd32_sigsetp_t) set;
1584 };
1585 check_syscall_args(netbsd32___sigpending14)
1586 
1587 struct netbsd32___sigprocmask14_args {
1588 	syscallarg(int) how;
1589 	syscallarg(netbsd32_sigsetp_t) set;
1590 	syscallarg(netbsd32_sigsetp_t) oset;
1591 };
1592 check_syscall_args(netbsd32___sigprocmask14)
1593 
1594 struct netbsd32___sigsuspend14_args {
1595 	syscallarg(netbsd32_sigsetp_t) set;
1596 };
1597 check_syscall_args(netbsd32___sigsuspend14)
1598 
1599 struct compat_16_netbsd32___sigreturn14_args {
1600 	syscallarg(netbsd32_sigcontextp_t) sigcntxp;
1601 };
1602 check_syscall_args(compat_16_netbsd32___sigreturn14)
1603 
1604 struct netbsd32___getcwd_args {
1605 	syscallarg(netbsd32_charp) bufp;
1606 	syscallarg(netbsd32_size_t) length;
1607 };
1608 check_syscall_args(netbsd32___getcwd)
1609 
1610 struct netbsd32_fchroot_args {
1611 	syscallarg(int) fd;
1612 };
1613 check_syscall_args(netbsd32_fchroot)
1614 
1615 struct compat_30_netbsd32_fhopen_args {
1616 	syscallarg(netbsd32_fhandlep_t) fhp;
1617 	syscallarg(int) flags;
1618 };
1619 check_syscall_args(compat_30_netbsd32_fhopen)
1620 
1621 struct compat_30_netbsd32_fhstat_args {
1622 	syscallarg(netbsd32_fhandlep_t) fhp;
1623 	syscallarg(netbsd32_stat13p_t) sb;
1624 };
1625 check_syscall_args(compat_30_netbsd32_fhstat)
1626 
1627 struct compat_20_netbsd32_fhstatfs_args {
1628 	syscallarg(netbsd32_fhandlep_t) fhp;
1629 	syscallarg(netbsd32_stat50p_t) buf;
1630 };
1631 check_syscall_args(compat_20_netbsd32_fhstatfs)
1632 
1633 struct compat_50_netbsd32___semctl14_args {
1634 	syscallarg(int) semid;
1635 	syscallarg(int) semnum;
1636 	syscallarg(int) cmd;
1637 	syscallarg(netbsd32_semun50p_t) arg;
1638 };
1639 check_syscall_args(compat_50_netbsd32___semctl14)
1640 
1641 struct compat_50_netbsd32___msgctl13_args {
1642 	syscallarg(int) msqid;
1643 	syscallarg(int) cmd;
1644 	syscallarg(netbsd32_msqid_ds50p_t) buf;
1645 };
1646 check_syscall_args(compat_50_netbsd32___msgctl13)
1647 
1648 struct compat_50_netbsd32___shmctl13_args {
1649 	syscallarg(int) shmid;
1650 	syscallarg(int) cmd;
1651 	syscallarg(netbsd32_shmid_ds50p_t) buf;
1652 };
1653 check_syscall_args(compat_50_netbsd32___shmctl13)
1654 
1655 struct netbsd32_lchflags_args {
1656 	syscallarg(netbsd32_charp) path;
1657 	syscallarg(netbsd32_u_long) flags;
1658 };
1659 check_syscall_args(netbsd32_lchflags)
1660 
1661 struct netbsd32_utrace_args {
1662 	syscallarg(netbsd32_charp) label;
1663 	syscallarg(netbsd32_voidp) addr;
1664 	syscallarg(netbsd32_size_t) len;
1665 };
1666 check_syscall_args(netbsd32_utrace)
1667 
1668 struct netbsd32_getcontext_args {
1669 	syscallarg(netbsd32_ucontextp) ucp;
1670 };
1671 check_syscall_args(netbsd32_getcontext)
1672 
1673 struct netbsd32_setcontext_args {
1674 	syscallarg(netbsd32_ucontextp) ucp;
1675 };
1676 check_syscall_args(netbsd32_setcontext)
1677 
1678 struct netbsd32__lwp_create_args {
1679 	syscallarg(netbsd32_ucontextp) ucp;
1680 	syscallarg(netbsd32_u_long) flags;
1681 	syscallarg(netbsd32_lwpidp) new_lwp;
1682 };
1683 check_syscall_args(netbsd32__lwp_create)
1684 
1685 struct netbsd32__lwp_wait_args {
1686 	syscallarg(lwpid_t) wait_for;
1687 	syscallarg(netbsd32_lwpidp) departed;
1688 };
1689 check_syscall_args(netbsd32__lwp_wait)
1690 
1691 struct netbsd32__lwp_suspend_args {
1692 	syscallarg(lwpid_t) target;
1693 };
1694 check_syscall_args(netbsd32__lwp_suspend)
1695 
1696 struct netbsd32__lwp_continue_args {
1697 	syscallarg(lwpid_t) target;
1698 };
1699 check_syscall_args(netbsd32__lwp_continue)
1700 
1701 struct netbsd32__lwp_wakeup_args {
1702 	syscallarg(lwpid_t) target;
1703 };
1704 check_syscall_args(netbsd32__lwp_wakeup)
1705 
1706 struct netbsd32__lwp_setprivate_args {
1707 	syscallarg(netbsd32_voidp) ptr;
1708 };
1709 check_syscall_args(netbsd32__lwp_setprivate)
1710 
1711 struct netbsd32__lwp_kill_args {
1712 	syscallarg(lwpid_t) target;
1713 	syscallarg(int) signo;
1714 };
1715 check_syscall_args(netbsd32__lwp_kill)
1716 
1717 struct netbsd32__lwp_detach_args {
1718 	syscallarg(lwpid_t) target;
1719 };
1720 check_syscall_args(netbsd32__lwp_detach)
1721 
1722 struct compat_50_netbsd32__lwp_park_args {
1723 	syscallarg(netbsd32_timespec50p_t) ts;
1724 	syscallarg(lwpid_t) unpark;
1725 	syscallarg(netbsd32_voidp) hint;
1726 	syscallarg(netbsd32_voidp) unparkhint;
1727 };
1728 check_syscall_args(compat_50_netbsd32__lwp_park)
1729 
1730 struct netbsd32__lwp_unpark_args {
1731 	syscallarg(lwpid_t) target;
1732 	syscallarg(netbsd32_voidp) hint;
1733 };
1734 check_syscall_args(netbsd32__lwp_unpark)
1735 
1736 struct netbsd32__lwp_unpark_all_args {
1737 	syscallarg(netbsd32_lwpidp) targets;
1738 	syscallarg(netbsd32_size_t) ntargets;
1739 	syscallarg(netbsd32_voidp) hint;
1740 };
1741 check_syscall_args(netbsd32__lwp_unpark_all)
1742 
1743 struct netbsd32__lwp_setname_args {
1744 	syscallarg(lwpid_t) target;
1745 	syscallarg(netbsd32_charp) name;
1746 };
1747 check_syscall_args(netbsd32__lwp_setname)
1748 
1749 struct netbsd32__lwp_getname_args {
1750 	syscallarg(lwpid_t) target;
1751 	syscallarg(netbsd32_charp) name;
1752 	syscallarg(netbsd32_size_t) len;
1753 };
1754 check_syscall_args(netbsd32__lwp_getname)
1755 
1756 struct netbsd32__lwp_ctl_args {
1757 	syscallarg(int) features;
1758 	syscallarg(netbsd32_pointer_t) address;
1759 };
1760 check_syscall_args(netbsd32__lwp_ctl)
1761 
1762 struct netbsd32___sigaction_sigtramp_args {
1763 	syscallarg(int) signum;
1764 	syscallarg(netbsd32_sigactionp_t) nsa;
1765 	syscallarg(netbsd32_sigactionp_t) osa;
1766 	syscallarg(netbsd32_voidp) tramp;
1767 	syscallarg(int) vers;
1768 };
1769 check_syscall_args(netbsd32___sigaction_sigtramp)
1770 
1771 struct netbsd32_rasctl_args {
1772 	syscallarg(netbsd32_voidp) addr;
1773 	syscallarg(netbsd32_size_t) len;
1774 	syscallarg(int) op;
1775 };
1776 check_syscall_args(netbsd32_rasctl)
1777 
1778 struct compat_50_netbsd32_kevent_args {
1779 	syscallarg(int) fd;
1780 	syscallarg(netbsd32_kevent100p_t) changelist;
1781 	syscallarg(netbsd32_size_t) nchanges;
1782 	syscallarg(netbsd32_kevent100p_t) eventlist;
1783 	syscallarg(netbsd32_size_t) nevents;
1784 	syscallarg(netbsd32_timespec50p_t) timeout;
1785 };
1786 check_syscall_args(compat_50_netbsd32_kevent)
1787 
1788 struct netbsd32__sched_setparam_args {
1789 	syscallarg(pid_t) pid;
1790 	syscallarg(lwpid_t) lid;
1791 	syscallarg(int) policy;
1792 	syscallarg(const netbsd32_sched_paramp_t) params;
1793 };
1794 check_syscall_args(netbsd32__sched_setparam)
1795 
1796 struct netbsd32__sched_getparam_args {
1797 	syscallarg(pid_t) pid;
1798 	syscallarg(lwpid_t) lid;
1799 	syscallarg(netbsd32_intp) policy;
1800 	syscallarg(netbsd32_sched_paramp_t) params;
1801 };
1802 check_syscall_args(netbsd32__sched_getparam)
1803 
1804 struct netbsd32__sched_setaffinity_args {
1805 	syscallarg(pid_t) pid;
1806 	syscallarg(lwpid_t) lid;
1807 	syscallarg(netbsd32_size_t) size;
1808 	syscallarg(const netbsd32_cpusetp_t) cpuset;
1809 };
1810 check_syscall_args(netbsd32__sched_setaffinity)
1811 
1812 struct netbsd32__sched_getaffinity_args {
1813 	syscallarg(pid_t) pid;
1814 	syscallarg(lwpid_t) lid;
1815 	syscallarg(netbsd32_size_t) size;
1816 	syscallarg(netbsd32_cpusetp_t) cpuset;
1817 };
1818 check_syscall_args(netbsd32__sched_getaffinity)
1819 
1820 struct netbsd32__sched_protect_args {
1821 	syscallarg(int) priority;
1822 };
1823 check_syscall_args(netbsd32__sched_protect)
1824 
1825 struct netbsd32_fsync_range_args {
1826 	syscallarg(int) fd;
1827 	syscallarg(int) flags;
1828 	syscallarg(netbsd32_off_t) start;
1829 	syscallarg(netbsd32_off_t) length;
1830 };
1831 check_syscall_args(netbsd32_fsync_range)
1832 
1833 struct netbsd32_uuidgen_args {
1834 	syscallarg(netbsd32_uuidp_t) store;
1835 	syscallarg(int) count;
1836 };
1837 check_syscall_args(netbsd32_uuidgen)
1838 
1839 struct compat_90_netbsd32_getvfsstat_args {
1840 	syscallarg(netbsd32_statvfs90p_t) buf;
1841 	syscallarg(netbsd32_size_t) bufsize;
1842 	syscallarg(int) flags;
1843 };
1844 check_syscall_args(compat_90_netbsd32_getvfsstat)
1845 
1846 struct compat_90_netbsd32_statvfs1_args {
1847 	syscallarg(netbsd32_charp) path;
1848 	syscallarg(netbsd32_statvfs90p_t) buf;
1849 	syscallarg(int) flags;
1850 };
1851 check_syscall_args(compat_90_netbsd32_statvfs1)
1852 
1853 struct compat_90_netbsd32_fstatvfs1_args {
1854 	syscallarg(int) fd;
1855 	syscallarg(netbsd32_statvfs90p_t) buf;
1856 	syscallarg(int) flags;
1857 };
1858 check_syscall_args(compat_90_netbsd32_fstatvfs1)
1859 
1860 struct compat_30_netbsd32_fhstatvfs1_args {
1861 	syscallarg(netbsd32_fhandlep_t) fhp;
1862 	syscallarg(netbsd32_statvfs90p_t) buf;
1863 	syscallarg(int) flags;
1864 };
1865 check_syscall_args(compat_30_netbsd32_fhstatvfs1)
1866 
1867 struct netbsd32_extattrctl_args {
1868 	syscallarg(netbsd32_charp) path;
1869 	syscallarg(int) cmd;
1870 	syscallarg(netbsd32_charp) filename;
1871 	syscallarg(int) attrnamespace;
1872 	syscallarg(netbsd32_charp) attrname;
1873 };
1874 check_syscall_args(netbsd32_extattrctl)
1875 
1876 struct netbsd32_extattr_set_file_args {
1877 	syscallarg(netbsd32_charp) path;
1878 	syscallarg(int) attrnamespace;
1879 	syscallarg(netbsd32_charp) attrname;
1880 	syscallarg(netbsd32_voidp) data;
1881 	syscallarg(netbsd32_size_t) nbytes;
1882 };
1883 check_syscall_args(netbsd32_extattr_set_file)
1884 
1885 struct netbsd32_extattr_get_file_args {
1886 	syscallarg(netbsd32_charp) path;
1887 	syscallarg(int) attrnamespace;
1888 	syscallarg(netbsd32_charp) attrname;
1889 	syscallarg(netbsd32_voidp) data;
1890 	syscallarg(netbsd32_size_t) nbytes;
1891 };
1892 check_syscall_args(netbsd32_extattr_get_file)
1893 
1894 struct netbsd32_extattr_delete_file_args {
1895 	syscallarg(netbsd32_charp) path;
1896 	syscallarg(int) attrnamespace;
1897 	syscallarg(netbsd32_charp) attrname;
1898 };
1899 check_syscall_args(netbsd32_extattr_delete_file)
1900 
1901 struct netbsd32_extattr_set_fd_args {
1902 	syscallarg(int) fd;
1903 	syscallarg(int) attrnamespace;
1904 	syscallarg(netbsd32_charp) attrname;
1905 	syscallarg(netbsd32_voidp) data;
1906 	syscallarg(netbsd32_size_t) nbytes;
1907 };
1908 check_syscall_args(netbsd32_extattr_set_fd)
1909 
1910 struct netbsd32_extattr_get_fd_args {
1911 	syscallarg(int) fd;
1912 	syscallarg(int) attrnamespace;
1913 	syscallarg(netbsd32_charp) attrname;
1914 	syscallarg(netbsd32_voidp) data;
1915 	syscallarg(netbsd32_size_t) nbytes;
1916 };
1917 check_syscall_args(netbsd32_extattr_get_fd)
1918 
1919 struct netbsd32_extattr_delete_fd_args {
1920 	syscallarg(int) fd;
1921 	syscallarg(int) attrnamespace;
1922 	syscallarg(netbsd32_charp) attrname;
1923 };
1924 check_syscall_args(netbsd32_extattr_delete_fd)
1925 
1926 struct netbsd32_extattr_set_link_args {
1927 	syscallarg(netbsd32_charp) path;
1928 	syscallarg(int) attrnamespace;
1929 	syscallarg(netbsd32_charp) attrname;
1930 	syscallarg(netbsd32_voidp) data;
1931 	syscallarg(netbsd32_size_t) nbytes;
1932 };
1933 check_syscall_args(netbsd32_extattr_set_link)
1934 
1935 struct netbsd32_extattr_get_link_args {
1936 	syscallarg(netbsd32_charp) path;
1937 	syscallarg(int) attrnamespace;
1938 	syscallarg(netbsd32_charp) attrname;
1939 	syscallarg(netbsd32_voidp) data;
1940 	syscallarg(netbsd32_size_t) nbytes;
1941 };
1942 check_syscall_args(netbsd32_extattr_get_link)
1943 
1944 struct netbsd32_extattr_delete_link_args {
1945 	syscallarg(netbsd32_charp) path;
1946 	syscallarg(int) attrnamespace;
1947 	syscallarg(netbsd32_charp) attrname;
1948 };
1949 check_syscall_args(netbsd32_extattr_delete_link)
1950 
1951 struct netbsd32_extattr_list_fd_args {
1952 	syscallarg(int) fd;
1953 	syscallarg(int) attrnamespace;
1954 	syscallarg(netbsd32_voidp) data;
1955 	syscallarg(netbsd32_size_t) nbytes;
1956 };
1957 check_syscall_args(netbsd32_extattr_list_fd)
1958 
1959 struct netbsd32_extattr_list_file_args {
1960 	syscallarg(netbsd32_charp) path;
1961 	syscallarg(int) attrnamespace;
1962 	syscallarg(netbsd32_voidp) data;
1963 	syscallarg(netbsd32_size_t) nbytes;
1964 };
1965 check_syscall_args(netbsd32_extattr_list_file)
1966 
1967 struct netbsd32_extattr_list_link_args {
1968 	syscallarg(netbsd32_charp) path;
1969 	syscallarg(int) attrnamespace;
1970 	syscallarg(netbsd32_voidp) data;
1971 	syscallarg(netbsd32_size_t) nbytes;
1972 };
1973 check_syscall_args(netbsd32_extattr_list_link)
1974 
1975 struct compat_50_netbsd32_pselect_args {
1976 	syscallarg(int) nd;
1977 	syscallarg(netbsd32_fd_setp_t) in;
1978 	syscallarg(netbsd32_fd_setp_t) ou;
1979 	syscallarg(netbsd32_fd_setp_t) ex;
1980 	syscallarg(netbsd32_timespec50p_t) ts;
1981 	syscallarg(netbsd32_sigsetp_t) mask;
1982 };
1983 check_syscall_args(compat_50_netbsd32_pselect)
1984 
1985 struct compat_50_netbsd32_pollts_args {
1986 	syscallarg(netbsd32_pollfdp_t) fds;
1987 	syscallarg(u_int) nfds;
1988 	syscallarg(netbsd32_timespec50p_t) ts;
1989 	syscallarg(netbsd32_sigsetp_t) mask;
1990 };
1991 check_syscall_args(compat_50_netbsd32_pollts)
1992 
1993 struct netbsd32_setxattr_args {
1994 	syscallarg(netbsd32_charp) path;
1995 	syscallarg(netbsd32_charp) name;
1996 	syscallarg(netbsd32_voidp) value;
1997 	syscallarg(netbsd32_size_t) size;
1998 	syscallarg(int) flags;
1999 };
2000 check_syscall_args(netbsd32_setxattr)
2001 
2002 struct netbsd32_lsetxattr_args {
2003 	syscallarg(netbsd32_charp) path;
2004 	syscallarg(netbsd32_charp) name;
2005 	syscallarg(netbsd32_voidp) value;
2006 	syscallarg(netbsd32_size_t) size;
2007 	syscallarg(int) flags;
2008 };
2009 check_syscall_args(netbsd32_lsetxattr)
2010 
2011 struct netbsd32_fsetxattr_args {
2012 	syscallarg(int) fd;
2013 	syscallarg(netbsd32_charp) name;
2014 	syscallarg(netbsd32_voidp) value;
2015 	syscallarg(netbsd32_size_t) size;
2016 	syscallarg(int) flags;
2017 };
2018 check_syscall_args(netbsd32_fsetxattr)
2019 
2020 struct netbsd32_getxattr_args {
2021 	syscallarg(netbsd32_charp) path;
2022 	syscallarg(netbsd32_charp) name;
2023 	syscallarg(netbsd32_voidp) value;
2024 	syscallarg(netbsd32_size_t) size;
2025 };
2026 check_syscall_args(netbsd32_getxattr)
2027 
2028 struct netbsd32_lgetxattr_args {
2029 	syscallarg(netbsd32_charp) path;
2030 	syscallarg(netbsd32_charp) name;
2031 	syscallarg(netbsd32_voidp) value;
2032 	syscallarg(netbsd32_size_t) size;
2033 };
2034 check_syscall_args(netbsd32_lgetxattr)
2035 
2036 struct netbsd32_fgetxattr_args {
2037 	syscallarg(int) fd;
2038 	syscallarg(netbsd32_charp) name;
2039 	syscallarg(netbsd32_voidp) value;
2040 	syscallarg(netbsd32_size_t) size;
2041 };
2042 check_syscall_args(netbsd32_fgetxattr)
2043 
2044 struct netbsd32_listxattr_args {
2045 	syscallarg(netbsd32_charp) path;
2046 	syscallarg(netbsd32_charp) list;
2047 	syscallarg(netbsd32_size_t) size;
2048 };
2049 check_syscall_args(netbsd32_listxattr)
2050 
2051 struct netbsd32_llistxattr_args {
2052 	syscallarg(netbsd32_charp) path;
2053 	syscallarg(netbsd32_charp) list;
2054 	syscallarg(netbsd32_size_t) size;
2055 };
2056 check_syscall_args(netbsd32_llistxattr)
2057 
2058 struct netbsd32_flistxattr_args {
2059 	syscallarg(int) fd;
2060 	syscallarg(netbsd32_charp) list;
2061 	syscallarg(netbsd32_size_t) size;
2062 };
2063 check_syscall_args(netbsd32_flistxattr)
2064 
2065 struct netbsd32_removexattr_args {
2066 	syscallarg(netbsd32_charp) path;
2067 	syscallarg(netbsd32_charp) name;
2068 };
2069 check_syscall_args(netbsd32_removexattr)
2070 
2071 struct netbsd32_lremovexattr_args {
2072 	syscallarg(netbsd32_charp) path;
2073 	syscallarg(netbsd32_charp) name;
2074 };
2075 check_syscall_args(netbsd32_lremovexattr)
2076 
2077 struct netbsd32_fremovexattr_args {
2078 	syscallarg(int) fd;
2079 	syscallarg(netbsd32_charp) name;
2080 };
2081 check_syscall_args(netbsd32_fremovexattr)
2082 
2083 struct compat_50_netbsd32___stat30_args {
2084 	syscallarg(netbsd32_charp) path;
2085 	syscallarg(netbsd32_stat50p_t) ub;
2086 };
2087 check_syscall_args(compat_50_netbsd32___stat30)
2088 
2089 struct compat_50_netbsd32___fstat30_args {
2090 	syscallarg(int) fd;
2091 	syscallarg(netbsd32_stat50p_t) sb;
2092 };
2093 check_syscall_args(compat_50_netbsd32___fstat30)
2094 
2095 struct compat_50_netbsd32___lstat30_args {
2096 	syscallarg(netbsd32_charp) path;
2097 	syscallarg(netbsd32_stat50p_t) ub;
2098 };
2099 check_syscall_args(compat_50_netbsd32___lstat30)
2100 
2101 struct netbsd32___getdents30_args {
2102 	syscallarg(int) fd;
2103 	syscallarg(netbsd32_charp) buf;
2104 	syscallarg(netbsd32_size_t) count;
2105 };
2106 check_syscall_args(netbsd32___getdents30)
2107 
2108 struct compat_30_netbsd32___fhstat30_args {
2109 	syscallarg(netbsd32_fhandlep_t) fhp;
2110 	syscallarg(netbsd32_stat50p_t) sb;
2111 };
2112 check_syscall_args(compat_30_netbsd32___fhstat30)
2113 
2114 struct compat_50_netbsd32_ntp_gettime_args {
2115 	syscallarg(netbsd32_ntptimeval50p_t) ntvp;
2116 };
2117 check_syscall_args(compat_50_netbsd32_ntp_gettime)
2118 
2119 struct netbsd32___socket30_args {
2120 	syscallarg(int) domain;
2121 	syscallarg(int) type;
2122 	syscallarg(int) protocol;
2123 };
2124 check_syscall_args(netbsd32___socket30)
2125 
2126 struct netbsd32___getfh30_args {
2127 	syscallarg(netbsd32_charp) fname;
2128 	syscallarg(netbsd32_pointer_t) fhp;
2129 	syscallarg(netbsd32_size_tp) fh_size;
2130 };
2131 check_syscall_args(netbsd32___getfh30)
2132 
2133 struct netbsd32___fhopen40_args {
2134 	syscallarg(netbsd32_pointer_t) fhp;
2135 	syscallarg(netbsd32_size_t) fh_size;
2136 	syscallarg(int) flags;
2137 };
2138 check_syscall_args(netbsd32___fhopen40)
2139 
2140 struct compat_90_netbsd32_fhstatvfs1_args {
2141 	syscallarg(netbsd32_pointer_t) fhp;
2142 	syscallarg(netbsd32_size_t) fh_size;
2143 	syscallarg(netbsd32_statvfs90p_t) buf;
2144 	syscallarg(int) flags;
2145 };
2146 check_syscall_args(compat_90_netbsd32_fhstatvfs1)
2147 
2148 struct compat_50_netbsd32___fhstat40_args {
2149 	syscallarg(netbsd32_pointer_t) fhp;
2150 	syscallarg(netbsd32_size_t) fh_size;
2151 	syscallarg(netbsd32_stat50p_t) sb;
2152 };
2153 check_syscall_args(compat_50_netbsd32___fhstat40)
2154 
2155 struct netbsd32___mount50_args {
2156 	syscallarg(netbsd32_charp) type;
2157 	syscallarg(netbsd32_charp) path;
2158 	syscallarg(int) flags;
2159 	syscallarg(netbsd32_voidp) data;
2160 	syscallarg(netbsd32_size_t) data_len;
2161 };
2162 check_syscall_args(netbsd32___mount50)
2163 
2164 struct netbsd32_mremap_args {
2165 	syscallarg(netbsd32_voidp) old_address;
2166 	syscallarg(netbsd32_size_t) old_size;
2167 	syscallarg(netbsd32_voidp) new_address;
2168 	syscallarg(netbsd32_size_t) new_size;
2169 	syscallarg(int) flags;
2170 };
2171 check_syscall_args(netbsd32_mremap)
2172 
2173 struct netbsd32_pset_create_args {
2174 	syscallarg(netbsd32_psetidp_t) psid;
2175 };
2176 check_syscall_args(netbsd32_pset_create)
2177 
2178 struct netbsd32_pset_destroy_args {
2179 	syscallarg(psetid_t) psid;
2180 };
2181 check_syscall_args(netbsd32_pset_destroy)
2182 
2183 struct netbsd32_pset_assign_args {
2184 	syscallarg(psetid_t) psid;
2185 	syscallarg(cpuid_t) cpuid;
2186 	syscallarg(netbsd32_psetidp_t) opsid;
2187 };
2188 check_syscall_args(netbsd32_pset_assign)
2189 
2190 struct netbsd32__pset_bind_args {
2191 	syscallarg(idtype_t) idtype;
2192 	syscallarg(id_t) first_id;
2193 	syscallarg(id_t) second_id;
2194 	syscallarg(psetid_t) psid;
2195 	syscallarg(netbsd32_psetidp_t) opsid;
2196 };
2197 check_syscall_args(netbsd32__pset_bind)
2198 
2199 struct netbsd32___posix_fadvise50_args {
2200 	syscallarg(int) fd;
2201 	syscallarg(int) PAD;
2202 	syscallarg(netbsd32_off_t) offset;
2203 	syscallarg(netbsd32_off_t) len;
2204 	syscallarg(int) advice;
2205 };
2206 check_syscall_args(netbsd32___posix_fadvise50)
2207 
2208 struct netbsd32___select50_args {
2209 	syscallarg(int) nd;
2210 	syscallarg(netbsd32_fd_setp_t) in;
2211 	syscallarg(netbsd32_fd_setp_t) ou;
2212 	syscallarg(netbsd32_fd_setp_t) ex;
2213 	syscallarg(netbsd32_timevalp_t) tv;
2214 };
2215 check_syscall_args(netbsd32___select50)
2216 
2217 struct netbsd32___gettimeofday50_args {
2218 	syscallarg(netbsd32_timevalp_t) tp;
2219 	syscallarg(netbsd32_voidp) tzp;
2220 };
2221 check_syscall_args(netbsd32___gettimeofday50)
2222 
2223 struct netbsd32___settimeofday50_args {
2224 	syscallarg(const netbsd32_timevalp_t) tv;
2225 	syscallarg(const netbsd32_voidp) tzp;
2226 };
2227 check_syscall_args(netbsd32___settimeofday50)
2228 
2229 struct netbsd32___utimes50_args {
2230 	syscallarg(const netbsd32_charp) path;
2231 	syscallarg(const netbsd32_timevalp_t) tptr;
2232 };
2233 check_syscall_args(netbsd32___utimes50)
2234 
2235 struct netbsd32___adjtime50_args {
2236 	syscallarg(const netbsd32_timevalp_t) delta;
2237 	syscallarg(netbsd32_timevalp_t) olddelta;
2238 };
2239 check_syscall_args(netbsd32___adjtime50)
2240 
2241 struct netbsd32___futimes50_args {
2242 	syscallarg(int) fd;
2243 	syscallarg(const netbsd32_timevalp_t) tptr;
2244 };
2245 check_syscall_args(netbsd32___futimes50)
2246 
2247 struct netbsd32___lutimes50_args {
2248 	syscallarg(const netbsd32_charp) path;
2249 	syscallarg(const netbsd32_timevalp_t) tptr;
2250 };
2251 check_syscall_args(netbsd32___lutimes50)
2252 
2253 struct netbsd32___setitimer50_args {
2254 	syscallarg(int) which;
2255 	syscallarg(const netbsd32_itimervalp_t) itv;
2256 	syscallarg(netbsd32_itimervalp_t) oitv;
2257 };
2258 check_syscall_args(netbsd32___setitimer50)
2259 
2260 struct netbsd32___getitimer50_args {
2261 	syscallarg(int) which;
2262 	syscallarg(netbsd32_itimervalp_t) itv;
2263 };
2264 check_syscall_args(netbsd32___getitimer50)
2265 
2266 struct netbsd32___clock_gettime50_args {
2267 	syscallarg(clockid_t) clock_id;
2268 	syscallarg(netbsd32_timespecp_t) tp;
2269 };
2270 check_syscall_args(netbsd32___clock_gettime50)
2271 
2272 struct netbsd32___clock_settime50_args {
2273 	syscallarg(clockid_t) clock_id;
2274 	syscallarg(const netbsd32_timespecp_t) tp;
2275 };
2276 check_syscall_args(netbsd32___clock_settime50)
2277 
2278 struct netbsd32___clock_getres50_args {
2279 	syscallarg(clockid_t) clock_id;
2280 	syscallarg(netbsd32_timespecp_t) tp;
2281 };
2282 check_syscall_args(netbsd32___clock_getres50)
2283 
2284 struct netbsd32___nanosleep50_args {
2285 	syscallarg(const netbsd32_timespecp_t) rqtp;
2286 	syscallarg(netbsd32_timespecp_t) rmtp;
2287 };
2288 check_syscall_args(netbsd32___nanosleep50)
2289 
2290 struct netbsd32_____sigtimedwait50_args {
2291 	syscallarg(const netbsd32_sigsetp_t) set;
2292 	syscallarg(netbsd32_siginfop_t) info;
2293 	syscallarg(netbsd32_timespecp_t) timeout;
2294 };
2295 check_syscall_args(netbsd32_____sigtimedwait50)
2296 
2297 struct netbsd32___mq_timedsend50_args {
2298 	syscallarg(mqd_t) mqdes;
2299 	syscallarg(const netbsd32_charp) msg_ptr;
2300 	syscallarg(netbsd32_size_t) msg_len;
2301 	syscallarg(unsigned) msg_prio;
2302 	syscallarg(const netbsd32_timespecp_t) abs_timeout;
2303 };
2304 check_syscall_args(netbsd32___mq_timedsend50)
2305 
2306 struct netbsd32___mq_timedreceive50_args {
2307 	syscallarg(mqd_t) mqdes;
2308 	syscallarg(netbsd32_charp) msg_ptr;
2309 	syscallarg(netbsd32_size_t) msg_len;
2310 	syscallarg(netbsd32_uintp) msg_prio;
2311 	syscallarg(const netbsd32_timespecp_t) abs_timeout;
2312 };
2313 check_syscall_args(netbsd32___mq_timedreceive50)
2314 
2315 struct compat_60_netbsd32__lwp_park_args {
2316 	syscallarg(const netbsd32_timespecp_t) ts;
2317 	syscallarg(lwpid_t) unpark;
2318 	syscallarg(const netbsd32_voidp) hint;
2319 	syscallarg(const netbsd32_voidp) unparkhint;
2320 };
2321 check_syscall_args(compat_60_netbsd32__lwp_park)
2322 
2323 struct compat_100_netbsd32___kevent50_args {
2324 	syscallarg(int) fd;
2325 	syscallarg(const netbsd32_kevent100p_t) changelist;
2326 	syscallarg(netbsd32_size_t) nchanges;
2327 	syscallarg(netbsd32_kevent100p_t) eventlist;
2328 	syscallarg(netbsd32_size_t) nevents;
2329 	syscallarg(const netbsd32_timespecp_t) timeout;
2330 };
2331 check_syscall_args(compat_100_netbsd32___kevent50)
2332 
2333 struct netbsd32___pselect50_args {
2334 	syscallarg(int) nd;
2335 	syscallarg(netbsd32_fd_setp_t) in;
2336 	syscallarg(netbsd32_fd_setp_t) ou;
2337 	syscallarg(netbsd32_fd_setp_t) ex;
2338 	syscallarg(const netbsd32_timespecp_t) ts;
2339 	syscallarg(const netbsd32_sigsetp_t) mask;
2340 };
2341 check_syscall_args(netbsd32___pselect50)
2342 
2343 struct netbsd32___pollts50_args {
2344 	syscallarg(netbsd32_pollfdp_t) fds;
2345 	syscallarg(u_int) nfds;
2346 	syscallarg(const netbsd32_timespecp_t) ts;
2347 	syscallarg(const netbsd32_sigsetp_t) mask;
2348 };
2349 check_syscall_args(netbsd32___pollts50)
2350 
2351 struct netbsd32___stat50_args {
2352 	syscallarg(const netbsd32_charp) path;
2353 	syscallarg(netbsd32_statp_t) ub;
2354 };
2355 check_syscall_args(netbsd32___stat50)
2356 
2357 struct netbsd32___fstat50_args {
2358 	syscallarg(int) fd;
2359 	syscallarg(netbsd32_statp_t) sb;
2360 };
2361 check_syscall_args(netbsd32___fstat50)
2362 
2363 struct netbsd32___lstat50_args {
2364 	syscallarg(const netbsd32_charp) path;
2365 	syscallarg(netbsd32_statp_t) ub;
2366 };
2367 check_syscall_args(netbsd32___lstat50)
2368 
2369 struct netbsd32_____semctl50_args {
2370 	syscallarg(int) semid;
2371 	syscallarg(int) semnum;
2372 	syscallarg(int) cmd;
2373 	syscallarg(netbsd32_semunp_t) arg;
2374 };
2375 check_syscall_args(netbsd32_____semctl50)
2376 
2377 struct netbsd32___shmctl50_args {
2378 	syscallarg(int) shmid;
2379 	syscallarg(int) cmd;
2380 	syscallarg(netbsd32_shmid_dsp_t) buf;
2381 };
2382 check_syscall_args(netbsd32___shmctl50)
2383 
2384 struct netbsd32___msgctl50_args {
2385 	syscallarg(int) msqid;
2386 	syscallarg(int) cmd;
2387 	syscallarg(netbsd32_msqid_dsp_t) buf;
2388 };
2389 check_syscall_args(netbsd32___msgctl50)
2390 
2391 struct netbsd32___getrusage50_args {
2392 	syscallarg(int) who;
2393 	syscallarg(netbsd32_rusagep_t) rusage;
2394 };
2395 check_syscall_args(netbsd32___getrusage50)
2396 
2397 struct netbsd32___timer_settime50_args {
2398 	syscallarg(timer_t) timerid;
2399 	syscallarg(int) flags;
2400 	syscallarg(const netbsd32_itimerspecp_t) value;
2401 	syscallarg(netbsd32_itimerspecp_t) ovalue;
2402 };
2403 check_syscall_args(netbsd32___timer_settime50)
2404 
2405 struct netbsd32___timer_gettime50_args {
2406 	syscallarg(timer_t) timerid;
2407 	syscallarg(netbsd32_itimerspecp_t) value;
2408 };
2409 check_syscall_args(netbsd32___timer_gettime50)
2410 #if defined(NTP) || !defined(_KERNEL_OPT)
2411 
2412 struct netbsd32___ntp_gettime50_args {
2413 	syscallarg(netbsd32_ntptimevalp_t) ntvp;
2414 };
2415 check_syscall_args(netbsd32___ntp_gettime50)
2416 #else
2417 #endif
2418 
2419 struct netbsd32___wait450_args {
2420 	syscallarg(int) pid;
2421 	syscallarg(netbsd32_intp) status;
2422 	syscallarg(int) options;
2423 	syscallarg(netbsd32_rusagep_t) rusage;
2424 };
2425 check_syscall_args(netbsd32___wait450)
2426 
2427 struct netbsd32___mknod50_args {
2428 	syscallarg(const netbsd32_charp) path;
2429 	syscallarg(mode_t) mode;
2430 	syscallarg(netbsd32_dev_t) dev;
2431 };
2432 check_syscall_args(netbsd32___mknod50)
2433 
2434 struct netbsd32___fhstat50_args {
2435 	syscallarg(const netbsd32_voidp) fhp;
2436 	syscallarg(netbsd32_size_t) fh_size;
2437 	syscallarg(netbsd32_statp_t) sb;
2438 };
2439 check_syscall_args(netbsd32___fhstat50)
2440 
2441 struct netbsd32_pipe2_args {
2442 	syscallarg(netbsd32_intp) fildes;
2443 	syscallarg(int) flags;
2444 };
2445 check_syscall_args(netbsd32_pipe2)
2446 
2447 struct netbsd32_dup3_args {
2448 	syscallarg(int) from;
2449 	syscallarg(int) to;
2450 	syscallarg(int) flags;
2451 };
2452 check_syscall_args(netbsd32_dup3)
2453 
2454 struct netbsd32_kqueue1_args {
2455 	syscallarg(int) flags;
2456 };
2457 check_syscall_args(netbsd32_kqueue1)
2458 
2459 struct netbsd32_paccept_args {
2460 	syscallarg(int) s;
2461 	syscallarg(netbsd32_sockaddrp_t) name;
2462 	syscallarg(netbsd32_socklenp_t) anamelen;
2463 	syscallarg(const netbsd32_sigsetp_t) mask;
2464 	syscallarg(int) flags;
2465 };
2466 check_syscall_args(netbsd32_paccept)
2467 
2468 struct netbsd32_linkat_args {
2469 	syscallarg(int) fd1;
2470 	syscallarg(const netbsd32_charp) name1;
2471 	syscallarg(int) fd2;
2472 	syscallarg(const netbsd32_charp) name2;
2473 	syscallarg(int) flags;
2474 };
2475 check_syscall_args(netbsd32_linkat)
2476 
2477 struct netbsd32_renameat_args {
2478 	syscallarg(int) fromfd;
2479 	syscallarg(const netbsd32_charp) from;
2480 	syscallarg(int) tofd;
2481 	syscallarg(const netbsd32_charp) to;
2482 };
2483 check_syscall_args(netbsd32_renameat)
2484 
2485 struct netbsd32_mkfifoat_args {
2486 	syscallarg(int) fd;
2487 	syscallarg(const netbsd32_charp) path;
2488 	syscallarg(mode_t) mode;
2489 };
2490 check_syscall_args(netbsd32_mkfifoat)
2491 
2492 struct netbsd32_mknodat_args {
2493 	syscallarg(int) fd;
2494 	syscallarg(const netbsd32_charp) path;
2495 	syscallarg(mode_t) mode;
2496 	syscallarg(int) PAD;
2497 	syscallarg(netbsd32_dev_t) dev;
2498 };
2499 check_syscall_args(netbsd32_mknodat)
2500 
2501 struct netbsd32_mkdirat_args {
2502 	syscallarg(int) fd;
2503 	syscallarg(const netbsd32_charp) path;
2504 	syscallarg(mode_t) mode;
2505 };
2506 check_syscall_args(netbsd32_mkdirat)
2507 
2508 struct netbsd32_faccessat_args {
2509 	syscallarg(int) fd;
2510 	syscallarg(const netbsd32_charp) path;
2511 	syscallarg(int) amode;
2512 	syscallarg(int) flag;
2513 };
2514 check_syscall_args(netbsd32_faccessat)
2515 
2516 struct netbsd32_fchmodat_args {
2517 	syscallarg(int) fd;
2518 	syscallarg(const netbsd32_charp) path;
2519 	syscallarg(mode_t) mode;
2520 	syscallarg(int) flag;
2521 };
2522 check_syscall_args(netbsd32_fchmodat)
2523 
2524 struct netbsd32_fchownat_args {
2525 	syscallarg(int) fd;
2526 	syscallarg(const netbsd32_charp) path;
2527 	syscallarg(uid_t) owner;
2528 	syscallarg(gid_t) group;
2529 	syscallarg(int) flag;
2530 };
2531 check_syscall_args(netbsd32_fchownat)
2532 
2533 struct netbsd32_fexecve_args {
2534 	syscallarg(int) fd;
2535 	syscallarg(netbsd32_charpp) argp;
2536 	syscallarg(netbsd32_charpp) envp;
2537 };
2538 check_syscall_args(netbsd32_fexecve)
2539 
2540 struct netbsd32_fstatat_args {
2541 	syscallarg(int) fd;
2542 	syscallarg(const netbsd32_charp) path;
2543 	syscallarg(netbsd32_statp_t) buf;
2544 	syscallarg(int) flag;
2545 };
2546 check_syscall_args(netbsd32_fstatat)
2547 
2548 struct netbsd32_utimensat_args {
2549 	syscallarg(int) fd;
2550 	syscallarg(const netbsd32_charp) path;
2551 	syscallarg(const netbsd32_timespecp_t) tptr;
2552 	syscallarg(int) flag;
2553 };
2554 check_syscall_args(netbsd32_utimensat)
2555 
2556 struct netbsd32_openat_args {
2557 	syscallarg(int) fd;
2558 	syscallarg(const netbsd32_charp) path;
2559 	syscallarg(int) oflags;
2560 	syscallarg(mode_t) mode;
2561 };
2562 check_syscall_args(netbsd32_openat)
2563 
2564 struct netbsd32_readlinkat_args {
2565 	syscallarg(int) fd;
2566 	syscallarg(const netbsd32_charp) path;
2567 	syscallarg(netbsd32_charp) buf;
2568 	syscallarg(netbsd32_size_t) bufsize;
2569 };
2570 check_syscall_args(netbsd32_readlinkat)
2571 
2572 struct netbsd32_symlinkat_args {
2573 	syscallarg(const netbsd32_charp) path1;
2574 	syscallarg(int) fd;
2575 	syscallarg(const netbsd32_charp) path2;
2576 };
2577 check_syscall_args(netbsd32_symlinkat)
2578 
2579 struct netbsd32_unlinkat_args {
2580 	syscallarg(int) fd;
2581 	syscallarg(const netbsd32_charp) path;
2582 	syscallarg(int) flag;
2583 };
2584 check_syscall_args(netbsd32_unlinkat)
2585 
2586 struct netbsd32_futimens_args {
2587 	syscallarg(int) fd;
2588 	syscallarg(const netbsd32_timespecp_t) tptr;
2589 };
2590 check_syscall_args(netbsd32_futimens)
2591 
2592 struct netbsd32___quotactl_args {
2593 	syscallarg(const netbsd32_charp) path;
2594 	syscallarg(netbsd32_voidp) args;
2595 };
2596 check_syscall_args(netbsd32___quotactl)
2597 
2598 struct netbsd32_posix_spawn_args {
2599 	syscallarg(netbsd32_pid_tp) pid;
2600 	syscallarg(const netbsd32_charp) path;
2601 	syscallarg(const netbsd32_posix_spawn_file_actionsp) file_actions;
2602 	syscallarg(const netbsd32_posix_spawnattrp) attrp;
2603 	syscallarg(netbsd32_charpp) argv;
2604 	syscallarg(netbsd32_charpp) envp;
2605 };
2606 check_syscall_args(netbsd32_posix_spawn)
2607 
2608 struct netbsd32_recvmmsg_args {
2609 	syscallarg(int) s;
2610 	syscallarg(netbsd32_mmsghdrp_t) mmsg;
2611 	syscallarg(unsigned int) vlen;
2612 	syscallarg(unsigned int) flags;
2613 	syscallarg(netbsd32_timespecp_t) timeout;
2614 };
2615 check_syscall_args(netbsd32_recvmmsg)
2616 
2617 struct netbsd32_sendmmsg_args {
2618 	syscallarg(int) s;
2619 	syscallarg(netbsd32_mmsghdrp_t) mmsg;
2620 	syscallarg(unsigned int) vlen;
2621 	syscallarg(unsigned int) flags;
2622 };
2623 check_syscall_args(netbsd32_sendmmsg)
2624 
2625 struct netbsd32_clock_nanosleep_args {
2626 	syscallarg(netbsd32_clockid_t) clock_id;
2627 	syscallarg(int) flags;
2628 	syscallarg(const netbsd32_timespecp_t) rqtp;
2629 	syscallarg(netbsd32_timespecp_t) rmtp;
2630 };
2631 check_syscall_args(netbsd32_clock_nanosleep)
2632 
2633 struct netbsd32____lwp_park60_args {
2634 	syscallarg(netbsd32_clockid_t) clock_id;
2635 	syscallarg(int) flags;
2636 	syscallarg(netbsd32_timespecp_t) ts;
2637 	syscallarg(lwpid_t) unpark;
2638 	syscallarg(netbsd32_voidp) hint;
2639 	syscallarg(netbsd32_voidp) unparkhint;
2640 };
2641 check_syscall_args(netbsd32____lwp_park60)
2642 
2643 struct netbsd32_posix_fallocate_args {
2644 	syscallarg(int) fd;
2645 	syscallarg(int) PAD;
2646 	syscallarg(netbsd32_off_t) pos;
2647 	syscallarg(netbsd32_off_t) len;
2648 };
2649 check_syscall_args(netbsd32_posix_fallocate)
2650 
2651 struct netbsd32_fdiscard_args {
2652 	syscallarg(int) fd;
2653 	syscallarg(int) PAD;
2654 	syscallarg(netbsd32_off_t) pos;
2655 	syscallarg(netbsd32_off_t) len;
2656 };
2657 check_syscall_args(netbsd32_fdiscard)
2658 
2659 struct netbsd32_wait6_args {
2660 	syscallarg(idtype_t) idtype;
2661 	syscallarg(id_t) id;
2662 	syscallarg(netbsd32_intp) status;
2663 	syscallarg(int) options;
2664 	syscallarg(netbsd32_wrusagep_t) wru;
2665 	syscallarg(netbsd32_siginfop_t) info;
2666 };
2667 check_syscall_args(netbsd32_wait6)
2668 
2669 struct netbsd32_clock_getcpuclockid2_args {
2670 	syscallarg(idtype_t) idtype;
2671 	syscallarg(id_t) id;
2672 	syscallarg(netbsd32_clockidp_t) clock_id;
2673 };
2674 check_syscall_args(netbsd32_clock_getcpuclockid2)
2675 
2676 struct netbsd32___getvfsstat90_args {
2677 	syscallarg(netbsd32_statvfsp_t) buf;
2678 	syscallarg(netbsd32_size_t) bufsize;
2679 	syscallarg(int) flags;
2680 };
2681 check_syscall_args(netbsd32___getvfsstat90)
2682 
2683 struct netbsd32___statvfs190_args {
2684 	syscallarg(netbsd32_charp) path;
2685 	syscallarg(netbsd32_statvfsp_t) buf;
2686 	syscallarg(int) flags;
2687 };
2688 check_syscall_args(netbsd32___statvfs190)
2689 
2690 struct netbsd32___fstatvfs190_args {
2691 	syscallarg(int) fd;
2692 	syscallarg(netbsd32_statvfsp_t) buf;
2693 	syscallarg(int) flags;
2694 };
2695 check_syscall_args(netbsd32___fstatvfs190)
2696 
2697 struct netbsd32___fhstatvfs190_args {
2698 	syscallarg(netbsd32_voidp) fhp;
2699 	syscallarg(netbsd32_size_t) fh_size;
2700 	syscallarg(netbsd32_statvfsp_t) buf;
2701 	syscallarg(int) flags;
2702 };
2703 check_syscall_args(netbsd32___fhstatvfs190)
2704 
2705 struct netbsd32___acl_get_link_args {
2706 	syscallarg(const netbsd32_charp) path;
2707 	syscallarg(acl_type_t) type;
2708 	syscallarg(netbsd32_aclp_t) aclp;
2709 };
2710 check_syscall_args(netbsd32___acl_get_link)
2711 
2712 struct netbsd32___acl_set_link_args {
2713 	syscallarg(const netbsd32_charp) path;
2714 	syscallarg(acl_type_t) type;
2715 	syscallarg(netbsd32_aclp_t) aclp;
2716 };
2717 check_syscall_args(netbsd32___acl_set_link)
2718 
2719 struct netbsd32___acl_delete_link_args {
2720 	syscallarg(const netbsd32_charp) path;
2721 	syscallarg(acl_type_t) type;
2722 };
2723 check_syscall_args(netbsd32___acl_delete_link)
2724 
2725 struct netbsd32___acl_aclcheck_link_args {
2726 	syscallarg(const netbsd32_charp) path;
2727 	syscallarg(acl_type_t) type;
2728 	syscallarg(netbsd32_aclp_t) aclp;
2729 };
2730 check_syscall_args(netbsd32___acl_aclcheck_link)
2731 
2732 struct netbsd32___acl_get_file_args {
2733 	syscallarg(const netbsd32_charp) path;
2734 	syscallarg(acl_type_t) type;
2735 	syscallarg(netbsd32_aclp_t) aclp;
2736 };
2737 check_syscall_args(netbsd32___acl_get_file)
2738 
2739 struct netbsd32___acl_set_file_args {
2740 	syscallarg(const netbsd32_charp) path;
2741 	syscallarg(acl_type_t) type;
2742 	syscallarg(netbsd32_aclp_t) aclp;
2743 };
2744 check_syscall_args(netbsd32___acl_set_file)
2745 
2746 struct netbsd32___acl_get_fd_args {
2747 	syscallarg(int) filedes;
2748 	syscallarg(acl_type_t) type;
2749 	syscallarg(netbsd32_aclp_t) aclp;
2750 };
2751 check_syscall_args(netbsd32___acl_get_fd)
2752 
2753 struct netbsd32___acl_set_fd_args {
2754 	syscallarg(int) filedes;
2755 	syscallarg(acl_type_t) type;
2756 	syscallarg(netbsd32_aclp_t) aclp;
2757 };
2758 check_syscall_args(netbsd32___acl_set_fd)
2759 
2760 struct netbsd32___acl_delete_file_args {
2761 	syscallarg(const netbsd32_charp) path;
2762 	syscallarg(acl_type_t) type;
2763 };
2764 check_syscall_args(netbsd32___acl_delete_file)
2765 
2766 struct netbsd32___acl_delete_fd_args {
2767 	syscallarg(int) filedes;
2768 	syscallarg(acl_type_t) type;
2769 };
2770 check_syscall_args(netbsd32___acl_delete_fd)
2771 
2772 struct netbsd32___acl_aclcheck_file_args {
2773 	syscallarg(const netbsd32_charp) path;
2774 	syscallarg(acl_type_t) type;
2775 	syscallarg(netbsd32_aclp_t) aclp;
2776 };
2777 check_syscall_args(netbsd32___acl_aclcheck_file)
2778 
2779 struct netbsd32___acl_aclcheck_fd_args {
2780 	syscallarg(int) filedes;
2781 	syscallarg(acl_type_t) type;
2782 	syscallarg(netbsd32_aclp_t) aclp;
2783 };
2784 check_syscall_args(netbsd32___acl_aclcheck_fd)
2785 
2786 struct netbsd32_lpathconf_args {
2787 	syscallarg(const netbsd32_charp) path;
2788 	syscallarg(int) name;
2789 };
2790 check_syscall_args(netbsd32_lpathconf)
2791 
2792 struct netbsd32_memfd_create_args {
2793 	syscallarg(const netbsd32_charp) name;
2794 	syscallarg(unsigned int) flags;
2795 };
2796 check_syscall_args(netbsd32_memfd_create)
2797 
2798 struct netbsd32___kevent100_args {
2799 	syscallarg(int) fd;
2800 	syscallarg(const netbsd32_keventp_t) changelist;
2801 	syscallarg(netbsd32_size_t) nchanges;
2802 	syscallarg(netbsd32_keventp_t) eventlist;
2803 	syscallarg(netbsd32_size_t) nevents;
2804 	syscallarg(const netbsd32_timespecp_t) timeout;
2805 };
2806 check_syscall_args(netbsd32___kevent100)
2807 
2808 /*
2809  * System call prototypes.
2810  */
2811 
2812 int	netbsd32_syscall(struct lwp *, const struct netbsd32_syscall_args *, register_t *);
2813 
2814 int	netbsd32_exit(struct lwp *, const struct netbsd32_exit_args *, register_t *);
2815 
2816 int	sys_fork(struct lwp *, const void *, register_t *);
2817 
2818 int	netbsd32_read(struct lwp *, const struct netbsd32_read_args *, register_t *);
2819 
2820 int	netbsd32_write(struct lwp *, const struct netbsd32_write_args *, register_t *);
2821 
2822 int	netbsd32_open(struct lwp *, const struct netbsd32_open_args *, register_t *);
2823 
2824 int	netbsd32_close(struct lwp *, const struct netbsd32_close_args *, register_t *);
2825 
2826 int	compat_50_netbsd32_wait4(struct lwp *, const struct compat_50_netbsd32_wait4_args *, register_t *);
2827 
2828 int	compat_43_netbsd32_ocreat(struct lwp *, const struct compat_43_netbsd32_ocreat_args *, register_t *);
2829 
2830 int	netbsd32_link(struct lwp *, const struct netbsd32_link_args *, register_t *);
2831 
2832 int	netbsd32_unlink(struct lwp *, const struct netbsd32_unlink_args *, register_t *);
2833 
2834 int	netbsd32_chdir(struct lwp *, const struct netbsd32_chdir_args *, register_t *);
2835 
2836 int	netbsd32_fchdir(struct lwp *, const struct netbsd32_fchdir_args *, register_t *);
2837 
2838 int	compat_50_netbsd32_mknod(struct lwp *, const struct compat_50_netbsd32_mknod_args *, register_t *);
2839 
2840 int	netbsd32_chmod(struct lwp *, const struct netbsd32_chmod_args *, register_t *);
2841 
2842 int	netbsd32_chown(struct lwp *, const struct netbsd32_chown_args *, register_t *);
2843 
2844 int	netbsd32_break(struct lwp *, const struct netbsd32_break_args *, register_t *);
2845 
2846 int	compat_20_netbsd32_getfsstat(struct lwp *, const struct compat_20_netbsd32_getfsstat_args *, register_t *);
2847 
2848 int	compat_43_netbsd32_olseek(struct lwp *, const struct compat_43_netbsd32_olseek_args *, register_t *);
2849 
2850 int	sys_getpid_with_ppid(struct lwp *, const void *, register_t *);
2851 
2852 int	compat_40_netbsd32_mount(struct lwp *, const struct compat_40_netbsd32_mount_args *, register_t *);
2853 
2854 int	netbsd32_unmount(struct lwp *, const struct netbsd32_unmount_args *, register_t *);
2855 
2856 int	netbsd32_setuid(struct lwp *, const struct netbsd32_setuid_args *, register_t *);
2857 
2858 int	sys_getuid_with_euid(struct lwp *, const void *, register_t *);
2859 
2860 int	sys_geteuid(struct lwp *, const void *, register_t *);
2861 
2862 int	netbsd32_ptrace(struct lwp *, const struct netbsd32_ptrace_args *, register_t *);
2863 
2864 int	netbsd32_recvmsg(struct lwp *, const struct netbsd32_recvmsg_args *, register_t *);
2865 
2866 int	netbsd32_sendmsg(struct lwp *, const struct netbsd32_sendmsg_args *, register_t *);
2867 
2868 int	netbsd32_recvfrom(struct lwp *, const struct netbsd32_recvfrom_args *, register_t *);
2869 
2870 int	netbsd32_accept(struct lwp *, const struct netbsd32_accept_args *, register_t *);
2871 
2872 int	netbsd32_getpeername(struct lwp *, const struct netbsd32_getpeername_args *, register_t *);
2873 
2874 int	netbsd32_getsockname(struct lwp *, const struct netbsd32_getsockname_args *, register_t *);
2875 
2876 int	netbsd32_access(struct lwp *, const struct netbsd32_access_args *, register_t *);
2877 
2878 int	netbsd32_chflags(struct lwp *, const struct netbsd32_chflags_args *, register_t *);
2879 
2880 int	netbsd32_fchflags(struct lwp *, const struct netbsd32_fchflags_args *, register_t *);
2881 
2882 int	sys_sync(struct lwp *, const void *, register_t *);
2883 
2884 int	netbsd32_kill(struct lwp *, const struct netbsd32_kill_args *, register_t *);
2885 
2886 int	compat_43_netbsd32_stat43(struct lwp *, const struct compat_43_netbsd32_stat43_args *, register_t *);
2887 
2888 int	sys_getppid(struct lwp *, const void *, register_t *);
2889 
2890 int	compat_43_netbsd32_lstat43(struct lwp *, const struct compat_43_netbsd32_lstat43_args *, register_t *);
2891 
2892 int	netbsd32_dup(struct lwp *, const struct netbsd32_dup_args *, register_t *);
2893 
2894 int	sys_pipe(struct lwp *, const void *, register_t *);
2895 
2896 int	sys_getegid(struct lwp *, const void *, register_t *);
2897 
2898 int	netbsd32_profil(struct lwp *, const struct netbsd32_profil_args *, register_t *);
2899 
2900 int	netbsd32_ktrace(struct lwp *, const struct netbsd32_ktrace_args *, register_t *);
2901 
2902 int	netbsd32_sigaction(struct lwp *, const struct netbsd32_sigaction_args *, register_t *);
2903 
2904 int	sys_getgid_with_egid(struct lwp *, const void *, register_t *);
2905 
2906 int	compat_13_netbsd32_sigprocmask(struct lwp *, const struct compat_13_netbsd32_sigprocmask_args *, register_t *);
2907 
2908 int	netbsd32___getlogin(struct lwp *, const struct netbsd32___getlogin_args *, register_t *);
2909 
2910 int	netbsd32_setlogin(struct lwp *, const struct netbsd32_setlogin_args *, register_t *);
2911 
2912 int	netbsd32_acct(struct lwp *, const struct netbsd32_acct_args *, register_t *);
2913 
2914 int	compat_13_sys_sigpending(struct lwp *, const void *, register_t *);
2915 
2916 int	compat_13_netbsd32_sigaltstack13(struct lwp *, const struct compat_13_netbsd32_sigaltstack13_args *, register_t *);
2917 
2918 int	netbsd32_ioctl(struct lwp *, const struct netbsd32_ioctl_args *, register_t *);
2919 
2920 int	compat_12_netbsd32_reboot(struct lwp *, const struct compat_12_netbsd32_reboot_args *, register_t *);
2921 
2922 int	netbsd32_revoke(struct lwp *, const struct netbsd32_revoke_args *, register_t *);
2923 
2924 int	netbsd32_symlink(struct lwp *, const struct netbsd32_symlink_args *, register_t *);
2925 
2926 int	netbsd32_readlink(struct lwp *, const struct netbsd32_readlink_args *, register_t *);
2927 
2928 int	netbsd32_execve(struct lwp *, const struct netbsd32_execve_args *, register_t *);
2929 
2930 int	netbsd32_umask(struct lwp *, const struct netbsd32_umask_args *, register_t *);
2931 
2932 int	netbsd32_chroot(struct lwp *, const struct netbsd32_chroot_args *, register_t *);
2933 
2934 int	compat_43_netbsd32_fstat43(struct lwp *, const struct compat_43_netbsd32_fstat43_args *, register_t *);
2935 
2936 int	compat_43_netbsd32_ogetkerninfo(struct lwp *, const struct compat_43_netbsd32_ogetkerninfo_args *, register_t *);
2937 
2938 int	compat_43_sys_getpagesize(struct lwp *, const void *, register_t *);
2939 
2940 int	compat_12_netbsd32_msync(struct lwp *, const struct compat_12_netbsd32_msync_args *, register_t *);
2941 
2942 int	sys_vfork(struct lwp *, const void *, register_t *);
2943 
2944 int	compat_43_netbsd32_ommap(struct lwp *, const struct compat_43_netbsd32_ommap_args *, register_t *);
2945 
2946 int	netbsd32_ovadvise(struct lwp *, const struct netbsd32_ovadvise_args *, register_t *);
2947 
2948 int	netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *);
2949 
2950 int	netbsd32_mprotect(struct lwp *, const struct netbsd32_mprotect_args *, register_t *);
2951 
2952 int	netbsd32_madvise(struct lwp *, const struct netbsd32_madvise_args *, register_t *);
2953 
2954 int	netbsd32_mincore(struct lwp *, const struct netbsd32_mincore_args *, register_t *);
2955 
2956 int	netbsd32_getgroups(struct lwp *, const struct netbsd32_getgroups_args *, register_t *);
2957 
2958 int	netbsd32_setgroups(struct lwp *, const struct netbsd32_setgroups_args *, register_t *);
2959 
2960 int	sys_getpgrp(struct lwp *, const void *, register_t *);
2961 
2962 int	netbsd32_setpgid(struct lwp *, const struct netbsd32_setpgid_args *, register_t *);
2963 
2964 int	compat_50_netbsd32_setitimer(struct lwp *, const struct compat_50_netbsd32_setitimer_args *, register_t *);
2965 
2966 int	compat_43_sys_wait(struct lwp *, const void *, register_t *);
2967 
2968 int	compat_12_netbsd32_oswapon(struct lwp *, const struct compat_12_netbsd32_oswapon_args *, register_t *);
2969 
2970 int	compat_50_netbsd32_getitimer(struct lwp *, const struct compat_50_netbsd32_getitimer_args *, register_t *);
2971 
2972 int	compat_43_netbsd32_ogethostname(struct lwp *, const struct compat_43_netbsd32_ogethostname_args *, register_t *);
2973 
2974 int	compat_43_netbsd32_osethostname(struct lwp *, const struct compat_43_netbsd32_osethostname_args *, register_t *);
2975 
2976 int	compat_43_sys_getdtablesize(struct lwp *, const void *, register_t *);
2977 
2978 int	netbsd32_dup2(struct lwp *, const struct netbsd32_dup2_args *, register_t *);
2979 
2980 int	netbsd32_getrandom(struct lwp *, const struct netbsd32_getrandom_args *, register_t *);
2981 
2982 int	netbsd32_fcntl(struct lwp *, const struct netbsd32_fcntl_args *, register_t *);
2983 
2984 int	compat_50_netbsd32_select(struct lwp *, const struct compat_50_netbsd32_select_args *, register_t *);
2985 
2986 int	netbsd32_fsync(struct lwp *, const struct netbsd32_fsync_args *, register_t *);
2987 
2988 int	netbsd32_setpriority(struct lwp *, const struct netbsd32_setpriority_args *, register_t *);
2989 
2990 int	compat_30_netbsd32_socket(struct lwp *, const struct compat_30_netbsd32_socket_args *, register_t *);
2991 
2992 int	netbsd32_connect(struct lwp *, const struct netbsd32_connect_args *, register_t *);
2993 
2994 int	compat_43_netbsd32_oaccept(struct lwp *, const struct compat_43_netbsd32_oaccept_args *, register_t *);
2995 
2996 int	netbsd32_getpriority(struct lwp *, const struct netbsd32_getpriority_args *, register_t *);
2997 
2998 int	compat_43_netbsd32_osend(struct lwp *, const struct compat_43_netbsd32_osend_args *, register_t *);
2999 
3000 int	compat_43_netbsd32_orecv(struct lwp *, const struct compat_43_netbsd32_orecv_args *, register_t *);
3001 
3002 int	compat_13_netbsd32_sigreturn(struct lwp *, const struct compat_13_netbsd32_sigreturn_args *, register_t *);
3003 
3004 int	netbsd32_bind(struct lwp *, const struct netbsd32_bind_args *, register_t *);
3005 
3006 int	netbsd32_setsockopt(struct lwp *, const struct netbsd32_setsockopt_args *, register_t *);
3007 
3008 int	netbsd32_listen(struct lwp *, const struct netbsd32_listen_args *, register_t *);
3009 
3010 int	compat_43_netbsd32_osigvec(struct lwp *, const struct compat_43_netbsd32_osigvec_args *, register_t *);
3011 
3012 int	compat_43_netbsd32_sigblock(struct lwp *, const struct compat_43_netbsd32_sigblock_args *, register_t *);
3013 
3014 int	compat_43_netbsd32_sigsetmask(struct lwp *, const struct compat_43_netbsd32_sigsetmask_args *, register_t *);
3015 
3016 int	compat_13_netbsd32_sigsuspend(struct lwp *, const struct compat_13_netbsd32_sigsuspend_args *, register_t *);
3017 
3018 int	compat_43_netbsd32_osigstack(struct lwp *, const struct compat_43_netbsd32_osigstack_args *, register_t *);
3019 
3020 int	compat_43_netbsd32_orecvmsg(struct lwp *, const struct compat_43_netbsd32_orecvmsg_args *, register_t *);
3021 
3022 int	compat_43_netbsd32_osendmsg(struct lwp *, const struct compat_43_netbsd32_osendmsg_args *, register_t *);
3023 
3024 int	compat_50_netbsd32_gettimeofday(struct lwp *, const struct compat_50_netbsd32_gettimeofday_args *, register_t *);
3025 
3026 int	compat_50_netbsd32_getrusage(struct lwp *, const struct compat_50_netbsd32_getrusage_args *, register_t *);
3027 
3028 int	netbsd32_getsockopt(struct lwp *, const struct netbsd32_getsockopt_args *, register_t *);
3029 
3030 int	netbsd32_readv(struct lwp *, const struct netbsd32_readv_args *, register_t *);
3031 
3032 int	netbsd32_writev(struct lwp *, const struct netbsd32_writev_args *, register_t *);
3033 
3034 int	compat_50_netbsd32_settimeofday(struct lwp *, const struct compat_50_netbsd32_settimeofday_args *, register_t *);
3035 
3036 int	netbsd32_fchown(struct lwp *, const struct netbsd32_fchown_args *, register_t *);
3037 
3038 int	netbsd32_fchmod(struct lwp *, const struct netbsd32_fchmod_args *, register_t *);
3039 
3040 int	compat_43_netbsd32_orecvfrom(struct lwp *, const struct compat_43_netbsd32_orecvfrom_args *, register_t *);
3041 
3042 int	netbsd32_setreuid(struct lwp *, const struct netbsd32_setreuid_args *, register_t *);
3043 
3044 int	netbsd32_setregid(struct lwp *, const struct netbsd32_setregid_args *, register_t *);
3045 
3046 int	netbsd32_rename(struct lwp *, const struct netbsd32_rename_args *, register_t *);
3047 
3048 int	compat_43_netbsd32_otruncate(struct lwp *, const struct compat_43_netbsd32_otruncate_args *, register_t *);
3049 
3050 int	compat_43_netbsd32_oftruncate(struct lwp *, const struct compat_43_netbsd32_oftruncate_args *, register_t *);
3051 
3052 int	netbsd32_flock(struct lwp *, const struct netbsd32_flock_args *, register_t *);
3053 
3054 int	netbsd32_mkfifo(struct lwp *, const struct netbsd32_mkfifo_args *, register_t *);
3055 
3056 int	netbsd32_sendto(struct lwp *, const struct netbsd32_sendto_args *, register_t *);
3057 
3058 int	netbsd32_shutdown(struct lwp *, const struct netbsd32_shutdown_args *, register_t *);
3059 
3060 int	netbsd32_socketpair(struct lwp *, const struct netbsd32_socketpair_args *, register_t *);
3061 
3062 int	netbsd32_mkdir(struct lwp *, const struct netbsd32_mkdir_args *, register_t *);
3063 
3064 int	netbsd32_rmdir(struct lwp *, const struct netbsd32_rmdir_args *, register_t *);
3065 
3066 int	compat_50_netbsd32_utimes(struct lwp *, const struct compat_50_netbsd32_utimes_args *, register_t *);
3067 
3068 int	compat_50_netbsd32_adjtime(struct lwp *, const struct compat_50_netbsd32_adjtime_args *, register_t *);
3069 
3070 int	compat_43_netbsd32_ogetpeername(struct lwp *, const struct compat_43_netbsd32_ogetpeername_args *, register_t *);
3071 
3072 int	compat_43_sys_gethostid(struct lwp *, const void *, register_t *);
3073 
3074 int	compat_43_netbsd32_sethostid(struct lwp *, const struct compat_43_netbsd32_sethostid_args *, register_t *);
3075 
3076 int	compat_43_netbsd32_ogetrlimit(struct lwp *, const struct compat_43_netbsd32_ogetrlimit_args *, register_t *);
3077 
3078 int	compat_43_netbsd32_osetrlimit(struct lwp *, const struct compat_43_netbsd32_osetrlimit_args *, register_t *);
3079 
3080 int	compat_43_netbsd32_killpg(struct lwp *, const struct compat_43_netbsd32_killpg_args *, register_t *);
3081 
3082 int	sys_setsid(struct lwp *, const void *, register_t *);
3083 
3084 int	compat_50_netbsd32_quotactl(struct lwp *, const struct compat_50_netbsd32_quotactl_args *, register_t *);
3085 
3086 int	compat_43_netbsd32_ogetsockname(struct lwp *, const struct compat_43_netbsd32_ogetsockname_args *, register_t *);
3087 
3088 int	netbsd32_nfssvc(struct lwp *, const struct netbsd32_nfssvc_args *, register_t *);
3089 
3090 int	compat_43_netbsd32_ogetdirentries(struct lwp *, const struct compat_43_netbsd32_ogetdirentries_args *, register_t *);
3091 
3092 int	compat_20_netbsd32_statfs(struct lwp *, const struct compat_20_netbsd32_statfs_args *, register_t *);
3093 
3094 int	compat_20_netbsd32_fstatfs(struct lwp *, const struct compat_20_netbsd32_fstatfs_args *, register_t *);
3095 
3096 int	compat_30_netbsd32_getfh(struct lwp *, const struct compat_30_netbsd32_getfh_args *, register_t *);
3097 
3098 int	compat_09_netbsd32_ogetdomainname(struct lwp *, const struct compat_09_netbsd32_ogetdomainname_args *, register_t *);
3099 
3100 int	compat_09_netbsd32_osetdomainname(struct lwp *, const struct compat_09_netbsd32_osetdomainname_args *, register_t *);
3101 
3102 int	compat_09_netbsd32_uname(struct lwp *, const struct compat_09_netbsd32_uname_args *, register_t *);
3103 
3104 int	netbsd32_sysarch(struct lwp *, const struct netbsd32_sysarch_args *, register_t *);
3105 
3106 int	netbsd32___futex(struct lwp *, const struct netbsd32___futex_args *, register_t *);
3107 
3108 int	netbsd32___futex_set_robust_list(struct lwp *, const struct netbsd32___futex_set_robust_list_args *, register_t *);
3109 
3110 int	netbsd32___futex_get_robust_list(struct lwp *, const struct netbsd32___futex_get_robust_list_args *, register_t *);
3111 
3112 int	compat_10_netbsd32_semsys(struct lwp *, const struct compat_10_netbsd32_semsys_args *, register_t *);
3113 
3114 int	compat_10_netbsd32_msgsys(struct lwp *, const struct compat_10_netbsd32_msgsys_args *, register_t *);
3115 
3116 int	compat_10_netbsd32_shmsys(struct lwp *, const struct compat_10_netbsd32_shmsys_args *, register_t *);
3117 
3118 int	netbsd32_pread(struct lwp *, const struct netbsd32_pread_args *, register_t *);
3119 
3120 int	netbsd32_pwrite(struct lwp *, const struct netbsd32_pwrite_args *, register_t *);
3121 
3122 int	compat_30_netbsd32_ntp_gettime(struct lwp *, const struct compat_30_netbsd32_ntp_gettime_args *, register_t *);
3123 
3124 #if defined(NTP) || !defined(_KERNEL_OPT)
3125 int	netbsd32_ntp_adjtime(struct lwp *, const struct netbsd32_ntp_adjtime_args *, register_t *);
3126 
3127 #else
3128 #endif
3129 int	netbsd32_timerfd_create(struct lwp *, const struct netbsd32_timerfd_create_args *, register_t *);
3130 
3131 int	netbsd32_timerfd_settime(struct lwp *, const struct netbsd32_timerfd_settime_args *, register_t *);
3132 
3133 int	netbsd32_timerfd_gettime(struct lwp *, const struct netbsd32_timerfd_gettime_args *, register_t *);
3134 
3135 int	netbsd32_setgid(struct lwp *, const struct netbsd32_setgid_args *, register_t *);
3136 
3137 int	netbsd32_setegid(struct lwp *, const struct netbsd32_setegid_args *, register_t *);
3138 
3139 int	netbsd32_seteuid(struct lwp *, const struct netbsd32_seteuid_args *, register_t *);
3140 
3141 int	compat_12_netbsd32_stat12(struct lwp *, const struct compat_12_netbsd32_stat12_args *, register_t *);
3142 
3143 int	compat_12_netbsd32_fstat12(struct lwp *, const struct compat_12_netbsd32_fstat12_args *, register_t *);
3144 
3145 int	compat_12_netbsd32_lstat12(struct lwp *, const struct compat_12_netbsd32_lstat12_args *, register_t *);
3146 
3147 int	netbsd32_pathconf(struct lwp *, const struct netbsd32_pathconf_args *, register_t *);
3148 
3149 int	netbsd32_fpathconf(struct lwp *, const struct netbsd32_fpathconf_args *, register_t *);
3150 
3151 int	netbsd32_getsockopt2(struct lwp *, const struct netbsd32_getsockopt2_args *, register_t *);
3152 
3153 int	netbsd32_getrlimit(struct lwp *, const struct netbsd32_getrlimit_args *, register_t *);
3154 
3155 int	netbsd32_setrlimit(struct lwp *, const struct netbsd32_setrlimit_args *, register_t *);
3156 
3157 int	compat_12_netbsd32_getdirentries(struct lwp *, const struct compat_12_netbsd32_getdirentries_args *, register_t *);
3158 
3159 int	netbsd32_mmap(struct lwp *, const struct netbsd32_mmap_args *, register_t *);
3160 
3161 int	netbsd32____syscall(struct lwp *, const struct netbsd32____syscall_args *, register_t *);
3162 
3163 int	netbsd32_lseek(struct lwp *, const struct netbsd32_lseek_args *, register_t *);
3164 
3165 int	netbsd32_truncate(struct lwp *, const struct netbsd32_truncate_args *, register_t *);
3166 
3167 int	netbsd32_ftruncate(struct lwp *, const struct netbsd32_ftruncate_args *, register_t *);
3168 
3169 int	netbsd32___sysctl(struct lwp *, const struct netbsd32___sysctl_args *, register_t *);
3170 
3171 int	netbsd32_mlock(struct lwp *, const struct netbsd32_mlock_args *, register_t *);
3172 
3173 int	netbsd32_munlock(struct lwp *, const struct netbsd32_munlock_args *, register_t *);
3174 
3175 int	netbsd32_undelete(struct lwp *, const struct netbsd32_undelete_args *, register_t *);
3176 
3177 int	compat_50_netbsd32_futimes(struct lwp *, const struct compat_50_netbsd32_futimes_args *, register_t *);
3178 
3179 int	netbsd32_getpgid(struct lwp *, const struct netbsd32_getpgid_args *, register_t *);
3180 
3181 int	netbsd32_reboot(struct lwp *, const struct netbsd32_reboot_args *, register_t *);
3182 
3183 int	netbsd32_poll(struct lwp *, const struct netbsd32_poll_args *, register_t *);
3184 
3185 int	compat_14_netbsd32___semctl(struct lwp *, const struct compat_14_netbsd32___semctl_args *, register_t *);
3186 
3187 int	netbsd32_semget(struct lwp *, const struct netbsd32_semget_args *, register_t *);
3188 
3189 int	netbsd32_semop(struct lwp *, const struct netbsd32_semop_args *, register_t *);
3190 
3191 int	netbsd32_semconfig(struct lwp *, const struct netbsd32_semconfig_args *, register_t *);
3192 
3193 int	compat_14_netbsd32_msgctl(struct lwp *, const struct compat_14_netbsd32_msgctl_args *, register_t *);
3194 
3195 int	netbsd32_msgget(struct lwp *, const struct netbsd32_msgget_args *, register_t *);
3196 
3197 int	netbsd32_msgsnd(struct lwp *, const struct netbsd32_msgsnd_args *, register_t *);
3198 
3199 int	netbsd32_msgrcv(struct lwp *, const struct netbsd32_msgrcv_args *, register_t *);
3200 
3201 int	netbsd32_shmat(struct lwp *, const struct netbsd32_shmat_args *, register_t *);
3202 
3203 int	compat_14_netbsd32_shmctl(struct lwp *, const struct compat_14_netbsd32_shmctl_args *, register_t *);
3204 
3205 int	netbsd32_shmdt(struct lwp *, const struct netbsd32_shmdt_args *, register_t *);
3206 
3207 int	netbsd32_shmget(struct lwp *, const struct netbsd32_shmget_args *, register_t *);
3208 
3209 int	compat_50_netbsd32_clock_gettime(struct lwp *, const struct compat_50_netbsd32_clock_gettime_args *, register_t *);
3210 
3211 int	compat_50_netbsd32_clock_settime(struct lwp *, const struct compat_50_netbsd32_clock_settime_args *, register_t *);
3212 
3213 int	compat_50_netbsd32_clock_getres(struct lwp *, const struct compat_50_netbsd32_clock_getres_args *, register_t *);
3214 
3215 int	netbsd32_timer_create(struct lwp *, const struct netbsd32_timer_create_args *, register_t *);
3216 
3217 int	netbsd32_timer_delete(struct lwp *, const struct netbsd32_timer_delete_args *, register_t *);
3218 
3219 int	compat_50_netbsd32_timer_settime(struct lwp *, const struct compat_50_netbsd32_timer_settime_args *, register_t *);
3220 
3221 int	compat_50_netbsd32_timer_gettime(struct lwp *, const struct compat_50_netbsd32_timer_gettime_args *, register_t *);
3222 
3223 int	netbsd32_timer_getoverrun(struct lwp *, const struct netbsd32_timer_getoverrun_args *, register_t *);
3224 
3225 int	compat_50_netbsd32_nanosleep(struct lwp *, const struct compat_50_netbsd32_nanosleep_args *, register_t *);
3226 
3227 int	netbsd32_fdatasync(struct lwp *, const struct netbsd32_fdatasync_args *, register_t *);
3228 
3229 int	netbsd32_mlockall(struct lwp *, const struct netbsd32_mlockall_args *, register_t *);
3230 
3231 int	sys_munlockall(struct lwp *, const void *, register_t *);
3232 
3233 int	compat_50_netbsd32___sigtimedwait(struct lwp *, const struct compat_50_netbsd32___sigtimedwait_args *, register_t *);
3234 
3235 int	netbsd32_sigqueueinfo(struct lwp *, const struct netbsd32_sigqueueinfo_args *, register_t *);
3236 
3237 int	netbsd32_modctl(struct lwp *, const struct netbsd32_modctl_args *, register_t *);
3238 
3239 int	netbsd32__ksem_init(struct lwp *, const struct netbsd32__ksem_init_args *, register_t *);
3240 
3241 int	netbsd32__ksem_open(struct lwp *, const struct netbsd32__ksem_open_args *, register_t *);
3242 
3243 int	netbsd32__ksem_unlink(struct lwp *, const struct netbsd32__ksem_unlink_args *, register_t *);
3244 
3245 int	netbsd32__ksem_close(struct lwp *, const struct netbsd32__ksem_close_args *, register_t *);
3246 
3247 int	netbsd32__ksem_post(struct lwp *, const struct netbsd32__ksem_post_args *, register_t *);
3248 
3249 int	netbsd32__ksem_wait(struct lwp *, const struct netbsd32__ksem_wait_args *, register_t *);
3250 
3251 int	netbsd32__ksem_trywait(struct lwp *, const struct netbsd32__ksem_trywait_args *, register_t *);
3252 
3253 int	netbsd32__ksem_getvalue(struct lwp *, const struct netbsd32__ksem_getvalue_args *, register_t *);
3254 
3255 int	netbsd32__ksem_destroy(struct lwp *, const struct netbsd32__ksem_destroy_args *, register_t *);
3256 
3257 int	netbsd32__ksem_timedwait(struct lwp *, const struct netbsd32__ksem_timedwait_args *, register_t *);
3258 
3259 int	netbsd32_mq_open(struct lwp *, const struct netbsd32_mq_open_args *, register_t *);
3260 
3261 int	netbsd32_mq_close(struct lwp *, const struct netbsd32_mq_close_args *, register_t *);
3262 
3263 int	netbsd32_mq_unlink(struct lwp *, const struct netbsd32_mq_unlink_args *, register_t *);
3264 
3265 int	netbsd32_mq_getattr(struct lwp *, const struct netbsd32_mq_getattr_args *, register_t *);
3266 
3267 int	netbsd32_mq_setattr(struct lwp *, const struct netbsd32_mq_setattr_args *, register_t *);
3268 
3269 int	netbsd32_mq_notify(struct lwp *, const struct netbsd32_mq_notify_args *, register_t *);
3270 
3271 int	netbsd32_mq_send(struct lwp *, const struct netbsd32_mq_send_args *, register_t *);
3272 
3273 int	netbsd32_mq_receive(struct lwp *, const struct netbsd32_mq_receive_args *, register_t *);
3274 
3275 int	compat_50_netbsd32_mq_timedsend(struct lwp *, const struct compat_50_netbsd32_mq_timedsend_args *, register_t *);
3276 
3277 int	compat_50_netbsd32_mq_timedreceive(struct lwp *, const struct compat_50_netbsd32_mq_timedreceive_args *, register_t *);
3278 
3279 int	netbsd32_eventfd(struct lwp *, const struct netbsd32_eventfd_args *, register_t *);
3280 
3281 int	netbsd32___posix_rename(struct lwp *, const struct netbsd32___posix_rename_args *, register_t *);
3282 
3283 int	netbsd32_swapctl(struct lwp *, const struct netbsd32_swapctl_args *, register_t *);
3284 
3285 int	compat_30_netbsd32_getdents(struct lwp *, const struct compat_30_netbsd32_getdents_args *, register_t *);
3286 
3287 int	netbsd32_minherit(struct lwp *, const struct netbsd32_minherit_args *, register_t *);
3288 
3289 int	netbsd32_lchmod(struct lwp *, const struct netbsd32_lchmod_args *, register_t *);
3290 
3291 int	netbsd32_lchown(struct lwp *, const struct netbsd32_lchown_args *, register_t *);
3292 
3293 int	compat_50_netbsd32_lutimes(struct lwp *, const struct compat_50_netbsd32_lutimes_args *, register_t *);
3294 
3295 int	netbsd32___msync13(struct lwp *, const struct netbsd32___msync13_args *, register_t *);
3296 
3297 int	compat_30_netbsd32___stat13(struct lwp *, const struct compat_30_netbsd32___stat13_args *, register_t *);
3298 
3299 int	compat_30_netbsd32___fstat13(struct lwp *, const struct compat_30_netbsd32___fstat13_args *, register_t *);
3300 
3301 int	compat_30_netbsd32___lstat13(struct lwp *, const struct compat_30_netbsd32___lstat13_args *, register_t *);
3302 
3303 int	netbsd32___sigaltstack14(struct lwp *, const struct netbsd32___sigaltstack14_args *, register_t *);
3304 
3305 int	sys___vfork14(struct lwp *, const void *, register_t *);
3306 
3307 int	netbsd32___posix_chown(struct lwp *, const struct netbsd32___posix_chown_args *, register_t *);
3308 
3309 int	netbsd32___posix_fchown(struct lwp *, const struct netbsd32___posix_fchown_args *, register_t *);
3310 
3311 int	netbsd32___posix_lchown(struct lwp *, const struct netbsd32___posix_lchown_args *, register_t *);
3312 
3313 int	netbsd32_getsid(struct lwp *, const struct netbsd32_getsid_args *, register_t *);
3314 
3315 int	netbsd32___clone(struct lwp *, const struct netbsd32___clone_args *, register_t *);
3316 
3317 int	netbsd32_fktrace(struct lwp *, const struct netbsd32_fktrace_args *, register_t *);
3318 
3319 int	netbsd32_preadv(struct lwp *, const struct netbsd32_preadv_args *, register_t *);
3320 
3321 int	netbsd32_pwritev(struct lwp *, const struct netbsd32_pwritev_args *, register_t *);
3322 
3323 int	netbsd32___sigaction14(struct lwp *, const struct netbsd32___sigaction14_args *, register_t *);
3324 
3325 int	netbsd32___sigpending14(struct lwp *, const struct netbsd32___sigpending14_args *, register_t *);
3326 
3327 int	netbsd32___sigprocmask14(struct lwp *, const struct netbsd32___sigprocmask14_args *, register_t *);
3328 
3329 int	netbsd32___sigsuspend14(struct lwp *, const struct netbsd32___sigsuspend14_args *, register_t *);
3330 
3331 int	compat_16_netbsd32___sigreturn14(struct lwp *, const struct compat_16_netbsd32___sigreturn14_args *, register_t *);
3332 
3333 int	netbsd32___getcwd(struct lwp *, const struct netbsd32___getcwd_args *, register_t *);
3334 
3335 int	netbsd32_fchroot(struct lwp *, const struct netbsd32_fchroot_args *, register_t *);
3336 
3337 int	compat_30_netbsd32_fhopen(struct lwp *, const struct compat_30_netbsd32_fhopen_args *, register_t *);
3338 
3339 int	compat_30_netbsd32_fhstat(struct lwp *, const struct compat_30_netbsd32_fhstat_args *, register_t *);
3340 
3341 int	compat_20_netbsd32_fhstatfs(struct lwp *, const struct compat_20_netbsd32_fhstatfs_args *, register_t *);
3342 
3343 int	compat_50_netbsd32___semctl14(struct lwp *, const struct compat_50_netbsd32___semctl14_args *, register_t *);
3344 
3345 int	compat_50_netbsd32___msgctl13(struct lwp *, const struct compat_50_netbsd32___msgctl13_args *, register_t *);
3346 
3347 int	compat_50_netbsd32___shmctl13(struct lwp *, const struct compat_50_netbsd32___shmctl13_args *, register_t *);
3348 
3349 int	netbsd32_lchflags(struct lwp *, const struct netbsd32_lchflags_args *, register_t *);
3350 
3351 int	sys_issetugid(struct lwp *, const void *, register_t *);
3352 
3353 int	netbsd32_utrace(struct lwp *, const struct netbsd32_utrace_args *, register_t *);
3354 
3355 int	netbsd32_getcontext(struct lwp *, const struct netbsd32_getcontext_args *, register_t *);
3356 
3357 int	netbsd32_setcontext(struct lwp *, const struct netbsd32_setcontext_args *, register_t *);
3358 
3359 int	netbsd32__lwp_create(struct lwp *, const struct netbsd32__lwp_create_args *, register_t *);
3360 
3361 int	sys__lwp_exit(struct lwp *, const void *, register_t *);
3362 
3363 int	sys__lwp_self(struct lwp *, const void *, register_t *);
3364 
3365 int	netbsd32__lwp_wait(struct lwp *, const struct netbsd32__lwp_wait_args *, register_t *);
3366 
3367 int	netbsd32__lwp_suspend(struct lwp *, const struct netbsd32__lwp_suspend_args *, register_t *);
3368 
3369 int	netbsd32__lwp_continue(struct lwp *, const struct netbsd32__lwp_continue_args *, register_t *);
3370 
3371 int	netbsd32__lwp_wakeup(struct lwp *, const struct netbsd32__lwp_wakeup_args *, register_t *);
3372 
3373 int	sys__lwp_getprivate(struct lwp *, const void *, register_t *);
3374 
3375 int	netbsd32__lwp_setprivate(struct lwp *, const struct netbsd32__lwp_setprivate_args *, register_t *);
3376 
3377 int	netbsd32__lwp_kill(struct lwp *, const struct netbsd32__lwp_kill_args *, register_t *);
3378 
3379 int	netbsd32__lwp_detach(struct lwp *, const struct netbsd32__lwp_detach_args *, register_t *);
3380 
3381 int	compat_50_netbsd32__lwp_park(struct lwp *, const struct compat_50_netbsd32__lwp_park_args *, register_t *);
3382 
3383 int	netbsd32__lwp_unpark(struct lwp *, const struct netbsd32__lwp_unpark_args *, register_t *);
3384 
3385 int	netbsd32__lwp_unpark_all(struct lwp *, const struct netbsd32__lwp_unpark_all_args *, register_t *);
3386 
3387 int	netbsd32__lwp_setname(struct lwp *, const struct netbsd32__lwp_setname_args *, register_t *);
3388 
3389 int	netbsd32__lwp_getname(struct lwp *, const struct netbsd32__lwp_getname_args *, register_t *);
3390 
3391 int	netbsd32__lwp_ctl(struct lwp *, const struct netbsd32__lwp_ctl_args *, register_t *);
3392 
3393 int	netbsd32___sigaction_sigtramp(struct lwp *, const struct netbsd32___sigaction_sigtramp_args *, register_t *);
3394 
3395 int	netbsd32_rasctl(struct lwp *, const struct netbsd32_rasctl_args *, register_t *);
3396 
3397 int	sys_kqueue(struct lwp *, const void *, register_t *);
3398 
3399 int	compat_50_netbsd32_kevent(struct lwp *, const struct compat_50_netbsd32_kevent_args *, register_t *);
3400 
3401 int	netbsd32__sched_setparam(struct lwp *, const struct netbsd32__sched_setparam_args *, register_t *);
3402 
3403 int	netbsd32__sched_getparam(struct lwp *, const struct netbsd32__sched_getparam_args *, register_t *);
3404 
3405 int	netbsd32__sched_setaffinity(struct lwp *, const struct netbsd32__sched_setaffinity_args *, register_t *);
3406 
3407 int	netbsd32__sched_getaffinity(struct lwp *, const struct netbsd32__sched_getaffinity_args *, register_t *);
3408 
3409 int	sys_sched_yield(struct lwp *, const void *, register_t *);
3410 
3411 int	netbsd32__sched_protect(struct lwp *, const struct netbsd32__sched_protect_args *, register_t *);
3412 
3413 int	netbsd32_fsync_range(struct lwp *, const struct netbsd32_fsync_range_args *, register_t *);
3414 
3415 int	netbsd32_uuidgen(struct lwp *, const struct netbsd32_uuidgen_args *, register_t *);
3416 
3417 int	compat_90_netbsd32_getvfsstat(struct lwp *, const struct compat_90_netbsd32_getvfsstat_args *, register_t *);
3418 
3419 int	compat_90_netbsd32_statvfs1(struct lwp *, const struct compat_90_netbsd32_statvfs1_args *, register_t *);
3420 
3421 int	compat_90_netbsd32_fstatvfs1(struct lwp *, const struct compat_90_netbsd32_fstatvfs1_args *, register_t *);
3422 
3423 int	compat_30_netbsd32_fhstatvfs1(struct lwp *, const struct compat_30_netbsd32_fhstatvfs1_args *, register_t *);
3424 
3425 int	netbsd32_extattrctl(struct lwp *, const struct netbsd32_extattrctl_args *, register_t *);
3426 
3427 int	netbsd32_extattr_set_file(struct lwp *, const struct netbsd32_extattr_set_file_args *, register_t *);
3428 
3429 int	netbsd32_extattr_get_file(struct lwp *, const struct netbsd32_extattr_get_file_args *, register_t *);
3430 
3431 int	netbsd32_extattr_delete_file(struct lwp *, const struct netbsd32_extattr_delete_file_args *, register_t *);
3432 
3433 int	netbsd32_extattr_set_fd(struct lwp *, const struct netbsd32_extattr_set_fd_args *, register_t *);
3434 
3435 int	netbsd32_extattr_get_fd(struct lwp *, const struct netbsd32_extattr_get_fd_args *, register_t *);
3436 
3437 int	netbsd32_extattr_delete_fd(struct lwp *, const struct netbsd32_extattr_delete_fd_args *, register_t *);
3438 
3439 int	netbsd32_extattr_set_link(struct lwp *, const struct netbsd32_extattr_set_link_args *, register_t *);
3440 
3441 int	netbsd32_extattr_get_link(struct lwp *, const struct netbsd32_extattr_get_link_args *, register_t *);
3442 
3443 int	netbsd32_extattr_delete_link(struct lwp *, const struct netbsd32_extattr_delete_link_args *, register_t *);
3444 
3445 int	netbsd32_extattr_list_fd(struct lwp *, const struct netbsd32_extattr_list_fd_args *, register_t *);
3446 
3447 int	netbsd32_extattr_list_file(struct lwp *, const struct netbsd32_extattr_list_file_args *, register_t *);
3448 
3449 int	netbsd32_extattr_list_link(struct lwp *, const struct netbsd32_extattr_list_link_args *, register_t *);
3450 
3451 int	compat_50_netbsd32_pselect(struct lwp *, const struct compat_50_netbsd32_pselect_args *, register_t *);
3452 
3453 int	compat_50_netbsd32_pollts(struct lwp *, const struct compat_50_netbsd32_pollts_args *, register_t *);
3454 
3455 int	netbsd32_setxattr(struct lwp *, const struct netbsd32_setxattr_args *, register_t *);
3456 
3457 int	netbsd32_lsetxattr(struct lwp *, const struct netbsd32_lsetxattr_args *, register_t *);
3458 
3459 int	netbsd32_fsetxattr(struct lwp *, const struct netbsd32_fsetxattr_args *, register_t *);
3460 
3461 int	netbsd32_getxattr(struct lwp *, const struct netbsd32_getxattr_args *, register_t *);
3462 
3463 int	netbsd32_lgetxattr(struct lwp *, const struct netbsd32_lgetxattr_args *, register_t *);
3464 
3465 int	netbsd32_fgetxattr(struct lwp *, const struct netbsd32_fgetxattr_args *, register_t *);
3466 
3467 int	netbsd32_listxattr(struct lwp *, const struct netbsd32_listxattr_args *, register_t *);
3468 
3469 int	netbsd32_llistxattr(struct lwp *, const struct netbsd32_llistxattr_args *, register_t *);
3470 
3471 int	netbsd32_flistxattr(struct lwp *, const struct netbsd32_flistxattr_args *, register_t *);
3472 
3473 int	netbsd32_removexattr(struct lwp *, const struct netbsd32_removexattr_args *, register_t *);
3474 
3475 int	netbsd32_lremovexattr(struct lwp *, const struct netbsd32_lremovexattr_args *, register_t *);
3476 
3477 int	netbsd32_fremovexattr(struct lwp *, const struct netbsd32_fremovexattr_args *, register_t *);
3478 
3479 int	compat_50_netbsd32___stat30(struct lwp *, const struct compat_50_netbsd32___stat30_args *, register_t *);
3480 
3481 int	compat_50_netbsd32___fstat30(struct lwp *, const struct compat_50_netbsd32___fstat30_args *, register_t *);
3482 
3483 int	compat_50_netbsd32___lstat30(struct lwp *, const struct compat_50_netbsd32___lstat30_args *, register_t *);
3484 
3485 int	netbsd32___getdents30(struct lwp *, const struct netbsd32___getdents30_args *, register_t *);
3486 
3487 int	compat_30_netbsd32___fhstat30(struct lwp *, const struct compat_30_netbsd32___fhstat30_args *, register_t *);
3488 
3489 int	compat_50_netbsd32_ntp_gettime(struct lwp *, const struct compat_50_netbsd32_ntp_gettime_args *, register_t *);
3490 
3491 int	netbsd32___socket30(struct lwp *, const struct netbsd32___socket30_args *, register_t *);
3492 
3493 int	netbsd32___getfh30(struct lwp *, const struct netbsd32___getfh30_args *, register_t *);
3494 
3495 int	netbsd32___fhopen40(struct lwp *, const struct netbsd32___fhopen40_args *, register_t *);
3496 
3497 int	compat_90_netbsd32_fhstatvfs1(struct lwp *, const struct compat_90_netbsd32_fhstatvfs1_args *, register_t *);
3498 
3499 int	compat_50_netbsd32___fhstat40(struct lwp *, const struct compat_50_netbsd32___fhstat40_args *, register_t *);
3500 
3501 int	netbsd32___mount50(struct lwp *, const struct netbsd32___mount50_args *, register_t *);
3502 
3503 int	netbsd32_mremap(struct lwp *, const struct netbsd32_mremap_args *, register_t *);
3504 
3505 int	netbsd32_pset_create(struct lwp *, const struct netbsd32_pset_create_args *, register_t *);
3506 
3507 int	netbsd32_pset_destroy(struct lwp *, const struct netbsd32_pset_destroy_args *, register_t *);
3508 
3509 int	netbsd32_pset_assign(struct lwp *, const struct netbsd32_pset_assign_args *, register_t *);
3510 
3511 int	netbsd32__pset_bind(struct lwp *, const struct netbsd32__pset_bind_args *, register_t *);
3512 
3513 int	netbsd32___posix_fadvise50(struct lwp *, const struct netbsd32___posix_fadvise50_args *, register_t *);
3514 
3515 int	netbsd32___select50(struct lwp *, const struct netbsd32___select50_args *, register_t *);
3516 
3517 int	netbsd32___gettimeofday50(struct lwp *, const struct netbsd32___gettimeofday50_args *, register_t *);
3518 
3519 int	netbsd32___settimeofday50(struct lwp *, const struct netbsd32___settimeofday50_args *, register_t *);
3520 
3521 int	netbsd32___utimes50(struct lwp *, const struct netbsd32___utimes50_args *, register_t *);
3522 
3523 int	netbsd32___adjtime50(struct lwp *, const struct netbsd32___adjtime50_args *, register_t *);
3524 
3525 int	netbsd32___futimes50(struct lwp *, const struct netbsd32___futimes50_args *, register_t *);
3526 
3527 int	netbsd32___lutimes50(struct lwp *, const struct netbsd32___lutimes50_args *, register_t *);
3528 
3529 int	netbsd32___setitimer50(struct lwp *, const struct netbsd32___setitimer50_args *, register_t *);
3530 
3531 int	netbsd32___getitimer50(struct lwp *, const struct netbsd32___getitimer50_args *, register_t *);
3532 
3533 int	netbsd32___clock_gettime50(struct lwp *, const struct netbsd32___clock_gettime50_args *, register_t *);
3534 
3535 int	netbsd32___clock_settime50(struct lwp *, const struct netbsd32___clock_settime50_args *, register_t *);
3536 
3537 int	netbsd32___clock_getres50(struct lwp *, const struct netbsd32___clock_getres50_args *, register_t *);
3538 
3539 int	netbsd32___nanosleep50(struct lwp *, const struct netbsd32___nanosleep50_args *, register_t *);
3540 
3541 int	netbsd32_____sigtimedwait50(struct lwp *, const struct netbsd32_____sigtimedwait50_args *, register_t *);
3542 
3543 int	netbsd32___mq_timedsend50(struct lwp *, const struct netbsd32___mq_timedsend50_args *, register_t *);
3544 
3545 int	netbsd32___mq_timedreceive50(struct lwp *, const struct netbsd32___mq_timedreceive50_args *, register_t *);
3546 
3547 int	compat_60_netbsd32__lwp_park(struct lwp *, const struct compat_60_netbsd32__lwp_park_args *, register_t *);
3548 
3549 int	compat_100_netbsd32___kevent50(struct lwp *, const struct compat_100_netbsd32___kevent50_args *, register_t *);
3550 
3551 int	netbsd32___pselect50(struct lwp *, const struct netbsd32___pselect50_args *, register_t *);
3552 
3553 int	netbsd32___pollts50(struct lwp *, const struct netbsd32___pollts50_args *, register_t *);
3554 
3555 int	netbsd32___stat50(struct lwp *, const struct netbsd32___stat50_args *, register_t *);
3556 
3557 int	netbsd32___fstat50(struct lwp *, const struct netbsd32___fstat50_args *, register_t *);
3558 
3559 int	netbsd32___lstat50(struct lwp *, const struct netbsd32___lstat50_args *, register_t *);
3560 
3561 int	netbsd32_____semctl50(struct lwp *, const struct netbsd32_____semctl50_args *, register_t *);
3562 
3563 int	netbsd32___shmctl50(struct lwp *, const struct netbsd32___shmctl50_args *, register_t *);
3564 
3565 int	netbsd32___msgctl50(struct lwp *, const struct netbsd32___msgctl50_args *, register_t *);
3566 
3567 int	netbsd32___getrusage50(struct lwp *, const struct netbsd32___getrusage50_args *, register_t *);
3568 
3569 int	netbsd32___timer_settime50(struct lwp *, const struct netbsd32___timer_settime50_args *, register_t *);
3570 
3571 int	netbsd32___timer_gettime50(struct lwp *, const struct netbsd32___timer_gettime50_args *, register_t *);
3572 
3573 #if defined(NTP) || !defined(_KERNEL_OPT)
3574 int	netbsd32___ntp_gettime50(struct lwp *, const struct netbsd32___ntp_gettime50_args *, register_t *);
3575 
3576 #else
3577 #endif
3578 int	netbsd32___wait450(struct lwp *, const struct netbsd32___wait450_args *, register_t *);
3579 
3580 int	netbsd32___mknod50(struct lwp *, const struct netbsd32___mknod50_args *, register_t *);
3581 
3582 int	netbsd32___fhstat50(struct lwp *, const struct netbsd32___fhstat50_args *, register_t *);
3583 
3584 int	netbsd32_pipe2(struct lwp *, const struct netbsd32_pipe2_args *, register_t *);
3585 
3586 int	netbsd32_dup3(struct lwp *, const struct netbsd32_dup3_args *, register_t *);
3587 
3588 int	netbsd32_kqueue1(struct lwp *, const struct netbsd32_kqueue1_args *, register_t *);
3589 
3590 int	netbsd32_paccept(struct lwp *, const struct netbsd32_paccept_args *, register_t *);
3591 
3592 int	netbsd32_linkat(struct lwp *, const struct netbsd32_linkat_args *, register_t *);
3593 
3594 int	netbsd32_renameat(struct lwp *, const struct netbsd32_renameat_args *, register_t *);
3595 
3596 int	netbsd32_mkfifoat(struct lwp *, const struct netbsd32_mkfifoat_args *, register_t *);
3597 
3598 int	netbsd32_mknodat(struct lwp *, const struct netbsd32_mknodat_args *, register_t *);
3599 
3600 int	netbsd32_mkdirat(struct lwp *, const struct netbsd32_mkdirat_args *, register_t *);
3601 
3602 int	netbsd32_faccessat(struct lwp *, const struct netbsd32_faccessat_args *, register_t *);
3603 
3604 int	netbsd32_fchmodat(struct lwp *, const struct netbsd32_fchmodat_args *, register_t *);
3605 
3606 int	netbsd32_fchownat(struct lwp *, const struct netbsd32_fchownat_args *, register_t *);
3607 
3608 int	netbsd32_fexecve(struct lwp *, const struct netbsd32_fexecve_args *, register_t *);
3609 
3610 int	netbsd32_fstatat(struct lwp *, const struct netbsd32_fstatat_args *, register_t *);
3611 
3612 int	netbsd32_utimensat(struct lwp *, const struct netbsd32_utimensat_args *, register_t *);
3613 
3614 int	netbsd32_openat(struct lwp *, const struct netbsd32_openat_args *, register_t *);
3615 
3616 int	netbsd32_readlinkat(struct lwp *, const struct netbsd32_readlinkat_args *, register_t *);
3617 
3618 int	netbsd32_symlinkat(struct lwp *, const struct netbsd32_symlinkat_args *, register_t *);
3619 
3620 int	netbsd32_unlinkat(struct lwp *, const struct netbsd32_unlinkat_args *, register_t *);
3621 
3622 int	netbsd32_futimens(struct lwp *, const struct netbsd32_futimens_args *, register_t *);
3623 
3624 int	netbsd32___quotactl(struct lwp *, const struct netbsd32___quotactl_args *, register_t *);
3625 
3626 int	netbsd32_posix_spawn(struct lwp *, const struct netbsd32_posix_spawn_args *, register_t *);
3627 
3628 int	netbsd32_recvmmsg(struct lwp *, const struct netbsd32_recvmmsg_args *, register_t *);
3629 
3630 int	netbsd32_sendmmsg(struct lwp *, const struct netbsd32_sendmmsg_args *, register_t *);
3631 
3632 int	netbsd32_clock_nanosleep(struct lwp *, const struct netbsd32_clock_nanosleep_args *, register_t *);
3633 
3634 int	netbsd32____lwp_park60(struct lwp *, const struct netbsd32____lwp_park60_args *, register_t *);
3635 
3636 int	netbsd32_posix_fallocate(struct lwp *, const struct netbsd32_posix_fallocate_args *, register_t *);
3637 
3638 int	netbsd32_fdiscard(struct lwp *, const struct netbsd32_fdiscard_args *, register_t *);
3639 
3640 int	netbsd32_wait6(struct lwp *, const struct netbsd32_wait6_args *, register_t *);
3641 
3642 int	netbsd32_clock_getcpuclockid2(struct lwp *, const struct netbsd32_clock_getcpuclockid2_args *, register_t *);
3643 
3644 int	netbsd32___getvfsstat90(struct lwp *, const struct netbsd32___getvfsstat90_args *, register_t *);
3645 
3646 int	netbsd32___statvfs190(struct lwp *, const struct netbsd32___statvfs190_args *, register_t *);
3647 
3648 int	netbsd32___fstatvfs190(struct lwp *, const struct netbsd32___fstatvfs190_args *, register_t *);
3649 
3650 int	netbsd32___fhstatvfs190(struct lwp *, const struct netbsd32___fhstatvfs190_args *, register_t *);
3651 
3652 int	netbsd32___acl_get_link(struct lwp *, const struct netbsd32___acl_get_link_args *, register_t *);
3653 
3654 int	netbsd32___acl_set_link(struct lwp *, const struct netbsd32___acl_set_link_args *, register_t *);
3655 
3656 int	netbsd32___acl_delete_link(struct lwp *, const struct netbsd32___acl_delete_link_args *, register_t *);
3657 
3658 int	netbsd32___acl_aclcheck_link(struct lwp *, const struct netbsd32___acl_aclcheck_link_args *, register_t *);
3659 
3660 int	netbsd32___acl_get_file(struct lwp *, const struct netbsd32___acl_get_file_args *, register_t *);
3661 
3662 int	netbsd32___acl_set_file(struct lwp *, const struct netbsd32___acl_set_file_args *, register_t *);
3663 
3664 int	netbsd32___acl_get_fd(struct lwp *, const struct netbsd32___acl_get_fd_args *, register_t *);
3665 
3666 int	netbsd32___acl_set_fd(struct lwp *, const struct netbsd32___acl_set_fd_args *, register_t *);
3667 
3668 int	netbsd32___acl_delete_file(struct lwp *, const struct netbsd32___acl_delete_file_args *, register_t *);
3669 
3670 int	netbsd32___acl_delete_fd(struct lwp *, const struct netbsd32___acl_delete_fd_args *, register_t *);
3671 
3672 int	netbsd32___acl_aclcheck_file(struct lwp *, const struct netbsd32___acl_aclcheck_file_args *, register_t *);
3673 
3674 int	netbsd32___acl_aclcheck_fd(struct lwp *, const struct netbsd32___acl_aclcheck_fd_args *, register_t *);
3675 
3676 int	netbsd32_lpathconf(struct lwp *, const struct netbsd32_lpathconf_args *, register_t *);
3677 
3678 int	netbsd32_memfd_create(struct lwp *, const struct netbsd32_memfd_create_args *, register_t *);
3679 
3680 int	netbsd32___kevent100(struct lwp *, const struct netbsd32___kevent100_args *, register_t *);
3681 
3682 #endif /* _NETBSD32_SYS_SYSCALLARGS_H_ */
3683