xref: /netbsd-src/sys/sys/syscallargs.h (revision f82d7874c259b2a6cc59b714f844919f32bf7b51)
1 /* $NetBSD: syscallargs.h,v 1.194 2008/04/24 11:51:47 ad 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.200 2008/04/24 11:51:19 ad Exp
8  */
9 
10 #ifndef _SYS_SYSCALLARGS_H_
11 #define	_SYS_SYSCALLARGS_H_
12 
13 #define	SYS_MAXSYSARGS	8
14 
15 #undef	syscallarg
16 #define	syscallarg(x)							\
17 	union {								\
18 		register_t pad;						\
19 		struct { x datum; } le;					\
20 		struct { /* LINTED zero array dimension */		\
21 			int8_t pad[  /* CONSTCOND */			\
22 				(sizeof (register_t) < sizeof (x))	\
23 				? 0					\
24 				: sizeof (register_t) - sizeof (x)];	\
25 			x datum;					\
26 		} be;							\
27 	}
28 
29 #undef check_syscall_args
30 #define check_syscall_args(call) \
31 	typedef char call##_check_args[sizeof (struct call##_args) \
32 		<= SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
33 
34 struct sys_syscall_args {
35 	syscallarg(int) code;
36 	syscallarg(register_t) args[SYS_MAXSYSARGS];
37 };
38 
39 struct sys_exit_args {
40 	syscallarg(int) rval;
41 };
42 check_syscall_args(sys_exit)
43 
44 struct sys_read_args {
45 	syscallarg(int) fd;
46 	syscallarg(void *) buf;
47 	syscallarg(size_t) nbyte;
48 };
49 check_syscall_args(sys_read)
50 
51 struct sys_write_args {
52 	syscallarg(int) fd;
53 	syscallarg(const void *) buf;
54 	syscallarg(size_t) nbyte;
55 };
56 check_syscall_args(sys_write)
57 
58 struct sys_open_args {
59 	syscallarg(const char *) path;
60 	syscallarg(int) flags;
61 	syscallarg(mode_t) mode;
62 };
63 check_syscall_args(sys_open)
64 
65 struct sys_close_args {
66 	syscallarg(int) fd;
67 };
68 check_syscall_args(sys_close)
69 
70 struct sys_wait4_args {
71 	syscallarg(int) pid;
72 	syscallarg(int *) status;
73 	syscallarg(int) options;
74 	syscallarg(struct rusage *) rusage;
75 };
76 check_syscall_args(sys_wait4)
77 
78 struct compat_43_sys_creat_args {
79 	syscallarg(const char *) path;
80 	syscallarg(mode_t) mode;
81 };
82 check_syscall_args(compat_43_sys_creat)
83 
84 struct sys_link_args {
85 	syscallarg(const char *) path;
86 	syscallarg(const char *) link;
87 };
88 check_syscall_args(sys_link)
89 
90 struct sys_unlink_args {
91 	syscallarg(const char *) path;
92 };
93 check_syscall_args(sys_unlink)
94 
95 struct sys_chdir_args {
96 	syscallarg(const char *) path;
97 };
98 check_syscall_args(sys_chdir)
99 
100 struct sys_fchdir_args {
101 	syscallarg(int) fd;
102 };
103 check_syscall_args(sys_fchdir)
104 
105 struct sys_mknod_args {
106 	syscallarg(const char *) path;
107 	syscallarg(mode_t) mode;
108 	syscallarg(dev_t) dev;
109 };
110 check_syscall_args(sys_mknod)
111 
112 struct sys_chmod_args {
113 	syscallarg(const char *) path;
114 	syscallarg(mode_t) mode;
115 };
116 check_syscall_args(sys_chmod)
117 
118 struct sys_chown_args {
119 	syscallarg(const char *) path;
120 	syscallarg(uid_t) uid;
121 	syscallarg(gid_t) gid;
122 };
123 check_syscall_args(sys_chown)
124 
125 struct sys_obreak_args {
126 	syscallarg(char *) nsize;
127 };
128 check_syscall_args(sys_obreak)
129 
130 struct compat_20_sys_getfsstat_args {
131 	syscallarg(struct statfs12 *) buf;
132 	syscallarg(long) bufsize;
133 	syscallarg(int) flags;
134 };
135 check_syscall_args(compat_20_sys_getfsstat)
136 
137 struct compat_43_sys_lseek_args {
138 	syscallarg(int) fd;
139 	syscallarg(long) offset;
140 	syscallarg(int) whence;
141 };
142 check_syscall_args(compat_43_sys_lseek)
143 #ifdef COMPAT_43
144 #else
145 #endif
146 
147 struct compat_40_sys_mount_args {
148 	syscallarg(const char *) type;
149 	syscallarg(const char *) path;
150 	syscallarg(int) flags;
151 	syscallarg(void *) data;
152 };
153 check_syscall_args(compat_40_sys_mount)
154 
155 struct sys_unmount_args {
156 	syscallarg(const char *) path;
157 	syscallarg(int) flags;
158 };
159 check_syscall_args(sys_unmount)
160 
161 struct sys_setuid_args {
162 	syscallarg(uid_t) uid;
163 };
164 check_syscall_args(sys_setuid)
165 #ifdef COMPAT_43
166 #else
167 #endif
168 
169 struct sys_ptrace_args {
170 	syscallarg(int) req;
171 	syscallarg(pid_t) pid;
172 	syscallarg(void *) addr;
173 	syscallarg(int) data;
174 };
175 check_syscall_args(sys_ptrace)
176 
177 struct sys_recvmsg_args {
178 	syscallarg(int) s;
179 	syscallarg(struct msghdr *) msg;
180 	syscallarg(int) flags;
181 };
182 check_syscall_args(sys_recvmsg)
183 
184 struct sys_sendmsg_args {
185 	syscallarg(int) s;
186 	syscallarg(const struct msghdr *) msg;
187 	syscallarg(int) flags;
188 };
189 check_syscall_args(sys_sendmsg)
190 
191 struct sys_recvfrom_args {
192 	syscallarg(int) s;
193 	syscallarg(void *) buf;
194 	syscallarg(size_t) len;
195 	syscallarg(int) flags;
196 	syscallarg(struct sockaddr *) from;
197 	syscallarg(unsigned int *) fromlenaddr;
198 };
199 check_syscall_args(sys_recvfrom)
200 
201 struct sys_accept_args {
202 	syscallarg(int) s;
203 	syscallarg(struct sockaddr *) name;
204 	syscallarg(unsigned int *) anamelen;
205 };
206 check_syscall_args(sys_accept)
207 
208 struct sys_getpeername_args {
209 	syscallarg(int) fdes;
210 	syscallarg(struct sockaddr *) asa;
211 	syscallarg(unsigned int *) alen;
212 };
213 check_syscall_args(sys_getpeername)
214 
215 struct sys_getsockname_args {
216 	syscallarg(int) fdes;
217 	syscallarg(struct sockaddr *) asa;
218 	syscallarg(unsigned int *) alen;
219 };
220 check_syscall_args(sys_getsockname)
221 
222 struct sys_access_args {
223 	syscallarg(const char *) path;
224 	syscallarg(int) flags;
225 };
226 check_syscall_args(sys_access)
227 
228 struct sys_chflags_args {
229 	syscallarg(const char *) path;
230 	syscallarg(u_long) flags;
231 };
232 check_syscall_args(sys_chflags)
233 
234 struct sys_fchflags_args {
235 	syscallarg(int) fd;
236 	syscallarg(u_long) flags;
237 };
238 check_syscall_args(sys_fchflags)
239 
240 struct sys_kill_args {
241 	syscallarg(int) pid;
242 	syscallarg(int) signum;
243 };
244 check_syscall_args(sys_kill)
245 
246 struct compat_43_sys_stat_args {
247 	syscallarg(const char *) path;
248 	syscallarg(struct stat43 *) ub;
249 };
250 check_syscall_args(compat_43_sys_stat)
251 
252 struct compat_43_sys_lstat_args {
253 	syscallarg(const char *) path;
254 	syscallarg(struct stat43 *) ub;
255 };
256 check_syscall_args(compat_43_sys_lstat)
257 
258 struct sys_dup_args {
259 	syscallarg(int) fd;
260 };
261 check_syscall_args(sys_dup)
262 
263 struct sys_profil_args {
264 	syscallarg(char *) samples;
265 	syscallarg(size_t) size;
266 	syscallarg(u_long) offset;
267 	syscallarg(u_int) scale;
268 };
269 check_syscall_args(sys_profil)
270 
271 struct sys_ktrace_args {
272 	syscallarg(const char *) fname;
273 	syscallarg(int) ops;
274 	syscallarg(int) facs;
275 	syscallarg(int) pid;
276 };
277 check_syscall_args(sys_ktrace)
278 
279 struct compat_13_sys_sigaction_args {
280 	syscallarg(int) signum;
281 	syscallarg(const struct sigaction13 *) nsa;
282 	syscallarg(struct sigaction13 *) osa;
283 };
284 check_syscall_args(compat_13_sys_sigaction)
285 #ifdef COMPAT_43
286 #else
287 #endif
288 
289 struct compat_13_sys_sigprocmask_args {
290 	syscallarg(int) how;
291 	syscallarg(int) mask;
292 };
293 check_syscall_args(compat_13_sys_sigprocmask)
294 
295 struct sys___getlogin_args {
296 	syscallarg(char *) namebuf;
297 	syscallarg(size_t) namelen;
298 };
299 check_syscall_args(sys___getlogin)
300 
301 struct sys___setlogin_args {
302 	syscallarg(const char *) namebuf;
303 };
304 check_syscall_args(sys___setlogin)
305 
306 struct sys_acct_args {
307 	syscallarg(const char *) path;
308 };
309 check_syscall_args(sys_acct)
310 
311 struct compat_13_sys_sigaltstack_args {
312 	syscallarg(const struct sigaltstack13 *) nss;
313 	syscallarg(struct sigaltstack13 *) oss;
314 };
315 check_syscall_args(compat_13_sys_sigaltstack)
316 
317 struct sys_ioctl_args {
318 	syscallarg(int) fd;
319 	syscallarg(u_long) com;
320 	syscallarg(void *) data;
321 };
322 check_syscall_args(sys_ioctl)
323 
324 struct compat_12_sys_reboot_args {
325 	syscallarg(int) opt;
326 };
327 check_syscall_args(compat_12_sys_reboot)
328 
329 struct sys_revoke_args {
330 	syscallarg(const char *) path;
331 };
332 check_syscall_args(sys_revoke)
333 
334 struct sys_symlink_args {
335 	syscallarg(const char *) path;
336 	syscallarg(const char *) link;
337 };
338 check_syscall_args(sys_symlink)
339 
340 struct sys_readlink_args {
341 	syscallarg(const char *) path;
342 	syscallarg(char *) buf;
343 	syscallarg(size_t) count;
344 };
345 check_syscall_args(sys_readlink)
346 
347 struct sys_execve_args {
348 	syscallarg(const char *) path;
349 	syscallarg(char *const *) argp;
350 	syscallarg(char *const *) envp;
351 };
352 check_syscall_args(sys_execve)
353 
354 struct sys_umask_args {
355 	syscallarg(mode_t) newmask;
356 };
357 check_syscall_args(sys_umask)
358 
359 struct sys_chroot_args {
360 	syscallarg(const char *) path;
361 };
362 check_syscall_args(sys_chroot)
363 
364 struct compat_43_sys_fstat_args {
365 	syscallarg(int) fd;
366 	syscallarg(struct stat43 *) sb;
367 };
368 check_syscall_args(compat_43_sys_fstat)
369 
370 struct compat_43_sys_getkerninfo_args {
371 	syscallarg(int) op;
372 	syscallarg(char *) where;
373 	syscallarg(int *) size;
374 	syscallarg(int) arg;
375 };
376 check_syscall_args(compat_43_sys_getkerninfo)
377 
378 struct compat_12_sys_msync_args {
379 	syscallarg(void *) addr;
380 	syscallarg(size_t) len;
381 };
382 check_syscall_args(compat_12_sys_msync)
383 
384 struct sys_sbrk_args {
385 	syscallarg(intptr_t) incr;
386 };
387 check_syscall_args(sys_sbrk)
388 
389 struct sys_sstk_args {
390 	syscallarg(int) incr;
391 };
392 check_syscall_args(sys_sstk)
393 
394 struct compat_43_sys_mmap_args {
395 	syscallarg(void *) addr;
396 	syscallarg(size_t) len;
397 	syscallarg(int) prot;
398 	syscallarg(int) flags;
399 	syscallarg(int) fd;
400 	syscallarg(long) pos;
401 };
402 check_syscall_args(compat_43_sys_mmap)
403 
404 struct sys_ovadvise_args {
405 	syscallarg(int) anom;
406 };
407 check_syscall_args(sys_ovadvise)
408 
409 struct sys_munmap_args {
410 	syscallarg(void *) addr;
411 	syscallarg(size_t) len;
412 };
413 check_syscall_args(sys_munmap)
414 
415 struct sys_mprotect_args {
416 	syscallarg(void *) addr;
417 	syscallarg(size_t) len;
418 	syscallarg(int) prot;
419 };
420 check_syscall_args(sys_mprotect)
421 
422 struct sys_madvise_args {
423 	syscallarg(void *) addr;
424 	syscallarg(size_t) len;
425 	syscallarg(int) behav;
426 };
427 check_syscall_args(sys_madvise)
428 
429 struct sys_mincore_args {
430 	syscallarg(void *) addr;
431 	syscallarg(size_t) len;
432 	syscallarg(char *) vec;
433 };
434 check_syscall_args(sys_mincore)
435 
436 struct sys_getgroups_args {
437 	syscallarg(int) gidsetsize;
438 	syscallarg(gid_t *) gidset;
439 };
440 check_syscall_args(sys_getgroups)
441 
442 struct sys_setgroups_args {
443 	syscallarg(int) gidsetsize;
444 	syscallarg(const gid_t *) gidset;
445 };
446 check_syscall_args(sys_setgroups)
447 
448 struct sys_setpgid_args {
449 	syscallarg(int) pid;
450 	syscallarg(int) pgid;
451 };
452 check_syscall_args(sys_setpgid)
453 
454 struct sys_setitimer_args {
455 	syscallarg(int) which;
456 	syscallarg(const struct itimerval *) itv;
457 	syscallarg(struct itimerval *) oitv;
458 };
459 check_syscall_args(sys_setitimer)
460 
461 struct compat_12_sys_swapon_args {
462 	syscallarg(const char *) name;
463 };
464 check_syscall_args(compat_12_sys_swapon)
465 
466 struct sys_getitimer_args {
467 	syscallarg(int) which;
468 	syscallarg(struct itimerval *) itv;
469 };
470 check_syscall_args(sys_getitimer)
471 
472 struct compat_43_sys_gethostname_args {
473 	syscallarg(char *) hostname;
474 	syscallarg(u_int) len;
475 };
476 check_syscall_args(compat_43_sys_gethostname)
477 
478 struct compat_43_sys_sethostname_args {
479 	syscallarg(char *) hostname;
480 	syscallarg(u_int) len;
481 };
482 check_syscall_args(compat_43_sys_sethostname)
483 
484 struct sys_dup2_args {
485 	syscallarg(int) from;
486 	syscallarg(int) to;
487 };
488 check_syscall_args(sys_dup2)
489 
490 struct sys_fcntl_args {
491 	syscallarg(int) fd;
492 	syscallarg(int) cmd;
493 	syscallarg(void *) arg;
494 };
495 check_syscall_args(sys_fcntl)
496 
497 struct sys_select_args {
498 	syscallarg(int) nd;
499 	syscallarg(fd_set *) in;
500 	syscallarg(fd_set *) ou;
501 	syscallarg(fd_set *) ex;
502 	syscallarg(struct timeval *) tv;
503 };
504 check_syscall_args(sys_select)
505 
506 struct sys_fsync_args {
507 	syscallarg(int) fd;
508 };
509 check_syscall_args(sys_fsync)
510 
511 struct sys_setpriority_args {
512 	syscallarg(int) which;
513 	syscallarg(id_t) who;
514 	syscallarg(int) prio;
515 };
516 check_syscall_args(sys_setpriority)
517 
518 struct compat_30_sys_socket_args {
519 	syscallarg(int) domain;
520 	syscallarg(int) type;
521 	syscallarg(int) protocol;
522 };
523 check_syscall_args(compat_30_sys_socket)
524 
525 struct sys_connect_args {
526 	syscallarg(int) s;
527 	syscallarg(const struct sockaddr *) name;
528 	syscallarg(unsigned int) namelen;
529 };
530 check_syscall_args(sys_connect)
531 
532 struct compat_43_sys_accept_args {
533 	syscallarg(int) s;
534 	syscallarg(void *) name;
535 	syscallarg(int *) anamelen;
536 };
537 check_syscall_args(compat_43_sys_accept)
538 
539 struct sys_getpriority_args {
540 	syscallarg(int) which;
541 	syscallarg(id_t) who;
542 };
543 check_syscall_args(sys_getpriority)
544 
545 struct compat_43_sys_send_args {
546 	syscallarg(int) s;
547 	syscallarg(void *) buf;
548 	syscallarg(int) len;
549 	syscallarg(int) flags;
550 };
551 check_syscall_args(compat_43_sys_send)
552 
553 struct compat_43_sys_recv_args {
554 	syscallarg(int) s;
555 	syscallarg(void *) buf;
556 	syscallarg(int) len;
557 	syscallarg(int) flags;
558 };
559 check_syscall_args(compat_43_sys_recv)
560 
561 struct compat_13_sys_sigreturn_args {
562 	syscallarg(struct sigcontext13 *) sigcntxp;
563 };
564 check_syscall_args(compat_13_sys_sigreturn)
565 
566 struct sys_bind_args {
567 	syscallarg(int) s;
568 	syscallarg(const struct sockaddr *) name;
569 	syscallarg(unsigned int) namelen;
570 };
571 check_syscall_args(sys_bind)
572 
573 struct sys_setsockopt_args {
574 	syscallarg(int) s;
575 	syscallarg(int) level;
576 	syscallarg(int) name;
577 	syscallarg(const void *) val;
578 	syscallarg(unsigned int) valsize;
579 };
580 check_syscall_args(sys_setsockopt)
581 
582 struct sys_listen_args {
583 	syscallarg(int) s;
584 	syscallarg(int) backlog;
585 };
586 check_syscall_args(sys_listen)
587 
588 struct compat_43_sys_sigvec_args {
589 	syscallarg(int) signum;
590 	syscallarg(struct sigvec *) nsv;
591 	syscallarg(struct sigvec *) osv;
592 };
593 check_syscall_args(compat_43_sys_sigvec)
594 
595 struct compat_43_sys_sigblock_args {
596 	syscallarg(int) mask;
597 };
598 check_syscall_args(compat_43_sys_sigblock)
599 
600 struct compat_43_sys_sigsetmask_args {
601 	syscallarg(int) mask;
602 };
603 check_syscall_args(compat_43_sys_sigsetmask)
604 
605 struct compat_13_sys_sigsuspend_args {
606 	syscallarg(int) mask;
607 };
608 check_syscall_args(compat_13_sys_sigsuspend)
609 
610 struct compat_43_sys_sigstack_args {
611 	syscallarg(struct sigstack *) nss;
612 	syscallarg(struct sigstack *) oss;
613 };
614 check_syscall_args(compat_43_sys_sigstack)
615 
616 struct compat_43_sys_recvmsg_args {
617 	syscallarg(int) s;
618 	syscallarg(struct omsghdr *) msg;
619 	syscallarg(int) flags;
620 };
621 check_syscall_args(compat_43_sys_recvmsg)
622 
623 struct compat_43_sys_sendmsg_args {
624 	syscallarg(int) s;
625 	syscallarg(void *) msg;
626 	syscallarg(int) flags;
627 };
628 check_syscall_args(compat_43_sys_sendmsg)
629 
630 struct sys_gettimeofday_args {
631 	syscallarg(struct timeval *) tp;
632 	syscallarg(void *) tzp;
633 };
634 check_syscall_args(sys_gettimeofday)
635 
636 struct sys_getrusage_args {
637 	syscallarg(int) who;
638 	syscallarg(struct rusage *) rusage;
639 };
640 check_syscall_args(sys_getrusage)
641 
642 struct sys_getsockopt_args {
643 	syscallarg(int) s;
644 	syscallarg(int) level;
645 	syscallarg(int) name;
646 	syscallarg(void *) val;
647 	syscallarg(unsigned int *) avalsize;
648 };
649 check_syscall_args(sys_getsockopt)
650 
651 struct sys_readv_args {
652 	syscallarg(int) fd;
653 	syscallarg(const struct iovec *) iovp;
654 	syscallarg(int) iovcnt;
655 };
656 check_syscall_args(sys_readv)
657 
658 struct sys_writev_args {
659 	syscallarg(int) fd;
660 	syscallarg(const struct iovec *) iovp;
661 	syscallarg(int) iovcnt;
662 };
663 check_syscall_args(sys_writev)
664 
665 struct sys_settimeofday_args {
666 	syscallarg(const struct timeval *) tv;
667 	syscallarg(const void *) tzp;
668 };
669 check_syscall_args(sys_settimeofday)
670 
671 struct sys_fchown_args {
672 	syscallarg(int) fd;
673 	syscallarg(uid_t) uid;
674 	syscallarg(gid_t) gid;
675 };
676 check_syscall_args(sys_fchown)
677 
678 struct sys_fchmod_args {
679 	syscallarg(int) fd;
680 	syscallarg(mode_t) mode;
681 };
682 check_syscall_args(sys_fchmod)
683 
684 struct compat_43_sys_recvfrom_args {
685 	syscallarg(int) s;
686 	syscallarg(void *) buf;
687 	syscallarg(size_t) len;
688 	syscallarg(int) flags;
689 	syscallarg(void *) from;
690 	syscallarg(int *) fromlenaddr;
691 };
692 check_syscall_args(compat_43_sys_recvfrom)
693 
694 struct sys_setreuid_args {
695 	syscallarg(uid_t) ruid;
696 	syscallarg(uid_t) euid;
697 };
698 check_syscall_args(sys_setreuid)
699 
700 struct sys_setregid_args {
701 	syscallarg(gid_t) rgid;
702 	syscallarg(gid_t) egid;
703 };
704 check_syscall_args(sys_setregid)
705 
706 struct sys_rename_args {
707 	syscallarg(const char *) from;
708 	syscallarg(const char *) to;
709 };
710 check_syscall_args(sys_rename)
711 
712 struct compat_43_sys_truncate_args {
713 	syscallarg(const char *) path;
714 	syscallarg(long) length;
715 };
716 check_syscall_args(compat_43_sys_truncate)
717 
718 struct compat_43_sys_ftruncate_args {
719 	syscallarg(int) fd;
720 	syscallarg(long) length;
721 };
722 check_syscall_args(compat_43_sys_ftruncate)
723 
724 struct sys_flock_args {
725 	syscallarg(int) fd;
726 	syscallarg(int) how;
727 };
728 check_syscall_args(sys_flock)
729 
730 struct sys_mkfifo_args {
731 	syscallarg(const char *) path;
732 	syscallarg(mode_t) mode;
733 };
734 check_syscall_args(sys_mkfifo)
735 
736 struct sys_sendto_args {
737 	syscallarg(int) s;
738 	syscallarg(const void *) buf;
739 	syscallarg(size_t) len;
740 	syscallarg(int) flags;
741 	syscallarg(const struct sockaddr *) to;
742 	syscallarg(unsigned int) tolen;
743 };
744 check_syscall_args(sys_sendto)
745 
746 struct sys_shutdown_args {
747 	syscallarg(int) s;
748 	syscallarg(int) how;
749 };
750 check_syscall_args(sys_shutdown)
751 
752 struct sys_socketpair_args {
753 	syscallarg(int) domain;
754 	syscallarg(int) type;
755 	syscallarg(int) protocol;
756 	syscallarg(int *) rsv;
757 };
758 check_syscall_args(sys_socketpair)
759 
760 struct sys_mkdir_args {
761 	syscallarg(const char *) path;
762 	syscallarg(mode_t) mode;
763 };
764 check_syscall_args(sys_mkdir)
765 
766 struct sys_rmdir_args {
767 	syscallarg(const char *) path;
768 };
769 check_syscall_args(sys_rmdir)
770 
771 struct sys_utimes_args {
772 	syscallarg(const char *) path;
773 	syscallarg(const struct timeval *) tptr;
774 };
775 check_syscall_args(sys_utimes)
776 
777 struct sys_adjtime_args {
778 	syscallarg(const struct timeval *) delta;
779 	syscallarg(struct timeval *) olddelta;
780 };
781 check_syscall_args(sys_adjtime)
782 
783 struct compat_43_sys_getpeername_args {
784 	syscallarg(int) fdes;
785 	syscallarg(void *) asa;
786 	syscallarg(int *) alen;
787 };
788 check_syscall_args(compat_43_sys_getpeername)
789 
790 struct compat_43_sys_sethostid_args {
791 	syscallarg(int32_t) hostid;
792 };
793 check_syscall_args(compat_43_sys_sethostid)
794 
795 struct compat_43_sys_getrlimit_args {
796 	syscallarg(int) which;
797 	syscallarg(struct orlimit *) rlp;
798 };
799 check_syscall_args(compat_43_sys_getrlimit)
800 
801 struct compat_43_sys_setrlimit_args {
802 	syscallarg(int) which;
803 	syscallarg(const struct orlimit *) rlp;
804 };
805 check_syscall_args(compat_43_sys_setrlimit)
806 
807 struct compat_43_sys_killpg_args {
808 	syscallarg(int) pgid;
809 	syscallarg(int) signum;
810 };
811 check_syscall_args(compat_43_sys_killpg)
812 
813 struct sys_quotactl_args {
814 	syscallarg(const char *) path;
815 	syscallarg(int) cmd;
816 	syscallarg(int) uid;
817 	syscallarg(void *) arg;
818 };
819 check_syscall_args(sys_quotactl)
820 
821 struct compat_43_sys_getsockname_args {
822 	syscallarg(int) fdec;
823 	syscallarg(void *) asa;
824 	syscallarg(int *) alen;
825 };
826 check_syscall_args(compat_43_sys_getsockname)
827 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
828 
829 struct sys_nfssvc_args {
830 	syscallarg(int) flag;
831 	syscallarg(void *) argp;
832 };
833 check_syscall_args(sys_nfssvc)
834 #else
835 #endif
836 
837 struct compat_43_sys_getdirentries_args {
838 	syscallarg(int) fd;
839 	syscallarg(char *) buf;
840 	syscallarg(u_int) count;
841 	syscallarg(long *) basep;
842 };
843 check_syscall_args(compat_43_sys_getdirentries)
844 
845 struct compat_20_sys_statfs_args {
846 	syscallarg(const char *) path;
847 	syscallarg(struct statfs12 *) buf;
848 };
849 check_syscall_args(compat_20_sys_statfs)
850 
851 struct compat_20_sys_fstatfs_args {
852 	syscallarg(int) fd;
853 	syscallarg(struct statfs12 *) buf;
854 };
855 check_syscall_args(compat_20_sys_fstatfs)
856 
857 struct compat_30_sys_getfh_args {
858 	syscallarg(const char *) fname;
859 	syscallarg(struct compat_30_fhandle *) fhp;
860 };
861 check_syscall_args(compat_30_sys_getfh)
862 
863 struct compat_09_sys_getdomainname_args {
864 	syscallarg(char *) domainname;
865 	syscallarg(int) len;
866 };
867 check_syscall_args(compat_09_sys_getdomainname)
868 
869 struct compat_09_sys_setdomainname_args {
870 	syscallarg(char *) domainname;
871 	syscallarg(int) len;
872 };
873 check_syscall_args(compat_09_sys_setdomainname)
874 
875 struct compat_09_sys_uname_args {
876 	syscallarg(struct outsname *) name;
877 };
878 check_syscall_args(compat_09_sys_uname)
879 
880 struct sys_sysarch_args {
881 	syscallarg(int) op;
882 	syscallarg(void *) parms;
883 };
884 check_syscall_args(sys_sysarch)
885 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
886 
887 struct compat_10_sys_semsys_args {
888 	syscallarg(int) which;
889 	syscallarg(int) a2;
890 	syscallarg(int) a3;
891 	syscallarg(int) a4;
892 	syscallarg(int) a5;
893 };
894 check_syscall_args(compat_10_sys_semsys)
895 #else
896 #endif
897 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
898 
899 struct compat_10_sys_msgsys_args {
900 	syscallarg(int) which;
901 	syscallarg(int) a2;
902 	syscallarg(int) a3;
903 	syscallarg(int) a4;
904 	syscallarg(int) a5;
905 	syscallarg(int) a6;
906 };
907 check_syscall_args(compat_10_sys_msgsys)
908 #else
909 #endif
910 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
911 
912 struct compat_10_sys_shmsys_args {
913 	syscallarg(int) which;
914 	syscallarg(int) a2;
915 	syscallarg(int) a3;
916 	syscallarg(int) a4;
917 };
918 check_syscall_args(compat_10_sys_shmsys)
919 #else
920 #endif
921 
922 struct sys_pread_args {
923 	syscallarg(int) fd;
924 	syscallarg(void *) buf;
925 	syscallarg(size_t) nbyte;
926 	syscallarg(int) pad;
927 	syscallarg(off_t) offset;
928 };
929 check_syscall_args(sys_pread)
930 
931 struct sys_pwrite_args {
932 	syscallarg(int) fd;
933 	syscallarg(const void *) buf;
934 	syscallarg(size_t) nbyte;
935 	syscallarg(int) pad;
936 	syscallarg(off_t) offset;
937 };
938 check_syscall_args(sys_pwrite)
939 
940 struct compat_30_sys_ntp_gettime_args {
941 	syscallarg(struct ntptimeval30 *) ntvp;
942 };
943 check_syscall_args(compat_30_sys_ntp_gettime)
944 #if defined(NTP) || !defined(_KERNEL)
945 
946 struct sys_ntp_adjtime_args {
947 	syscallarg(struct timex *) tp;
948 };
949 check_syscall_args(sys_ntp_adjtime)
950 #else
951 #endif
952 
953 struct sys_setgid_args {
954 	syscallarg(gid_t) gid;
955 };
956 check_syscall_args(sys_setgid)
957 
958 struct sys_setegid_args {
959 	syscallarg(gid_t) egid;
960 };
961 check_syscall_args(sys_setegid)
962 
963 struct sys_seteuid_args {
964 	syscallarg(uid_t) euid;
965 };
966 check_syscall_args(sys_seteuid)
967 #if defined(LFS) || !defined(_KERNEL)
968 
969 struct sys_lfs_bmapv_args {
970 	syscallarg(fsid_t *) fsidp;
971 	syscallarg(struct block_info *) blkiov;
972 	syscallarg(int) blkcnt;
973 };
974 check_syscall_args(sys_lfs_bmapv)
975 
976 struct sys_lfs_markv_args {
977 	syscallarg(fsid_t *) fsidp;
978 	syscallarg(struct block_info *) blkiov;
979 	syscallarg(int) blkcnt;
980 };
981 check_syscall_args(sys_lfs_markv)
982 
983 struct sys_lfs_segclean_args {
984 	syscallarg(fsid_t *) fsidp;
985 	syscallarg(u_long) segment;
986 };
987 check_syscall_args(sys_lfs_segclean)
988 
989 struct sys_lfs_segwait_args {
990 	syscallarg(fsid_t *) fsidp;
991 	syscallarg(struct timeval *) tv;
992 };
993 check_syscall_args(sys_lfs_segwait)
994 #else
995 #endif
996 
997 struct compat_12_sys_stat_args {
998 	syscallarg(const char *) path;
999 	syscallarg(struct stat12 *) ub;
1000 };
1001 check_syscall_args(compat_12_sys_stat)
1002 
1003 struct compat_12_sys_fstat_args {
1004 	syscallarg(int) fd;
1005 	syscallarg(struct stat12 *) sb;
1006 };
1007 check_syscall_args(compat_12_sys_fstat)
1008 
1009 struct compat_12_sys_lstat_args {
1010 	syscallarg(const char *) path;
1011 	syscallarg(struct stat12 *) ub;
1012 };
1013 check_syscall_args(compat_12_sys_lstat)
1014 
1015 struct sys_pathconf_args {
1016 	syscallarg(const char *) path;
1017 	syscallarg(int) name;
1018 };
1019 check_syscall_args(sys_pathconf)
1020 
1021 struct sys_fpathconf_args {
1022 	syscallarg(int) fd;
1023 	syscallarg(int) name;
1024 };
1025 check_syscall_args(sys_fpathconf)
1026 
1027 struct sys_getrlimit_args {
1028 	syscallarg(int) which;
1029 	syscallarg(struct rlimit *) rlp;
1030 };
1031 check_syscall_args(sys_getrlimit)
1032 
1033 struct sys_setrlimit_args {
1034 	syscallarg(int) which;
1035 	syscallarg(const struct rlimit *) rlp;
1036 };
1037 check_syscall_args(sys_setrlimit)
1038 
1039 struct compat_12_sys_getdirentries_args {
1040 	syscallarg(int) fd;
1041 	syscallarg(char *) buf;
1042 	syscallarg(u_int) count;
1043 	syscallarg(long *) basep;
1044 };
1045 check_syscall_args(compat_12_sys_getdirentries)
1046 
1047 struct sys_mmap_args {
1048 	syscallarg(void *) addr;
1049 	syscallarg(size_t) len;
1050 	syscallarg(int) prot;
1051 	syscallarg(int) flags;
1052 	syscallarg(int) fd;
1053 	syscallarg(long) pad;
1054 	syscallarg(off_t) pos;
1055 };
1056 check_syscall_args(sys_mmap)
1057 
1058 struct sys___syscall_args {
1059 	syscallarg(quad_t) code;
1060 	syscallarg(register_t) args[SYS_MAXSYSARGS];
1061 };
1062 
1063 struct sys_lseek_args {
1064 	syscallarg(int) fd;
1065 	syscallarg(int) pad;
1066 	syscallarg(off_t) offset;
1067 	syscallarg(int) whence;
1068 };
1069 check_syscall_args(sys_lseek)
1070 
1071 struct sys_truncate_args {
1072 	syscallarg(const char *) path;
1073 	syscallarg(int) pad;
1074 	syscallarg(off_t) length;
1075 };
1076 check_syscall_args(sys_truncate)
1077 
1078 struct sys_ftruncate_args {
1079 	syscallarg(int) fd;
1080 	syscallarg(int) pad;
1081 	syscallarg(off_t) length;
1082 };
1083 check_syscall_args(sys_ftruncate)
1084 
1085 struct sys___sysctl_args {
1086 	syscallarg(const int *) name;
1087 	syscallarg(u_int) namelen;
1088 	syscallarg(void *) old;
1089 	syscallarg(size_t *) oldlenp;
1090 	syscallarg(const void *) new;
1091 	syscallarg(size_t) newlen;
1092 };
1093 check_syscall_args(sys___sysctl)
1094 
1095 struct sys_mlock_args {
1096 	syscallarg(const void *) addr;
1097 	syscallarg(size_t) len;
1098 };
1099 check_syscall_args(sys_mlock)
1100 
1101 struct sys_munlock_args {
1102 	syscallarg(const void *) addr;
1103 	syscallarg(size_t) len;
1104 };
1105 check_syscall_args(sys_munlock)
1106 
1107 struct sys_undelete_args {
1108 	syscallarg(const char *) path;
1109 };
1110 check_syscall_args(sys_undelete)
1111 
1112 struct sys_futimes_args {
1113 	syscallarg(int) fd;
1114 	syscallarg(const struct timeval *) tptr;
1115 };
1116 check_syscall_args(sys_futimes)
1117 
1118 struct sys_getpgid_args {
1119 	syscallarg(pid_t) pid;
1120 };
1121 check_syscall_args(sys_getpgid)
1122 
1123 struct sys_reboot_args {
1124 	syscallarg(int) opt;
1125 	syscallarg(char *) bootstr;
1126 };
1127 check_syscall_args(sys_reboot)
1128 
1129 struct sys_poll_args {
1130 	syscallarg(struct pollfd *) fds;
1131 	syscallarg(u_int) nfds;
1132 	syscallarg(int) timeout;
1133 };
1134 check_syscall_args(sys_poll)
1135 #if defined(LKM) || !defined(_KERNEL)
1136 #else	/* !LKM */
1137 #endif	/* !LKM */
1138 #if defined(SYSVSEM) || !defined(_KERNEL)
1139 
1140 struct compat_14_sys___semctl_args {
1141 	syscallarg(int) semid;
1142 	syscallarg(int) semnum;
1143 	syscallarg(int) cmd;
1144 	syscallarg(union __semun *) arg;
1145 };
1146 check_syscall_args(compat_14_sys___semctl)
1147 
1148 struct sys_semget_args {
1149 	syscallarg(key_t) key;
1150 	syscallarg(int) nsems;
1151 	syscallarg(int) semflg;
1152 };
1153 check_syscall_args(sys_semget)
1154 
1155 struct sys_semop_args {
1156 	syscallarg(int) semid;
1157 	syscallarg(struct sembuf *) sops;
1158 	syscallarg(size_t) nsops;
1159 };
1160 check_syscall_args(sys_semop)
1161 
1162 struct sys_semconfig_args {
1163 	syscallarg(int) flag;
1164 };
1165 check_syscall_args(sys_semconfig)
1166 #else
1167 #endif
1168 #if defined(SYSVMSG) || !defined(_KERNEL)
1169 
1170 struct compat_14_sys_msgctl_args {
1171 	syscallarg(int) msqid;
1172 	syscallarg(int) cmd;
1173 	syscallarg(struct msqid_ds14 *) buf;
1174 };
1175 check_syscall_args(compat_14_sys_msgctl)
1176 
1177 struct sys_msgget_args {
1178 	syscallarg(key_t) key;
1179 	syscallarg(int) msgflg;
1180 };
1181 check_syscall_args(sys_msgget)
1182 
1183 struct sys_msgsnd_args {
1184 	syscallarg(int) msqid;
1185 	syscallarg(const void *) msgp;
1186 	syscallarg(size_t) msgsz;
1187 	syscallarg(int) msgflg;
1188 };
1189 check_syscall_args(sys_msgsnd)
1190 
1191 struct sys_msgrcv_args {
1192 	syscallarg(int) msqid;
1193 	syscallarg(void *) msgp;
1194 	syscallarg(size_t) msgsz;
1195 	syscallarg(long) msgtyp;
1196 	syscallarg(int) msgflg;
1197 };
1198 check_syscall_args(sys_msgrcv)
1199 #else
1200 #endif
1201 #if defined(SYSVSHM) || !defined(_KERNEL)
1202 
1203 struct sys_shmat_args {
1204 	syscallarg(int) shmid;
1205 	syscallarg(const void *) shmaddr;
1206 	syscallarg(int) shmflg;
1207 };
1208 check_syscall_args(sys_shmat)
1209 
1210 struct compat_14_sys_shmctl_args {
1211 	syscallarg(int) shmid;
1212 	syscallarg(int) cmd;
1213 	syscallarg(struct shmid_ds14 *) buf;
1214 };
1215 check_syscall_args(compat_14_sys_shmctl)
1216 
1217 struct sys_shmdt_args {
1218 	syscallarg(const void *) shmaddr;
1219 };
1220 check_syscall_args(sys_shmdt)
1221 
1222 struct sys_shmget_args {
1223 	syscallarg(key_t) key;
1224 	syscallarg(size_t) size;
1225 	syscallarg(int) shmflg;
1226 };
1227 check_syscall_args(sys_shmget)
1228 #else
1229 #endif
1230 
1231 struct sys_clock_gettime_args {
1232 	syscallarg(clockid_t) clock_id;
1233 	syscallarg(struct timespec *) tp;
1234 };
1235 check_syscall_args(sys_clock_gettime)
1236 
1237 struct sys_clock_settime_args {
1238 	syscallarg(clockid_t) clock_id;
1239 	syscallarg(const struct timespec *) tp;
1240 };
1241 check_syscall_args(sys_clock_settime)
1242 
1243 struct sys_clock_getres_args {
1244 	syscallarg(clockid_t) clock_id;
1245 	syscallarg(struct timespec *) tp;
1246 };
1247 check_syscall_args(sys_clock_getres)
1248 
1249 struct sys_timer_create_args {
1250 	syscallarg(clockid_t) clock_id;
1251 	syscallarg(struct sigevent *) evp;
1252 	syscallarg(timer_t *) timerid;
1253 };
1254 check_syscall_args(sys_timer_create)
1255 
1256 struct sys_timer_delete_args {
1257 	syscallarg(timer_t) timerid;
1258 };
1259 check_syscall_args(sys_timer_delete)
1260 
1261 struct sys_timer_settime_args {
1262 	syscallarg(timer_t) timerid;
1263 	syscallarg(int) flags;
1264 	syscallarg(const struct itimerspec *) value;
1265 	syscallarg(struct itimerspec *) ovalue;
1266 };
1267 check_syscall_args(sys_timer_settime)
1268 
1269 struct sys_timer_gettime_args {
1270 	syscallarg(timer_t) timerid;
1271 	syscallarg(struct itimerspec *) value;
1272 };
1273 check_syscall_args(sys_timer_gettime)
1274 
1275 struct sys_timer_getoverrun_args {
1276 	syscallarg(timer_t) timerid;
1277 };
1278 check_syscall_args(sys_timer_getoverrun)
1279 
1280 struct sys_nanosleep_args {
1281 	syscallarg(const struct timespec *) rqtp;
1282 	syscallarg(struct timespec *) rmtp;
1283 };
1284 check_syscall_args(sys_nanosleep)
1285 
1286 struct sys_fdatasync_args {
1287 	syscallarg(int) fd;
1288 };
1289 check_syscall_args(sys_fdatasync)
1290 
1291 struct sys_mlockall_args {
1292 	syscallarg(int) flags;
1293 };
1294 check_syscall_args(sys_mlockall)
1295 
1296 struct sys___sigtimedwait_args {
1297 	syscallarg(const sigset_t *) set;
1298 	syscallarg(siginfo_t *) info;
1299 	syscallarg(struct timespec *) timeout;
1300 };
1301 check_syscall_args(sys___sigtimedwait)
1302 
1303 struct sys_modctl_args {
1304 	syscallarg(int) cmd;
1305 	syscallarg(void *) arg;
1306 };
1307 check_syscall_args(sys_modctl)
1308 #if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
1309 
1310 struct sys__ksem_init_args {
1311 	syscallarg(unsigned int) value;
1312 	syscallarg(semid_t *) idp;
1313 };
1314 check_syscall_args(sys__ksem_init)
1315 
1316 struct sys__ksem_open_args {
1317 	syscallarg(const char *) name;
1318 	syscallarg(int) oflag;
1319 	syscallarg(mode_t) mode;
1320 	syscallarg(unsigned int) value;
1321 	syscallarg(semid_t *) idp;
1322 };
1323 check_syscall_args(sys__ksem_open)
1324 
1325 struct sys__ksem_unlink_args {
1326 	syscallarg(const char *) name;
1327 };
1328 check_syscall_args(sys__ksem_unlink)
1329 
1330 struct sys__ksem_close_args {
1331 	syscallarg(semid_t) id;
1332 };
1333 check_syscall_args(sys__ksem_close)
1334 
1335 struct sys__ksem_post_args {
1336 	syscallarg(semid_t) id;
1337 };
1338 check_syscall_args(sys__ksem_post)
1339 
1340 struct sys__ksem_wait_args {
1341 	syscallarg(semid_t) id;
1342 };
1343 check_syscall_args(sys__ksem_wait)
1344 
1345 struct sys__ksem_trywait_args {
1346 	syscallarg(semid_t) id;
1347 };
1348 check_syscall_args(sys__ksem_trywait)
1349 
1350 struct sys__ksem_getvalue_args {
1351 	syscallarg(semid_t) id;
1352 	syscallarg(unsigned int *) value;
1353 };
1354 check_syscall_args(sys__ksem_getvalue)
1355 
1356 struct sys__ksem_destroy_args {
1357 	syscallarg(semid_t) id;
1358 };
1359 check_syscall_args(sys__ksem_destroy)
1360 #else
1361 #endif
1362 
1363 struct sys_mq_open_args {
1364 	syscallarg(const char *) name;
1365 	syscallarg(int) oflag;
1366 	syscallarg(mode_t) mode;
1367 	syscallarg(struct mq_attr *) attr;
1368 };
1369 check_syscall_args(sys_mq_open)
1370 
1371 struct sys_mq_close_args {
1372 	syscallarg(mqd_t) mqdes;
1373 };
1374 check_syscall_args(sys_mq_close)
1375 
1376 struct sys_mq_unlink_args {
1377 	syscallarg(const char *) name;
1378 };
1379 check_syscall_args(sys_mq_unlink)
1380 
1381 struct sys_mq_getattr_args {
1382 	syscallarg(mqd_t) mqdes;
1383 	syscallarg(struct mq_attr *) mqstat;
1384 };
1385 check_syscall_args(sys_mq_getattr)
1386 
1387 struct sys_mq_setattr_args {
1388 	syscallarg(mqd_t) mqdes;
1389 	syscallarg(const struct mq_attr *) mqstat;
1390 	syscallarg(struct mq_attr *) omqstat;
1391 };
1392 check_syscall_args(sys_mq_setattr)
1393 
1394 struct sys_mq_notify_args {
1395 	syscallarg(mqd_t) mqdes;
1396 	syscallarg(const struct sigevent *) notification;
1397 };
1398 check_syscall_args(sys_mq_notify)
1399 
1400 struct sys_mq_send_args {
1401 	syscallarg(mqd_t) mqdes;
1402 	syscallarg(const char *) msg_ptr;
1403 	syscallarg(size_t) msg_len;
1404 	syscallarg(unsigned) msg_prio;
1405 };
1406 check_syscall_args(sys_mq_send)
1407 
1408 struct sys_mq_receive_args {
1409 	syscallarg(mqd_t) mqdes;
1410 	syscallarg(char *) msg_ptr;
1411 	syscallarg(size_t) msg_len;
1412 	syscallarg(unsigned *) msg_prio;
1413 };
1414 check_syscall_args(sys_mq_receive)
1415 
1416 struct sys_mq_timedsend_args {
1417 	syscallarg(mqd_t) mqdes;
1418 	syscallarg(const char *) msg_ptr;
1419 	syscallarg(size_t) msg_len;
1420 	syscallarg(unsigned) msg_prio;
1421 	syscallarg(const struct timespec *) abs_timeout;
1422 };
1423 check_syscall_args(sys_mq_timedsend)
1424 
1425 struct sys_mq_timedreceive_args {
1426 	syscallarg(mqd_t) mqdes;
1427 	syscallarg(char *) msg_ptr;
1428 	syscallarg(size_t) msg_len;
1429 	syscallarg(unsigned *) msg_prio;
1430 	syscallarg(const struct timespec *) abs_timeout;
1431 };
1432 check_syscall_args(sys_mq_timedreceive)
1433 
1434 struct sys___posix_rename_args {
1435 	syscallarg(const char *) from;
1436 	syscallarg(const char *) to;
1437 };
1438 check_syscall_args(sys___posix_rename)
1439 
1440 struct sys_swapctl_args {
1441 	syscallarg(int) cmd;
1442 	syscallarg(void *) arg;
1443 	syscallarg(int) misc;
1444 };
1445 check_syscall_args(sys_swapctl)
1446 
1447 struct compat_30_sys_getdents_args {
1448 	syscallarg(int) fd;
1449 	syscallarg(char *) buf;
1450 	syscallarg(size_t) count;
1451 };
1452 check_syscall_args(compat_30_sys_getdents)
1453 
1454 struct sys_minherit_args {
1455 	syscallarg(void *) addr;
1456 	syscallarg(size_t) len;
1457 	syscallarg(int) inherit;
1458 };
1459 check_syscall_args(sys_minherit)
1460 
1461 struct sys_lchmod_args {
1462 	syscallarg(const char *) path;
1463 	syscallarg(mode_t) mode;
1464 };
1465 check_syscall_args(sys_lchmod)
1466 
1467 struct sys_lchown_args {
1468 	syscallarg(const char *) path;
1469 	syscallarg(uid_t) uid;
1470 	syscallarg(gid_t) gid;
1471 };
1472 check_syscall_args(sys_lchown)
1473 
1474 struct sys_lutimes_args {
1475 	syscallarg(const char *) path;
1476 	syscallarg(const struct timeval *) tptr;
1477 };
1478 check_syscall_args(sys_lutimes)
1479 
1480 struct sys___msync13_args {
1481 	syscallarg(void *) addr;
1482 	syscallarg(size_t) len;
1483 	syscallarg(int) flags;
1484 };
1485 check_syscall_args(sys___msync13)
1486 
1487 struct compat_30_sys___stat13_args {
1488 	syscallarg(const char *) path;
1489 	syscallarg(struct stat13 *) ub;
1490 };
1491 check_syscall_args(compat_30_sys___stat13)
1492 
1493 struct compat_30_sys___fstat13_args {
1494 	syscallarg(int) fd;
1495 	syscallarg(struct stat13 *) sb;
1496 };
1497 check_syscall_args(compat_30_sys___fstat13)
1498 
1499 struct compat_30_sys___lstat13_args {
1500 	syscallarg(const char *) path;
1501 	syscallarg(struct stat13 *) ub;
1502 };
1503 check_syscall_args(compat_30_sys___lstat13)
1504 
1505 struct sys___sigaltstack14_args {
1506 	syscallarg(const struct sigaltstack *) nss;
1507 	syscallarg(struct sigaltstack *) oss;
1508 };
1509 check_syscall_args(sys___sigaltstack14)
1510 
1511 struct sys___posix_chown_args {
1512 	syscallarg(const char *) path;
1513 	syscallarg(uid_t) uid;
1514 	syscallarg(gid_t) gid;
1515 };
1516 check_syscall_args(sys___posix_chown)
1517 
1518 struct sys___posix_fchown_args {
1519 	syscallarg(int) fd;
1520 	syscallarg(uid_t) uid;
1521 	syscallarg(gid_t) gid;
1522 };
1523 check_syscall_args(sys___posix_fchown)
1524 
1525 struct sys___posix_lchown_args {
1526 	syscallarg(const char *) path;
1527 	syscallarg(uid_t) uid;
1528 	syscallarg(gid_t) gid;
1529 };
1530 check_syscall_args(sys___posix_lchown)
1531 
1532 struct sys_getsid_args {
1533 	syscallarg(pid_t) pid;
1534 };
1535 check_syscall_args(sys_getsid)
1536 
1537 struct sys___clone_args {
1538 	syscallarg(int) flags;
1539 	syscallarg(void *) stack;
1540 };
1541 check_syscall_args(sys___clone)
1542 
1543 struct sys_fktrace_args {
1544 	syscallarg(int) fd;
1545 	syscallarg(int) ops;
1546 	syscallarg(int) facs;
1547 	syscallarg(int) pid;
1548 };
1549 check_syscall_args(sys_fktrace)
1550 
1551 struct sys_preadv_args {
1552 	syscallarg(int) fd;
1553 	syscallarg(const struct iovec *) iovp;
1554 	syscallarg(int) iovcnt;
1555 	syscallarg(int) pad;
1556 	syscallarg(off_t) offset;
1557 };
1558 check_syscall_args(sys_preadv)
1559 
1560 struct sys_pwritev_args {
1561 	syscallarg(int) fd;
1562 	syscallarg(const struct iovec *) iovp;
1563 	syscallarg(int) iovcnt;
1564 	syscallarg(int) pad;
1565 	syscallarg(off_t) offset;
1566 };
1567 check_syscall_args(sys_pwritev)
1568 
1569 struct compat_16_sys___sigaction14_args {
1570 	syscallarg(int) signum;
1571 	syscallarg(const struct sigaction *) nsa;
1572 	syscallarg(struct sigaction *) osa;
1573 };
1574 check_syscall_args(compat_16_sys___sigaction14)
1575 
1576 struct sys___sigpending14_args {
1577 	syscallarg(sigset_t *) set;
1578 };
1579 check_syscall_args(sys___sigpending14)
1580 
1581 struct sys___sigprocmask14_args {
1582 	syscallarg(int) how;
1583 	syscallarg(const sigset_t *) set;
1584 	syscallarg(sigset_t *) oset;
1585 };
1586 check_syscall_args(sys___sigprocmask14)
1587 
1588 struct sys___sigsuspend14_args {
1589 	syscallarg(const sigset_t *) set;
1590 };
1591 check_syscall_args(sys___sigsuspend14)
1592 
1593 struct compat_16_sys___sigreturn14_args {
1594 	syscallarg(struct sigcontext *) sigcntxp;
1595 };
1596 check_syscall_args(compat_16_sys___sigreturn14)
1597 
1598 struct sys___getcwd_args {
1599 	syscallarg(char *) bufp;
1600 	syscallarg(size_t) length;
1601 };
1602 check_syscall_args(sys___getcwd)
1603 
1604 struct sys_fchroot_args {
1605 	syscallarg(int) fd;
1606 };
1607 check_syscall_args(sys_fchroot)
1608 
1609 struct compat_30_sys_fhopen_args {
1610 	syscallarg(const struct compat_30_fhandle *) fhp;
1611 	syscallarg(int) flags;
1612 };
1613 check_syscall_args(compat_30_sys_fhopen)
1614 
1615 struct compat_30_sys_fhstat_args {
1616 	syscallarg(const struct compat_30_fhandle *) fhp;
1617 	syscallarg(struct stat13 *) sb;
1618 };
1619 check_syscall_args(compat_30_sys_fhstat)
1620 
1621 struct compat_20_sys_fhstatfs_args {
1622 	syscallarg(const struct compat_30_fhandle *) fhp;
1623 	syscallarg(struct statfs12 *) buf;
1624 };
1625 check_syscall_args(compat_20_sys_fhstatfs)
1626 #if defined(SYSVSEM) || !defined(_KERNEL)
1627 
1628 struct sys_____semctl13_args {
1629 	syscallarg(int) semid;
1630 	syscallarg(int) semnum;
1631 	syscallarg(int) cmd;
1632 	syscallarg(union __semun *) arg;
1633 };
1634 check_syscall_args(sys_____semctl13)
1635 #else
1636 #endif
1637 #if defined(SYSVMSG) || !defined(_KERNEL)
1638 
1639 struct sys___msgctl13_args {
1640 	syscallarg(int) msqid;
1641 	syscallarg(int) cmd;
1642 	syscallarg(struct msqid_ds *) buf;
1643 };
1644 check_syscall_args(sys___msgctl13)
1645 #else
1646 #endif
1647 #if defined(SYSVSHM) || !defined(_KERNEL)
1648 
1649 struct sys___shmctl13_args {
1650 	syscallarg(int) shmid;
1651 	syscallarg(int) cmd;
1652 	syscallarg(struct shmid_ds *) buf;
1653 };
1654 check_syscall_args(sys___shmctl13)
1655 #else
1656 #endif
1657 
1658 struct sys_lchflags_args {
1659 	syscallarg(const char *) path;
1660 	syscallarg(u_long) flags;
1661 };
1662 check_syscall_args(sys_lchflags)
1663 
1664 struct sys_utrace_args {
1665 	syscallarg(const char *) label;
1666 	syscallarg(void *) addr;
1667 	syscallarg(size_t) len;
1668 };
1669 check_syscall_args(sys_utrace)
1670 
1671 struct sys_getcontext_args {
1672 	syscallarg(struct __ucontext *) ucp;
1673 };
1674 check_syscall_args(sys_getcontext)
1675 
1676 struct sys_setcontext_args {
1677 	syscallarg(const struct __ucontext *) ucp;
1678 };
1679 check_syscall_args(sys_setcontext)
1680 
1681 struct sys__lwp_create_args {
1682 	syscallarg(const struct __ucontext *) ucp;
1683 	syscallarg(u_long) flags;
1684 	syscallarg(lwpid_t *) new_lwp;
1685 };
1686 check_syscall_args(sys__lwp_create)
1687 
1688 struct sys__lwp_wait_args {
1689 	syscallarg(lwpid_t) wait_for;
1690 	syscallarg(lwpid_t *) departed;
1691 };
1692 check_syscall_args(sys__lwp_wait)
1693 
1694 struct sys__lwp_suspend_args {
1695 	syscallarg(lwpid_t) target;
1696 };
1697 check_syscall_args(sys__lwp_suspend)
1698 
1699 struct sys__lwp_continue_args {
1700 	syscallarg(lwpid_t) target;
1701 };
1702 check_syscall_args(sys__lwp_continue)
1703 
1704 struct sys__lwp_wakeup_args {
1705 	syscallarg(lwpid_t) target;
1706 };
1707 check_syscall_args(sys__lwp_wakeup)
1708 
1709 struct sys__lwp_setprivate_args {
1710 	syscallarg(void *) ptr;
1711 };
1712 check_syscall_args(sys__lwp_setprivate)
1713 
1714 struct sys__lwp_kill_args {
1715 	syscallarg(lwpid_t) target;
1716 	syscallarg(int) signo;
1717 };
1718 check_syscall_args(sys__lwp_kill)
1719 
1720 struct sys__lwp_detach_args {
1721 	syscallarg(lwpid_t) target;
1722 };
1723 check_syscall_args(sys__lwp_detach)
1724 
1725 struct sys__lwp_park_args {
1726 	syscallarg(const struct timespec *) ts;
1727 	syscallarg(lwpid_t) unpark;
1728 	syscallarg(const void *) hint;
1729 	syscallarg(const void *) unparkhint;
1730 };
1731 check_syscall_args(sys__lwp_park)
1732 
1733 struct sys__lwp_unpark_args {
1734 	syscallarg(lwpid_t) target;
1735 	syscallarg(const void *) hint;
1736 };
1737 check_syscall_args(sys__lwp_unpark)
1738 
1739 struct sys__lwp_unpark_all_args {
1740 	syscallarg(const lwpid_t *) targets;
1741 	syscallarg(size_t) ntargets;
1742 	syscallarg(const void *) hint;
1743 };
1744 check_syscall_args(sys__lwp_unpark_all)
1745 
1746 struct sys__lwp_setname_args {
1747 	syscallarg(lwpid_t) target;
1748 	syscallarg(const char *) name;
1749 };
1750 check_syscall_args(sys__lwp_setname)
1751 
1752 struct sys__lwp_getname_args {
1753 	syscallarg(lwpid_t) target;
1754 	syscallarg(char *) name;
1755 	syscallarg(size_t) len;
1756 };
1757 check_syscall_args(sys__lwp_getname)
1758 
1759 struct sys__lwp_ctl_args {
1760 	syscallarg(int) features;
1761 	syscallarg(struct lwpctl **) address;
1762 };
1763 check_syscall_args(sys__lwp_ctl)
1764 
1765 struct sys___sigaction_sigtramp_args {
1766 	syscallarg(int) signum;
1767 	syscallarg(const struct sigaction *) nsa;
1768 	syscallarg(struct sigaction *) osa;
1769 	syscallarg(const void *) tramp;
1770 	syscallarg(int) vers;
1771 };
1772 check_syscall_args(sys___sigaction_sigtramp)
1773 
1774 struct sys_pmc_get_info_args {
1775 	syscallarg(int) ctr;
1776 	syscallarg(int) op;
1777 	syscallarg(void *) args;
1778 };
1779 check_syscall_args(sys_pmc_get_info)
1780 
1781 struct sys_pmc_control_args {
1782 	syscallarg(int) ctr;
1783 	syscallarg(int) op;
1784 	syscallarg(void *) args;
1785 };
1786 check_syscall_args(sys_pmc_control)
1787 
1788 struct sys_rasctl_args {
1789 	syscallarg(void *) addr;
1790 	syscallarg(size_t) len;
1791 	syscallarg(int) op;
1792 };
1793 check_syscall_args(sys_rasctl)
1794 
1795 struct sys_kevent_args {
1796 	syscallarg(int) fd;
1797 	syscallarg(const struct kevent *) changelist;
1798 	syscallarg(size_t) nchanges;
1799 	syscallarg(struct kevent *) eventlist;
1800 	syscallarg(size_t) nevents;
1801 	syscallarg(const struct timespec *) timeout;
1802 };
1803 check_syscall_args(sys_kevent)
1804 
1805 struct sys__sched_setparam_args {
1806 	syscallarg(pid_t) pid;
1807 	syscallarg(lwpid_t) lid;
1808 	syscallarg(int) policy;
1809 	syscallarg(const struct sched_param *) params;
1810 };
1811 check_syscall_args(sys__sched_setparam)
1812 
1813 struct sys__sched_getparam_args {
1814 	syscallarg(pid_t) pid;
1815 	syscallarg(lwpid_t) lid;
1816 	syscallarg(int *) policy;
1817 	syscallarg(struct sched_param *) params;
1818 };
1819 check_syscall_args(sys__sched_getparam)
1820 
1821 struct sys__sched_setaffinity_args {
1822 	syscallarg(pid_t) pid;
1823 	syscallarg(lwpid_t) lid;
1824 	syscallarg(size_t) size;
1825 	syscallarg(void *) cpuset;
1826 };
1827 check_syscall_args(sys__sched_setaffinity)
1828 
1829 struct sys__sched_getaffinity_args {
1830 	syscallarg(pid_t) pid;
1831 	syscallarg(lwpid_t) lid;
1832 	syscallarg(size_t) size;
1833 	syscallarg(void *) cpuset;
1834 };
1835 check_syscall_args(sys__sched_getaffinity)
1836 
1837 struct sys_fsync_range_args {
1838 	syscallarg(int) fd;
1839 	syscallarg(int) flags;
1840 	syscallarg(off_t) start;
1841 	syscallarg(off_t) length;
1842 };
1843 check_syscall_args(sys_fsync_range)
1844 
1845 struct sys_uuidgen_args {
1846 	syscallarg(struct uuid *) store;
1847 	syscallarg(int) count;
1848 };
1849 check_syscall_args(sys_uuidgen)
1850 
1851 struct sys_getvfsstat_args {
1852 	syscallarg(struct statvfs *) buf;
1853 	syscallarg(size_t) bufsize;
1854 	syscallarg(int) flags;
1855 };
1856 check_syscall_args(sys_getvfsstat)
1857 
1858 struct sys_statvfs1_args {
1859 	syscallarg(const char *) path;
1860 	syscallarg(struct statvfs *) buf;
1861 	syscallarg(int) flags;
1862 };
1863 check_syscall_args(sys_statvfs1)
1864 
1865 struct sys_fstatvfs1_args {
1866 	syscallarg(int) fd;
1867 	syscallarg(struct statvfs *) buf;
1868 	syscallarg(int) flags;
1869 };
1870 check_syscall_args(sys_fstatvfs1)
1871 
1872 struct compat_30_sys_fhstatvfs1_args {
1873 	syscallarg(const struct compat_30_fhandle *) fhp;
1874 	syscallarg(struct statvfs *) buf;
1875 	syscallarg(int) flags;
1876 };
1877 check_syscall_args(compat_30_sys_fhstatvfs1)
1878 
1879 struct sys_extattrctl_args {
1880 	syscallarg(const char *) path;
1881 	syscallarg(int) cmd;
1882 	syscallarg(const char *) filename;
1883 	syscallarg(int) attrnamespace;
1884 	syscallarg(const char *) attrname;
1885 };
1886 check_syscall_args(sys_extattrctl)
1887 
1888 struct sys_extattr_set_file_args {
1889 	syscallarg(const char *) path;
1890 	syscallarg(int) attrnamespace;
1891 	syscallarg(const char *) attrname;
1892 	syscallarg(const void *) data;
1893 	syscallarg(size_t) nbytes;
1894 };
1895 check_syscall_args(sys_extattr_set_file)
1896 
1897 struct sys_extattr_get_file_args {
1898 	syscallarg(const char *) path;
1899 	syscallarg(int) attrnamespace;
1900 	syscallarg(const char *) attrname;
1901 	syscallarg(void *) data;
1902 	syscallarg(size_t) nbytes;
1903 };
1904 check_syscall_args(sys_extattr_get_file)
1905 
1906 struct sys_extattr_delete_file_args {
1907 	syscallarg(const char *) path;
1908 	syscallarg(int) attrnamespace;
1909 	syscallarg(const char *) attrname;
1910 };
1911 check_syscall_args(sys_extattr_delete_file)
1912 
1913 struct sys_extattr_set_fd_args {
1914 	syscallarg(int) fd;
1915 	syscallarg(int) attrnamespace;
1916 	syscallarg(const char *) attrname;
1917 	syscallarg(const void *) data;
1918 	syscallarg(size_t) nbytes;
1919 };
1920 check_syscall_args(sys_extattr_set_fd)
1921 
1922 struct sys_extattr_get_fd_args {
1923 	syscallarg(int) fd;
1924 	syscallarg(int) attrnamespace;
1925 	syscallarg(const char *) attrname;
1926 	syscallarg(void *) data;
1927 	syscallarg(size_t) nbytes;
1928 };
1929 check_syscall_args(sys_extattr_get_fd)
1930 
1931 struct sys_extattr_delete_fd_args {
1932 	syscallarg(int) fd;
1933 	syscallarg(int) attrnamespace;
1934 	syscallarg(const char *) attrname;
1935 };
1936 check_syscall_args(sys_extattr_delete_fd)
1937 
1938 struct sys_extattr_set_link_args {
1939 	syscallarg(const char *) path;
1940 	syscallarg(int) attrnamespace;
1941 	syscallarg(const char *) attrname;
1942 	syscallarg(const void *) data;
1943 	syscallarg(size_t) nbytes;
1944 };
1945 check_syscall_args(sys_extattr_set_link)
1946 
1947 struct sys_extattr_get_link_args {
1948 	syscallarg(const char *) path;
1949 	syscallarg(int) attrnamespace;
1950 	syscallarg(const char *) attrname;
1951 	syscallarg(void *) data;
1952 	syscallarg(size_t) nbytes;
1953 };
1954 check_syscall_args(sys_extattr_get_link)
1955 
1956 struct sys_extattr_delete_link_args {
1957 	syscallarg(const char *) path;
1958 	syscallarg(int) attrnamespace;
1959 	syscallarg(const char *) attrname;
1960 };
1961 check_syscall_args(sys_extattr_delete_link)
1962 
1963 struct sys_extattr_list_fd_args {
1964 	syscallarg(int) fd;
1965 	syscallarg(int) attrnamespace;
1966 	syscallarg(void *) data;
1967 	syscallarg(size_t) nbytes;
1968 };
1969 check_syscall_args(sys_extattr_list_fd)
1970 
1971 struct sys_extattr_list_file_args {
1972 	syscallarg(const char *) path;
1973 	syscallarg(int) attrnamespace;
1974 	syscallarg(void *) data;
1975 	syscallarg(size_t) nbytes;
1976 };
1977 check_syscall_args(sys_extattr_list_file)
1978 
1979 struct sys_extattr_list_link_args {
1980 	syscallarg(const char *) path;
1981 	syscallarg(int) attrnamespace;
1982 	syscallarg(void *) data;
1983 	syscallarg(size_t) nbytes;
1984 };
1985 check_syscall_args(sys_extattr_list_link)
1986 
1987 struct sys_pselect_args {
1988 	syscallarg(int) nd;
1989 	syscallarg(fd_set *) in;
1990 	syscallarg(fd_set *) ou;
1991 	syscallarg(fd_set *) ex;
1992 	syscallarg(const struct timespec *) ts;
1993 	syscallarg(const sigset_t *) mask;
1994 };
1995 check_syscall_args(sys_pselect)
1996 
1997 struct sys_pollts_args {
1998 	syscallarg(struct pollfd *) fds;
1999 	syscallarg(u_int) nfds;
2000 	syscallarg(const struct timespec *) ts;
2001 	syscallarg(const sigset_t *) mask;
2002 };
2003 check_syscall_args(sys_pollts)
2004 
2005 struct sys_setxattr_args {
2006 	syscallarg(const char *) path;
2007 	syscallarg(const char *) name;
2008 	syscallarg(void *) value;
2009 	syscallarg(size_t) size;
2010 	syscallarg(int) flags;
2011 };
2012 check_syscall_args(sys_setxattr)
2013 
2014 struct sys_lsetxattr_args {
2015 	syscallarg(const char *) path;
2016 	syscallarg(const char *) name;
2017 	syscallarg(void *) value;
2018 	syscallarg(size_t) size;
2019 	syscallarg(int) flags;
2020 };
2021 check_syscall_args(sys_lsetxattr)
2022 
2023 struct sys_fsetxattr_args {
2024 	syscallarg(int) fd;
2025 	syscallarg(const char *) name;
2026 	syscallarg(void *) value;
2027 	syscallarg(size_t) size;
2028 	syscallarg(int) flags;
2029 };
2030 check_syscall_args(sys_fsetxattr)
2031 
2032 struct sys_getxattr_args {
2033 	syscallarg(const char *) path;
2034 	syscallarg(const char *) name;
2035 	syscallarg(void *) value;
2036 	syscallarg(size_t) size;
2037 };
2038 check_syscall_args(sys_getxattr)
2039 
2040 struct sys_lgetxattr_args {
2041 	syscallarg(const char *) path;
2042 	syscallarg(const char *) name;
2043 	syscallarg(void *) value;
2044 	syscallarg(size_t) size;
2045 };
2046 check_syscall_args(sys_lgetxattr)
2047 
2048 struct sys_fgetxattr_args {
2049 	syscallarg(int) fd;
2050 	syscallarg(const char *) name;
2051 	syscallarg(void *) value;
2052 	syscallarg(size_t) size;
2053 };
2054 check_syscall_args(sys_fgetxattr)
2055 
2056 struct sys_listxattr_args {
2057 	syscallarg(const char *) path;
2058 	syscallarg(char *) list;
2059 	syscallarg(size_t) size;
2060 };
2061 check_syscall_args(sys_listxattr)
2062 
2063 struct sys_llistxattr_args {
2064 	syscallarg(const char *) path;
2065 	syscallarg(char *) list;
2066 	syscallarg(size_t) size;
2067 };
2068 check_syscall_args(sys_llistxattr)
2069 
2070 struct sys_flistxattr_args {
2071 	syscallarg(int) fd;
2072 	syscallarg(char *) list;
2073 	syscallarg(size_t) size;
2074 };
2075 check_syscall_args(sys_flistxattr)
2076 
2077 struct sys_removexattr_args {
2078 	syscallarg(const char *) path;
2079 	syscallarg(const char *) name;
2080 };
2081 check_syscall_args(sys_removexattr)
2082 
2083 struct sys_lremovexattr_args {
2084 	syscallarg(const char *) path;
2085 	syscallarg(const char *) name;
2086 };
2087 check_syscall_args(sys_lremovexattr)
2088 
2089 struct sys_fremovexattr_args {
2090 	syscallarg(int) fd;
2091 	syscallarg(const char *) name;
2092 };
2093 check_syscall_args(sys_fremovexattr)
2094 
2095 struct sys___stat30_args {
2096 	syscallarg(const char *) path;
2097 	syscallarg(struct stat *) ub;
2098 };
2099 check_syscall_args(sys___stat30)
2100 
2101 struct sys___fstat30_args {
2102 	syscallarg(int) fd;
2103 	syscallarg(struct stat *) sb;
2104 };
2105 check_syscall_args(sys___fstat30)
2106 
2107 struct sys___lstat30_args {
2108 	syscallarg(const char *) path;
2109 	syscallarg(struct stat *) ub;
2110 };
2111 check_syscall_args(sys___lstat30)
2112 
2113 struct sys___getdents30_args {
2114 	syscallarg(int) fd;
2115 	syscallarg(char *) buf;
2116 	syscallarg(size_t) count;
2117 };
2118 check_syscall_args(sys___getdents30)
2119 
2120 struct compat_30_sys___fhstat30_args {
2121 	syscallarg(const struct compat_30_fhandle *) fhp;
2122 	syscallarg(struct stat *) sb;
2123 };
2124 check_syscall_args(compat_30_sys___fhstat30)
2125 
2126 struct sys___ntp_gettime30_args {
2127 	syscallarg(struct ntptimeval *) ntvp;
2128 };
2129 check_syscall_args(sys___ntp_gettime30)
2130 
2131 struct sys___socket30_args {
2132 	syscallarg(int) domain;
2133 	syscallarg(int) type;
2134 	syscallarg(int) protocol;
2135 };
2136 check_syscall_args(sys___socket30)
2137 
2138 struct sys___getfh30_args {
2139 	syscallarg(const char *) fname;
2140 	syscallarg(void *) fhp;
2141 	syscallarg(size_t *) fh_size;
2142 };
2143 check_syscall_args(sys___getfh30)
2144 
2145 struct sys___fhopen40_args {
2146 	syscallarg(const void *) fhp;
2147 	syscallarg(size_t) fh_size;
2148 	syscallarg(int) flags;
2149 };
2150 check_syscall_args(sys___fhopen40)
2151 
2152 struct sys___fhstatvfs140_args {
2153 	syscallarg(const void *) fhp;
2154 	syscallarg(size_t) fh_size;
2155 	syscallarg(struct statvfs *) buf;
2156 	syscallarg(int) flags;
2157 };
2158 check_syscall_args(sys___fhstatvfs140)
2159 
2160 struct sys___fhstat40_args {
2161 	syscallarg(const void *) fhp;
2162 	syscallarg(size_t) fh_size;
2163 	syscallarg(struct stat *) sb;
2164 };
2165 check_syscall_args(sys___fhstat40)
2166 
2167 struct sys_aio_cancel_args {
2168 	syscallarg(int) fildes;
2169 	syscallarg(struct aiocb *) aiocbp;
2170 };
2171 check_syscall_args(sys_aio_cancel)
2172 
2173 struct sys_aio_error_args {
2174 	syscallarg(const struct aiocb *) aiocbp;
2175 };
2176 check_syscall_args(sys_aio_error)
2177 
2178 struct sys_aio_fsync_args {
2179 	syscallarg(int) op;
2180 	syscallarg(struct aiocb *) aiocbp;
2181 };
2182 check_syscall_args(sys_aio_fsync)
2183 
2184 struct sys_aio_read_args {
2185 	syscallarg(struct aiocb *) aiocbp;
2186 };
2187 check_syscall_args(sys_aio_read)
2188 
2189 struct sys_aio_return_args {
2190 	syscallarg(struct aiocb *) aiocbp;
2191 };
2192 check_syscall_args(sys_aio_return)
2193 
2194 struct sys_aio_suspend_args {
2195 	syscallarg(const struct aiocb *const *) list;
2196 	syscallarg(int) nent;
2197 	syscallarg(const struct timespec *) timeout;
2198 };
2199 check_syscall_args(sys_aio_suspend)
2200 
2201 struct sys_aio_write_args {
2202 	syscallarg(struct aiocb *) aiocbp;
2203 };
2204 check_syscall_args(sys_aio_write)
2205 
2206 struct sys_lio_listio_args {
2207 	syscallarg(int) mode;
2208 	syscallarg(struct aiocb *const *) list;
2209 	syscallarg(int) nent;
2210 	syscallarg(struct sigevent *) sig;
2211 };
2212 check_syscall_args(sys_lio_listio)
2213 
2214 struct sys___mount50_args {
2215 	syscallarg(const char *) type;
2216 	syscallarg(const char *) path;
2217 	syscallarg(int) flags;
2218 	syscallarg(void *) data;
2219 	syscallarg(size_t) data_len;
2220 };
2221 check_syscall_args(sys___mount50)
2222 
2223 struct sys_mremap_args {
2224 	syscallarg(void *) old_address;
2225 	syscallarg(size_t) old_size;
2226 	syscallarg(void *) new_address;
2227 	syscallarg(size_t) new_size;
2228 	syscallarg(int) flags;
2229 };
2230 check_syscall_args(sys_mremap)
2231 
2232 struct sys_pset_create_args {
2233 	syscallarg(psetid_t *) psid;
2234 };
2235 check_syscall_args(sys_pset_create)
2236 
2237 struct sys_pset_destroy_args {
2238 	syscallarg(psetid_t) psid;
2239 };
2240 check_syscall_args(sys_pset_destroy)
2241 
2242 struct sys_pset_assign_args {
2243 	syscallarg(psetid_t) psid;
2244 	syscallarg(cpuid_t) cpuid;
2245 	syscallarg(psetid_t *) opsid;
2246 };
2247 check_syscall_args(sys_pset_assign)
2248 
2249 struct sys__pset_bind_args {
2250 	syscallarg(idtype_t) idtype;
2251 	syscallarg(id_t) first_id;
2252 	syscallarg(id_t) second_id;
2253 	syscallarg(psetid_t) psid;
2254 	syscallarg(psetid_t *) opsid;
2255 };
2256 check_syscall_args(sys__pset_bind)
2257 
2258 struct sys___posix_fadvise50_args {
2259 	syscallarg(int) fd;
2260 	syscallarg(int) pad;
2261 	syscallarg(off_t) offset;
2262 	syscallarg(off_t) len;
2263 	syscallarg(int) advice;
2264 };
2265 check_syscall_args(sys___posix_fadvise50)
2266 
2267 /*
2268  * System call prototypes.
2269  */
2270 
2271 int	sys_syscall(struct lwp *, const struct sys_syscall_args *, register_t *);
2272 
2273 int	sys_exit(struct lwp *, const struct sys_exit_args *, register_t *);
2274 
2275 int	sys_fork(struct lwp *, const void *, register_t *);
2276 
2277 int	sys_read(struct lwp *, const struct sys_read_args *, register_t *);
2278 
2279 int	sys_write(struct lwp *, const struct sys_write_args *, register_t *);
2280 
2281 int	sys_open(struct lwp *, const struct sys_open_args *, register_t *);
2282 
2283 int	sys_close(struct lwp *, const struct sys_close_args *, register_t *);
2284 
2285 int	sys_wait4(struct lwp *, const struct sys_wait4_args *, register_t *);
2286 
2287 int	compat_43_sys_creat(struct lwp *, const struct compat_43_sys_creat_args *, register_t *);
2288 
2289 int	sys_link(struct lwp *, const struct sys_link_args *, register_t *);
2290 
2291 int	sys_unlink(struct lwp *, const struct sys_unlink_args *, register_t *);
2292 
2293 int	sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *);
2294 
2295 int	sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *);
2296 
2297 int	sys_mknod(struct lwp *, const struct sys_mknod_args *, register_t *);
2298 
2299 int	sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *);
2300 
2301 int	sys_chown(struct lwp *, const struct sys_chown_args *, register_t *);
2302 
2303 int	sys_obreak(struct lwp *, const struct sys_obreak_args *, register_t *);
2304 
2305 int	compat_20_sys_getfsstat(struct lwp *, const struct compat_20_sys_getfsstat_args *, register_t *);
2306 
2307 int	compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *);
2308 
2309 #ifdef COMPAT_43
2310 int	sys_getpid_with_ppid(struct lwp *, const void *, register_t *);
2311 
2312 #else
2313 int	sys_getpid(struct lwp *, const void *, register_t *);
2314 
2315 #endif
2316 int	compat_40_sys_mount(struct lwp *, const struct compat_40_sys_mount_args *, register_t *);
2317 
2318 int	sys_unmount(struct lwp *, const struct sys_unmount_args *, register_t *);
2319 
2320 int	sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *);
2321 
2322 #ifdef COMPAT_43
2323 int	sys_getuid_with_euid(struct lwp *, const void *, register_t *);
2324 
2325 #else
2326 int	sys_getuid(struct lwp *, const void *, register_t *);
2327 
2328 #endif
2329 int	sys_geteuid(struct lwp *, const void *, register_t *);
2330 
2331 int	sys_ptrace(struct lwp *, const struct sys_ptrace_args *, register_t *);
2332 
2333 int	sys_recvmsg(struct lwp *, const struct sys_recvmsg_args *, register_t *);
2334 
2335 int	sys_sendmsg(struct lwp *, const struct sys_sendmsg_args *, register_t *);
2336 
2337 int	sys_recvfrom(struct lwp *, const struct sys_recvfrom_args *, register_t *);
2338 
2339 int	sys_accept(struct lwp *, const struct sys_accept_args *, register_t *);
2340 
2341 int	sys_getpeername(struct lwp *, const struct sys_getpeername_args *, register_t *);
2342 
2343 int	sys_getsockname(struct lwp *, const struct sys_getsockname_args *, register_t *);
2344 
2345 int	sys_access(struct lwp *, const struct sys_access_args *, register_t *);
2346 
2347 int	sys_chflags(struct lwp *, const struct sys_chflags_args *, register_t *);
2348 
2349 int	sys_fchflags(struct lwp *, const struct sys_fchflags_args *, register_t *);
2350 
2351 int	sys_sync(struct lwp *, const void *, register_t *);
2352 
2353 int	sys_kill(struct lwp *, const struct sys_kill_args *, register_t *);
2354 
2355 int	compat_43_sys_stat(struct lwp *, const struct compat_43_sys_stat_args *, register_t *);
2356 
2357 int	sys_getppid(struct lwp *, const void *, register_t *);
2358 
2359 int	compat_43_sys_lstat(struct lwp *, const struct compat_43_sys_lstat_args *, register_t *);
2360 
2361 int	sys_dup(struct lwp *, const struct sys_dup_args *, register_t *);
2362 
2363 int	sys_pipe(struct lwp *, const void *, register_t *);
2364 
2365 int	sys_getegid(struct lwp *, const void *, register_t *);
2366 
2367 int	sys_profil(struct lwp *, const struct sys_profil_args *, register_t *);
2368 
2369 int	sys_ktrace(struct lwp *, const struct sys_ktrace_args *, register_t *);
2370 
2371 int	compat_13_sys_sigaction(struct lwp *, const struct compat_13_sys_sigaction_args *, register_t *);
2372 
2373 #ifdef COMPAT_43
2374 int	sys_getgid_with_egid(struct lwp *, const void *, register_t *);
2375 
2376 #else
2377 int	sys_getgid(struct lwp *, const void *, register_t *);
2378 
2379 #endif
2380 int	compat_13_sys_sigprocmask(struct lwp *, const struct compat_13_sys_sigprocmask_args *, register_t *);
2381 
2382 int	sys___getlogin(struct lwp *, const struct sys___getlogin_args *, register_t *);
2383 
2384 int	sys___setlogin(struct lwp *, const struct sys___setlogin_args *, register_t *);
2385 
2386 int	sys_acct(struct lwp *, const struct sys_acct_args *, register_t *);
2387 
2388 int	compat_13_sys_sigpending(struct lwp *, const void *, register_t *);
2389 
2390 int	compat_13_sys_sigaltstack(struct lwp *, const struct compat_13_sys_sigaltstack_args *, register_t *);
2391 
2392 int	sys_ioctl(struct lwp *, const struct sys_ioctl_args *, register_t *);
2393 
2394 int	compat_12_sys_reboot(struct lwp *, const struct compat_12_sys_reboot_args *, register_t *);
2395 
2396 int	sys_revoke(struct lwp *, const struct sys_revoke_args *, register_t *);
2397 
2398 int	sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *);
2399 
2400 int	sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *);
2401 
2402 int	sys_execve(struct lwp *, const struct sys_execve_args *, register_t *);
2403 
2404 int	sys_umask(struct lwp *, const struct sys_umask_args *, register_t *);
2405 
2406 int	sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *);
2407 
2408 int	compat_43_sys_fstat(struct lwp *, const struct compat_43_sys_fstat_args *, register_t *);
2409 
2410 int	compat_43_sys_getkerninfo(struct lwp *, const struct compat_43_sys_getkerninfo_args *, register_t *);
2411 
2412 int	compat_43_sys_getpagesize(struct lwp *, const void *, register_t *);
2413 
2414 int	compat_12_sys_msync(struct lwp *, const struct compat_12_sys_msync_args *, register_t *);
2415 
2416 int	sys_vfork(struct lwp *, const void *, register_t *);
2417 
2418 int	sys_sbrk(struct lwp *, const struct sys_sbrk_args *, register_t *);
2419 
2420 int	sys_sstk(struct lwp *, const struct sys_sstk_args *, register_t *);
2421 
2422 int	compat_43_sys_mmap(struct lwp *, const struct compat_43_sys_mmap_args *, register_t *);
2423 
2424 int	sys_ovadvise(struct lwp *, const struct sys_ovadvise_args *, register_t *);
2425 
2426 int	sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
2427 
2428 int	sys_mprotect(struct lwp *, const struct sys_mprotect_args *, register_t *);
2429 
2430 int	sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *);
2431 
2432 int	sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *);
2433 
2434 int	sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
2435 
2436 int	sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
2437 
2438 int	sys_getpgrp(struct lwp *, const void *, register_t *);
2439 
2440 int	sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *);
2441 
2442 int	sys_setitimer(struct lwp *, const struct sys_setitimer_args *, register_t *);
2443 
2444 int	compat_43_sys_wait(struct lwp *, const void *, register_t *);
2445 
2446 int	compat_12_sys_swapon(struct lwp *, const struct compat_12_sys_swapon_args *, register_t *);
2447 
2448 int	sys_getitimer(struct lwp *, const struct sys_getitimer_args *, register_t *);
2449 
2450 int	compat_43_sys_gethostname(struct lwp *, const struct compat_43_sys_gethostname_args *, register_t *);
2451 
2452 int	compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *);
2453 
2454 int	compat_43_sys_getdtablesize(struct lwp *, const void *, register_t *);
2455 
2456 int	sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *);
2457 
2458 int	sys_fcntl(struct lwp *, const struct sys_fcntl_args *, register_t *);
2459 
2460 int	sys_select(struct lwp *, const struct sys_select_args *, register_t *);
2461 
2462 int	sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *);
2463 
2464 int	sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *);
2465 
2466 int	compat_30_sys_socket(struct lwp *, const struct compat_30_sys_socket_args *, register_t *);
2467 
2468 int	sys_connect(struct lwp *, const struct sys_connect_args *, register_t *);
2469 
2470 int	compat_43_sys_accept(struct lwp *, const struct compat_43_sys_accept_args *, register_t *);
2471 
2472 int	sys_getpriority(struct lwp *, const struct sys_getpriority_args *, register_t *);
2473 
2474 int	compat_43_sys_send(struct lwp *, const struct compat_43_sys_send_args *, register_t *);
2475 
2476 int	compat_43_sys_recv(struct lwp *, const struct compat_43_sys_recv_args *, register_t *);
2477 
2478 int	compat_13_sys_sigreturn(struct lwp *, const struct compat_13_sys_sigreturn_args *, register_t *);
2479 
2480 int	sys_bind(struct lwp *, const struct sys_bind_args *, register_t *);
2481 
2482 int	sys_setsockopt(struct lwp *, const struct sys_setsockopt_args *, register_t *);
2483 
2484 int	sys_listen(struct lwp *, const struct sys_listen_args *, register_t *);
2485 
2486 int	compat_43_sys_sigvec(struct lwp *, const struct compat_43_sys_sigvec_args *, register_t *);
2487 
2488 int	compat_43_sys_sigblock(struct lwp *, const struct compat_43_sys_sigblock_args *, register_t *);
2489 
2490 int	compat_43_sys_sigsetmask(struct lwp *, const struct compat_43_sys_sigsetmask_args *, register_t *);
2491 
2492 int	compat_13_sys_sigsuspend(struct lwp *, const struct compat_13_sys_sigsuspend_args *, register_t *);
2493 
2494 int	compat_43_sys_sigstack(struct lwp *, const struct compat_43_sys_sigstack_args *, register_t *);
2495 
2496 int	compat_43_sys_recvmsg(struct lwp *, const struct compat_43_sys_recvmsg_args *, register_t *);
2497 
2498 int	compat_43_sys_sendmsg(struct lwp *, const struct compat_43_sys_sendmsg_args *, register_t *);
2499 
2500 int	sys_gettimeofday(struct lwp *, const struct sys_gettimeofday_args *, register_t *);
2501 
2502 int	sys_getrusage(struct lwp *, const struct sys_getrusage_args *, register_t *);
2503 
2504 int	sys_getsockopt(struct lwp *, const struct sys_getsockopt_args *, register_t *);
2505 
2506 int	sys_readv(struct lwp *, const struct sys_readv_args *, register_t *);
2507 
2508 int	sys_writev(struct lwp *, const struct sys_writev_args *, register_t *);
2509 
2510 int	sys_settimeofday(struct lwp *, const struct sys_settimeofday_args *, register_t *);
2511 
2512 int	sys_fchown(struct lwp *, const struct sys_fchown_args *, register_t *);
2513 
2514 int	sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *);
2515 
2516 int	compat_43_sys_recvfrom(struct lwp *, const struct compat_43_sys_recvfrom_args *, register_t *);
2517 
2518 int	sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
2519 
2520 int	sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
2521 
2522 int	sys_rename(struct lwp *, const struct sys_rename_args *, register_t *);
2523 
2524 int	compat_43_sys_truncate(struct lwp *, const struct compat_43_sys_truncate_args *, register_t *);
2525 
2526 int	compat_43_sys_ftruncate(struct lwp *, const struct compat_43_sys_ftruncate_args *, register_t *);
2527 
2528 int	sys_flock(struct lwp *, const struct sys_flock_args *, register_t *);
2529 
2530 int	sys_mkfifo(struct lwp *, const struct sys_mkfifo_args *, register_t *);
2531 
2532 int	sys_sendto(struct lwp *, const struct sys_sendto_args *, register_t *);
2533 
2534 int	sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *);
2535 
2536 int	sys_socketpair(struct lwp *, const struct sys_socketpair_args *, register_t *);
2537 
2538 int	sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *);
2539 
2540 int	sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *);
2541 
2542 int	sys_utimes(struct lwp *, const struct sys_utimes_args *, register_t *);
2543 
2544 int	sys_adjtime(struct lwp *, const struct sys_adjtime_args *, register_t *);
2545 
2546 int	compat_43_sys_getpeername(struct lwp *, const struct compat_43_sys_getpeername_args *, register_t *);
2547 
2548 int	compat_43_sys_gethostid(struct lwp *, const void *, register_t *);
2549 
2550 int	compat_43_sys_sethostid(struct lwp *, const struct compat_43_sys_sethostid_args *, register_t *);
2551 
2552 int	compat_43_sys_getrlimit(struct lwp *, const struct compat_43_sys_getrlimit_args *, register_t *);
2553 
2554 int	compat_43_sys_setrlimit(struct lwp *, const struct compat_43_sys_setrlimit_args *, register_t *);
2555 
2556 int	compat_43_sys_killpg(struct lwp *, const struct compat_43_sys_killpg_args *, register_t *);
2557 
2558 int	sys_setsid(struct lwp *, const void *, register_t *);
2559 
2560 int	sys_quotactl(struct lwp *, const struct sys_quotactl_args *, register_t *);
2561 
2562 int	compat_43_sys_quota(struct lwp *, const void *, register_t *);
2563 
2564 int	compat_43_sys_getsockname(struct lwp *, const struct compat_43_sys_getsockname_args *, register_t *);
2565 
2566 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
2567 int	sys_nfssvc(struct lwp *, const struct sys_nfssvc_args *, register_t *);
2568 
2569 #else
2570 #endif
2571 int	compat_43_sys_getdirentries(struct lwp *, const struct compat_43_sys_getdirentries_args *, register_t *);
2572 
2573 int	compat_20_sys_statfs(struct lwp *, const struct compat_20_sys_statfs_args *, register_t *);
2574 
2575 int	compat_20_sys_fstatfs(struct lwp *, const struct compat_20_sys_fstatfs_args *, register_t *);
2576 
2577 int	compat_30_sys_getfh(struct lwp *, const struct compat_30_sys_getfh_args *, register_t *);
2578 
2579 int	compat_09_sys_getdomainname(struct lwp *, const struct compat_09_sys_getdomainname_args *, register_t *);
2580 
2581 int	compat_09_sys_setdomainname(struct lwp *, const struct compat_09_sys_setdomainname_args *, register_t *);
2582 
2583 int	compat_09_sys_uname(struct lwp *, const struct compat_09_sys_uname_args *, register_t *);
2584 
2585 int	sys_sysarch(struct lwp *, const struct sys_sysarch_args *, register_t *);
2586 
2587 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
2588 int	compat_10_sys_semsys(struct lwp *, const struct compat_10_sys_semsys_args *, register_t *);
2589 
2590 #else
2591 #endif
2592 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
2593 int	compat_10_sys_msgsys(struct lwp *, const struct compat_10_sys_msgsys_args *, register_t *);
2594 
2595 #else
2596 #endif
2597 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
2598 int	compat_10_sys_shmsys(struct lwp *, const struct compat_10_sys_shmsys_args *, register_t *);
2599 
2600 #else
2601 #endif
2602 int	sys_pread(struct lwp *, const struct sys_pread_args *, register_t *);
2603 
2604 int	sys_pwrite(struct lwp *, const struct sys_pwrite_args *, register_t *);
2605 
2606 int	compat_30_sys_ntp_gettime(struct lwp *, const struct compat_30_sys_ntp_gettime_args *, register_t *);
2607 
2608 #if defined(NTP) || !defined(_KERNEL)
2609 int	sys_ntp_adjtime(struct lwp *, const struct sys_ntp_adjtime_args *, register_t *);
2610 
2611 #else
2612 #endif
2613 int	sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *);
2614 
2615 int	sys_setegid(struct lwp *, const struct sys_setegid_args *, register_t *);
2616 
2617 int	sys_seteuid(struct lwp *, const struct sys_seteuid_args *, register_t *);
2618 
2619 #if defined(LFS) || !defined(_KERNEL)
2620 int	sys_lfs_bmapv(struct lwp *, const struct sys_lfs_bmapv_args *, register_t *);
2621 
2622 int	sys_lfs_markv(struct lwp *, const struct sys_lfs_markv_args *, register_t *);
2623 
2624 int	sys_lfs_segclean(struct lwp *, const struct sys_lfs_segclean_args *, register_t *);
2625 
2626 int	sys_lfs_segwait(struct lwp *, const struct sys_lfs_segwait_args *, register_t *);
2627 
2628 #else
2629 #endif
2630 int	compat_12_sys_stat(struct lwp *, const struct compat_12_sys_stat_args *, register_t *);
2631 
2632 int	compat_12_sys_fstat(struct lwp *, const struct compat_12_sys_fstat_args *, register_t *);
2633 
2634 int	compat_12_sys_lstat(struct lwp *, const struct compat_12_sys_lstat_args *, register_t *);
2635 
2636 int	sys_pathconf(struct lwp *, const struct sys_pathconf_args *, register_t *);
2637 
2638 int	sys_fpathconf(struct lwp *, const struct sys_fpathconf_args *, register_t *);
2639 
2640 int	sys_getrlimit(struct lwp *, const struct sys_getrlimit_args *, register_t *);
2641 
2642 int	sys_setrlimit(struct lwp *, const struct sys_setrlimit_args *, register_t *);
2643 
2644 int	compat_12_sys_getdirentries(struct lwp *, const struct compat_12_sys_getdirentries_args *, register_t *);
2645 
2646 int	sys_mmap(struct lwp *, const struct sys_mmap_args *, register_t *);
2647 
2648 int	sys___syscall(struct lwp *, const struct sys___syscall_args *, register_t *);
2649 
2650 int	sys_lseek(struct lwp *, const struct sys_lseek_args *, register_t *);
2651 
2652 int	sys_truncate(struct lwp *, const struct sys_truncate_args *, register_t *);
2653 
2654 int	sys_ftruncate(struct lwp *, const struct sys_ftruncate_args *, register_t *);
2655 
2656 int	sys___sysctl(struct lwp *, const struct sys___sysctl_args *, register_t *);
2657 
2658 int	sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *);
2659 
2660 int	sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *);
2661 
2662 int	sys_undelete(struct lwp *, const struct sys_undelete_args *, register_t *);
2663 
2664 int	sys_futimes(struct lwp *, const struct sys_futimes_args *, register_t *);
2665 
2666 int	sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *);
2667 
2668 int	sys_reboot(struct lwp *, const struct sys_reboot_args *, register_t *);
2669 
2670 int	sys_poll(struct lwp *, const struct sys_poll_args *, register_t *);
2671 
2672 #if defined(LKM) || !defined(_KERNEL)
2673 int	sys_lkmnosys(struct lwp *, const void *, register_t *);
2674 
2675 #else	/* !LKM */
2676 #endif	/* !LKM */
2677 #if defined(SYSVSEM) || !defined(_KERNEL)
2678 int	compat_14_sys___semctl(struct lwp *, const struct compat_14_sys___semctl_args *, register_t *);
2679 
2680 int	sys_semget(struct lwp *, const struct sys_semget_args *, register_t *);
2681 
2682 int	sys_semop(struct lwp *, const struct sys_semop_args *, register_t *);
2683 
2684 int	sys_semconfig(struct lwp *, const struct sys_semconfig_args *, register_t *);
2685 
2686 #else
2687 #endif
2688 #if defined(SYSVMSG) || !defined(_KERNEL)
2689 int	compat_14_sys_msgctl(struct lwp *, const struct compat_14_sys_msgctl_args *, register_t *);
2690 
2691 int	sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *);
2692 
2693 int	sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *);
2694 
2695 int	sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *);
2696 
2697 #else
2698 #endif
2699 #if defined(SYSVSHM) || !defined(_KERNEL)
2700 int	sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *);
2701 
2702 int	compat_14_sys_shmctl(struct lwp *, const struct compat_14_sys_shmctl_args *, register_t *);
2703 
2704 int	sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *);
2705 
2706 int	sys_shmget(struct lwp *, const struct sys_shmget_args *, register_t *);
2707 
2708 #else
2709 #endif
2710 int	sys_clock_gettime(struct lwp *, const struct sys_clock_gettime_args *, register_t *);
2711 
2712 int	sys_clock_settime(struct lwp *, const struct sys_clock_settime_args *, register_t *);
2713 
2714 int	sys_clock_getres(struct lwp *, const struct sys_clock_getres_args *, register_t *);
2715 
2716 int	sys_timer_create(struct lwp *, const struct sys_timer_create_args *, register_t *);
2717 
2718 int	sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *);
2719 
2720 int	sys_timer_settime(struct lwp *, const struct sys_timer_settime_args *, register_t *);
2721 
2722 int	sys_timer_gettime(struct lwp *, const struct sys_timer_gettime_args *, register_t *);
2723 
2724 int	sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *);
2725 
2726 int	sys_nanosleep(struct lwp *, const struct sys_nanosleep_args *, register_t *);
2727 
2728 int	sys_fdatasync(struct lwp *, const struct sys_fdatasync_args *, register_t *);
2729 
2730 int	sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *);
2731 
2732 int	sys_munlockall(struct lwp *, const void *, register_t *);
2733 
2734 int	sys___sigtimedwait(struct lwp *, const struct sys___sigtimedwait_args *, register_t *);
2735 
2736 int	sys_modctl(struct lwp *, const struct sys_modctl_args *, register_t *);
2737 
2738 #if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
2739 int	sys__ksem_init(struct lwp *, const struct sys__ksem_init_args *, register_t *);
2740 
2741 int	sys__ksem_open(struct lwp *, const struct sys__ksem_open_args *, register_t *);
2742 
2743 int	sys__ksem_unlink(struct lwp *, const struct sys__ksem_unlink_args *, register_t *);
2744 
2745 int	sys__ksem_close(struct lwp *, const struct sys__ksem_close_args *, register_t *);
2746 
2747 int	sys__ksem_post(struct lwp *, const struct sys__ksem_post_args *, register_t *);
2748 
2749 int	sys__ksem_wait(struct lwp *, const struct sys__ksem_wait_args *, register_t *);
2750 
2751 int	sys__ksem_trywait(struct lwp *, const struct sys__ksem_trywait_args *, register_t *);
2752 
2753 int	sys__ksem_getvalue(struct lwp *, const struct sys__ksem_getvalue_args *, register_t *);
2754 
2755 int	sys__ksem_destroy(struct lwp *, const struct sys__ksem_destroy_args *, register_t *);
2756 
2757 #else
2758 #endif
2759 int	sys_mq_open(struct lwp *, const struct sys_mq_open_args *, register_t *);
2760 
2761 int	sys_mq_close(struct lwp *, const struct sys_mq_close_args *, register_t *);
2762 
2763 int	sys_mq_unlink(struct lwp *, const struct sys_mq_unlink_args *, register_t *);
2764 
2765 int	sys_mq_getattr(struct lwp *, const struct sys_mq_getattr_args *, register_t *);
2766 
2767 int	sys_mq_setattr(struct lwp *, const struct sys_mq_setattr_args *, register_t *);
2768 
2769 int	sys_mq_notify(struct lwp *, const struct sys_mq_notify_args *, register_t *);
2770 
2771 int	sys_mq_send(struct lwp *, const struct sys_mq_send_args *, register_t *);
2772 
2773 int	sys_mq_receive(struct lwp *, const struct sys_mq_receive_args *, register_t *);
2774 
2775 int	sys_mq_timedsend(struct lwp *, const struct sys_mq_timedsend_args *, register_t *);
2776 
2777 int	sys_mq_timedreceive(struct lwp *, const struct sys_mq_timedreceive_args *, register_t *);
2778 
2779 int	sys___posix_rename(struct lwp *, const struct sys___posix_rename_args *, register_t *);
2780 
2781 int	sys_swapctl(struct lwp *, const struct sys_swapctl_args *, register_t *);
2782 
2783 int	compat_30_sys_getdents(struct lwp *, const struct compat_30_sys_getdents_args *, register_t *);
2784 
2785 int	sys_minherit(struct lwp *, const struct sys_minherit_args *, register_t *);
2786 
2787 int	sys_lchmod(struct lwp *, const struct sys_lchmod_args *, register_t *);
2788 
2789 int	sys_lchown(struct lwp *, const struct sys_lchown_args *, register_t *);
2790 
2791 int	sys_lutimes(struct lwp *, const struct sys_lutimes_args *, register_t *);
2792 
2793 int	sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *);
2794 
2795 int	compat_30_sys___stat13(struct lwp *, const struct compat_30_sys___stat13_args *, register_t *);
2796 
2797 int	compat_30_sys___fstat13(struct lwp *, const struct compat_30_sys___fstat13_args *, register_t *);
2798 
2799 int	compat_30_sys___lstat13(struct lwp *, const struct compat_30_sys___lstat13_args *, register_t *);
2800 
2801 int	sys___sigaltstack14(struct lwp *, const struct sys___sigaltstack14_args *, register_t *);
2802 
2803 int	sys___vfork14(struct lwp *, const void *, register_t *);
2804 
2805 int	sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *);
2806 
2807 int	sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *);
2808 
2809 int	sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *);
2810 
2811 int	sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *);
2812 
2813 int	sys___clone(struct lwp *, const struct sys___clone_args *, register_t *);
2814 
2815 int	sys_fktrace(struct lwp *, const struct sys_fktrace_args *, register_t *);
2816 
2817 int	sys_preadv(struct lwp *, const struct sys_preadv_args *, register_t *);
2818 
2819 int	sys_pwritev(struct lwp *, const struct sys_pwritev_args *, register_t *);
2820 
2821 int	compat_16_sys___sigaction14(struct lwp *, const struct compat_16_sys___sigaction14_args *, register_t *);
2822 
2823 int	sys___sigpending14(struct lwp *, const struct sys___sigpending14_args *, register_t *);
2824 
2825 int	sys___sigprocmask14(struct lwp *, const struct sys___sigprocmask14_args *, register_t *);
2826 
2827 int	sys___sigsuspend14(struct lwp *, const struct sys___sigsuspend14_args *, register_t *);
2828 
2829 int	compat_16_sys___sigreturn14(struct lwp *, const struct compat_16_sys___sigreturn14_args *, register_t *);
2830 
2831 int	sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *);
2832 
2833 int	sys_fchroot(struct lwp *, const struct sys_fchroot_args *, register_t *);
2834 
2835 int	compat_30_sys_fhopen(struct lwp *, const struct compat_30_sys_fhopen_args *, register_t *);
2836 
2837 int	compat_30_sys_fhstat(struct lwp *, const struct compat_30_sys_fhstat_args *, register_t *);
2838 
2839 int	compat_20_sys_fhstatfs(struct lwp *, const struct compat_20_sys_fhstatfs_args *, register_t *);
2840 
2841 #if defined(SYSVSEM) || !defined(_KERNEL)
2842 int	sys_____semctl13(struct lwp *, const struct sys_____semctl13_args *, register_t *);
2843 
2844 #else
2845 #endif
2846 #if defined(SYSVMSG) || !defined(_KERNEL)
2847 int	sys___msgctl13(struct lwp *, const struct sys___msgctl13_args *, register_t *);
2848 
2849 #else
2850 #endif
2851 #if defined(SYSVSHM) || !defined(_KERNEL)
2852 int	sys___shmctl13(struct lwp *, const struct sys___shmctl13_args *, register_t *);
2853 
2854 #else
2855 #endif
2856 int	sys_lchflags(struct lwp *, const struct sys_lchflags_args *, register_t *);
2857 
2858 int	sys_issetugid(struct lwp *, const void *, register_t *);
2859 
2860 int	sys_utrace(struct lwp *, const struct sys_utrace_args *, register_t *);
2861 
2862 int	sys_getcontext(struct lwp *, const struct sys_getcontext_args *, register_t *);
2863 
2864 int	sys_setcontext(struct lwp *, const struct sys_setcontext_args *, register_t *);
2865 
2866 int	sys__lwp_create(struct lwp *, const struct sys__lwp_create_args *, register_t *);
2867 
2868 int	sys__lwp_exit(struct lwp *, const void *, register_t *);
2869 
2870 int	sys__lwp_self(struct lwp *, const void *, register_t *);
2871 
2872 int	sys__lwp_wait(struct lwp *, const struct sys__lwp_wait_args *, register_t *);
2873 
2874 int	sys__lwp_suspend(struct lwp *, const struct sys__lwp_suspend_args *, register_t *);
2875 
2876 int	sys__lwp_continue(struct lwp *, const struct sys__lwp_continue_args *, register_t *);
2877 
2878 int	sys__lwp_wakeup(struct lwp *, const struct sys__lwp_wakeup_args *, register_t *);
2879 
2880 int	sys__lwp_getprivate(struct lwp *, const void *, register_t *);
2881 
2882 int	sys__lwp_setprivate(struct lwp *, const struct sys__lwp_setprivate_args *, register_t *);
2883 
2884 int	sys__lwp_kill(struct lwp *, const struct sys__lwp_kill_args *, register_t *);
2885 
2886 int	sys__lwp_detach(struct lwp *, const struct sys__lwp_detach_args *, register_t *);
2887 
2888 int	sys__lwp_park(struct lwp *, const struct sys__lwp_park_args *, register_t *);
2889 
2890 int	sys__lwp_unpark(struct lwp *, const struct sys__lwp_unpark_args *, register_t *);
2891 
2892 int	sys__lwp_unpark_all(struct lwp *, const struct sys__lwp_unpark_all_args *, register_t *);
2893 
2894 int	sys__lwp_setname(struct lwp *, const struct sys__lwp_setname_args *, register_t *);
2895 
2896 int	sys__lwp_getname(struct lwp *, const struct sys__lwp_getname_args *, register_t *);
2897 
2898 int	sys__lwp_ctl(struct lwp *, const struct sys__lwp_ctl_args *, register_t *);
2899 
2900 int	sys_sa_register(struct lwp *, const void *, register_t *);
2901 
2902 int	sys_sa_stacks(struct lwp *, const void *, register_t *);
2903 
2904 int	sys_sa_enable(struct lwp *, const void *, register_t *);
2905 
2906 int	sys_sa_setconcurrency(struct lwp *, const void *, register_t *);
2907 
2908 int	sys_sa_yield(struct lwp *, const void *, register_t *);
2909 
2910 int	sys_sa_preempt(struct lwp *, const void *, register_t *);
2911 
2912 int	sys_sa_unblockyield(struct lwp *, const void *, register_t *);
2913 
2914 int	sys___sigaction_sigtramp(struct lwp *, const struct sys___sigaction_sigtramp_args *, register_t *);
2915 
2916 int	sys_pmc_get_info(struct lwp *, const struct sys_pmc_get_info_args *, register_t *);
2917 
2918 int	sys_pmc_control(struct lwp *, const struct sys_pmc_control_args *, register_t *);
2919 
2920 int	sys_rasctl(struct lwp *, const struct sys_rasctl_args *, register_t *);
2921 
2922 int	sys_kqueue(struct lwp *, const void *, register_t *);
2923 
2924 int	sys_kevent(struct lwp *, const struct sys_kevent_args *, register_t *);
2925 
2926 int	sys__sched_setparam(struct lwp *, const struct sys__sched_setparam_args *, register_t *);
2927 
2928 int	sys__sched_getparam(struct lwp *, const struct sys__sched_getparam_args *, register_t *);
2929 
2930 int	sys__sched_setaffinity(struct lwp *, const struct sys__sched_setaffinity_args *, register_t *);
2931 
2932 int	sys__sched_getaffinity(struct lwp *, const struct sys__sched_getaffinity_args *, register_t *);
2933 
2934 int	sys_sched_yield(struct lwp *, const void *, register_t *);
2935 
2936 int	sys_fsync_range(struct lwp *, const struct sys_fsync_range_args *, register_t *);
2937 
2938 int	sys_uuidgen(struct lwp *, const struct sys_uuidgen_args *, register_t *);
2939 
2940 int	sys_getvfsstat(struct lwp *, const struct sys_getvfsstat_args *, register_t *);
2941 
2942 int	sys_statvfs1(struct lwp *, const struct sys_statvfs1_args *, register_t *);
2943 
2944 int	sys_fstatvfs1(struct lwp *, const struct sys_fstatvfs1_args *, register_t *);
2945 
2946 int	compat_30_sys_fhstatvfs1(struct lwp *, const struct compat_30_sys_fhstatvfs1_args *, register_t *);
2947 
2948 int	sys_extattrctl(struct lwp *, const struct sys_extattrctl_args *, register_t *);
2949 
2950 int	sys_extattr_set_file(struct lwp *, const struct sys_extattr_set_file_args *, register_t *);
2951 
2952 int	sys_extattr_get_file(struct lwp *, const struct sys_extattr_get_file_args *, register_t *);
2953 
2954 int	sys_extattr_delete_file(struct lwp *, const struct sys_extattr_delete_file_args *, register_t *);
2955 
2956 int	sys_extattr_set_fd(struct lwp *, const struct sys_extattr_set_fd_args *, register_t *);
2957 
2958 int	sys_extattr_get_fd(struct lwp *, const struct sys_extattr_get_fd_args *, register_t *);
2959 
2960 int	sys_extattr_delete_fd(struct lwp *, const struct sys_extattr_delete_fd_args *, register_t *);
2961 
2962 int	sys_extattr_set_link(struct lwp *, const struct sys_extattr_set_link_args *, register_t *);
2963 
2964 int	sys_extattr_get_link(struct lwp *, const struct sys_extattr_get_link_args *, register_t *);
2965 
2966 int	sys_extattr_delete_link(struct lwp *, const struct sys_extattr_delete_link_args *, register_t *);
2967 
2968 int	sys_extattr_list_fd(struct lwp *, const struct sys_extattr_list_fd_args *, register_t *);
2969 
2970 int	sys_extattr_list_file(struct lwp *, const struct sys_extattr_list_file_args *, register_t *);
2971 
2972 int	sys_extattr_list_link(struct lwp *, const struct sys_extattr_list_link_args *, register_t *);
2973 
2974 int	sys_pselect(struct lwp *, const struct sys_pselect_args *, register_t *);
2975 
2976 int	sys_pollts(struct lwp *, const struct sys_pollts_args *, register_t *);
2977 
2978 int	sys_setxattr(struct lwp *, const struct sys_setxattr_args *, register_t *);
2979 
2980 int	sys_lsetxattr(struct lwp *, const struct sys_lsetxattr_args *, register_t *);
2981 
2982 int	sys_fsetxattr(struct lwp *, const struct sys_fsetxattr_args *, register_t *);
2983 
2984 int	sys_getxattr(struct lwp *, const struct sys_getxattr_args *, register_t *);
2985 
2986 int	sys_lgetxattr(struct lwp *, const struct sys_lgetxattr_args *, register_t *);
2987 
2988 int	sys_fgetxattr(struct lwp *, const struct sys_fgetxattr_args *, register_t *);
2989 
2990 int	sys_listxattr(struct lwp *, const struct sys_listxattr_args *, register_t *);
2991 
2992 int	sys_llistxattr(struct lwp *, const struct sys_llistxattr_args *, register_t *);
2993 
2994 int	sys_flistxattr(struct lwp *, const struct sys_flistxattr_args *, register_t *);
2995 
2996 int	sys_removexattr(struct lwp *, const struct sys_removexattr_args *, register_t *);
2997 
2998 int	sys_lremovexattr(struct lwp *, const struct sys_lremovexattr_args *, register_t *);
2999 
3000 int	sys_fremovexattr(struct lwp *, const struct sys_fremovexattr_args *, register_t *);
3001 
3002 int	sys___stat30(struct lwp *, const struct sys___stat30_args *, register_t *);
3003 
3004 int	sys___fstat30(struct lwp *, const struct sys___fstat30_args *, register_t *);
3005 
3006 int	sys___lstat30(struct lwp *, const struct sys___lstat30_args *, register_t *);
3007 
3008 int	sys___getdents30(struct lwp *, const struct sys___getdents30_args *, register_t *);
3009 
3010 int	compat_30_sys___fhstat30(struct lwp *, const struct compat_30_sys___fhstat30_args *, register_t *);
3011 
3012 int	sys___ntp_gettime30(struct lwp *, const struct sys___ntp_gettime30_args *, register_t *);
3013 
3014 int	sys___socket30(struct lwp *, const struct sys___socket30_args *, register_t *);
3015 
3016 int	sys___getfh30(struct lwp *, const struct sys___getfh30_args *, register_t *);
3017 
3018 int	sys___fhopen40(struct lwp *, const struct sys___fhopen40_args *, register_t *);
3019 
3020 int	sys___fhstatvfs140(struct lwp *, const struct sys___fhstatvfs140_args *, register_t *);
3021 
3022 int	sys___fhstat40(struct lwp *, const struct sys___fhstat40_args *, register_t *);
3023 
3024 int	sys_aio_cancel(struct lwp *, const struct sys_aio_cancel_args *, register_t *);
3025 
3026 int	sys_aio_error(struct lwp *, const struct sys_aio_error_args *, register_t *);
3027 
3028 int	sys_aio_fsync(struct lwp *, const struct sys_aio_fsync_args *, register_t *);
3029 
3030 int	sys_aio_read(struct lwp *, const struct sys_aio_read_args *, register_t *);
3031 
3032 int	sys_aio_return(struct lwp *, const struct sys_aio_return_args *, register_t *);
3033 
3034 int	sys_aio_suspend(struct lwp *, const struct sys_aio_suspend_args *, register_t *);
3035 
3036 int	sys_aio_write(struct lwp *, const struct sys_aio_write_args *, register_t *);
3037 
3038 int	sys_lio_listio(struct lwp *, const struct sys_lio_listio_args *, register_t *);
3039 
3040 int	sys___mount50(struct lwp *, const struct sys___mount50_args *, register_t *);
3041 
3042 int	sys_mremap(struct lwp *, const struct sys_mremap_args *, register_t *);
3043 
3044 int	sys_pset_create(struct lwp *, const struct sys_pset_create_args *, register_t *);
3045 
3046 int	sys_pset_destroy(struct lwp *, const struct sys_pset_destroy_args *, register_t *);
3047 
3048 int	sys_pset_assign(struct lwp *, const struct sys_pset_assign_args *, register_t *);
3049 
3050 int	sys__pset_bind(struct lwp *, const struct sys__pset_bind_args *, register_t *);
3051 
3052 int	sys___posix_fadvise50(struct lwp *, const struct sys___posix_fadvise50_args *, register_t *);
3053 
3054 #endif /* _SYS_SYSCALLARGS_H_ */
3055