xref: /freebsd/sys/kern/syscalls.master (revision 799ce8b8d2a061db1ca1e379fef638e2d22b6f29)
1 $FreeBSD$
2;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
3;
4; System call name/number master file.
5; Processed to created init_sysent.c, syscalls.c and syscall.h.
6
7; New FreeBSD system calls should be added to the bottom of this file.
8
9; Columns: number audit type name alt{name,tag,rtyp}/comments
10;	number	system call number, must be in order
11;	audit	the audit event associated with the system call
12;		A value of AUE_NULL means no auditing, but it also means that
13;		there is no audit event for the call at this time. For the
14;		case where the event exists, but we don't want auditing, the
15;		event should be #defined to AUE_NULL in audit_kevents.h.
16;	type	one of STD, OBSOL, RESERVED, UNIMPL, COMPAT, COMPAT4, COMPAT6,
17;		COMPAT7, COMPAT11, COMPAT12, NODEF, NOARGS, NOPROTO, NOSTD
18;		The COMPAT* options may be combined with one or more NO*
19;		options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
20;		The CAPENABLED option may be ORed into a type.
21;	name	pseudo-prototype of syscall routine
22;		If one of the following alts is different, then all appear:
23;	altname	name of system call if different
24;	alttag	name of args struct tag if different from [o]`name'"_args"
25;	altrtyp	return type if not int (bogus - syscalls always return int)
26;		for UNIMPL/OBSOL, name continues with comments
27
28; types:
29;	STD	always included
30;	COMPAT	included on COMPAT #ifdef
31;	COMPAT4	included on COMPAT_FREEBSD4 #ifdef (FreeBSD 4 compat)
32;	COMPAT6	included on COMPAT_FREEBSD6 #ifdef (FreeBSD 6 compat)
33;	COMPAT7	included on COMPAT_FREEBSD7 #ifdef (FreeBSD 7 compat)
34;	COMPAT10 included on COMPAT_FREEBSD10 #ifdef (FreeBSD 10 compat)
35;	COMPAT11 included on COMPAT_FREEBSD11 #ifdef (FreeBSD 11 compat)
36;	COMPAT12 included on COMPAT_FREEBSD12 #ifdef (FreeBSD 12 compat)
37;	OBSOL	obsolete, not included in system, only specifies name
38;	RESERVED reserved for local or vendor use (not for FreeBSD)
39;	UNIMPL	not implemented, placeholder only
40;	NOSTD	implemented but as a lkm that can be statically
41;		compiled in; sysent entry will be filled with lkmressys
42;		so the SYSCALL_MODULE macro works
43;	NOARGS	same as STD except do not create structure in sys/sysproto.h
44;	NODEF	same as STD except only have the entry in the syscall table
45;		added.  Meaning - do not create structure or function
46;		prototype in sys/sysproto.h
47;	NOPROTO	same as STD except do not create structure or
48;		function prototype in sys/sysproto.h.  Does add a
49;		definition to syscall.h besides adding a sysent.
50;	NOTSTATIC syscall is loadable
51;	CAPENABLED syscall is allowed in capability mode
52
53; annotations:
54;	SAL 2.0 annotations are used to specify how system calls treat
55;	arguments that are passed using pointers. There are three basic
56;	annotations.
57;
58;	_In_    Object pointed to will be read and not modified.
59;	_Out_   Object pointed to will be written and not read.
60;	_Inout_ Object pointed to will be written and read.
61;
62;	These annotations are used alone when the pointer refers to a single
63;	object i.e. scalar types, structs, and pointers, and not NULL. Adding
64;	the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also
65;	refer to NULL.
66;
67;	For pointers to arrays, additional suffixes are added:
68;
69;	_In_z_, _Out_z_, _Inout_z_:
70;	    for a NUL terminated array e.g. a string.
71;	_In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n):
72;	    for a NUL terminated array e.g. a string, of known length n bytes.
73;	_In_reads_(n),_Out_writes_(n),_Inout_updates_(n):
74;	    for an array of n elements.
75;	_In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n):
76;	    for a buffer of n-bytes.
77;
78;	In addition to SAL annotations, pointers are annotated to indicate
79;	that they point to types that change between ABIs.  That means that
80;	they contain long, pointer, or time_t types.  This is indicated with
81;	a _Contains_ annotation followed immediately by one or more of:
82;
83;	long_	Object contains a direct (or typedef'd) long value and varies
84;		between 32- and 64-bit ABIs.  This includes size_t.
85;	ptr_	Object contains pointers (or intptr_t) and varies between
86;		32- and 64-bit ABIs.
87;	timet_	Object contains a time_t and varies between i386 and other
88;		ABIs.
89
90; Please copy any additions and changes to the following compatability tables:
91; sys/compat/freebsd32/syscalls.master
92
93; #ifdef's, etc. may be included, and are copied to the output files.
94
95#include <sys/param.h>
96#include <sys/sysent.h>
97#include <sys/sysproto.h>
98
990	AUE_NULL	STD {
100		int nosys(void);
101	} syscall nosys_args int
1021	AUE_EXIT	STD|CAPENABLED {
103		void sys_exit(
104		    int rval
105		);
106	} exit sys_exit_args void
1072	AUE_FORK	STD|CAPENABLED {
108		int fork(void);
109	}
1103	AUE_READ	STD|CAPENABLED {
111		ssize_t read(
112		    int fd,
113		    _Out_writes_bytes_(nbyte) void *buf,
114		    size_t nbyte
115		);
116	}
1174	AUE_WRITE	STD|CAPENABLED {
118		ssize_t write(
119		    int fd,
120		    _In_reads_bytes_(nbyte) const void *buf,
121		    size_t nbyte
122		);
123	}
1245	AUE_OPEN_RWTC	STD {
125		int open(
126		    _In_z_ const char *path,
127		    int flags,
128		    mode_t mode
129		);
130	}
131; XXX should be		{ int open(const char *path, int flags, ...); }
132; but we're not ready for varargs.
1336	AUE_CLOSE	STD|CAPENABLED {
134		int close(
135		    int fd
136		);
137	}
1387	AUE_WAIT4	STD {
139		int wait4(
140		    int pid,
141		    _Out_opt_ int *status,
142		    int options,
143		    _Out_opt_ _Contains_long_timet_ struct rusage *rusage
144		);
145	}
1468	AUE_CREAT	COMPAT {
147		int creat(
148		    _In_z_ const char *path,
149		    int mode
150		);
151	}
1529	AUE_LINK	STD {
153		int link(
154		    _In_z_ const char *path,
155		    _In_z_ const char *link
156		);
157	}
15810	AUE_UNLINK	STD {
159		int unlink(
160		    _In_z_ const char *path
161		);
162	}
16311	AUE_NULL	OBSOL	execv
16412	AUE_CHDIR	STD {
165		int chdir(
166		    _In_z_ const char *path
167		);
168	}
16913	AUE_FCHDIR	STD {
170		int fchdir(
171		    int fd
172		);
173	}
17414	AUE_MKNOD	COMPAT11 {
175		int mknod(
176		    _In_z_ const char *path,
177		    int mode,
178		    uint32_t dev
179		);
180	}
18115	AUE_CHMOD	STD {
182		int chmod(
183		    _In_z_ const char *path,
184		    mode_t mode
185		);
186	}
18716	AUE_CHOWN	STD {
188		int chown(
189		    _In_z_ const char *path,
190		    int uid,
191		    int gid
192		);
193	}
19417	AUE_NULL	STD|CAPENABLED {
195		void *break(
196		    _In_ char *nsize
197		);
198	}
19918	AUE_GETFSSTAT	COMPAT4 {
200		int getfsstat(
201		    _Out_writes_bytes_opt_(bufsize) _Contains_long_ struct ostatfs *buf,
202		    long bufsize,
203		    int mode
204		);
205	}
20619	AUE_LSEEK	COMPAT|CAPENABLED {
207		long lseek(
208		    int fd,
209		    long offset,
210		    int whence
211		);
212	}
21320	AUE_GETPID	STD|CAPENABLED {
214		pid_t getpid(void);
215	}
21621	AUE_MOUNT	STD {
217		int mount(
218		    _In_z_ const char *type,
219		    _In_z_ const char *path,
220		    int flags,
221		    _In_opt_ void *data
222		);
223	}
22422	AUE_UMOUNT	STD {
225		int unmount(
226		    _In_z_ const char *path,
227		    int flags
228		);
229	}
23023	AUE_SETUID	STD|CAPENABLED {
231		int setuid(
232		    uid_t uid
233		);
234	}
23524	AUE_GETUID	STD|CAPENABLED {
236		uid_t getuid(void);
237	}
23825	AUE_GETEUID	STD|CAPENABLED {
239		uid_t geteuid(void);
240	}
24126	AUE_PTRACE	STD {
242		int ptrace(
243		    int req,
244		    pid_t pid,
245		    _Inout_opt_ _Contains_long_ptr_ caddr_t addr,
246		    int data
247		);
248	}
24927	AUE_RECVMSG	STD|CAPENABLED {
250		ssize_t recvmsg(
251		    int s,
252		    _Inout_ _Contains_ptr_ struct msghdr *msg,
253		    int flags
254		);
255	}
25628	AUE_SENDMSG	STD|CAPENABLED {
257		ssize_t sendmsg(
258		    int s,
259		    _In_ _Contains_ptr_ const struct msghdr *msg,
260		    int flags
261		);
262	}
26329	AUE_RECVFROM	STD|CAPENABLED {
264		ssize_t recvfrom(
265		    int s,
266		    _Out_writes_bytes_(len) void *buf,
267		    size_t len,
268		    int flags,
269		    _Out_writes_bytes_opt_(*fromlenaddr) struct sockaddr *from,
270		    _Inout_opt_ __socklen_t *fromlenaddr
271		);
272	}
27330	AUE_ACCEPT	STD|CAPENABLED {
274		int accept(
275		    int s,
276		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
277		    _Inout_opt_ __socklen_t *anamelen
278		);
279	}
28031	AUE_GETPEERNAME	STD|CAPENABLED {
281		int getpeername(
282		    int fdes,
283		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
284		    _Inout_opt_ __socklen_t *alen
285		);
286	}
28732	AUE_GETSOCKNAME	STD|CAPENABLED {
288		int getsockname(
289		    int fdes,
290		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
291		    _Inout_ __socklen_t *alen
292		);
293	}
29433	AUE_ACCESS	STD {
295		int access(
296		    _In_z_ const char *path,
297		    int amode
298		);
299	}
30034	AUE_CHFLAGS	STD {
301		int chflags(
302		    _In_z_ const char *path,
303		    u_long flags
304		);
305	}
30635	AUE_FCHFLAGS	STD|CAPENABLED {
307		int fchflags(
308		    int fd,
309		    u_long flags
310		);
311	}
31236	AUE_SYNC	STD|CAPENABLED {
313		int sync(void);
314	}
31537	AUE_KILL	STD|CAPENABLED {
316		int kill(
317		    int pid,
318		    int signum
319		);
320	}
32138	AUE_STAT	COMPAT {
322		int stat(
323		    _In_z_ const char *path,
324		    _Out_ _Contains_timet_ struct ostat *ub
325		);
326	}
32739	AUE_GETPPID	STD|CAPENABLED {
328		pid_t getppid(void);
329	}
33040	AUE_LSTAT	COMPAT {
331		int lstat(
332		    _In_z_ const char *path,
333		    _Out_ _Contains_timet_ struct ostat *ub
334		);
335	}
33641	AUE_DUP		STD|CAPENABLED {
337		int dup(
338		    u_int fd
339		);
340	}
34142	AUE_PIPE	COMPAT10|CAPENABLED {
342		int pipe(void);
343	}
34443	AUE_GETEGID	STD|CAPENABLED {
345		gid_t getegid(void);
346	}
34744	AUE_PROFILE	STD|CAPENABLED {
348		int profil(
349		    _Out_writes_bytes_(size) char *samples,
350		    size_t size,
351		    size_t offset,
352		    u_int scale
353		);
354	}
35545	AUE_KTRACE	STD {
356		int ktrace(
357		    _In_z_ const char *fname,
358		    int ops,
359		    int facs,
360		    int pid
361		);
362	}
36346	AUE_SIGACTION	COMPAT|CAPENABLED {
364		int sigaction(
365		    int signum,
366		    _In_opt_ _Contains_ptr_ struct osigaction *nsa,
367		    _Out_opt_ _Contains_ptr_ struct osigaction *osa
368		);
369	}
37047	AUE_GETGID	STD|CAPENABLED {
371		gid_t getgid(void);
372	}
37348	AUE_SIGPROCMASK	COMPAT|CAPENABLED {
374		int sigprocmask(
375		    int how,
376		    osigset_t mask
377		);
378	}
379; XXX note nonstandard (bogus) calling convention - the libc stub passes
380; us the mask, not a pointer to it, and we return the old mask as the
381; (int) return value.
38249	AUE_GETLOGIN	STD|CAPENABLED {
383		int getlogin(
384		    _Out_writes_z_(namelen) char *namebuf,
385		    u_int namelen
386		);
387	}
38850	AUE_SETLOGIN	STD {
389		int setlogin(
390		    _In_z_ const char *namebuf
391		);
392	}
39351	AUE_ACCT	STD {
394		int acct(
395		    _In_z_ const char *path
396		);
397	}
39852	AUE_SIGPENDING	COMPAT|CAPENABLED {
399		int sigpending(void);
400	}
40153	AUE_SIGALTSTACK	STD|CAPENABLED {
402		int sigaltstack(
403		    _In_opt_ _Contains_long_ptr_ const struct sigaltstack *ss,
404		    _Out_opt_ _Contains_long_ptr_ struct sigaltstack *oss
405		);
406	}
40754	AUE_IOCTL	STD|CAPENABLED {
408		int ioctl(
409		    int fd,
410		    u_long com,
411		    _Inout_opt_ _Contains_long_ptr_ char *data
412		);
413	}
41455	AUE_REBOOT	STD {
415		int reboot(
416		    int opt
417		);
418	}
41956	AUE_REVOKE	STD {
420		int revoke(
421		    _In_z_ const char *path
422		);
423	}
42457	AUE_SYMLINK	STD {
425		int symlink(
426		    _In_z_ const char *path,
427		    _In_z_ const char *link
428		);
429	}
43058	AUE_READLINK	STD {
431		ssize_t readlink(
432		    _In_z_ const char *path,
433		    _Out_writes_z_(count) char *buf,
434		    size_t count
435		);
436	}
43759	AUE_EXECVE	STD {
438		int execve(
439		    _In_z_ const char *fname,
440		    _In_z_ char **argv,
441		    _In_z_ char **envv
442		);
443	}
44460	AUE_UMASK	STD|CAPENABLED {
445		mode_t umask(
446		    mode_t newmask
447		);
448	}
44961	AUE_CHROOT	STD {
450		int chroot(
451		    _In_z_ const char *path
452		);
453	}
45462	AUE_FSTAT	COMPAT|CAPENABLED {
455		int fstat(
456		    int fd,
457		    _Out_ _Contains_timet_ struct ostat *sb
458		);
459	}
46063	AUE_NULL	COMPAT {
461		int getkerninfo(
462		    int op,
463		    _Out_writes_bytes_opt(*size) char *where,
464		    _Inout_opt_ size_t *size,
465		    int arg
466		);
467	}
46864	AUE_NULL	COMPAT|CAPENABLED {
469		int getpagesize(void);
470	}
47165	AUE_MSYNC	STD|CAPENABLED {
472		int msync(
473		    _In_ void *addr,
474		    size_t len,
475		    int flags
476		);
477	}
47866	AUE_VFORK	STD {
479		int vfork(void);
480	}
48167	AUE_NULL	OBSOL	vread
48268	AUE_NULL	OBSOL	vwrite
48369	AUE_SBRK	STD|CAPENABLED {
484		int sbrk(
485		    int incr
486		);
487	}
48870	AUE_SSTK	STD|CAPENABLED {
489		int sstk(
490		    int incr
491		);
492	}
49371	AUE_MMAP	COMPAT|CAPENABLED {
494		void *mmap(
495		    _In_ void *addr,
496		    int len,
497		    int prot,
498		    int flags,
499		    int fd,
500		    long pos
501		);
502	}
50372	AUE_O_VADVISE	COMPAT11 {
504		int vadvise(
505		    int anom
506		);
507	}
50873	AUE_MUNMAP	STD|CAPENABLED {
509		int munmap(
510		    _In_ void *addr,
511		    size_t len
512		);
513	}
51474	AUE_MPROTECT	STD|CAPENABLED {
515		int mprotect(
516		    _In_ const void *addr,
517		    size_t len,
518		    int prot
519		);
520	}
52175	AUE_MADVISE	STD|CAPENABLED {
522		int madvise(
523		    _In_ void *addr,
524		    size_t len,
525		    int behav
526		);
527	}
52876	AUE_NULL	OBSOL	vhangup
52977	AUE_NULL	OBSOL	vlimit
53078	AUE_MINCORE	STD|CAPENABLED {
531		int mincore(
532		    _In_ const void *addr,
533		    size_t len,
534		    _Out_writes_bytes_(len/PAGE_SIZE) char *vec
535		);
536	}
53779	AUE_GETGROUPS	STD|CAPENABLED {
538		int getgroups(
539		    int gidsetsize,
540		    _Out_writes_opt_(gidsetsize) gid_t *gidset
541		);
542	}
54380	AUE_SETGROUPS	STD {
544		int setgroups(
545		    int gidsetsize,
546		    _In_reads_(gidsetsize) const gid_t *gidset
547		);
548	}
54981	AUE_GETPGRP	STD|CAPENABLED {
550		int getpgrp(void);
551	}
55282	AUE_SETPGRP	STD {
553		int setpgid(
554		    int pid,
555		    int pgid
556		);
557	}
55883	AUE_SETITIMER	STD|CAPENABLED {
559		int setitimer(
560		    int which,
561		    _In_ _Contains_timet_ const struct itimerval *itv,
562		    _Out_opt_ _Contains_timet_ struct itimerval *oitv
563		);
564	}
56584	AUE_WAIT4	COMPAT {
566		int wait(void);
567	}
56885	AUE_SWAPON	STD {
569		int swapon(
570		    _In_z_ const char *name
571		);
572	}
57386	AUE_GETITIMER	STD|CAPENABLED {
574		int getitimer(
575		    int which,
576		    _Out_ _Contains_timet_ struct itimerval *itv
577		);
578	}
57987	AUE_SYSCTL	COMPAT|CAPENABLED {
580		int gethostname(
581		    _Out_writes_z_(len) char *hostname,
582		    u_int len
583		);
584	}
58588	AUE_SYSCTL	COMPAT {
586		int sethostname(
587		    _In_reads_z_(len) char *hostname,
588		    u_int len
589		);
590	}
59189	AUE_GETDTABLESIZE	STD|CAPENABLED {
592		int getdtablesize(void);
593	}
59490	AUE_DUP2	STD|CAPENABLED {
595		int dup2(
596		    u_int from,
597		    u_int to
598		);
599	}
60091	AUE_NULL	RESERVED
60192	AUE_FCNTL	STD|CAPENABLED {
602		int fcntl(
603		    int fd,
604		    int cmd,
605		    long arg
606		);
607	}
608; XXX should be { int fcntl(int fd, int cmd, ...); }
609; but we're not ready for varargs.
61093	AUE_SELECT	STD|CAPENABLED {
611		int select(
612		    int nd,
613		    _Inout_opt_ fd_set *in,
614		    _Inout_opt_ fd_set *ou,
615		    _Inout_opt_ fd_set *ex,
616		    _In_opt_ _Contains_long_timet_ struct timeval *tv
617		);
618	}
61994	AUE_NULL	RESERVED
62095	AUE_FSYNC	STD|CAPENABLED {
621		int fsync(
622		    int fd
623		);
624	}
62596	AUE_SETPRIORITY	STD|CAPENABLED {
626		int setpriority(
627		    int which,
628		    int who,
629		    int prio
630		);
631	}
63297	AUE_SOCKET	STD|CAPENABLED {
633		int socket(
634		    int domain,
635		    int type,
636		    int protocol
637		);
638	}
63998	AUE_CONNECT	STD {
640		int connect(
641		    int s,
642		    _In_reads_bytes_(namelen) const struct sockaddr *name,
643		    __socklen_t namelen
644		);
645	}
64699	AUE_ACCEPT	COMPAT|CAPENABLED {
647		int accept(
648		    int s,
649		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
650		    __socklen_t *anamelen
651		);
652	}
653100	AUE_GETPRIORITY	STD|CAPENABLED {
654		int getpriority(
655		    int which,
656		    int who
657		);
658	}
659101	AUE_SEND	COMPAT|CAPENABLED {
660		int send(
661		    int s,
662		    _In_reads_bytes_(len) const void *buf,
663		    int len,
664		    int flags
665		);
666	}
667102	AUE_RECV	COMPAT|CAPENABLED {
668		int recv(
669		    int s,
670		    _Out_writes_bytes_(len) void *buf,
671		    int len,
672		    int flags
673		);
674	}
675103	AUE_SIGRETURN	COMPAT|CAPENABLED {
676		int sigreturn(
677		    _In_ struct osigcontext *sigcntxp
678		);
679	}
680104	AUE_BIND	STD {
681		int bind(
682		    int s,
683		    _In_reads_bytes_(namelen) const struct sockaddr *name,
684		    __socklen_t namelen
685		);
686	}
687105	AUE_SETSOCKOPT	STD|CAPENABLED {
688		int setsockopt(
689		    int s,
690		    int level,
691		    int name,
692		    _In_reads_bytes_opt_(valsize) const void *val,
693		    __socklen_t valsize
694		);
695	}
696106	AUE_LISTEN	STD|CAPENABLED {
697		int listen(
698		    int s,
699		    int backlog
700		);
701	}
702107	AUE_NULL	OBSOL	vtimes
703108	AUE_NULL	COMPAT|CAPENABLED {
704		int sigvec(
705		    int signum,
706		    _In_opt_ _Contains_ptr_ struct sigvec *nsv,
707		    _Out_opt_ _Contains_ptr_ struct sigvec *osv
708		);
709	}
710109	AUE_NULL	COMPAT|CAPENABLED {
711		int sigblock(
712		    int mask
713		);
714	}
715110	AUE_NULL	COMPAT|CAPENABLED {
716		int sigsetmask(
717		    int mask
718		);
719	}
720111	AUE_NULL	COMPAT|CAPENABLED {
721		int sigsuspend(
722		    osigset_t mask
723		);
724	}
725; XXX note nonstandard (bogus) calling convention - the libc stub passes
726; us the mask, not a pointer to it.
727112	AUE_NULL	COMPAT|CAPENABLED {
728		int sigstack(
729		    _In_opt_ _Contains_ptr_ struct sigstack *nss,
730		    _Out_opt_ _Contains_ptr_ struct sigstack *oss
731		);
732	}
733113	AUE_RECVMSG	COMPAT|CAPENABLED {
734		int recvmsg(
735		    int s,
736		    _Inout_ _Contains_ptr_ struct omsghdr *msg,
737		    int flags
738		);
739	}
740114	AUE_SENDMSG	COMPAT|CAPENABLED {
741		int sendmsg(
742		    int s,
743		    _In_ _Contains_ptr_ const struct omsghdr *msg,
744		    int flags
745		);
746	}
747115	AUE_NULL	OBSOL	vtrace
748116	AUE_GETTIMEOFDAY	STD|CAPENABLED {
749		int gettimeofday(
750		    _Out_ _Contains_long_timet_ struct timeval *tp,
751		    _Out_opt_ struct timezone *tzp
752		);
753	}
754117	AUE_GETRUSAGE	STD|CAPENABLED {
755		int getrusage(
756		    int who,
757		    _Out_ _Contains_long_ struct rusage *rusage
758		);
759	}
760118	AUE_GETSOCKOPT	STD|CAPENABLED {
761		int getsockopt(
762		    int s,
763		    int level,
764		    int name,
765		    _Out_writes_bytes_opt_(*avalsize) void *val,
766		    _Inout_ __socklen_t *avalsize
767		);
768	}
769119	AUE_NULL	RESERVED
770120	AUE_READV	STD|CAPENABLED {
771		int readv(
772		    int fd,
773		    _Inout_updates_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
774		    u_int iovcnt
775		);
776	}
777121	AUE_WRITEV	STD|CAPENABLED {
778		int writev(
779		    int fd,
780		    _In_reads_opt_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
781		    u_int iovcnt
782		);
783	}
784122	AUE_SETTIMEOFDAY	STD {
785		int settimeofday(
786		    _In_ _Contains_long_timet_ const struct timeval *tv,
787		    _In_opt_ const struct timezone *tzp
788		);
789	}
790123	AUE_FCHOWN	STD|CAPENABLED {
791		int fchown(
792		    int fd,
793		    int uid,
794		    int gid
795		);
796	}
797124	AUE_FCHMOD	STD|CAPENABLED {
798		int fchmod(
799		    int fd,
800		    mode_t mode
801		);
802	}
803125	AUE_RECVFROM	COMPAT|NOARGS|CAPENABLED {
804		int recvfrom(
805		    int s,
806		    _Out_writes_(len) void *buf,
807		    size_t len,
808		    int flags,
809		    _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
810		    _Inout_ __socklen_t *fromlenaddr
811		);
812	} recvfrom recvfrom_args int
813126	AUE_SETREUID	STD|CAPENABLED {
814		int setreuid(
815		    int ruid,
816		    int euid
817		);
818	}
819127	AUE_SETREGID	STD|CAPENABLED {
820		int setregid(
821		    int rgid,
822		    int egid
823		);
824	}
825128	AUE_RENAME	STD {
826		int rename(
827		    _In_z_ const char *from,
828		    _In_z_ const char *to
829		);
830	}
831129	AUE_TRUNCATE	COMPAT {
832		int truncate(
833		    _In_z_ const char *path,
834		    long length
835		);
836	}
837130	AUE_FTRUNCATE	COMPAT|CAPENABLED {
838		int ftruncate(
839		    int fd,
840		    long length
841		);
842	}
843131	AUE_FLOCK	STD|CAPENABLED {
844		int flock(
845		    int fd,
846		    int how
847		);
848	}
849132	AUE_MKFIFO	STD {
850		int mkfifo(
851		    _In_z_ const char *path,
852		    mode_t mode
853		);
854	}
855133	AUE_SENDTO	STD|CAPENABLED {
856		ssize_t sendto(
857		    int s,
858		    _In_reads_bytes_(len) const void *buf,
859		    size_t len,
860		    int flags,
861		    _In_reads_bytes_opt_(tolen) const struct sockaddr *to,
862		    __socklen_t tolen
863		);
864	}
865134	AUE_SHUTDOWN	STD|CAPENABLED {
866		int shutdown(
867		    int s,
868		    int how
869		);
870	}
871135	AUE_SOCKETPAIR	STD|CAPENABLED {
872		int socketpair(
873		    int domain,
874		    int type,
875		    int protocol,
876		    _Out_writes_(2) int *rsv
877		);
878	}
879136	AUE_MKDIR	STD {
880		int mkdir(
881		    _In_z_ const char *path,
882		    mode_t mode
883		);
884	}
885137	AUE_RMDIR	STD {
886		int rmdir(
887		    _In_z_ const char *path
888		);
889	}
890138	AUE_UTIMES	STD {
891		int utimes(
892		    _In_z_ const char *path,
893		    _In_ _Contains_long_timet_ const struct timeval *tptr
894		);
895	}
896139	AUE_NULL	OBSOL	4.2 sigreturn
897140	AUE_ADJTIME	STD {
898		int adjtime(
899		    _In_ _Contains_long_timet_ const struct timeval *delta,
900		    _Out_opt_ _Contains_long_timet_ struct timeval *olddelta
901		);
902	}
903141	AUE_GETPEERNAME	COMPAT|CAPENABLED {
904		int getpeername(
905		    int fdes,
906		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
907		    _Inout_opt_ __socklen_t *alen
908		);
909	}
910142	AUE_SYSCTL	COMPAT|CAPENABLED {
911		long gethostid(void);
912	}
913143	AUE_SYSCTL	COMPAT {
914		int sethostid(
915		    long hostid
916		);
917	}
918144	AUE_GETRLIMIT	COMPAT|CAPENABLED {
919		int getrlimit(
920		    u_int which,
921		    _Out_ struct orlimit *rlp
922		);
923	}
924145	AUE_SETRLIMIT	COMPAT|CAPENABLED {
925		int setrlimit(
926		    u_int which,
927		    _Out_ struct orlimit *rlp
928		);
929	}
930146	AUE_KILLPG	COMPAT {
931		int killpg(
932		    int pgid,
933		    int signum
934		);
935	}
936147	AUE_SETSID	STD|CAPENABLED {
937		int setsid(void);
938	}
939148	AUE_QUOTACTL	STD {
940		int quotactl(
941		    _In_z_ const char *path,
942		    int cmd,
943		    int uid,
944		    _In_ void *arg
945		);
946	}
947149	AUE_O_QUOTA	COMPAT {
948		int quota(void);
949	}
950150	AUE_GETSOCKNAME	COMPAT|NOARGS|CAPENABLED {
951		int getsockname(
952		    int fdec,
953		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
954		    _Inout_ __socklen_t *alen
955		);
956	} getsockname getsockname_args int
957151-153	AUE_NULL	RESERVED
958; 154 is initialised by the NLM code, if present.
959154	AUE_NULL	NOSTD {
960		int nlm_syscall(
961		    int debug_level,
962		    int grace_period,
963		    int addr_count,
964		    _In_reads_(addr_count) char **addrs
965		);
966	}
967; 155 is initialized by the NFS code, if present.
968155	AUE_NFS_SVC	NOSTD {
969		int nfssvc(
970		    int flag,
971		    _In_ void *argp
972		);
973	}
974156	AUE_GETDIRENTRIES	COMPAT|CAPENABLED {
975		int getdirentries(
976		    int fd,
977		    _Out_writes_bytes_(count) char *buf,
978		    u_int count,
979		    _Out_ long *basep
980		);
981	}
982157	AUE_STATFS	COMPAT4 {
983		int statfs(
984		    _In_z_ const char *path,
985		    _Out_ _Contains_long_ struct ostatfs *buf
986		);
987	}
988158	AUE_FSTATFS	COMPAT4|CAPENABLED {
989		int fstatfs(
990		    int fd,
991		    _Out_ _Contains_long_ struct ostatfs *buf
992		);
993	}
994159	AUE_NULL	RESERVED
995160	AUE_LGETFH	STD {
996		int lgetfh(
997		    _In_z_ const char *fname,
998		    _Out_ struct fhandle *fhp
999		);
1000	}
1001161	AUE_NFS_GETFH	STD {
1002		int getfh(
1003		    _In_z_ const char *fname,
1004		    _Out_ struct fhandle *fhp
1005		);
1006	}
1007162	AUE_SYSCTL	COMPAT4|CAPENABLED {
1008		int getdomainname(
1009		    _Out_writes_z_(len) char *domainname,
1010		    int len
1011		);
1012	}
1013163	AUE_SYSCTL	COMPAT4 {
1014		int setdomainname(
1015		    _In_reads_z_(len) char *domainname,
1016		    int len
1017		);
1018	}
1019164	AUE_NULL	COMPAT4 {
1020		int uname(
1021		    _Out_ struct utsname *name
1022		);
1023	}
1024165	AUE_SYSARCH	STD|CAPENABLED {
1025		int sysarch(
1026		    int op,
1027		    _In_z_ char *parms
1028		);
1029	}
1030166	AUE_RTPRIO	STD|CAPENABLED {
1031		int rtprio(
1032		    int function,
1033		    pid_t pid,
1034		    _Inout_ struct rtprio *rtp
1035		);
1036	}
1037167-168	AUE_NULL	RESERVED
1038169	AUE_SEMSYS	NOSTD {
1039		int semsys(
1040		    int which,
1041		    int a2,
1042		    int a3,
1043		    int a4,
1044		    int a5
1045		);
1046	}
1047; XXX should be { int semsys(int which, ...); }
1048170	AUE_MSGSYS	NOSTD {
1049		int msgsys(
1050		    int which,
1051		    int a2,
1052		    int a3,
1053		    int a4,
1054		    int a5,
1055		    int a6
1056		);
1057	}
1058; XXX should be { int msgsys(int which, ...); }
1059171	AUE_SHMSYS	NOSTD {
1060		int shmsys(
1061		    int which,
1062		    int a2,
1063		    int a3,
1064		    int a4
1065		);
1066	}
1067; XXX should be { int shmsys(int which, ...); }
1068172	AUE_NULL	RESERVED
1069173	AUE_PREAD	COMPAT6|CAPENABLED {
1070		ssize_t pread(
1071		    int fd,
1072		    _Out_writes_bytes_(nbyte) void *buf,
1073		    size_t nbyte,
1074		    int pad,
1075		    off_t offset
1076		);
1077	}
1078174	AUE_PWRITE	COMPAT6|CAPENABLED {
1079		ssize_t pwrite(
1080		    int fd,
1081		    _In_reads_bytes_(nbyte) const void *buf,
1082		    size_t nbyte,
1083		    int pad,
1084		    off_t offset
1085		);
1086	}
1087175	AUE_SETFIB	STD {
1088		int setfib(
1089		    int fibnum
1090		);
1091	}
1092176	AUE_NTP_ADJTIME	STD {
1093		int ntp_adjtime(
1094		    _Inout_ _Contains_long_ struct timex *tp
1095		);
1096	}
1097177-180	AUE_NULL	RESERVED
1098181	AUE_SETGID	STD|CAPENABLED {
1099		int setgid(
1100		    gid_t gid
1101		);
1102	}
1103182	AUE_SETEGID	STD|CAPENABLED {
1104		int setegid(
1105		    gid_t egid
1106		);
1107	}
1108183	AUE_SETEUID	STD|CAPENABLED {
1109		int seteuid(
1110		    uid_t euid
1111		);
1112	}
1113184	AUE_NULL	OBSOL	lfs_bmapv
1114185	AUE_NULL	OBSOL	lfs_markv
1115186	AUE_NULL	OBSOL	lfs_segclean
1116187	AUE_NULL	OBSOL	lfs_segwait
1117188	AUE_STAT	COMPAT11 {
1118		int stat(
1119		    _In_z_ const char *path,
1120		    _Out_ _Contains_timet_ struct freebsd11_stat *ub
1121		);
1122	}
1123189	AUE_FSTAT	COMPAT11|CAPENABLED {
1124		int fstat(
1125		    int fd,
1126		    _Out_ _Contains_timet_ struct freebsd11_stat *sb
1127		);
1128	}
1129190	AUE_LSTAT	COMPAT11 {
1130		int lstat(
1131		    _In_z_ const char *path,
1132		    _Out_ _Contains_timet_ struct freebsd11_stat *ub
1133		);
1134	}
1135191	AUE_PATHCONF	STD {
1136		int pathconf(
1137		    _In_z_ const char *path,
1138		    int name
1139		);
1140	}
1141192	AUE_FPATHCONF	STD|CAPENABLED {
1142		int fpathconf(
1143		    int fd,
1144		    int name
1145		);
1146	}
1147193	AUE_NULL	RESERVED
1148194	AUE_GETRLIMIT	STD|CAPENABLED {
1149		int getrlimit(
1150		    u_int which,
1151		    _Out_ struct rlimit *rlp
1152		);
1153	} getrlimit __getrlimit_args int
1154195	AUE_SETRLIMIT	STD|CAPENABLED {
1155		int setrlimit(
1156		    u_int which,
1157		    _In_ struct rlimit *rlp
1158		);
1159	} setrlimit __setrlimit_args int
1160196	AUE_GETDIRENTRIES	COMPAT11|CAPENABLED {
1161		int getdirentries(
1162		    int fd,
1163		    _Out_writes_bytes_(count) char *buf,
1164		    u_int count,
1165		    _Out_ long *basep
1166		);
1167	}
1168197	AUE_MMAP	COMPAT6|CAPENABLED {
1169		void *mmap(
1170		    _In_ void *addr,
1171		    size_t len,
1172		    int prot,
1173		    int flags,
1174		    int fd,
1175		    int pad,
1176		    off_t pos
1177		);
1178	}
1179198	AUE_NULL	NOPROTO {
1180		int nosys(void);
1181	} __syscall __syscall_args int
1182199	AUE_LSEEK	COMPAT6|CAPENABLED {
1183		off_t lseek(
1184		    int fd,
1185		    int pad,
1186		    off_t offset,
1187		    int whence
1188		);
1189	}
1190200	AUE_TRUNCATE	COMPAT6 {
1191		int truncate(
1192		    _In_z_ const char *path,
1193		    int pad,
1194		    off_t length
1195		);
1196	}
1197201	AUE_FTRUNCATE	COMPAT6|CAPENABLED {
1198		int ftruncate(
1199		    int fd,
1200		    int pad,
1201		    off_t length
1202		);
1203	}
1204202	AUE_SYSCTL	STD|CAPENABLED {
1205		int __sysctl(
1206		    _In_reads_(namelen) int *name,
1207		    u_int namelen,
1208		    _Out_writes_bytes_opt_(*oldlenp) void *old,
1209		    _Inout_opt_ size_t *oldlenp,
1210		    _In_reads_bytes_opt_(newlen) const void *new,
1211		    size_t newlen
1212		);
1213	}
1214203	AUE_MLOCK	STD|CAPENABLED {
1215		int mlock(
1216		    _In_ const void *addr,
1217		    size_t len
1218		);
1219	}
1220204	AUE_MUNLOCK	STD|CAPENABLED {
1221		int munlock(
1222		    _In_ const void *addr,
1223		    size_t len
1224		);
1225	}
1226205	AUE_UNDELETE	STD {
1227		int undelete(
1228		    _In_z_ const char *path
1229		);
1230	}
1231206	AUE_FUTIMES	STD|CAPENABLED {
1232		int futimes(
1233		    int fd,
1234		    _In_reads_(2) _Contains_long_timet_ const struct timeval *tptr
1235		);
1236	}
1237207	AUE_GETPGID	STD|CAPENABLED {
1238		int getpgid(
1239		    pid_t pid
1240		);
1241	}
1242208	AUE_NULL	RESERVED
1243209	AUE_POLL	STD|CAPENABLED {
1244		int poll(
1245		    _Inout_updates_(nfds) struct pollfd *fds,
1246		    u_int nfds,
1247		    int timeout
1248		);
1249	}
1250;
1251; The following are reserved for loadable syscalls
1252;
1253210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1254211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1255212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1256213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1257214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1258215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1259216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1260217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1261218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1262219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1263
1264220	AUE_SEMCTL	COMPAT7|NOSTD {
1265		int __semctl(
1266		    int semid,
1267		    int semnum,
1268		    int cmd,
1269		    _Contains_ptr_ union semun_old *arg
1270		);
1271	}
1272221	AUE_SEMGET	NOSTD {
1273		int semget(
1274		    key_t key,
1275		    int nsems,
1276		    int semflg
1277		);
1278	}
1279222	AUE_SEMOP	NOSTD {
1280		int semop(
1281		    int semid,
1282		    _In_reads_(nsops) struct sembuf *sops,
1283		    size_t nsops
1284		);
1285	}
1286223	AUE_NULL	OBSOL	semconfig
1287224	AUE_MSGCTL	COMPAT7|NOSTD {
1288		int msgctl(
1289		    int msqid,
1290		    int cmd,
1291		    _Contains_long_ptr_timet_ struct msqid_ds_old *buf
1292		);
1293	}
1294225	AUE_MSGGET	NOSTD {
1295		int msgget(
1296		    key_t key,
1297		    int msgflg
1298		);
1299	}
1300226	AUE_MSGSND	NOSTD {
1301		int msgsnd(
1302		    int msqid,
1303		    _In_reads_bytes_(msgsz) _Contains_long_ const void *msgp,
1304		    size_t msgsz,
1305		    int msgflg
1306		);
1307	}
1308227	AUE_MSGRCV	NOSTD {
1309		ssize_t msgrcv(
1310		    int msqid,
1311		    _Out_writes_bytes_(msgsz) _Contains_long_ void *msgp,
1312		    size_t msgsz,
1313		    long msgtyp,
1314		    int msgflg
1315		);
1316	}
1317228	AUE_SHMAT	NOSTD {
1318		void *shmat(
1319		    int shmid,
1320		    _In_ const void *shmaddr,
1321		    int shmflg
1322		);
1323	}
1324229	AUE_SHMCTL	COMPAT7|NOSTD {
1325		int shmctl(
1326		    int shmid,
1327		    int cmd,
1328		    _Contains_long_ struct shmid_ds_old *buf
1329		);
1330	}
1331230	AUE_SHMDT	NOSTD {
1332		int shmdt(
1333		    _In_ const void *shmaddr
1334		);
1335	}
1336231	AUE_SHMGET	NOSTD {
1337		int shmget(
1338		    key_t key,
1339		    size_t size,
1340		    int shmflg
1341		);
1342	}
1343232	AUE_NULL	STD|CAPENABLED {
1344		int clock_gettime(
1345		    clockid_t clock_id,
1346		    _Out_ _Contains_long_timet_ struct timespec *tp
1347		);
1348	}
1349233	AUE_CLOCK_SETTIME	STD {
1350		int clock_settime(
1351		    clockid_t clock_id,
1352		    _In_ _Contains_long_timet_ const struct timespec *tp
1353		);
1354	}
1355234	AUE_NULL	STD|CAPENABLED {
1356		int clock_getres(
1357		    clockid_t clock_id,
1358		    _Out_ _Contains_long_timet_ struct timespec *tp
1359		);
1360	}
1361235	AUE_NULL	STD|CAPENABLED {
1362		int ktimer_create(
1363		    clockid_t clock_id,
1364		    _In_ _Contains_long_ptr_ struct sigevent *evp,
1365		    _Out_ int *timerid
1366		);
1367	}
1368236	AUE_NULL	STD|CAPENABLED {
1369		int ktimer_delete(
1370		    int timerid
1371		);
1372	}
1373237	AUE_NULL	STD|CAPENABLED {
1374		int ktimer_settime(
1375		    int timerid,
1376		    int flags,
1377		    _In_ _Contains_long_timet_ const struct itimerspec *value,
1378		    _Out_opt_ _Contains_long_timet_ struct itimerspec *ovalue
1379		);
1380	}
1381238	AUE_NULL	STD|CAPENABLED {
1382		int ktimer_gettime(
1383		    int timerid,
1384		    _Out_ _Contains_long_timet_ struct itimerspec *value
1385		);
1386	}
1387239	AUE_NULL	STD|CAPENABLED {
1388		int ktimer_getoverrun(
1389		    int timerid
1390		);
1391	}
1392240	AUE_NULL	STD|CAPENABLED {
1393		int nanosleep(
1394		    _In_ _Contains_long_timet_ const struct timespec *rqtp,
1395		    _Out_opt_ _Contains_long_timet_ struct timespec *rmtp
1396		);
1397	}
1398241	AUE_NULL	STD {
1399		int ffclock_getcounter(
1400		    _Out_ ffcounter *ffcount
1401		);
1402	}
1403242	AUE_NULL	STD {
1404		int ffclock_setestimate(
1405		    _In_ _Contains_timet_ struct ffclock_estimate *cest
1406		);
1407	}
1408243	AUE_NULL	STD {
1409		int ffclock_getestimate(
1410		    _Out_ _Contains_timet_ struct ffclock_estimate *cest
1411		);
1412	}
1413244	AUE_NULL	STD {
1414		int clock_nanosleep(
1415		    clockid_t clock_id,
1416		    int flags,
1417		    _In_ _Contains_long_timet_ const struct timespec *rqtp,
1418		    _Out_opt_ _Contains_long_timet_ struct timespec *rmtp
1419		);
1420	}
1421245-246	AUE_NULL	RESERVED
1422247	AUE_NULL	STD {
1423		int clock_getcpuclockid2(
1424		    id_t id,
1425		    int which,
1426		    _Out_ clockid_t *clock_id
1427		);
1428	}
1429248	AUE_NULL	STD|CAPENABLED {
1430		int ntp_gettime(
1431		    _Out_ _Contains_long_timet_ struct ntptimeval *ntvp
1432		);
1433	}
1434249	AUE_NULL	RESERVED
1435250	AUE_MINHERIT	STD|CAPENABLED {
1436		int minherit(
1437		    _In_ void *addr,
1438		    size_t len,
1439		    int inherit
1440		);
1441	}
1442251	AUE_RFORK	STD {
1443		int rfork(
1444		    int flags
1445		);
1446	}
1447252	AUE_POLL	OBSOL	openbsd_poll
1448253	AUE_ISSETUGID	STD|CAPENABLED {
1449		int issetugid(void);
1450	}
1451254	AUE_LCHOWN	STD {
1452		int lchown(
1453		    _In_z_ const char *path,
1454		    int uid,
1455		    int gid
1456		);
1457	}
1458255	AUE_AIO_READ	STD|CAPENABLED {
1459		int aio_read(
1460		    _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp
1461		);
1462	}
1463256	AUE_AIO_WRITE	STD|CAPENABLED {
1464		int aio_write(
1465		    _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp
1466		);
1467	}
1468257	AUE_LIO_LISTIO	STD|CAPENABLED {
1469		int lio_listio(
1470		    int mode,
1471		    _Inout_updates_(nent) _Contains_long_ptr_ struct aiocb * const *acb_list,
1472		    int nent,
1473		    _In_opt_ _Contains_long_ptr_ struct sigevent *sig
1474		);
1475	}
1476258-271	AUE_NULL	RESERVED
1477272	AUE_O_GETDENTS	COMPAT11|CAPENABLED {
1478		int getdents(
1479		    int fd,
1480		    _Out_writes_bytes_(count) char *buf,
1481		    size_t count
1482		);
1483	}
1484273	AUE_NULL	RESERVED
1485274	AUE_LCHMOD	STD {
1486		int lchmod(
1487		    _In_z_ const char *path,
1488		    mode_t mode
1489		);
1490	}
1491275	AUE_NULL	OBSOL	netbsd_lchown
1492276	AUE_LUTIMES	STD {
1493		int lutimes(
1494		    _In_z_ const char *path,
1495		    _In_ _Contains_long_timet_ const struct timeval *tptr
1496		);
1497	}
1498277	AUE_NULL	OBSOL	netbsd_msync
1499278	AUE_STAT	COMPAT11 {
1500		int nstat(
1501		    _In_z_ const char *path,
1502		    _Out_ _Contains_long_timet_ struct nstat *ub
1503		);
1504	}
1505279	AUE_FSTAT	COMPAT11 {
1506		int nfstat(
1507		    int fd,
1508		    _Out_ _Contains_long_timet_ struct nstat *sb
1509		);
1510	}
1511280	AUE_LSTAT	COMPAT11 {
1512		int nlstat(
1513		    _In_z_ const char *path,
1514		    _Out_ _Contains_long_timet_ struct nstat *ub
1515		);
1516	}
1517281-288	AUE_NULL	RESERVED
1518289	AUE_PREADV	STD|CAPENABLED {
1519		ssize_t preadv(
1520		    int fd,
1521		    _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
1522		    u_int iovcnt,
1523		    off_t offset
1524		);
1525	}
1526290	AUE_PWRITEV	STD|CAPENABLED {
1527		ssize_t pwritev(
1528		    int fd,
1529		    _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
1530		    u_int iovcnt,
1531		    off_t offset
1532		);
1533	}
1534291-296	AUE_NULL	RESERVED
1535297	AUE_FHSTATFS	COMPAT4 {
1536		int fhstatfs(
1537		    _In_ const struct fhandle *u_fhp,
1538		    _Out_ _Contains_long_ struct ostatfs *buf
1539		);
1540	}
1541298	AUE_FHOPEN	STD {
1542		int fhopen(
1543		    _In_ const struct fhandle *u_fhp,
1544		    int flags
1545		);
1546	}
1547299	AUE_FHSTAT	COMPAT11 {
1548		int fhstat(
1549		    _In_ const struct fhandle *u_fhp,
1550		    _Out_ _Contains_long_timet_ struct freebsd11_stat *sb
1551		);
1552	}
1553300	AUE_NULL	STD {
1554		int modnext(
1555		    int modid
1556		);
1557	}
1558301	AUE_NULL	STD {
1559		int modstat(
1560		    int modid,
1561		    _Out_ _Contains_long_ struct module_stat *stat
1562		);
1563	}
1564302	AUE_NULL	STD {
1565		int modfnext(
1566		    int modid
1567		);
1568	}
1569303	AUE_NULL	STD {
1570		int modfind(
1571		    _In_z_ const char *name
1572		);
1573	}
1574304	AUE_MODLOAD	STD {
1575		int kldload(
1576		    _In_z_ const char *file
1577		);
1578	}
1579305	AUE_MODUNLOAD	STD {
1580		int kldunload(
1581		    int fileid
1582		);
1583	}
1584306	AUE_NULL	STD {
1585		int kldfind(
1586		    _In_z_ const char *file
1587		);
1588	}
1589307	AUE_NULL	STD {
1590		int kldnext(
1591		    int fileid
1592		);
1593	}
1594308	AUE_NULL	STD {
1595		int kldstat(
1596		    int fileid,
1597		    _Out_ _Contains_long_ptr_ struct kld_file_stat *stat
1598		);
1599	}
1600309	AUE_NULL	STD {
1601		int kldfirstmod(
1602		    int fileid
1603		);
1604	}
1605310	AUE_GETSID	STD|CAPENABLED {
1606		int getsid(
1607		    pid_t pid
1608		);
1609	}
1610311	AUE_SETRESUID	STD|CAPENABLED {
1611		int setresuid(
1612		    uid_t ruid,
1613		    uid_t euid,
1614		    uid_t suid
1615		);
1616	}
1617312	AUE_SETRESGID	STD|CAPENABLED {
1618		int setresgid(
1619		    gid_t rgid,
1620		    gid_t egid,
1621		    gid_t sgid
1622		);
1623	}
1624313	AUE_NULL	OBSOL	signanosleep
1625314	AUE_AIO_RETURN	STD|CAPENABLED {
1626		ssize_t aio_return(
1627		    _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp
1628		);
1629	}
1630315	AUE_AIO_SUSPEND	STD|CAPENABLED {
1631		int aio_suspend(
1632		    _Inout_updates_(nent) _Contains_long_ptr_ struct aiocb * const * aiocbp,
1633		    int nent,
1634		    _In_opt_ _Contains_long_timet_ const struct timespec *timeout
1635		);
1636	}
1637316	AUE_AIO_CANCEL	STD|CAPENABLED {
1638		int aio_cancel(
1639		    int fd,
1640		    _In_opt_ _Contains_long_ptr_ struct aiocb *aiocbp
1641		);
1642	}
1643317	AUE_AIO_ERROR	STD|CAPENABLED {
1644		int aio_error(
1645		    _In_ _Contains_long_ptr_ struct aiocb *aiocbp
1646		);
1647	}
1648318	AUE_AIO_READ	COMPAT6|CAPENABLED {
1649		int aio_read(
1650		    _Inout_ _Contains_long_ptr_ struct oaiocb *aiocbp
1651		);
1652	}
1653319	AUE_AIO_WRITE	COMPAT6|CAPENABLED {
1654		int aio_write(
1655		    _Inout_ _Contains_long_ptr_ struct oaiocb *aiocbp
1656		);
1657	}
1658320	AUE_LIO_LISTIO	COMPAT6|CAPENABLED {
1659		int lio_listio(
1660		    int mode,
1661		    _Inout_updates_(nent) _Contains_long_ptr_ struct oaiocb * const *acb_list,
1662		    int nent,
1663		    _In_opt_ _Contains_ptr_ struct osigevent *sig
1664		);
1665	}
1666321	AUE_NULL	STD|CAPENABLED {
1667		int yield(void);
1668	}
1669322	AUE_NULL	OBSOL	thr_sleep
1670323	AUE_NULL	OBSOL	thr_wakeup
1671324	AUE_MLOCKALL	STD|CAPENABLED {
1672		int mlockall(
1673		    int how
1674		);
1675	}
1676325	AUE_MUNLOCKALL	STD|CAPENABLED {
1677		int munlockall(void);
1678	}
1679326	AUE_GETCWD	STD {
1680		int __getcwd(
1681		    _Out_writes_z_(buflen) char *buf,
1682		    size_t buflen
1683		);
1684	}
1685327	AUE_NULL	STD|CAPENABLED {
1686		int sched_setparam(
1687		    pid_t pid,
1688		    _In_ const struct sched_param *param
1689		);
1690	}
1691328	AUE_NULL	STD|CAPENABLED {
1692		int sched_getparam(
1693		    pid_t pid,
1694		    _Out_ struct sched_param *param
1695		);
1696	}
1697329	AUE_NULL	STD|CAPENABLED {
1698		int sched_setscheduler(
1699		    pid_t pid,
1700		    int policy,
1701		    _In_ const struct sched_param *param
1702		);
1703	}
1704330	AUE_NULL	STD|CAPENABLED {
1705		int sched_getscheduler(
1706		    pid_t pid
1707		);
1708	}
1709331	AUE_NULL	STD|CAPENABLED {
1710		int sched_yield(void);
1711	}
1712332	AUE_NULL	STD|CAPENABLED {
1713		int sched_get_priority_max(
1714		    int policy
1715		);
1716	}
1717333	AUE_NULL	STD|CAPENABLED {
1718		int sched_get_priority_min(
1719		    int policy
1720		);
1721	}
1722334	AUE_NULL	STD|CAPENABLED {
1723		int sched_rr_get_interval(
1724		    pid_t pid,
1725		    _Out_ _Contains_long_timet_ struct timespec *interval
1726		);
1727	}
1728335	AUE_NULL	STD|CAPENABLED {
1729		int utrace(
1730		   _In_reads_bytes_(len) const void *addr,
1731		    size_t len
1732		);
1733	}
1734336	AUE_SENDFILE	COMPAT4|CAPENABLED {
1735		int sendfile(
1736		    int fd,
1737		    int s,
1738		    off_t offset,
1739		    size_t nbytes,
1740		    _In_opt_ _Contains_ptr_ struct sf_hdtr *hdtr,
1741		    _Out_opt_ off_t *sbytes,
1742		    int flags
1743		);
1744	}
1745337	AUE_NULL	STD {
1746		int kldsym(
1747		    int fileid,
1748		    int cmd,
1749		    _In_ _Contains_long_ptr_ void *data
1750		);
1751	}
1752338	AUE_JAIL	STD {
1753		int jail(
1754		    _In_ _Contains_ptr_ struct jail *jail
1755		);
1756	}
1757339	AUE_NULL	NOSTD|NOTSTATIC {
1758		int nnpfs_syscall(
1759		    int operation,
1760		    char *a_pathP,
1761		    int a_opcode,
1762		    void *a_paramsP,
1763		    int a_followSymlinks
1764		);
1765	}
1766340	AUE_SIGPROCMASK	STD|CAPENABLED {
1767		int sigprocmask(
1768		    int how,
1769		    _In_opt_ const sigset_t *set,
1770		    _Out_opt_ sigset_t *oset
1771		);
1772	}
1773341	AUE_SIGSUSPEND	STD|CAPENABLED {
1774		int sigsuspend(
1775		    _In_ const sigset_t *sigmask
1776		);
1777	}
1778342	AUE_SIGACTION	COMPAT4|CAPENABLED {
1779		int sigaction(
1780		    int sig,
1781		    _In_opt_ _Contains_ptr_ const struct sigaction *act,
1782		    _Out_opt_ _Contains_ptr_ struct sigaction *oact
1783		);
1784	}
1785343	AUE_SIGPENDING	STD|CAPENABLED {
1786		int sigpending(
1787		    _In_ sigset_t *set
1788		);
1789	}
1790344	AUE_SIGRETURN	COMPAT4|CAPENABLED {
1791		int sigreturn(
1792		    _In_ _Contains_long_ptr_ const struct freebsd4_ucontext *sigcntxp
1793		);
1794	}
1795345	AUE_SIGWAIT	STD|CAPENABLED {
1796		int sigtimedwait(
1797		    _In_ const sigset_t *set,
1798		    _Out_opt_ _Contains_long_ptr_ struct siginfo *info,
1799		    _In_opt_ _Contains_long_timet_ const struct timespec *timeout
1800		);
1801	}
1802346	AUE_NULL	STD|CAPENABLED {
1803		int sigwaitinfo(
1804		    _In_ const sigset_t *set,
1805		    _Out_opt_ _Contains_long_ptr_ struct siginfo *info
1806		);
1807	}
1808347	AUE_ACL_GET_FILE	STD {
1809		int __acl_get_file(
1810		    _In_z_ const char *path,
1811		    acl_type_t type,
1812		    _Out_ struct acl *aclp
1813		);
1814	}
1815348	AUE_ACL_SET_FILE	STD {
1816		int __acl_set_file(
1817		    _In_z_ const char *path,
1818		    acl_type_t type,
1819		    _In_ struct acl *aclp
1820		);
1821	}
1822349	AUE_ACL_GET_FD	STD|CAPENABLED {
1823		int __acl_get_fd(
1824		    int filedes,
1825		    acl_type_t type,
1826		    _Out_ struct acl *aclp
1827		);
1828	}
1829350	AUE_ACL_SET_FD	STD|CAPENABLED {
1830		int __acl_set_fd(
1831		    int filedes,
1832		    acl_type_t type,
1833		    _In_ struct acl *aclp
1834		);
1835	}
1836351	AUE_ACL_DELETE_FILE	STD {
1837		int __acl_delete_file(
1838		    _In_z_ const char *path,
1839		    acl_type_t type
1840		);
1841	}
1842352	AUE_ACL_DELETE_FD	STD|CAPENABLED {
1843		int __acl_delete_fd(
1844		    int filedes,
1845		    acl_type_t type
1846		);
1847	}
1848353	AUE_ACL_CHECK_FILE	STD {
1849		int __acl_aclcheck_file(
1850		    _In_z_ const char *path,
1851		    acl_type_t type,
1852		    _In_ struct acl *aclp
1853		);
1854	}
1855354	AUE_ACL_CHECK_FD	STD|CAPENABLED {
1856		int __acl_aclcheck_fd(
1857		    int filedes,
1858		    acl_type_t type,
1859		    _In_ struct acl *aclp
1860		);
1861	}
1862355	AUE_EXTATTRCTL	STD {
1863		int extattrctl(
1864		    _In_z_ const char *path,
1865		    int cmd,
1866		    _In_z_opt_ const char *filename,
1867		    int attrnamespace,
1868		    _In_z_ const char *attrname
1869		);
1870	}
1871356	AUE_EXTATTR_SET_FILE	STD {
1872		ssize_t extattr_set_file(
1873		    _In_z_ const char *path,
1874		    int attrnamespace,
1875		    _In_z_ const char *attrname,
1876		    _In_reads_bytes_(nbytes) void *data,
1877		    size_t nbytes
1878		);
1879	}
1880357	AUE_EXTATTR_GET_FILE	STD {
1881		ssize_t extattr_get_file(
1882		    _In_z_ const char *path,
1883		    int attrnamespace,
1884		    _In_z_ const char *attrname,
1885		    _Out_writes_bytes_(nbytes) void *data,
1886		    size_t nbytes
1887		);
1888	}
1889358	AUE_EXTATTR_DELETE_FILE	STD {
1890		int extattr_delete_file(
1891		    _In_z_ const char *path,
1892		    int attrnamespace,
1893		    _In_z_ const char *attrname
1894		);
1895	}
1896359	AUE_AIO_WAITCOMPLETE	STD|CAPENABLED {
1897		ssize_t aio_waitcomplete(
1898		    _Outptr_result_maybenull_ struct aiocb **aiocbp,
1899		    _In_opt_ _Contains_long_timet_ struct timespec *timeout
1900		);
1901	}
1902360	AUE_GETRESUID	STD|CAPENABLED {
1903		int getresuid(
1904		    _Out_opt_ uid_t *ruid,
1905		    _Out_opt_ uid_t *euid,
1906		    _Out_opt_ uid_t *suid
1907		);
1908	}
1909361	AUE_GETRESGID	STD|CAPENABLED {
1910		int getresgid(
1911		    _Out_opt_ gid_t *rgid,
1912		    _Out_opt_ gid_t *egid,
1913		    _Out_opt_ gid_t *sgid
1914		);
1915	}
1916362	AUE_KQUEUE	STD|CAPENABLED {
1917		int kqueue(void);
1918	}
1919363	AUE_KEVENT	COMPAT11|CAPENABLED {
1920		int kevent(
1921		    int fd,
1922		    _In_reads_opt_(nchanges) _Contains_ptr_ const struct freebsd11_kevent *changelist,
1923		    int nchanges,
1924		    _Out_writes_opt_(nevents) _Contains_ptr_ struct freebsd11_kevent *eventlist,
1925		    int nevents,
1926		    _In_opt_ _Contains_long_timet_ const struct timespec *timeout
1927		);
1928	}
1929364	AUE_NULL	OBSOL	__cap_get_proc
1930365	AUE_NULL	OBSOL	__cap_set_proc
1931366	AUE_NULL	OBSOL	__cap_get_fd
1932367	AUE_NULL	OBSOL	__cap_get_file
1933368	AUE_NULL	OBSOL	__cap_set_fd
1934369	AUE_NULL	OBSOL	__cap_set_file
1935370	AUE_NULL	RESERVED
1936371	AUE_EXTATTR_SET_FD	STD|CAPENABLED {
1937		ssize_t extattr_set_fd(
1938		    int fd,
1939		    int attrnamespace,
1940		    _In_z_ const char *attrname,
1941		    _In_reads_bytes_(nbytes) void *data,
1942		    size_t nbytes
1943		);
1944	}
1945372	AUE_EXTATTR_GET_FD	STD|CAPENABLED {
1946		ssize_t extattr_get_fd(
1947		    int fd,
1948		    int attrnamespace,
1949		    _In_z_ const char *attrname,
1950		    _Out_writes_bytes_(nbytes) void *data,
1951		    size_t nbytes
1952		);
1953	}
1954373	AUE_EXTATTR_DELETE_FD	STD|CAPENABLED {
1955		int extattr_delete_fd(
1956		    int fd,
1957		    int attrnamespace,
1958		    _In_z_ const char *attrname
1959		);
1960	}
1961374	AUE_SETUGID	STD {
1962		int __setugid(
1963		    int flag
1964		);
1965	}
1966375	AUE_NULL	OBSOL	nfsclnt
1967376	AUE_EACCESS	STD {
1968		int eaccess(
1969		    _In_z_ const char *path,
1970		    int amode
1971		);
1972	}
1973377	AUE_NULL	NOSTD|NOTSTATIC {
1974		int afs3_syscall(
1975		    long syscall,
1976		    long parm1,
1977		    long parm2,
1978		    long parm3,
1979		    long parm4,
1980		    long parm5,
1981		    long parm6
1982		);
1983	}
1984378	AUE_NMOUNT	STD {
1985		int nmount(
1986		    _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
1987		    unsigned int iovcnt,
1988		    int flags
1989		);
1990	}
1991379	AUE_NULL	OBSOL	kse_exit
1992380	AUE_NULL	OBSOL	kse_wakeup
1993381	AUE_NULL	OBSOL	kse_create
1994382	AUE_NULL	OBSOL	kse_thr_interrupt
1995383	AUE_NULL	OBSOL	kse_release
1996384	AUE_NULL	STD|CAPENABLED {
1997		int __mac_get_proc(
1998		    _In_ _Contains_long_ptr_ struct mac *mac_p
1999		);
2000	}
2001385	AUE_NULL	STD|CAPENABLED {
2002		int __mac_set_proc(
2003		    _In_ _Contains_long_ptr_ struct mac *mac_p
2004		);
2005	}
2006386	AUE_NULL	STD|CAPENABLED {
2007		int __mac_get_fd(
2008		    int fd,
2009		    _In_ _Contains_long_ptr_ struct mac *mac_p
2010		);
2011	}
2012387	AUE_NULL	STD {
2013		int __mac_get_file(
2014		    _In_z_ const char *path_p,
2015		    _In_ _Contains_long_ptr_ struct mac *mac_p
2016		);
2017	}
2018388	AUE_NULL	STD|CAPENABLED {
2019		int __mac_set_fd(
2020		    int fd,
2021		    _In_ _Contains_long_ptr_ struct mac *mac_p
2022		);
2023	}
2024389	AUE_NULL	STD {
2025		int __mac_set_file(
2026		    _In_z_ const char *path_p,
2027		    _In_ _Contains_long_ptr_ struct mac *mac_p
2028		);
2029	}
2030390	AUE_NULL	STD {
2031		int kenv(
2032		    int what,
2033		    _In_z_opt_ const char *name,
2034		    _Inout_updates_opt_(len) char *value,
2035		    int len
2036		);
2037	}
2038391	AUE_LCHFLAGS	STD {
2039		int lchflags(
2040		    _In_z_ const char *path,
2041		    u_long flags
2042		);
2043	}
2044392	AUE_NULL	STD|CAPENABLED {
2045		int uuidgen(
2046		    _Out_writes_(count) struct uuid *store,
2047		    int count
2048		);
2049	}
2050393	AUE_SENDFILE	STD|CAPENABLED {
2051		int sendfile(
2052		    int fd,
2053		    int s,
2054		    off_t offset,
2055		    size_t nbytes,
2056		    _In_opt_ _Contains_ptr_ struct sf_hdtr *hdtr,
2057		    _Out_opt_ off_t *sbytes,
2058		    int flags
2059		);
2060	}
2061394	AUE_NULL	STD {
2062		int mac_syscall(
2063		    _In_z_ const char *policy,
2064		    int call,
2065		    _In_opt_ void *arg
2066		);
2067	}
2068395	AUE_GETFSSTAT	COMPAT11 {
2069		int getfsstat(
2070		    _Out_writes_bytes_opt_(bufsize) struct freebsd11_statfs *buf,
2071		    long bufsize,
2072		    int mode
2073		);
2074	}
2075396	AUE_STATFS	COMPAT11 {
2076		int statfs(
2077		    _In_z_ const char *path,
2078		    _Out_ struct freebsd11_statfs *buf
2079		);
2080	}
2081397	AUE_FSTATFS	COMPAT11|CAPENABLED {
2082		int fstatfs(
2083		    int fd,
2084		    _Out_ struct freebsd11_statfs *buf
2085		);
2086	}
2087398	AUE_FHSTATFS	COMPAT11 {
2088		int fhstatfs(
2089		    _In_ const struct fhandle *u_fhp,
2090		    _Out_ struct freebsd11_statfs *buf
2091		);
2092	}
2093399	AUE_NULL	RESERVED
2094400	AUE_SEMCLOSE	NOSTD {
2095		int ksem_close(
2096		    semid_t id
2097		);
2098	}
2099401	AUE_SEMPOST	NOSTD {
2100		int ksem_post(
2101		    semid_t id
2102		);
2103	}
2104402	AUE_SEMWAIT	NOSTD {
2105		int ksem_wait(
2106		    semid_t id
2107		);
2108	}
2109403	AUE_SEMTRYWAIT	NOSTD {
2110		int ksem_trywait(
2111		    semid_t id
2112		);
2113	}
2114404	AUE_SEMINIT	NOSTD {
2115		int ksem_init(
2116		    _Out_ semid_t *idp,
2117		    unsigned int value
2118		);
2119	}
2120405	AUE_SEMOPEN	NOSTD {
2121		int ksem_open(
2122		    _Out_ semid_t *idp,
2123		    _In_z_ const char *name,
2124		    int oflag,
2125		    mode_t mode,
2126		    unsigned int value
2127		);
2128	}
2129406	AUE_SEMUNLINK	NOSTD {
2130		int ksem_unlink(
2131		    _In_z_ const char *name
2132		);
2133	}
2134407	AUE_SEMGETVALUE	NOSTD {
2135		int ksem_getvalue(
2136		    semid_t id,
2137		    _Out_ int *val
2138		);
2139	}
2140408	AUE_SEMDESTROY	NOSTD {
2141		int ksem_destroy(
2142		    semid_t id
2143		);
2144	}
2145409	AUE_NULL	STD {
2146		int __mac_get_pid(
2147		    pid_t pid,
2148		    _In_ _Contains_long_ptr_ struct mac *mac_p
2149		);
2150	}
2151410	AUE_NULL	STD {
2152		int __mac_get_link(
2153		    _In_z_ const char *path_p,
2154		    _In_ _Contains_long_ptr_ struct mac *mac_p
2155		);
2156	}
2157411	AUE_NULL	STD {
2158		int __mac_set_link(
2159		    _In_z_ const char *path_p,
2160		    _In_ _Contains_long_ptr_ struct mac *mac_p
2161		);
2162	}
2163412	AUE_EXTATTR_SET_LINK	STD {
2164		ssize_t extattr_set_link(
2165		    _In_z_ const char *path,
2166		    int attrnamespace,
2167		    _In_z_ const char *attrname,
2168		    _In_reads_bytes_(nbytes) void *data,
2169		    size_t nbytes
2170		);
2171	}
2172413	AUE_EXTATTR_GET_LINK	STD {
2173		ssize_t extattr_get_link(
2174		    _In_z_ const char *path,
2175		    int attrnamespace,
2176		    _In_z_ const char *attrname,
2177		    _Out_writes_bytes_(nbytes) void *data,
2178		    size_t nbytes
2179		);
2180	}
2181414	AUE_EXTATTR_DELETE_LINK	STD {
2182		int extattr_delete_link(
2183		    _In_z_ const char *path,
2184		    int attrnamespace,
2185		    _In_z_ const char *attrname
2186		);
2187	}
2188415	AUE_NULL	STD {
2189		int __mac_execve(
2190		    _In_z_ const char *fname,
2191		    _In_ char **argv,
2192		    _In_ char **envv,
2193		    _In_ _Contains_long_ptr_ struct mac *mac_p
2194		);
2195	}
2196416	AUE_SIGACTION	STD|CAPENABLED {
2197		int sigaction(
2198		    int sig,
2199		    _In_opt_ _Contains_ptr_ const struct sigaction *act,
2200		    _Out_opt_ _Contains_ptr_ struct sigaction *oact
2201		);
2202	}
2203417	AUE_SIGRETURN	STD|CAPENABLED {
2204		int sigreturn(
2205		    _In_ _Contains_long_ptr_ const struct __ucontext *sigcntxp
2206		);
2207	}
2208418-420	AUE_NULL	RESERVED
2209421	AUE_NULL	STD|CAPENABLED {
2210		int getcontext(
2211		    _Out_ _Contains_long_ptr_ struct __ucontext *ucp
2212		);
2213	}
2214422	AUE_NULL	STD|CAPENABLED {
2215		int setcontext(
2216		    _In_ _Contains_long_ptr_ const struct __ucontext *ucp
2217		);
2218	}
2219423	AUE_NULL	STD {
2220		int swapcontext(
2221		    _Out_ _Contains_long_ptr_ struct __ucontext *oucp,
2222		    _In_ _Contains_long_ptr_ const struct __ucontext *ucp
2223		);
2224	}
2225424	AUE_SWAPOFF	STD {
2226		int swapoff(
2227		    _In_z_ const char *name
2228		);
2229	}
2230425	AUE_ACL_GET_LINK	STD {
2231		int __acl_get_link(
2232		    _In_z_ const char *path,
2233		    acl_type_t type,
2234		    _Out_ struct acl *aclp
2235		);
2236	}
2237426	AUE_ACL_SET_LINK	STD {
2238		int __acl_set_link(
2239		    _In_z_ const char *path,
2240		    acl_type_t type,
2241		    _In_ struct acl *aclp
2242		);
2243	}
2244427	AUE_ACL_DELETE_LINK	STD {
2245		int __acl_delete_link(
2246		    _In_z_ const char *path,
2247		    acl_type_t type
2248		);
2249	}
2250428	AUE_ACL_CHECK_LINK	STD {
2251		int __acl_aclcheck_link(
2252		    _In_z_ const char *path,
2253		    acl_type_t type,
2254		    _In_ struct acl *aclp
2255		);
2256	}
2257429	AUE_SIGWAIT	STD|CAPENABLED {
2258		int sigwait(
2259		    _In_ const sigset_t *set,
2260		    _Out_ int *sig
2261		);
2262	}
2263430	AUE_THR_CREATE	STD|CAPENABLED {
2264		int thr_create(
2265		    _In_ _Contains_long_ptr_ ucontext_t *ctx,
2266		    _Out_ long *id,
2267		    int flags
2268		);
2269	}
2270431	AUE_THR_EXIT	STD|CAPENABLED {
2271		void thr_exit(
2272		    _Out_opt_ long *state
2273		);
2274	}
2275432	AUE_NULL	STD|CAPENABLED {
2276		int thr_self(
2277		    _Out_ long *id
2278		);
2279	}
2280433	AUE_THR_KILL	STD|CAPENABLED {
2281		int thr_kill(
2282		    long id,
2283		    int sig
2284		);
2285	}
2286
2287434	AUE_NULL	COMPAT10 {
2288		int _umtx_lock(
2289		    _Inout_ struct umtx *umtx
2290		);
2291	}
2292
2293435	AUE_NULL	COMPAT10 {
2294		int _umtx_unlock(
2295		    _Inout_ struct umtx *umtx
2296		);
2297	}
2298
2299436	AUE_JAIL_ATTACH	STD {
2300		int jail_attach(
2301		    int jid
2302		);
2303	}
2304437	AUE_EXTATTR_LIST_FD	STD|CAPENABLED {
2305		ssize_t extattr_list_fd(
2306		    int fd,
2307		    int attrnamespace,
2308		    _Out_writes_bytes_opt_(nbytes) void *data,
2309		    size_t nbytes
2310		);
2311	}
2312438	AUE_EXTATTR_LIST_FILE	STD {
2313		ssize_t extattr_list_file(
2314		    _In_z_ const char *path,
2315		    int attrnamespace,
2316		    _Out_writes_bytes_opt_(nbytes) void *data,
2317		    size_t nbytes
2318		);
2319	}
2320439	AUE_EXTATTR_LIST_LINK	STD {
2321		ssize_t extattr_list_link(
2322		    _In_z_ const char *path,
2323		    int attrnamespace,
2324		    _Out_writes_bytes_opt_(nbytes)
2325		    void *data,
2326		    size_t nbytes
2327		);
2328	}
2329440	AUE_NULL	OBSOL	kse_switchin
2330441	AUE_SEMWAIT	NOSTD {
2331		int ksem_timedwait(
2332		    semid_t id,
2333		    _In_opt_ _Contains_long_timet_ const struct timespec *abstime
2334		);
2335	}
2336442	AUE_NULL	STD|CAPENABLED {
2337		int thr_suspend(
2338		    _In_opt_ _Contains_long_timet_ const struct timespec *timeout
2339		);
2340	}
2341443	AUE_NULL	STD|CAPENABLED {
2342		int thr_wake(
2343		    long id
2344		);
2345	}
2346444	AUE_MODUNLOAD	STD {
2347		int kldunloadf(
2348		    int fileid,
2349		    int flags
2350		);
2351	}
2352445	AUE_AUDIT	STD {
2353		int audit(
2354		    _In_reads_bytes_(length) const void *record,
2355		    u_int length
2356		);
2357	}
2358446	AUE_AUDITON	STD {
2359		int auditon(
2360		    int cmd,
2361		    _In_opt_ void *data,
2362		    u_int length
2363		);
2364	}
2365447	AUE_GETAUID	STD|CAPENABLED {
2366		int getauid(
2367		    _Out_ uid_t *auid
2368		);
2369	}
2370448	AUE_SETAUID	STD|CAPENABLED {
2371		int setauid(
2372		    _In_ uid_t *auid
2373		);
2374	}
2375449	AUE_GETAUDIT	STD|CAPENABLED {
2376		int getaudit(
2377		    _Out_ struct auditinfo *auditinfo
2378		);
2379	}
2380450	AUE_SETAUDIT	STD|CAPENABLED {
2381		int setaudit(
2382		    _In_ struct auditinfo *auditinfo
2383		);
2384	}
2385451	AUE_GETAUDIT_ADDR	STD|CAPENABLED {
2386		int getaudit_addr(
2387		    _Out_writes_bytes_(length) struct auditinfo_addr *auditinfo_addr,
2388		    u_int length
2389		);
2390	}
2391452	AUE_SETAUDIT_ADDR	STD|CAPENABLED {
2392		int setaudit_addr(
2393		    _In_reads_bytes_(length) struct auditinfo_addr *auditinfo_addr,
2394		    u_int length
2395		);
2396	}
2397453	AUE_AUDITCTL	STD {
2398		int auditctl(
2399		    _In_z_ const char *path
2400		);
2401	}
2402454	AUE_NULL	STD|CAPENABLED {
2403		int _umtx_op(
2404		    _Inout_ void *obj,
2405		    int op,
2406		    u_long val,
2407		    _In_ void *uaddr1,
2408		    _In_ void *uaddr2
2409		);
2410	}
2411455	AUE_THR_NEW	STD|CAPENABLED {
2412		int thr_new(
2413		    _In_ _Contains_long_ptr_ struct thr_param *param,
2414		    int param_size
2415		);
2416	}
2417456	AUE_NULL	STD|CAPENABLED {
2418		int sigqueue(
2419		    pid_t pid,
2420		    int signum,
2421		    _In_ void *value
2422		);
2423	}
2424
2425457	AUE_MQ_OPEN	NOSTD {
2426		int kmq_open(
2427		    _In_z_ const char *path,
2428		    int flags,
2429		    mode_t mode,
2430		    _In_opt_ _Contains_long_ const struct mq_attr *attr
2431		);
2432	}
2433458	AUE_MQ_SETATTR	NOSTD|CAPENABLED {
2434		int kmq_setattr(
2435		    int mqd,
2436		    _In_opt_ _Contains_long_ const struct mq_attr *attr,
2437		    _Out_opt_ _Contains_long_ struct mq_attr *oattr
2438		);
2439	}
2440459	AUE_MQ_TIMEDRECEIVE	NOSTD|CAPENABLED {
2441		int kmq_timedreceive(
2442		    int mqd,
2443		    _Out_writes_bytes_(msg_len) char *msg_ptr,
2444		    size_t msg_len,
2445		    _Out_opt_ unsigned *msg_prio,
2446		    _In_opt_ _Contains_long_timet_ const struct timespec *abs_timeout
2447		);
2448	}
2449460	AUE_MQ_TIMEDSEND	NOSTD|CAPENABLED {
2450		int kmq_timedsend(
2451		    int mqd,
2452		    _In_reads_bytes_(msg_len) const char *msg_ptr,
2453		    size_t msg_len,
2454		    unsigned msg_prio,
2455		    _In_opt_ _Contains_long_timet_ const struct timespec *abs_timeout
2456		);
2457	}
2458461	AUE_MQ_NOTIFY	NOSTD|CAPENABLED {
2459		int kmq_notify(
2460		    int mqd,
2461		    _In_opt_ _Contains_long_ptr_ const struct sigevent *sigev
2462		);
2463	}
2464462	AUE_MQ_UNLINK	NOSTD {
2465		int kmq_unlink(
2466		    _In_z_ const char *path
2467		);
2468	}
2469463	AUE_NULL	STD|CAPENABLED {
2470		void abort2(
2471		    _In_z_ const char *why,
2472		    int nargs,
2473		    _In_reads_(nargs) void **args
2474		);
2475	}
2476464	AUE_NULL	STD|CAPENABLED {
2477		int thr_set_name(
2478		    long id,
2479		    _In_z_ const char *name
2480		);
2481	}
2482465	AUE_AIO_FSYNC	STD|CAPENABLED {
2483		int aio_fsync(
2484		    int op,
2485		    _In_ _Contains_long_ptr_ struct aiocb *aiocbp
2486		);
2487	}
2488466	AUE_RTPRIO	STD|CAPENABLED {
2489		int rtprio_thread(
2490		    int function,
2491		    lwpid_t lwpid,
2492		    _Inout_ struct rtprio *rtp
2493		);
2494	}
2495467-470	AUE_NULL	RESERVED
2496471	AUE_SCTP_PEELOFF	NOSTD|CAPENABLED {
2497		int sctp_peeloff(
2498		    int sd,
2499		    uint32_t name
2500		);
2501	}
2502472	AUE_SCTP_GENERIC_SENDMSG	NOSTD|CAPENABLED {
2503		int sctp_generic_sendmsg(
2504		    int sd,
2505		    _In_reads_bytes_(mlen) void *msg,
2506		    int mlen,
2507		    _In_reads_bytes_(tolen) const struct sockaddr *to,
2508		    __socklen_t tolen,
2509		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
2510		    int flags
2511		);
2512	}
2513473	AUE_SCTP_GENERIC_SENDMSG_IOV	NOSTD|CAPENABLED {
2514		int sctp_generic_sendmsg_iov(
2515		    int sd,
2516		    _In_reads_(iovlen) _Contains_long_ptr_ struct iovec *iov,
2517		    int iovlen,
2518		    _In_reads_bytes_(tolen) const struct sockaddr *to,
2519		    __socklen_t tolen,
2520		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
2521		    int flags
2522		);
2523	}
2524474	AUE_SCTP_GENERIC_RECVMSG	NOSTD|CAPENABLED {
2525		int sctp_generic_recvmsg(
2526		    int sd,
2527		    _In_reads_(iovlen) _Contains_long_ptr_ struct iovec *iov,
2528		    int iovlen,
2529		    _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
2530		    _Out_ __socklen_t *fromlenaddr,
2531		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
2532		    _Out_opt_ int *msg_flags
2533		);
2534	}
2535475	AUE_PREAD	STD|CAPENABLED {
2536		ssize_t pread(
2537		    int fd,
2538		    _Out_writes_bytes_(nbyte) void *buf,
2539		    size_t nbyte,
2540		    off_t offset
2541		);
2542	}
2543476	AUE_PWRITE	STD|CAPENABLED {
2544		ssize_t pwrite(
2545		    int fd,
2546		    _In_reads_bytes_(nbyte) const void *buf,
2547		    size_t nbyte,
2548		    off_t offset
2549		);
2550	}
2551477	AUE_MMAP	STD|CAPENABLED {
2552		void *mmap(
2553		    _In_ void *addr,
2554		    size_t len,
2555		    int prot,
2556		    int flags,
2557		    int fd,
2558		    off_t pos
2559		);
2560	}
2561478	AUE_LSEEK	STD|CAPENABLED {
2562		off_t lseek(
2563		    int fd,
2564		    off_t offset,
2565		    int whence
2566		);
2567	}
2568479	AUE_TRUNCATE	STD {
2569		int truncate(
2570		    _In_z_ const char *path,
2571		    off_t length
2572		);
2573	}
2574480	AUE_FTRUNCATE	STD|CAPENABLED {
2575		int ftruncate(
2576		    int fd,
2577		    off_t length
2578		);
2579	}
2580481	AUE_THR_KILL2	STD {
2581		int thr_kill2(
2582		    pid_t pid,
2583		    long id,
2584		    int sig
2585		);
2586	}
2587482	AUE_SHMOPEN	COMPAT12|CAPENABLED {
2588		int shm_open(
2589		    _In_z_ const char *path,
2590		    int flags,
2591		    mode_t mode
2592		);
2593	}
2594483	AUE_SHMUNLINK	STD {
2595		int shm_unlink(
2596		    _In_z_ const char *path
2597		);
2598	}
2599484	AUE_NULL	STD {
2600		int cpuset(
2601		    _Out_ cpusetid_t *setid
2602		);
2603	}
2604485	AUE_NULL	STD {
2605		int cpuset_setid(
2606		    cpuwhich_t which,
2607		    id_t id,
2608		    cpusetid_t setid
2609		);
2610	}
2611486	AUE_NULL	STD {
2612		int cpuset_getid(
2613		    cpulevel_t level,
2614		    cpuwhich_t which,
2615		    id_t id,
2616		    _Out_ cpusetid_t *setid
2617		);
2618	}
2619487	AUE_NULL	STD|CAPENABLED {
2620		int cpuset_getaffinity(
2621		    cpulevel_t level,
2622		    cpuwhich_t which,
2623		    id_t id,
2624		    size_t cpusetsize,
2625		    _Out_ cpuset_t *mask
2626		);
2627	}
2628488	AUE_NULL	STD|CAPENABLED {
2629		int cpuset_setaffinity(
2630		    cpulevel_t level,
2631		    cpuwhich_t which,
2632		    id_t id,
2633		    size_t cpusetsize,
2634		    _Out_ const cpuset_t *mask
2635		);
2636	}
2637489	AUE_FACCESSAT	STD|CAPENABLED {
2638		int faccessat(
2639		    int fd,
2640		    _In_z_ const char *path,
2641		    int amode,
2642		    int flag
2643		);
2644	}
2645490	AUE_FCHMODAT	STD|CAPENABLED {
2646		int fchmodat(
2647		    int fd,
2648		    _In_z_ const char *path,
2649		    mode_t mode,
2650		    int flag
2651		);
2652	}
2653491	AUE_FCHOWNAT	STD|CAPENABLED {
2654		int fchownat(
2655		    int fd,
2656		    _In_z_ const char *path,
2657		    uid_t uid,
2658		    gid_t gid,
2659		    int flag
2660		);
2661	}
2662492	AUE_FEXECVE	STD|CAPENABLED {
2663		int fexecve(
2664		    int fd,
2665		    _In_ char **argv,
2666		    _In_ char **envv
2667		);
2668	}
2669493	AUE_FSTATAT	COMPAT11|CAPENABLED {
2670		int fstatat(
2671		    int fd,
2672		    _In_z_ const char *path,
2673		    _Out_ _Contains_long_timet_ struct freebsd11_stat *buf,
2674		    int flag
2675		);
2676	}
2677494	AUE_FUTIMESAT	STD|CAPENABLED {
2678		int futimesat(
2679		    int fd,
2680		    _In_z_ const char *path,
2681		    _In_reads_(2) _Contains_long_timet_ const struct timeval *times
2682		);
2683	}
2684495	AUE_LINKAT	STD|CAPENABLED {
2685		int linkat(
2686		    int fd1,
2687		    _In_z_ const char *path1,
2688		    int fd2,
2689		    _In_z_ const char *path2,
2690		    int flag
2691		);
2692	}
2693496	AUE_MKDIRAT	STD|CAPENABLED {
2694		int mkdirat(
2695		    int fd,
2696		    _In_z_ const char *path,
2697		    mode_t mode
2698		);
2699	}
2700497	AUE_MKFIFOAT	STD|CAPENABLED {
2701		int mkfifoat(
2702		    int fd,
2703		    _In_z_ const char *path,
2704		    mode_t mode
2705		);
2706	}
2707498	AUE_MKNODAT	COMPAT11|CAPENABLED {
2708		int mknodat(
2709		    int fd,
2710		    _In_z_ const char *path,
2711		    mode_t mode,
2712		    uint32_t dev
2713		);
2714	}
2715; XXX: see the comment for open
2716499	AUE_OPENAT_RWTC	STD|CAPENABLED {
2717		int openat(
2718		    int fd,
2719		    _In_z_ const char *path,
2720		    int flag,
2721		    mode_t mode
2722		);
2723	}
2724500	AUE_READLINKAT	STD|CAPENABLED {
2725		ssize_t readlinkat(
2726		    int fd,
2727		    _In_z_ const char *path,
2728		    _Out_writes_bytes_(bufsize) char *buf,
2729		    size_t bufsize
2730		);
2731	}
2732501	AUE_RENAMEAT	STD|CAPENABLED {
2733		int renameat(
2734		    int oldfd,
2735		    _In_z_ const char *old,
2736		    int newfd,
2737		    _In_z_ const char *new
2738		);
2739	}
2740502	AUE_SYMLINKAT	STD|CAPENABLED {
2741		int symlinkat(
2742		    _In_z_ const char *path1,
2743		    int fd,
2744		    _In_z_ const char *path2
2745		);
2746	}
2747503	AUE_UNLINKAT	STD|CAPENABLED {
2748		int unlinkat(
2749		    int fd,
2750		    _In_z_ const char *path,
2751		    int flag
2752		);
2753	}
2754504	AUE_POSIX_OPENPT	STD {
2755		int posix_openpt(
2756		    int flags
2757		);
2758	}
2759; 505 is initialised by the kgssapi code, if present.
2760505	AUE_NULL	NOSTD {
2761		int gssd_syscall(
2762		    _In_z_ const char *path
2763		);
2764	}
2765506	AUE_JAIL_GET	STD {
2766		int jail_get(
2767		    _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
2768		    unsigned int iovcnt,
2769		    int flags
2770		);
2771	}
2772507	AUE_JAIL_SET	STD {
2773		int jail_set(
2774		    _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
2775		    unsigned int iovcnt,
2776		    int flags
2777		);
2778	}
2779508	AUE_JAIL_REMOVE	STD {
2780		int jail_remove(
2781		    int jid
2782		);
2783	}
2784509	AUE_CLOSEFROM	COMPAT12|CAPENABLED {
2785		int closefrom(
2786		    int lowfd
2787		);
2788	}
2789510	AUE_SEMCTL	NOSTD {
2790		int __semctl(
2791		    int semid,
2792		    int semnum,
2793		    int cmd,
2794		    _Inout_ _Contains_ptr_ union semun *arg
2795		);
2796	}
2797511	AUE_MSGCTL	NOSTD {
2798		int msgctl(
2799		    int msqid,
2800		    int cmd,
2801		    _Inout_opt_ _Contains_long_ptr_ struct msqid_ds *buf
2802		);
2803	}
2804512	AUE_SHMCTL	NOSTD {
2805		int shmctl(
2806		    int shmid,
2807		    int cmd,
2808		    _Inout_opt_ _Contains_long_ struct shmid_ds *buf
2809		);
2810	}
2811513	AUE_LPATHCONF	STD {
2812		int lpathconf(
2813		    _In_z_ const char *path,
2814		    int name
2815		);
2816	}
2817514	AUE_NULL	OBSOL	cap_new
2818515	AUE_CAP_RIGHTS_GET	STD|CAPENABLED {
2819		int __cap_rights_get(
2820		    int version,
2821		    int fd,
2822		    _Out_ cap_rights_t *rightsp
2823		);
2824	}
2825516	AUE_CAP_ENTER	STD|CAPENABLED {
2826		int cap_enter(void);
2827	}
2828517	AUE_CAP_GETMODE	STD|CAPENABLED {
2829		int cap_getmode(
2830		    _Out_ u_int *modep
2831		);
2832	}
2833518	AUE_PDFORK	STD|CAPENABLED {
2834		int pdfork(
2835		    _Out_ int *fdp,
2836		    int flags
2837		);
2838	}
2839519	AUE_PDKILL	STD|CAPENABLED {
2840		int pdkill(
2841		    int fd,
2842		    int signum
2843		);
2844	}
2845520	AUE_PDGETPID	STD|CAPENABLED {
2846		int pdgetpid(
2847		    int fd,
2848		    _Out_ pid_t *pidp
2849		);
2850	}
2851521	AUE_NULL	RESERVED
2852522	AUE_SELECT	STD|CAPENABLED {
2853		int pselect(
2854		    int nd,
2855		    _Inout_opt_ fd_set *in,
2856		    _Inout_opt_ fd_set *ou,
2857		    _Inout_opt_ fd_set *ex,
2858		    _In_opt_ _Contains_long_timet_ const struct timespec *ts,
2859		    _In_opt_ const sigset_t *sm
2860		);
2861	}
2862523	AUE_GETLOGINCLASS	STD|CAPENABLED {
2863		int getloginclass(
2864		    _Out_writes_z_(namelen) char *namebuf,
2865		    size_t namelen
2866		);
2867	}
2868524	AUE_SETLOGINCLASS	STD {
2869		int setloginclass(
2870		    _In_z_ const char *namebuf
2871		);
2872	}
2873525	AUE_NULL	STD {
2874		int rctl_get_racct(
2875		    _In_reads_bytes_(inbuflen) const void *inbufp,
2876		    size_t inbuflen,
2877		    _Out_writes_bytes_(outbuflen) void *outbufp,
2878		    size_t outbuflen
2879		);
2880	}
2881526	AUE_NULL	STD {
2882		int rctl_get_rules(
2883		    _In_reads_bytes_(inbuflen) const void *inbufp,
2884		    size_t inbuflen,
2885		    _Out_writes_bytes_(outbuflen) void *outbufp,
2886		    size_t outbuflen
2887		);
2888	}
2889527	AUE_NULL	STD {
2890		int rctl_get_limits(
2891		    _In_reads_bytes_(inbuflen) const void *inbufp,
2892		    size_t inbuflen,
2893		    _Out_writes_bytes_(outbuflen) void *outbufp,
2894		    size_t outbuflen
2895		);
2896	}
2897528	AUE_NULL	STD {
2898		int rctl_add_rule(
2899		    _In_reads_bytes_(inbuflen) const void *inbufp,
2900		    size_t inbuflen,
2901		    _Out_writes_bytes_(outbuflen) void *outbufp,
2902		    size_t outbuflen
2903		);
2904	}
2905529	AUE_NULL	STD {
2906		int rctl_remove_rule(
2907		    _In_reads_bytes_(inbuflen) const void *inbufp,
2908		    size_t inbuflen,
2909		    _Out_writes_bytes_(outbuflen) void *outbufp,
2910		    size_t outbuflen
2911		);
2912	}
2913530	AUE_POSIX_FALLOCATE	STD|CAPENABLED {
2914		int posix_fallocate(
2915		    int fd,
2916		    off_t offset,
2917		    off_t len
2918		);
2919	}
2920531	AUE_POSIX_FADVISE	STD {
2921		int posix_fadvise(
2922		    int fd,
2923		    off_t offset,
2924		    off_t len,
2925		    int advice
2926		);
2927	}
2928532	AUE_WAIT6	STD {
2929		int wait6(
2930		    idtype_t idtype,
2931		    id_t id,
2932		    _Out_opt_ int *status,
2933		    int options,
2934		    _Out_opt_ _Contains_long_ struct __wrusage *wrusage,
2935		    _Out_opt_ _Contains_long_ptr_ struct siginfo *info
2936		);
2937	}
2938533	AUE_CAP_RIGHTS_LIMIT	STD|CAPENABLED {
2939		int cap_rights_limit(
2940		    int fd,
2941		    _In_ cap_rights_t *rightsp
2942		);
2943	}
2944534	AUE_CAP_IOCTLS_LIMIT	STD|CAPENABLED {
2945		int cap_ioctls_limit(
2946		    int fd,
2947		    _In_reads_(ncmds) const u_long *cmds,
2948		    size_t ncmds
2949		);
2950	}
2951535	AUE_CAP_IOCTLS_GET	STD|CAPENABLED {
2952		ssize_t cap_ioctls_get(
2953		    int fd,
2954		    _Out_writes_(maxcmds) u_long *cmds,
2955		    size_t maxcmds
2956		);
2957	}
2958536	AUE_CAP_FCNTLS_LIMIT	STD|CAPENABLED {
2959		int cap_fcntls_limit(
2960		    int fd,
2961		    uint32_t fcntlrights
2962		);
2963	}
2964537	AUE_CAP_FCNTLS_GET	STD|CAPENABLED {
2965		int cap_fcntls_get(
2966		    int fd,
2967		    _Out_ uint32_t *fcntlrightsp
2968		);
2969	}
2970538	AUE_BINDAT	STD|CAPENABLED {
2971		int bindat(
2972		    int fd,
2973		    int s,
2974		    _In_reads_bytes_(namelen) const struct sockaddr *name,
2975		    __socklen_t namelen
2976		);
2977	}
2978539	AUE_CONNECTAT	STD|CAPENABLED {
2979		int connectat(
2980		    int fd,
2981		    int s,
2982		    _In_reads_bytes_(namelen) const struct sockaddr *name,
2983		    __socklen_t namelen
2984		);
2985	}
2986540	AUE_CHFLAGSAT	STD|CAPENABLED {
2987		int chflagsat(
2988		    int fd,
2989		    _In_z_ const char *path,
2990		    u_long flags,
2991		    int atflag
2992		);
2993	}
2994541	AUE_ACCEPT	STD|CAPENABLED {
2995		int accept4(
2996		    int s,
2997		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
2998		    _Inout_opt_ __socklen_t *anamelen,
2999		    int flags
3000		);
3001	}
3002542	AUE_PIPE	STD|CAPENABLED {
3003		int pipe2(
3004		    _Out_writes_(2) int *fildes,
3005		    int flags
3006		);
3007	}
3008543	AUE_AIO_MLOCK	STD {
3009		int aio_mlock(
3010		    _In_ _Contains_long_ptr_ struct aiocb *aiocbp
3011		);
3012	}
3013544	AUE_PROCCTL	STD {
3014		int procctl(
3015		    idtype_t idtype,
3016		    id_t id,
3017		    int com,
3018		    _In_opt_ void *data
3019		);
3020	}
3021545	AUE_POLL	STD|CAPENABLED {
3022		int ppoll(
3023		    _Inout_updates_(nfds) struct pollfd *fds,
3024		    u_int nfds,
3025		    _In_opt_ _Contains_long_timet_ const struct timespec *ts,
3026		    _In_opt_ const sigset_t *set
3027		);
3028	}
3029546	AUE_FUTIMES	STD|CAPENABLED {
3030		int futimens(
3031		    int fd,
3032		    _In_reads_(2) _Contains_long_timet_ const struct timespec *times
3033		);
3034	}
3035547	AUE_FUTIMESAT	STD|CAPENABLED {
3036		int utimensat(
3037		    int fd,
3038		    _In_z_ const char *path,
3039		    _In_reads_(2) _Contains_long_timet_ const struct timespec *times,
3040		    int flag
3041		);
3042	}
3043548	AUE_NULL	OBSOL	numa_getaffinity
3044549	AUE_NULL	OBSOL	numa_setaffinity
3045550	AUE_FSYNC	STD|CAPENABLED {
3046		int fdatasync(
3047		    int fd
3048		);
3049	}
3050551	AUE_FSTAT	STD|CAPENABLED {
3051		int fstat(
3052		    int fd,
3053		    _Out_ _Contains_long_timet_ struct stat *sb
3054		);
3055	}
3056552	AUE_FSTATAT	STD|CAPENABLED {
3057		int fstatat(
3058		    int fd,
3059		    _In_z_ const char *path,
3060		    _Out_ _Contains_long_timet_ struct stat *buf,
3061		    int flag
3062		);
3063	}
3064553	AUE_FHSTAT	STD {
3065		int fhstat(
3066		    _In_ const struct fhandle *u_fhp,
3067		    _Out_ _Contains_long_timet_ struct stat *sb
3068		);
3069	}
3070554	AUE_GETDIRENTRIES STD|CAPENABLED {
3071		ssize_t getdirentries(
3072		    int fd,
3073		    _Out_writes_bytes_(count) char *buf,
3074		    size_t count,
3075		    _Out_ off_t *basep
3076		);
3077	}
3078555	AUE_STATFS	STD {
3079		int statfs(
3080		    _In_z_ const char *path,
3081		    _Out_ struct statfs *buf
3082		);
3083	}
3084556	AUE_FSTATFS	STD|CAPENABLED {
3085		int fstatfs(
3086		    int fd,
3087		    _Out_ struct statfs *buf
3088		);
3089	}
3090557	AUE_GETFSSTAT	STD {
3091		int getfsstat(
3092		    _Out_writes_bytes_opt_(bufsize) struct statfs *buf,
3093		    long bufsize,
3094		    int mode
3095		);
3096	}
3097558	AUE_FHSTATFS	STD {
3098		int fhstatfs(
3099		    _In_ const struct fhandle *u_fhp,
3100		    _Out_ struct statfs *buf
3101		);
3102	}
3103559	AUE_MKNODAT	STD|CAPENABLED {
3104		int mknodat(
3105		    int fd,
3106		    _In_z_ const char *path,
3107		    mode_t mode,
3108		    dev_t dev
3109		);
3110	}
3111560	AUE_KEVENT	STD|CAPENABLED {
3112		int kevent(
3113		    int fd,
3114		    _In_reads_opt_(nchanges) _Contains_ptr_ const struct kevent *changelist,
3115		    int nchanges,
3116		    _Out_writes_opt_(nevents) _Contains_ptr_ struct kevent *eventlist,
3117		    int nevents,
3118		    _In_opt_ _Contains_long_timet_ const struct timespec *timeout
3119		);
3120	}
3121561	AUE_NULL	STD|CAPENABLED {
3122		int cpuset_getdomain(
3123		    cpulevel_t level,
3124		    cpuwhich_t which,
3125		    id_t id,
3126		    size_t domainsetsize,
3127		    _Out_writes_bytes_(domainsetsize) domainset_t *mask,
3128		    _Out_ int *policy
3129		);
3130	}
3131562	AUE_NULL	STD|CAPENABLED {
3132		int cpuset_setdomain(
3133		    cpulevel_t level,
3134		    cpuwhich_t which,
3135		    id_t id,
3136		    size_t domainsetsize,
3137		    _In_ domainset_t *mask,
3138		    int policy
3139		);
3140	}
3141563	AUE_NULL	STD|CAPENABLED {
3142		int getrandom(
3143		    _Out_writes_bytes_(buflen) void *buf,
3144		    size_t buflen,
3145		    unsigned int flags
3146		);
3147	}
3148564	AUE_NULL	STD {
3149		int getfhat(
3150		    int fd,
3151		    _In_z_ char *path,
3152		    _Out_ struct fhandle *fhp,
3153		    int flags
3154		);
3155	}
3156565	AUE_NULL	STD {
3157		int fhlink(
3158		    _In_ struct fhandle *fhp,
3159		    _In_z_ const char *to
3160		);
3161	}
3162566	AUE_NULL	STD {
3163		int fhlinkat(
3164		    _In_ struct fhandle *fhp,
3165		    int tofd,
3166		    _In_z_ const char *to,
3167		);
3168	}
3169567	AUE_NULL	STD {
3170		int fhreadlink(
3171		    _In_ struct fhandle *fhp,
3172		    _Out_writes_(bufsize) char *buf,
3173		    size_t bufsize
3174		);
3175	}
3176568	AUE_UNLINKAT	STD|CAPENABLED {
3177		int funlinkat(
3178		    int dfd,
3179		    _In_z_ const char *path,
3180		    int fd,
3181		    int flag
3182		);
3183	}
3184569	AUE_NULL	STD|CAPENABLED {
3185		ssize_t copy_file_range(
3186		    int infd,
3187		    _Inout_opt_ off_t *inoffp,
3188		    int outfd,
3189		    _Inout_opt_ off_t *outoffp,
3190		    size_t len,
3191		    unsigned int flags
3192		);
3193	}
3194570	AUE_SYSCTL	STD|CAPENABLED {
3195		int __sysctlbyname(
3196		    _In_reads_(namelen) const char *name,
3197		    size_t namelen,
3198		    _Out_writes_bytes_opt_(*oldlenp) void *old,
3199		    _Inout_opt_ size_t *oldlenp,
3200		    _In_reads_bytes_opt_(newlen) void *new,
3201		    size_t newlen
3202		);
3203	}
3204571	AUE_SHMOPEN	STD|CAPENABLED {
3205		int shm_open2(
3206		    _In_z_ const char *path,
3207		    int flags,
3208		    mode_t mode,
3209		    int shmflags,
3210		    _In_z_ const char *name
3211		);
3212	}
3213572	AUE_SHMRENAME	STD {
3214		int shm_rename(
3215		    _In_z_ const char *path_from,
3216		    _In_z_ const char *path_to,
3217		    int flags
3218		);
3219	}
3220573	AUE_NULL	STD|CAPENABLED {
3221		int sigfastblock(
3222		    int cmd,
3223		    _Inout_opt_ uint32_t *ptr
3224		);
3225	}
3226574	AUE_REALPATHAT	STD {
3227		int __realpathat(
3228		    int fd,
3229		    _In_z_ const char *path,
3230		    _Out_writes_z_(size) char *buf,
3231		    size_t size,
3232		    int flags
3233		);
3234	}
3235575	AUE_CLOSERANGE	STD|CAPENABLED {
3236		int close_range(
3237		    u_int lowfd,
3238		    u_int highfd,
3239		    int flags
3240		);
3241	}
3242; 576 is initialised by the krpc code, if present.
3243576	AUE_NULL	NOSTD {
3244		int rpctls_syscall(
3245		    int op,
3246		    _In_z_ const char *path
3247		);
3248	}
3249577	AUE_SPECIALFD	STD|CAPENABLED {
3250		int __specialfd(
3251		    int type,
3252		    _In_reads_bytes_(len) const void *req,
3253		    size_t len
3254		);
3255	}
3256578	AUE_AIO_WRITEV	STD|CAPENABLED {
3257		int aio_writev(
3258		    _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp
3259		);
3260	}
3261579	AUE_AIO_READV	STD|CAPENABLED {
3262		int aio_readv(
3263		    _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp
3264		);
3265	}
3266580	AUE_FSPACECTL	STD|CAPENABLED {
3267		int fspacectl(
3268		    int fd,
3269		    int cmd,
3270		    _In_ const struct spacectl_range *rqsr,
3271		    int flags,
3272		    _Out_opt_ struct spacectl_range *rmsr,
3273		);
3274	}
3275581	AUE_NULL	STD|CAPENABLED {
3276		int sched_getcpu(void);
3277	}
3278
3279; Please copy any additions and changes to the following compatability tables:
3280; sys/compat/freebsd32/syscalls.master
3281; vim: syntax=off
3282