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