xref: /freebsd/sys/kern/syscalls.master (revision cab6a39d7b343596a5823e65c0f7b426551ec22d)
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; Please copy any additions and changes to the following compatability tables:
79; sys/compat/freebsd32/syscalls.master
80
81; #ifdef's, etc. may be included, and are copied to the output files.
82
83#include <sys/param.h>
84#include <sys/sysent.h>
85#include <sys/sysproto.h>
86
870	AUE_NULL	STD {
88		int nosys(void);
89	} syscall nosys_args int
901	AUE_EXIT	STD|CAPENABLED {
91		void sys_exit(
92		    int rval
93		);
94	} exit sys_exit_args void
952	AUE_FORK	STD|CAPENABLED {
96		int fork(void);
97	}
983	AUE_READ	STD|CAPENABLED {
99		ssize_t read(
100		    int fd,
101		    _Out_writes_bytes_(nbyte) void *buf,
102		    size_t nbyte
103		);
104	}
1054	AUE_WRITE	STD|CAPENABLED {
106		ssize_t write(
107		    int fd,
108		    _In_reads_bytes_(nbyte) const void *buf,
109		    size_t nbyte
110		);
111	}
1125	AUE_OPEN_RWTC	STD {
113		int open(
114		    _In_z_ const char *path,
115		    int flags,
116		    mode_t mode
117		);
118	}
119; XXX should be		{ int open(const char *path, int flags, ...); }
120; but we're not ready for varargs.
1216	AUE_CLOSE	STD|CAPENABLED {
122		int close(
123		    int fd
124		);
125	}
1267	AUE_WAIT4	STD {
127		int wait4(
128		    int pid,
129		    _Out_opt_ int *status,
130		    int options,
131		    _Out_opt_ struct rusage *rusage
132		);
133	}
1348	AUE_CREAT	COMPAT {
135		int creat(
136		    _In_z_ const char *path,
137		    int mode
138		);
139	}
1409	AUE_LINK	STD {
141		int link(
142		    _In_z_ const char *path,
143		    _In_z_ const char *link
144		);
145	}
14610	AUE_UNLINK	STD {
147		int unlink(
148		    _In_z_ const char *path
149		);
150	}
15111	AUE_NULL	OBSOL	execv
15212	AUE_CHDIR	STD {
153		int chdir(
154		    _In_z_ const char *path
155		);
156	}
15713	AUE_FCHDIR	STD {
158		int fchdir(
159		    int fd
160		);
161	}
16214	AUE_MKNOD	COMPAT11 {
163		int mknod(
164		    _In_z_ const char *path,
165		    int mode,
166		    uint32_t dev
167		);
168	}
16915	AUE_CHMOD	STD {
170		int chmod(
171		    _In_z_ const char *path,
172		    mode_t mode
173		);
174	}
17516	AUE_CHOWN	STD {
176		int chown(
177		    _In_z_ const char *path,
178		    int uid,
179		    int gid
180		);
181	}
18217	AUE_NULL	STD|CAPENABLED {
183		void *break(
184		    _In_ char *nsize
185		);
186	}
18718	AUE_GETFSSTAT	COMPAT4 {
188		int getfsstat(
189		    _Out_writes_bytes_opt_(bufsize) struct ostatfs *buf,
190		    long bufsize,
191		    int mode
192		);
193	}
19419	AUE_LSEEK	COMPAT|CAPENABLED {
195		long lseek(
196		    int fd,
197		    long offset,
198		    int whence
199		);
200	}
20120	AUE_GETPID	STD|CAPENABLED {
202		pid_t getpid(void);
203	}
20421	AUE_MOUNT	STD {
205		int mount(
206		    _In_z_ const char *type,
207		    _In_z_ const char *path,
208		    int flags,
209		    _In_opt_ void *data
210		);
211	}
21222	AUE_UMOUNT	STD {
213		int unmount(
214		    _In_z_ const char *path,
215		    int flags
216		);
217	}
21823	AUE_SETUID	STD|CAPENABLED {
219		int setuid(
220		    uid_t uid
221		);
222	}
22324	AUE_GETUID	STD|CAPENABLED {
224		uid_t getuid(void);
225	}
22625	AUE_GETEUID	STD|CAPENABLED {
227		uid_t geteuid(void);
228	}
22926	AUE_PTRACE	STD {
230		int ptrace(
231		    int req,
232		    pid_t pid,
233		    _Inout_opt_ caddr_t addr,
234		    int data
235		);
236	}
23727	AUE_RECVMSG	STD|CAPENABLED {
238		int recvmsg(
239		    int s,
240		    _Inout_ struct msghdr *msg,
241		    int flags
242		);
243	}
24428	AUE_SENDMSG	STD|CAPENABLED {
245		int sendmsg(
246		    int s,
247		    _In_ struct msghdr *msg,
248		    int flags
249		);
250	}
25129	AUE_RECVFROM	STD|CAPENABLED {
252		int recvfrom(
253		    int s,
254		    _Out_writes_bytes_(len) void *buf,
255		    size_t len,
256		    int flags,
257		    _Out_writes_bytes_opt_(*fromlenaddr) struct sockaddr *from,
258		    _Inout_opt_ __socklen_t *fromlenaddr
259		);
260	}
26130	AUE_ACCEPT	STD|CAPENABLED {
262		int accept(
263		    int s,
264		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
265		    _Inout_opt_ __socklen_t *anamelen
266		);
267	}
26831	AUE_GETPEERNAME	STD|CAPENABLED {
269		int getpeername(
270		    int fdes,
271		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
272		    _Inout_opt_ __socklen_t *alen
273		);
274	}
27532	AUE_GETSOCKNAME	STD|CAPENABLED {
276		int getsockname(
277		    int fdes,
278		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
279		    _Inout_ __socklen_t *alen
280		);
281	}
28233	AUE_ACCESS	STD {
283		int access(
284		    _In_z_ const char *path,
285		    int amode
286		);
287	}
28834	AUE_CHFLAGS	STD {
289		int chflags(
290		    _In_z_ const char *path,
291		    u_long flags
292		);
293	}
29435	AUE_FCHFLAGS	STD|CAPENABLED {
295		int fchflags(
296		    int fd,
297		    u_long flags
298		);
299	}
30036	AUE_SYNC	STD|CAPENABLED {
301		int sync(void);
302	}
30337	AUE_KILL	STD|CAPENABLED {
304		int kill(
305		    int pid,
306		    int signum
307		);
308	}
30938	AUE_STAT	COMPAT {
310		int stat(
311		    _In_z_ const char *path,
312		    _Out_ struct ostat *ub
313		);
314	}
31539	AUE_GETPPID	STD|CAPENABLED {
316		pid_t getppid(void);
317	}
31840	AUE_LSTAT	COMPAT {
319		int lstat(
320		    _In_z_ const char *path,
321		    _Out_ struct ostat *ub
322		);
323	}
32441	AUE_DUP		STD|CAPENABLED {
325		int dup(
326		    u_int fd
327		);
328	}
32942	AUE_PIPE	COMPAT10|CAPENABLED {
330		int pipe(void);
331	}
33243	AUE_GETEGID	STD|CAPENABLED {
333		gid_t getegid(void);
334	}
33544	AUE_PROFILE	STD|CAPENABLED {
336		int profil(
337		    _Out_writes_bytes_(size) char *samples,
338		    size_t size,
339		    size_t offset,
340		    u_int scale
341		);
342	}
34345	AUE_KTRACE	STD {
344		int ktrace(
345		    _In_z_ const char *fname,
346		    int ops,
347		    int facs,
348		    int pid
349		);
350	}
35146	AUE_SIGACTION	COMPAT|CAPENABLED {
352		int sigaction(
353		    int signum,
354		    _In_opt_ struct osigaction *nsa,
355		    _Out_opt_ struct osigaction *osa
356		);
357	}
35847	AUE_GETGID	STD|CAPENABLED {
359		gid_t getgid(void);
360	}
36148	AUE_SIGPROCMASK	COMPAT|CAPENABLED {
362		int sigprocmask(
363		    int how,
364		    osigset_t mask
365		);
366	}
367; XXX note nonstandard (bogus) calling convention - the libc stub passes
368; us the mask, not a pointer to it, and we return the old mask as the
369; (int) return value.
37049	AUE_GETLOGIN	STD|CAPENABLED {
371		int getlogin(
372		    _Out_writes_z_(namelen) char *namebuf,
373		    u_int namelen
374		);
375	}
37650	AUE_SETLOGIN	STD {
377		int setlogin(
378		    _In_z_ const char *namebuf
379		);
380	}
38151	AUE_ACCT	STD {
382		int acct(
383		    _In_z_ const char *path
384		);
385	}
38652	AUE_SIGPENDING	COMPAT|CAPENABLED {
387		int sigpending(void);
388	}
38953	AUE_SIGALTSTACK	STD|CAPENABLED {
390		int sigaltstack(
391		    _In_opt_ stack_t *ss,
392		    _Out_opt_ stack_t *oss
393		);
394	}
39554	AUE_IOCTL	STD|CAPENABLED {
396		int ioctl(
397		    int fd,
398		    u_long com,
399		    _Inout_opt_ char *data
400		);
401	}
40255	AUE_REBOOT	STD {
403		int reboot(
404		    int opt
405		);
406	}
40756	AUE_REVOKE	STD {
408		int revoke(
409		    _In_z_ const char *path
410		);
411	}
41257	AUE_SYMLINK	STD {
413		int symlink(
414		    _In_z_ const char *path,
415		    _In_z_ const char *link
416		);
417	}
41858	AUE_READLINK	STD {
419		ssize_t readlink(
420		    _In_z_ const char *path,
421		    _Out_writes_z_(count) char *buf,
422		    size_t count
423		);
424	}
42559	AUE_EXECVE	STD {
426		int execve(
427		    _In_z_ const char *fname,
428		    _In_z_ char **argv,
429		    _In_z_ char **envv
430		);
431	}
43260	AUE_UMASK	STD|CAPENABLED {
433		int umask(
434		    mode_t newmask
435		);
436	}
43761	AUE_CHROOT	STD {
438		int chroot(
439		    _In_z_ const char *path
440		);
441	}
44262	AUE_FSTAT	COMPAT|CAPENABLED {
443		int fstat(
444		    int fd,
445		    _Out_ struct ostat *sb
446		);
447	}
44863	AUE_NULL	COMPAT {
449		int getkerninfo(
450		    int op,
451		    _Out_writes_bytes_opt(
452		    *size) char *where,
453		    _Inout_opt_ size_t *size,
454		    int arg
455		);
456	}
45764	AUE_NULL	COMPAT|CAPENABLED {
458		int getpagesize(void);
459	}
46065	AUE_MSYNC	STD|CAPENABLED {
461		int msync(
462		    _In_ void *addr,
463		    size_t len,
464		    int flags
465		);
466	}
46766	AUE_VFORK	STD {
468		int vfork(void);
469	}
47067	AUE_NULL	OBSOL	vread
47168	AUE_NULL	OBSOL	vwrite
47269	AUE_SBRK	STD|CAPENABLED {
473		int sbrk(
474		    int incr
475		);
476	}
47770	AUE_SSTK	STD|CAPENABLED {
478		int sstk(
479		    int incr
480		);
481	}
48271	AUE_MMAP	COMPAT|CAPENABLED {
483		void *mmap(
484		    _In_ void *addr,
485		    int len,
486		    int prot,
487		    int flags,
488		    int fd,
489		    long pos
490		);
491	}
49272	AUE_O_VADVISE	COMPAT11 {
493		int vadvise(
494		    int anom
495		);
496	}
49773	AUE_MUNMAP	STD|CAPENABLED {
498		int munmap(
499		    _In_ void *addr,
500		    size_t len
501		);
502	}
50374	AUE_MPROTECT	STD|CAPENABLED {
504		int mprotect(
505		    _In_ void *addr,
506		    size_t len,
507		    int prot
508		);
509	}
51075	AUE_MADVISE	STD|CAPENABLED {
511		int madvise(
512		    _In_ void *addr,
513		    size_t len,
514		    int behav
515		);
516	}
51776	AUE_NULL	OBSOL	vhangup
51877	AUE_NULL	OBSOL	vlimit
51978	AUE_MINCORE	STD|CAPENABLED {
520		int mincore(
521		    _In_ const void *addr,
522		    size_t len,
523		    _Out_writes_bytes_(len/PAGE_SIZE) char *vec
524		);
525	}
52679	AUE_GETGROUPS	STD|CAPENABLED {
527		int getgroups(
528		    int gidsetsize,
529		    _Out_writes_opt_(gidsetsize) gid_t *gidset
530		);
531	}
53280	AUE_SETGROUPS	STD {
533		int setgroups(
534		    int gidsetsize,
535		    _In_reads_(gidsetsize) gid_t *gidset
536		);
537	}
53881	AUE_GETPGRP	STD|CAPENABLED {
539		int getpgrp(void);
540	}
54182	AUE_SETPGRP	STD {
542		int setpgid(
543		    int pid,
544		    int pgid
545		);
546	}
54783	AUE_SETITIMER	STD|CAPENABLED {
548		int setitimer(
549		    u_int which,
550		    _In_ struct itimerval *itv,
551		    _Out_opt_ struct itimerval *oitv
552		);
553	}
55484	AUE_WAIT4	COMPAT {
555		int wait(void);
556	}
55785	AUE_SWAPON	STD {
558		int swapon(
559		    _In_z_ const char *name
560		);
561	}
56286	AUE_GETITIMER	STD|CAPENABLED {
563		int getitimer(
564		    u_int which,
565		    _Out_ struct itimerval *itv
566		);
567	}
56887	AUE_SYSCTL	COMPAT|CAPENABLED {
569		int gethostname(
570		    _Out_writes_z_(len) char *hostname,
571		    u_int len
572		);
573	}
57488	AUE_SYSCTL	COMPAT {
575		int sethostname(
576		    _In_reads_z_(len) char *hostname,
577		    u_int len
578		);
579	}
58089	AUE_GETDTABLESIZE	STD|CAPENABLED {
581		int getdtablesize(void);
582	}
58390	AUE_DUP2	STD|CAPENABLED {
584		int dup2(
585		    u_int from,
586		    u_int to
587		);
588	}
58991	AUE_NULL	RESERVED
59092	AUE_FCNTL	STD|CAPENABLED {
591		int fcntl(
592		    int fd,
593		    int cmd,
594		    long arg
595		);
596	}
597; XXX should be { int fcntl(int fd, int cmd, ...); }
598; but we're not ready for varargs.
59993	AUE_SELECT	STD|CAPENABLED {
600		int select(
601		    int nd,
602		    _Inout_opt_ fd_set *in,
603		    _Inout_opt_ fd_set *ou,
604		    _Inout_opt_ fd_set *ex,
605		    _In_opt_ struct timeval *tv
606		);
607	}
60894	AUE_NULL	RESERVED
60995	AUE_FSYNC	STD|CAPENABLED {
610		int fsync(
611		    int fd
612		);
613	}
61496	AUE_SETPRIORITY	STD|CAPENABLED {
615		int setpriority(
616		    int which,
617		    int who,
618		    int prio
619		);
620	}
62197	AUE_SOCKET	STD|CAPENABLED {
622		int socket(
623		    int domain,
624		    int type,
625		    int protocol
626		);
627	}
62898	AUE_CONNECT	STD {
629		int connect(
630		    int s,
631		    _In_reads_bytes_(namelen) const struct sockaddr *name,
632		    int namelen
633		);
634	}
63599	AUE_ACCEPT	COMPAT|CAPENABLED {
636		int accept(
637		    int s,
638		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
639		    int *anamelen
640		);
641	}
642100	AUE_GETPRIORITY	STD|CAPENABLED {
643		int getpriority(
644		    int which,
645		    int who
646		);
647	}
648101	AUE_SEND	COMPAT|CAPENABLED {
649		int send(
650		    int s,
651		    _In_reads_bytes_(len) const void *buf,
652		    int len,
653		    int flags
654		);
655	}
656102	AUE_RECV	COMPAT|CAPENABLED {
657		int recv(
658		    int s,
659		    _Out_writes_bytes_(len) void *buf,
660		    int len,
661		    int flags
662		);
663	}
664103	AUE_SIGRETURN	COMPAT|CAPENABLED {
665		int sigreturn(
666		    _In_ struct osigcontext *sigcntxp
667		);
668	}
669104	AUE_BIND	STD {
670		int bind(
671		    int s,
672		    _In_reads_bytes_(namelen) const struct sockaddr *name,
673		    int namelen
674		);
675	}
676105	AUE_SETSOCKOPT	STD|CAPENABLED {
677		int setsockopt(
678		    int s,
679		    int level,
680		    int name,
681		    _In_reads_bytes_opt_(valsize) const void *val,
682		    int valsize
683		);
684	}
685106	AUE_LISTEN	STD|CAPENABLED {
686		int listen(
687		    int s,
688		    int backlog
689		);
690	}
691107	AUE_NULL	OBSOL	vtimes
692108	AUE_NULL	COMPAT|CAPENABLED {
693		int sigvec(
694		    int signum,
695		    _In_opt_ struct sigvec *nsv,
696		    _Out_opt_ struct sigvec *osv
697		);
698	}
699109	AUE_NULL	COMPAT|CAPENABLED {
700		int sigblock(
701		    int mask
702		);
703	}
704110	AUE_NULL	COMPAT|CAPENABLED {
705		int sigsetmask(
706		    int mask
707		);
708	}
709111	AUE_NULL	COMPAT|CAPENABLED {
710		int sigsuspend(
711		    osigset_t mask
712		);
713	}
714; XXX note nonstandard (bogus) calling convention - the libc stub passes
715; us the mask, not a pointer to it.
716112	AUE_NULL	COMPAT|CAPENABLED {
717		int sigstack(
718		    _In_opt_ struct sigstack *nss,
719		    _Out_opt_ struct sigstack *oss
720		);
721	}
722113	AUE_RECVMSG	COMPAT|CAPENABLED {
723		int recvmsg(
724		    int s,
725		    _Inout_ struct omsghdr *msg,
726		    int flags
727		);
728	}
729114	AUE_SENDMSG	COMPAT|CAPENABLED {
730		int sendmsg(
731		    int s,
732		    _In_ const void *msg,
733		    int flags
734		);
735	}
736115	AUE_NULL	OBSOL	vtrace
737116	AUE_GETTIMEOFDAY	STD|CAPENABLED {
738		int gettimeofday(
739		    _Out_ struct timeval *tp,
740		    _Out_opt_ struct timezone *tzp
741		);
742	}
743117	AUE_GETRUSAGE	STD|CAPENABLED {
744		int getrusage(
745		    int who,
746		    _Out_ struct rusage *rusage
747		);
748	}
749118	AUE_GETSOCKOPT	STD|CAPENABLED {
750		int getsockopt(
751		    int s,
752		    int level,
753		    int name,
754		    _Out_writes_bytes_opt_(*avalsize) void *val,
755		    _Inout_  int *avalsize
756		);
757	}
758119	AUE_NULL	RESERVED
759120	AUE_READV	STD|CAPENABLED {
760		int readv(
761		    int fd,
762		    _Inout_updates_(iovcnt) struct iovec *iovp,
763		    u_int iovcnt
764		);
765	}
766121	AUE_WRITEV	STD|CAPENABLED {
767		int writev(
768		    int fd,
769		    _In_reads_opt_(iovcnt) struct iovec *iovp,
770		    u_int iovcnt
771		);
772	}
773122	AUE_SETTIMEOFDAY	STD {
774		int settimeofday(
775		    _In_ struct timeval *tv,
776		    _In_opt_ struct timezone *tzp
777		);
778	}
779123	AUE_FCHOWN	STD|CAPENABLED {
780		int fchown(
781		    int fd,
782		    int uid,
783		    int gid
784		);
785	}
786124	AUE_FCHMOD	STD|CAPENABLED {
787		int fchmod(
788		    int fd,
789		    mode_t mode
790		);
791	}
792125	AUE_RECVFROM	COMPAT|NOARGS|CAPENABLED {
793		int recvfrom(
794		    int s,
795		    _Out_writes_(len) void *buf,
796		    size_t len,
797		    int flags,
798		    _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
799		    _Inout_ int *fromlenaddr
800		);
801	} recvfrom recvfrom_args int
802126	AUE_SETREUID	STD|CAPENABLED {
803		int setreuid(
804		    int ruid,
805		    int euid
806		);
807	}
808127	AUE_SETREGID	STD|CAPENABLED {
809		int setregid(
810		    int rgid,
811		    int egid
812		);
813	}
814128	AUE_RENAME	STD {
815		int rename(
816		    _In_z_ const char *from,
817		    _In_z_ const char *to
818		);
819	}
820129	AUE_TRUNCATE	COMPAT {
821		int truncate(
822		    _In_z_ const char *path,
823		    long length
824		);
825	}
826130	AUE_FTRUNCATE	COMPAT|CAPENABLED {
827		int ftruncate(
828		    int fd,
829		    long length
830		);
831	}
832131	AUE_FLOCK	STD|CAPENABLED {
833		int flock(
834		    int fd,
835		    int how
836		);
837	}
838132	AUE_MKFIFO	STD {
839		int mkfifo(
840		    _In_z_ const char *path,
841		    mode_t mode
842		);
843	}
844133	AUE_SENDTO	STD|CAPENABLED {
845		int sendto(
846		    int s,
847		    _In_reads_bytes_(len) const void *buf,
848		    size_t len,
849		    int flags,
850		    _In_reads_bytes_opt_(tolen) const struct sockaddr *to,
851		    int tolen
852		);
853	}
854134	AUE_SHUTDOWN	STD|CAPENABLED {
855		int shutdown(
856		    int s,
857		    int how
858		);
859	}
860135	AUE_SOCKETPAIR	STD|CAPENABLED {
861		int socketpair(
862		    int domain,
863		    int type,
864		    int protocol,
865		    _Out_writes_(2) int *rsv
866		);
867	}
868136	AUE_MKDIR	STD {
869		int mkdir(
870		    _In_z_ const char *path,
871		    mode_t mode
872		);
873	}
874137	AUE_RMDIR	STD {
875		int rmdir(
876		    _In_z_ const char *path
877		);
878	}
879138	AUE_UTIMES	STD {
880		int utimes(
881		    _In_z_ const char *path,
882		    _In_ struct timeval *tptr
883		);
884	}
885139	AUE_NULL	OBSOL	4.2 sigreturn
886140	AUE_ADJTIME	STD {
887		int adjtime(
888		    _In_ struct timeval *delta,
889		    _Out_opt_ struct timeval *olddelta
890		);
891	}
892141	AUE_GETPEERNAME	COMPAT|CAPENABLED {
893		int getpeername(
894		    int fdes,
895		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
896		    _Inout_opt_ int *alen
897		);
898	}
899142	AUE_SYSCTL	COMPAT|CAPENABLED {
900		long gethostid(void);
901	}
902143	AUE_SYSCTL	COMPAT {
903		int sethostid(
904		    long hostid
905		);
906	}
907144	AUE_GETRLIMIT	COMPAT|CAPENABLED {
908		int getrlimit(
909		    u_int which,
910		    _Out_ struct orlimit *rlp
911		);
912	}
913145	AUE_SETRLIMIT	COMPAT|CAPENABLED {
914		int setrlimit(
915		    u_int which,
916		    _Out_ struct orlimit *rlp
917		);
918	}
919146	AUE_KILLPG	COMPAT {
920		int killpg(
921		    int pgid,
922		    int signum
923		);
924	}
925147	AUE_SETSID	STD|CAPENABLED {
926		int setsid(void);
927	}
928148	AUE_QUOTACTL	STD {
929		int quotactl(
930		    _In_z_ const char *path,
931		    int cmd,
932		    int uid,
933		    _In_ void *arg
934		);
935	}
936149	AUE_O_QUOTA	COMPAT {
937		int quota(void);
938	}
939150	AUE_GETSOCKNAME	COMPAT|NOARGS|CAPENABLED {
940		int getsockname(
941		    int fdec,
942		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
943		    _Inout_ int *alen
944		);
945	} getsockname getsockname_args int
946151-153	AUE_NULL	RESERVED
947; 154 is initialised by the NLM code, if present.
948154	AUE_NULL	NOSTD {
949		int nlm_syscall(
950		    int debug_level,
951		    int grace_period,
952		    int addr_count,
953		    _In_reads_(addr_count) char **addrs
954		);
955	}
956; 155 is initialized by the NFS code, if present.
957155	AUE_NFS_SVC	NOSTD {
958		int nfssvc(
959		    int flag,
960		    _In_ void *argp
961		);
962	}
963156	AUE_GETDIRENTRIES	COMPAT|CAPENABLED {
964		int getdirentries(
965		    int fd,
966		    _Out_writes_bytes_(count) char *buf,
967		    u_int count,
968		    _Out_ long *basep
969		);
970	}
971157	AUE_STATFS	COMPAT4 {
972		int statfs(
973		    _In_z_ const char *path,
974		    _Out_ struct ostatfs *buf
975		);
976	}
977158	AUE_FSTATFS	COMPAT4|CAPENABLED {
978		int fstatfs(
979		    int fd,
980		    _Out_ struct ostatfs *buf
981		);
982	}
983159	AUE_NULL	RESERVED
984160	AUE_LGETFH	STD {
985		int lgetfh(
986		    _In_z_ const char *fname,
987		    _Out_ struct fhandle *fhp
988		);
989	}
990161	AUE_NFS_GETFH	STD {
991		int getfh(
992		    _In_z_ const char *fname,
993		    _Out_ struct fhandle *fhp
994		);
995	}
996162	AUE_SYSCTL	COMPAT4|CAPENABLED {
997		int getdomainname(
998		    _Out_writes_z_(len) char *domainname,
999		    int len
1000		);
1001	}
1002163	AUE_SYSCTL	COMPAT4 {
1003		int setdomainname(
1004		    _In_reads_z_(len) char *domainname,
1005		    int len
1006		);
1007	}
1008164	AUE_NULL	COMPAT4 {
1009		int uname(
1010		    _Out_ struct utsname *name
1011		);
1012	}
1013165	AUE_SYSARCH	STD|CAPENABLED {
1014		int sysarch(
1015		    int op,
1016		    _In_z_ char *parms
1017		);
1018	}
1019166	AUE_RTPRIO	STD|CAPENABLED {
1020		int rtprio(
1021		    int function,
1022		    pid_t pid,
1023		    _Inout_ struct rtprio *rtp
1024		);
1025	}
1026167-168	AUE_NULL	RESERVED
1027169	AUE_SEMSYS	NOSTD {
1028		int semsys(
1029		    int which,
1030		    int a2,
1031		    int a3,
1032		    int a4,
1033		    int a5
1034		);
1035	}
1036; XXX should be { int semsys(int which, ...); }
1037170	AUE_MSGSYS	NOSTD {
1038		int msgsys(
1039		    int which,
1040		    int a2,
1041		    int a3,
1042		    int a4,
1043		    int a5,
1044		    int a6
1045		);
1046	}
1047; XXX should be { int msgsys(int which, ...); }
1048171	AUE_SHMSYS	NOSTD {
1049		int shmsys(
1050		    int which,
1051		    int a2,
1052		    int a3,
1053		    int a4
1054		);
1055	}
1056; XXX should be { int shmsys(int which, ...); }
1057172	AUE_NULL	RESERVED
1058173	AUE_PREAD	COMPAT6|CAPENABLED {
1059		ssize_t pread(
1060		    int fd,
1061		    _Out_writes_bytes_(nbyte) void *buf,
1062		    size_t nbyte,
1063		    int pad,
1064		    off_t offset
1065		);
1066	}
1067174	AUE_PWRITE	COMPAT6|CAPENABLED {
1068		ssize_t pwrite(
1069		    int fd,
1070		    _In_reads_bytes_(nbyte) const void *buf,
1071		    size_t nbyte,
1072		    int pad,
1073		    off_t offset
1074		);
1075	}
1076175	AUE_SETFIB	STD {
1077		int setfib(
1078		    int fibnum
1079		);
1080	}
1081176	AUE_NTP_ADJTIME	STD {
1082		int ntp_adjtime(
1083		    _Inout_ struct timex *tp
1084		);
1085	}
1086177-180	AUE_NULL	RESERVED
1087181	AUE_SETGID	STD|CAPENABLED {
1088		int setgid(
1089		    gid_t gid
1090		);
1091	}
1092182	AUE_SETEGID	STD|CAPENABLED {
1093		int setegid(
1094		    gid_t egid
1095		);
1096	}
1097183	AUE_SETEUID	STD|CAPENABLED {
1098		int seteuid(
1099		    uid_t euid
1100		);
1101	}
1102184	AUE_NULL	OBSOL	lfs_bmapv
1103185	AUE_NULL	OBSOL	lfs_markv
1104186	AUE_NULL	OBSOL	lfs_segclean
1105187	AUE_NULL	OBSOL	lfs_segwait
1106188	AUE_STAT	COMPAT11 {
1107		int stat(
1108		    _In_z_ const char *path,
1109		    _Out_ struct freebsd11_stat *ub
1110		);
1111	}
1112189	AUE_FSTAT	COMPAT11|CAPENABLED {
1113		int fstat(
1114		    int fd,
1115		    _Out_ struct freebsd11_stat *sb
1116		);
1117	}
1118190	AUE_LSTAT	COMPAT11 {
1119		int lstat(
1120		    _In_z_ const char *path,
1121		    _Out_ struct freebsd11_stat *ub
1122		);
1123	}
1124191	AUE_PATHCONF	STD {
1125		int pathconf(
1126		    _In_z_ const char *path,
1127		    int name
1128		);
1129	}
1130192	AUE_FPATHCONF	STD|CAPENABLED {
1131		int fpathconf(
1132		    int fd,
1133		    int name
1134		);
1135	}
1136193	AUE_NULL	RESERVED
1137194	AUE_GETRLIMIT	STD|CAPENABLED {
1138		int getrlimit(
1139		    u_int which,
1140		    _Out_ struct rlimit *rlp
1141		);
1142	} getrlimit __getrlimit_args int
1143195	AUE_SETRLIMIT	STD|CAPENABLED {
1144		int setrlimit(
1145		    u_int which,
1146		    _In_ struct rlimit *rlp
1147		);
1148	} setrlimit __setrlimit_args int
1149196	AUE_GETDIRENTRIES	COMPAT11|CAPENABLED {
1150		int getdirentries(
1151		    int fd,
1152		    _Out_writes_bytes_(count) char *buf,
1153		    u_int count,
1154		    _Out_ long *basep
1155		);
1156	}
1157197	AUE_MMAP	COMPAT6|CAPENABLED {
1158		void *mmap(
1159		    _In_ void *addr,
1160		    size_t len,
1161		    int prot,
1162		    int flags,
1163		    int fd,
1164		    int pad,
1165		    off_t pos
1166		);
1167	}
1168198	AUE_NULL	NOPROTO {
1169		int nosys(void);
1170	} __syscall __syscall_args int
1171199	AUE_LSEEK	COMPAT6|CAPENABLED {
1172		off_t lseek(
1173		    int fd,
1174		    int pad,
1175		    off_t offset,
1176		    int whence
1177		);
1178	}
1179200	AUE_TRUNCATE	COMPAT6 {
1180		int truncate(
1181		    _In_z_ const char *path,
1182		    int pad,
1183		    off_t length
1184		);
1185	}
1186201	AUE_FTRUNCATE	COMPAT6|CAPENABLED {
1187		int ftruncate(
1188		    int fd,
1189		    int pad,
1190		    off_t length
1191		);
1192	}
1193202	AUE_SYSCTL	STD|CAPENABLED {
1194		int __sysctl(
1195		    _In_reads_(namelen) int *name,
1196		    u_int namelen,
1197		    _Out_writes_bytes_opt_(*oldlenp) void *old,
1198		    _Inout_opt_ size_t *oldlenp,
1199		    _In_reads_bytes_opt_(newlen) const void *new,
1200		    size_t newlen
1201		);
1202	} __sysctl sysctl_args int
1203203	AUE_MLOCK	STD|CAPENABLED {
1204		int mlock(
1205		    _In_ const void *addr,
1206		    size_t len
1207		);
1208	}
1209204	AUE_MUNLOCK	STD|CAPENABLED {
1210		int munlock(
1211		    _In_ const void *addr,
1212		    size_t len
1213		);
1214	}
1215205	AUE_UNDELETE	STD {
1216		int undelete(
1217		    _In_z_ const char *path
1218		);
1219	}
1220206	AUE_FUTIMES	STD|CAPENABLED {
1221		int futimes(
1222		    int fd,
1223		    _In_reads_(2) struct timeval *tptr
1224		);
1225	}
1226207	AUE_GETPGID	STD|CAPENABLED {
1227		int getpgid(
1228		    pid_t pid
1229		);
1230	}
1231208	AUE_NULL	RESERVED
1232209	AUE_POLL	STD|CAPENABLED {
1233		int poll(
1234		    _Inout_updates_(nfds) struct pollfd *fds,
1235		    u_int nfds,
1236		    int timeout
1237		);
1238	}
1239;
1240; The following are reserved for loadable syscalls
1241;
1242210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1243211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1244212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1245213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1246214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1247215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1248216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1249217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1250218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1251219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1252
1253220	AUE_SEMCTL	COMPAT7|NOSTD {
1254		int __semctl(
1255		    int semid,
1256		    int semnum,
1257		    int cmd,
1258		    union semun_old *arg
1259		);
1260	}
1261221	AUE_SEMGET	NOSTD {
1262		int semget(
1263		    key_t key,
1264		    int nsems,
1265		    int semflg
1266		);
1267	}
1268222	AUE_SEMOP	NOSTD {
1269		int semop(
1270		    int semid,
1271		    _In_reads_(nsops) struct sembuf *sops,
1272		    size_t nsops
1273		);
1274	}
1275223	AUE_NULL	OBSOL	semconfig
1276224	AUE_MSGCTL	COMPAT7|NOSTD {
1277		int msgctl(
1278		    int msqid,
1279		    int cmd,
1280		    struct msqid_ds_old *buf
1281		);
1282	}
1283225	AUE_MSGGET	NOSTD {
1284		int msgget(
1285		    key_t key,
1286		    int msgflg
1287		);
1288	}
1289226	AUE_MSGSND	NOSTD {
1290		int msgsnd(
1291		    int msqid,
1292		    _In_reads_bytes_(msgsz) const void *msgp,
1293		    size_t msgsz,
1294		    int msgflg
1295		);
1296	}
1297227	AUE_MSGRCV	NOSTD {
1298		ssize_t msgrcv(
1299		    int msqid,
1300		    _Out_writes_bytes_(msgsz) void *msgp,
1301		    size_t msgsz,
1302		    long msgtyp,
1303		    int msgflg
1304		);
1305	}
1306228	AUE_SHMAT	NOSTD {
1307		void *shmat(
1308		    int shmid,
1309		    _In_ const void *shmaddr,
1310		    int shmflg
1311		);
1312	}
1313229	AUE_SHMCTL	COMPAT7|NOSTD {
1314		int shmctl(
1315		    int shmid,
1316		    int cmd,
1317		    struct shmid_ds_old *buf
1318		);
1319	}
1320230	AUE_SHMDT	NOSTD {
1321		int shmdt(
1322		    _In_ const void *shmaddr
1323		);
1324	}
1325231	AUE_SHMGET	NOSTD {
1326		int shmget(
1327		    key_t key,
1328		    size_t size,
1329		    int shmflg
1330		);
1331	}
1332232	AUE_NULL	STD|CAPENABLED {
1333		int clock_gettime(
1334		    clockid_t clock_id,
1335		    _Out_ struct timespec *tp
1336		);
1337	}
1338233	AUE_CLOCK_SETTIME	STD {
1339		int clock_settime(
1340		    clockid_t clock_id,
1341		    _In_ const struct timespec *tp
1342		);
1343	}
1344234	AUE_NULL	STD|CAPENABLED {
1345		int clock_getres(
1346		    clockid_t clock_id,
1347		    _Out_ struct timespec *tp
1348		);
1349	}
1350235	AUE_NULL	STD|CAPENABLED {
1351		int ktimer_create(
1352		    clockid_t clock_id,
1353		    _In_ struct sigevent *evp,
1354		    _Out_ int *timerid
1355		);
1356	}
1357236	AUE_NULL	STD|CAPENABLED {
1358		int ktimer_delete(
1359		    int timerid
1360		);
1361	}
1362237	AUE_NULL	STD|CAPENABLED {
1363		int ktimer_settime(
1364		    int timerid,
1365		    int flags,
1366		    _In_ const struct itimerspec *value,
1367		    _Out_opt_ struct itimerspec *ovalue
1368		);
1369	}
1370238	AUE_NULL	STD|CAPENABLED {
1371		int ktimer_gettime(
1372		    int timerid,
1373		    _Out_ struct itimerspec *value
1374		);
1375	}
1376239	AUE_NULL	STD|CAPENABLED {
1377		int ktimer_getoverrun(
1378		    int timerid
1379		);
1380	}
1381240	AUE_NULL	STD|CAPENABLED {
1382		int nanosleep(
1383		    _In_ const struct timespec *rqtp,
1384		    _Out_opt_ struct timespec *rmtp
1385		);
1386	}
1387241	AUE_NULL	STD {
1388		int ffclock_getcounter(
1389		    _Out_ ffcounter *ffcount
1390		);
1391	}
1392242	AUE_NULL	STD {
1393		int ffclock_setestimate(
1394		    _In_ struct ffclock_estimate *cest
1395		);
1396	}
1397243	AUE_NULL	STD {
1398		int ffclock_getestimate(
1399		    _Out_ struct ffclock_estimate *cest
1400		);
1401	}
1402244	AUE_NULL	STD {
1403		int clock_nanosleep(
1404		    clockid_t clock_id,
1405		    int flags,
1406		    _In_ const struct timespec *rqtp,
1407		    _Out_opt_ struct timespec *rmtp
1408		);
1409	}
1410245-246	AUE_NULL	RESERVED
1411247	AUE_NULL	STD {
1412		int clock_getcpuclockid2(
1413		    id_t id,
1414		    int which,
1415		    _Out_ clockid_t *clock_id
1416		);
1417	}
1418248	AUE_NULL	STD|CAPENABLED {
1419		int ntp_gettime(
1420		    _Out_ struct ntptimeval *ntvp
1421		);
1422	}
1423249	AUE_NULL	RESERVED
1424250	AUE_MINHERIT	STD|CAPENABLED {
1425		int minherit(
1426		    _In_ void *addr,
1427		    size_t len,
1428		    int inherit
1429		);
1430	}
1431251	AUE_RFORK	STD {
1432		int rfork(
1433		    int flags
1434		);
1435	}
1436252	AUE_POLL	OBSOL	openbsd_poll
1437253	AUE_ISSETUGID	STD|CAPENABLED {
1438		int issetugid(void);
1439	}
1440254	AUE_LCHOWN	STD {
1441		int lchown(
1442		    _In_z_ const char *path,
1443		    int uid,
1444		    int gid
1445		);
1446	}
1447255	AUE_AIO_READ	STD|CAPENABLED {
1448		int aio_read(
1449		    _Inout_ struct aiocb *aiocbp
1450		);
1451	}
1452256	AUE_AIO_WRITE	STD|CAPENABLED {
1453		int aio_write(
1454		    _Inout_ struct aiocb *aiocbp
1455		);
1456	}
1457257	AUE_LIO_LISTIO	STD|CAPENABLED {
1458		int lio_listio(
1459		    int mode,
1460		    _Inout_updates_(nent) struct aiocb * const *acb_list,
1461		    int nent,
1462		    _In_opt_ struct sigevent *sig
1463		);
1464	}
1465258-271	AUE_NULL	RESERVED
1466272	AUE_O_GETDENTS	COMPAT11|CAPENABLED {
1467		int getdents(
1468		    int fd,
1469		    _Out_writes_bytes_(count) char *buf,
1470		    size_t count
1471		);
1472	}
1473273	AUE_NULL	RESERVED
1474274	AUE_LCHMOD	STD {
1475		int lchmod(
1476		    _In_z_ const char *path,
1477		    mode_t mode
1478		);
1479	}
1480275	AUE_NULL	OBSOL	netbsd_lchown
1481276	AUE_LUTIMES	STD {
1482		int lutimes(
1483		    _In_z_ const char *path,
1484		    _In_ struct timeval *tptr
1485		);
1486	}
1487277	AUE_NULL	OBSOL	netbsd_msync
1488278	AUE_STAT	COMPAT11 {
1489		int nstat(
1490		    _In_z_ const char *path,
1491		    _Out_ struct nstat *ub
1492		);
1493	}
1494279	AUE_FSTAT	COMPAT11 {
1495		int nfstat(
1496		    int fd,
1497		    _Out_ struct nstat *sb
1498		);
1499	}
1500280	AUE_LSTAT	COMPAT11 {
1501		int nlstat(
1502		    _In_z_ const char *path,
1503		    _Out_ struct nstat *ub
1504		);
1505	}
1506281-288	AUE_NULL	RESERVED
1507289	AUE_PREADV	STD|CAPENABLED {
1508		ssize_t preadv(
1509		    int fd,
1510		    _In_reads_(iovcnt) struct iovec *iovp,
1511		    u_int iovcnt,
1512		    off_t offset
1513		);
1514	}
1515290	AUE_PWRITEV	STD|CAPENABLED {
1516		ssize_t pwritev(
1517		    int fd,
1518		    _In_reads_(iovcnt) struct iovec *iovp,
1519		    u_int iovcnt,
1520		    off_t offset
1521		);
1522	}
1523291-296	AUE_NULL	RESERVED
1524297	AUE_FHSTATFS	COMPAT4 {
1525		int fhstatfs(
1526		    _In_ const struct fhandle *u_fhp,
1527		    _Out_ struct ostatfs *buf
1528		);
1529	}
1530298	AUE_FHOPEN	STD {
1531		int fhopen(
1532		    _In_ const struct fhandle *u_fhp,
1533		    int flags
1534		);
1535	}
1536299	AUE_FHSTAT	COMPAT11 {
1537		int fhstat(
1538		    _In_ const struct fhandle *u_fhp,
1539		    _Out_ struct freebsd11_stat *sb
1540		);
1541	}
1542300	AUE_NULL	STD {
1543		int modnext(
1544		    int modid
1545		);
1546	}
1547301	AUE_NULL	STD {
1548		int modstat(
1549		    int modid,
1550		    _Out_ struct module_stat *stat
1551		);
1552	}
1553302	AUE_NULL	STD {
1554		int modfnext(
1555		    int modid
1556		);
1557	}
1558303	AUE_NULL	STD {
1559		int modfind(
1560		    _In_z_ const char *name
1561		);
1562	}
1563304	AUE_MODLOAD	STD {
1564		int kldload(
1565		    _In_z_ const char *file
1566		);
1567	}
1568305	AUE_MODUNLOAD	STD {
1569		int kldunload(
1570		    int fileid
1571		);
1572	}
1573306	AUE_NULL	STD {
1574		int kldfind(
1575		    _In_z_ const char *file
1576		);
1577	}
1578307	AUE_NULL	STD {
1579		int kldnext(
1580		    int fileid
1581		);
1582	}
1583308	AUE_NULL	STD {
1584		int kldstat(
1585		    int fileid,
1586		    _Out_ struct kld_file_stat *stat
1587		);
1588	}
1589309	AUE_NULL	STD {
1590		int kldfirstmod(
1591		    int fileid
1592		);
1593	}
1594310	AUE_GETSID	STD|CAPENABLED {
1595		int getsid(
1596		    pid_t pid
1597		);
1598	}
1599311	AUE_SETRESUID	STD|CAPENABLED {
1600		int setresuid(
1601		    uid_t ruid,
1602		    uid_t euid,
1603		    uid_t suid
1604		);
1605	}
1606312	AUE_SETRESGID	STD|CAPENABLED {
1607		int setresgid(
1608		    gid_t rgid,
1609		    gid_t egid,
1610		    gid_t sgid
1611		);
1612	}
1613313	AUE_NULL	OBSOL	signanosleep
1614314	AUE_AIO_RETURN	STD|CAPENABLED {
1615		ssize_t aio_return(
1616		    _Inout_ struct aiocb *aiocbp
1617		);
1618	}
1619315	AUE_AIO_SUSPEND	STD|CAPENABLED {
1620		int aio_suspend(
1621		    _Inout_updates_(nent) struct aiocb * const * aiocbp,
1622		    int nent,
1623		    _In_opt_ const struct timespec *timeout
1624		);
1625	}
1626316	AUE_AIO_CANCEL	STD|CAPENABLED {
1627		int aio_cancel(
1628		    int fd,
1629		    _In_opt_ struct aiocb *aiocbp
1630		);
1631	}
1632317	AUE_AIO_ERROR	STD|CAPENABLED {
1633		int aio_error(
1634		    _In_ struct aiocb *aiocbp
1635		);
1636	}
1637318	AUE_AIO_READ	COMPAT6|CAPENABLED {
1638		int aio_read(
1639		    _Inout_  struct oaiocb *aiocbp
1640		);
1641	}
1642319	AUE_AIO_WRITE	COMPAT6|CAPENABLED {
1643		int aio_write(
1644		    _Inout_ struct oaiocb *aiocbp
1645		);
1646	}
1647320	AUE_LIO_LISTIO	COMPAT6|CAPENABLED {
1648		int lio_listio(
1649		    int mode,
1650		    _Inout_updates_(nent) struct oaiocb * const *acb_list,
1651		    int nent,
1652		    _In_opt_ struct osigevent *sig
1653		);
1654	}
1655321	AUE_NULL	STD|CAPENABLED {
1656		int yield(void);
1657	}
1658322	AUE_NULL	OBSOL	thr_sleep
1659323	AUE_NULL	OBSOL	thr_wakeup
1660324	AUE_MLOCKALL	STD|CAPENABLED {
1661		int mlockall(
1662		    int how
1663		);
1664	}
1665325	AUE_MUNLOCKALL	STD|CAPENABLED {
1666		int munlockall(void);
1667	}
1668326	AUE_GETCWD	STD {
1669		int __getcwd(
1670		    _Out_writes_z_(buflen) char *buf,
1671		    size_t buflen
1672		);
1673	}
1674327	AUE_NULL	STD|CAPENABLED {
1675		int sched_setparam(
1676		    pid_t pid,
1677		    _In_ const struct sched_param *param
1678		);
1679	}
1680328	AUE_NULL	STD|CAPENABLED {
1681		int sched_getparam(
1682		    pid_t pid,
1683		    _Out_ struct sched_param *param
1684		);
1685	}
1686329	AUE_NULL	STD|CAPENABLED {
1687		int sched_setscheduler(
1688		    pid_t pid,
1689		    int policy,
1690		    _In_ const struct sched_param *param
1691		);
1692	}
1693330	AUE_NULL	STD|CAPENABLED {
1694		int sched_getscheduler(
1695		    pid_t pid
1696		);
1697	}
1698331	AUE_NULL	STD|CAPENABLED {
1699		int sched_yield(void);
1700	}
1701332	AUE_NULL	STD|CAPENABLED {
1702		int sched_get_priority_max(
1703		    int policy
1704		);
1705	}
1706333	AUE_NULL	STD|CAPENABLED {
1707		int sched_get_priority_min(
1708		    int policy
1709		);
1710	}
1711334	AUE_NULL	STD|CAPENABLED {
1712		int sched_rr_get_interval(
1713		    pid_t pid,
1714		    _Out_ struct timespec *interval
1715		);
1716	}
1717335	AUE_NULL	STD|CAPENABLED {
1718		int utrace(
1719		   _In_reads_bytes_(len) const void *addr,
1720		    size_t len
1721		);
1722	}
1723336	AUE_SENDFILE	COMPAT4|CAPENABLED {
1724		int sendfile(
1725		    int fd,
1726		    int s,
1727		    off_t offset,
1728		    size_t nbytes,
1729		    _In_opt_ struct sf_hdtr *hdtr,
1730		    _Out_opt_ off_t *sbytes,
1731		    int flags
1732		);
1733	}
1734337	AUE_NULL	STD {
1735		int kldsym(
1736		    int fileid,
1737		    int cmd,
1738		    _In_ void *data
1739		);
1740	}
1741338	AUE_JAIL	STD {
1742		int jail(
1743		    _In_ struct jail *jail
1744		);
1745	}
1746339	AUE_NULL	NOSTD|NOTSTATIC {
1747		int nnpfs_syscall(
1748		    int operation,
1749		    char *a_pathP,
1750		    int a_opcode,
1751		    void *a_paramsP,
1752		    int a_followSymlinks
1753		);
1754	}
1755340	AUE_SIGPROCMASK	STD|CAPENABLED {
1756		int sigprocmask(
1757		    int how,
1758		    _In_opt_ const sigset_t *set,
1759		    _Out_opt_ sigset_t *oset
1760		);
1761	}
1762341	AUE_SIGSUSPEND	STD|CAPENABLED {
1763		int sigsuspend(
1764		    _In_ const sigset_t *sigmask
1765		);
1766	}
1767342	AUE_SIGACTION	COMPAT4|CAPENABLED {
1768		int sigaction(
1769		    int sig,
1770		    _In_opt_ const struct sigaction *act,
1771		    _Out_opt_ struct sigaction *oact
1772		);
1773	}
1774343	AUE_SIGPENDING	STD|CAPENABLED {
1775		int sigpending(
1776		    _In_ sigset_t *set
1777		);
1778	}
1779344	AUE_SIGRETURN	COMPAT4|CAPENABLED {
1780		int sigreturn(
1781		    _In_ const struct ucontext4 *sigcntxp
1782		);
1783	}
1784345	AUE_SIGWAIT	STD|CAPENABLED {
1785		int sigtimedwait(
1786		    _In_ const sigset_t *set,
1787		    _Out_opt_ siginfo_t *info,
1788		    _In_opt_ const struct timespec *timeout
1789		);
1790	}
1791346	AUE_NULL	STD|CAPENABLED {
1792		int sigwaitinfo(
1793		    _In_ const sigset_t *set,
1794		    _Out_opt_ siginfo_t *info
1795		);
1796	}
1797347	AUE_ACL_GET_FILE	STD {
1798		int __acl_get_file(
1799		    _In_z_ const char *path,
1800		    acl_type_t type,
1801		    _Out_ struct acl *aclp
1802		);
1803	}
1804348	AUE_ACL_SET_FILE	STD {
1805		int __acl_set_file(
1806		    _In_z_ const char *path,
1807		    acl_type_t type,
1808		    _In_ struct acl *aclp
1809		);
1810	}
1811349	AUE_ACL_GET_FD	STD|CAPENABLED {
1812		int __acl_get_fd(
1813		    int filedes,
1814		    acl_type_t type,
1815		    _Out_ struct acl *aclp
1816		);
1817	}
1818350	AUE_ACL_SET_FD	STD|CAPENABLED {
1819		int __acl_set_fd(
1820		    int filedes,
1821		    acl_type_t type,
1822		    _In_ struct acl *aclp
1823		);
1824	}
1825351	AUE_ACL_DELETE_FILE	STD {
1826		int __acl_delete_file(
1827		    _In_z_ const char *path,
1828		    acl_type_t type
1829		);
1830	}
1831352	AUE_ACL_DELETE_FD	STD|CAPENABLED {
1832		int __acl_delete_fd(
1833		    int filedes,
1834		    acl_type_t type
1835		);
1836	}
1837353	AUE_ACL_CHECK_FILE	STD {
1838		int __acl_aclcheck_file(
1839		    _In_z_ const char *path,
1840		    acl_type_t type,
1841		    _In_ struct acl *aclp
1842		);
1843	}
1844354	AUE_ACL_CHECK_FD	STD|CAPENABLED {
1845		int __acl_aclcheck_fd(
1846		    int filedes,
1847		    acl_type_t type,
1848		    _In_ struct acl *aclp
1849		);
1850	}
1851355	AUE_EXTATTRCTL	STD {
1852		int extattrctl(
1853		    _In_z_ const char *path,
1854		    int cmd,
1855		    _In_z_opt_ const char *filename,
1856		    int attrnamespace,
1857		    _In_z_ const char *attrname
1858		);
1859	}
1860356	AUE_EXTATTR_SET_FILE	STD {
1861		ssize_t extattr_set_file(
1862		    _In_z_ const char *path,
1863		    int attrnamespace,
1864		    _In_z_ const char *attrname,
1865		    _In_reads_bytes_(nbytes) void *data,
1866		    size_t nbytes
1867		);
1868	}
1869357	AUE_EXTATTR_GET_FILE	STD {
1870		ssize_t extattr_get_file(
1871		    _In_z_ const char *path,
1872		    int attrnamespace,
1873		    _In_z_ const char *attrname,
1874		    _Out_writes_bytes_(nbytes) void *data,
1875		    size_t nbytes
1876		);
1877	}
1878358	AUE_EXTATTR_DELETE_FILE	STD {
1879		int extattr_delete_file(
1880		    _In_z_ const char *path,
1881		    int attrnamespace,
1882		    _In_z_ const char *attrname
1883		);
1884	}
1885359	AUE_AIO_WAITCOMPLETE	STD|CAPENABLED {
1886		ssize_t aio_waitcomplete(
1887		    _Outptr_result_maybenull_ struct aiocb **aiocbp,
1888		    _In_opt_ struct timespec *timeout
1889		);
1890	}
1891360	AUE_GETRESUID	STD|CAPENABLED {
1892		int getresuid(
1893		    _Out_opt_ uid_t *ruid,
1894		    _Out_opt_ uid_t *euid,
1895		    _Out_opt_ uid_t *suid
1896		);
1897	}
1898361	AUE_GETRESGID	STD|CAPENABLED {
1899		int getresgid(
1900		    _Out_opt_ gid_t *rgid,
1901		    _Out_opt_ gid_t *egid,
1902		    _Out_opt_ gid_t *sgid
1903		);
1904	}
1905362	AUE_KQUEUE	STD|CAPENABLED {
1906		int kqueue(void);
1907	}
1908363	AUE_KEVENT	COMPAT11|CAPENABLED {
1909		int kevent(
1910		    int fd,
1911		    _In_reads_opt_(nchanges) struct kevent_freebsd11 *changelist,
1912		    int nchanges,
1913		    _Out_writes_opt_(nevents) struct kevent_freebsd11 *eventlist,
1914		    int nevents,
1915		    _In_opt_ const struct timespec *timeout
1916		);
1917	}
1918364	AUE_NULL	OBSOL	__cap_get_proc
1919365	AUE_NULL	OBSOL	__cap_set_proc
1920366	AUE_NULL	OBSOL	__cap_get_fd
1921367	AUE_NULL	OBSOL	__cap_get_file
1922368	AUE_NULL	OBSOL	__cap_set_fd
1923369	AUE_NULL	OBSOL	__cap_set_file
1924370	AUE_NULL	RESERVED
1925371	AUE_EXTATTR_SET_FD	STD|CAPENABLED {
1926		ssize_t extattr_set_fd(
1927		    int fd,
1928		    int attrnamespace,
1929		    _In_z_ const char *attrname,
1930		    _In_reads_bytes_(nbytes) void *data,
1931		    size_t nbytes
1932		);
1933	}
1934372	AUE_EXTATTR_GET_FD	STD|CAPENABLED {
1935		ssize_t extattr_get_fd(
1936		    int fd,
1937		    int attrnamespace,
1938		    _In_z_ const char *attrname,
1939		    _Out_writes_bytes_(nbytes) void *data,
1940		    size_t nbytes
1941		);
1942	}
1943373	AUE_EXTATTR_DELETE_FD	STD|CAPENABLED {
1944		int extattr_delete_fd(
1945		    int fd,
1946		    int attrnamespace,
1947		    _In_z_ const char *attrname
1948		);
1949	}
1950374	AUE_SETUGID	STD {
1951		int __setugid(
1952		    int flag
1953		);
1954	}
1955375	AUE_NULL	OBSOL	nfsclnt
1956376	AUE_EACCESS	STD {
1957		int eaccess(
1958		    _In_z_ const char *path,
1959		    int amode
1960		);
1961	}
1962377	AUE_NULL	NOSTD|NOTSTATIC {
1963		int afs3_syscall(
1964		    long syscall,
1965		    long parm1,
1966		    long parm2,
1967		    long parm3,
1968		    long parm4,
1969		    long parm5,
1970		    long parm6
1971		);
1972	}
1973378	AUE_NMOUNT	STD {
1974		int nmount(
1975		    _In_reads_(iovcnt) struct iovec *iovp,
1976		    unsigned int iovcnt,
1977		    int flags
1978		);
1979	}
1980379	AUE_NULL	OBSOL	kse_exit
1981380	AUE_NULL	OBSOL	kse_wakeup
1982381	AUE_NULL	OBSOL	kse_create
1983382	AUE_NULL	OBSOL	kse_thr_interrupt
1984383	AUE_NULL	OBSOL	kse_release
1985384	AUE_NULL	STD|CAPENABLED {
1986		int __mac_get_proc(
1987		    _In_ struct mac *mac_p
1988		);
1989	}
1990385	AUE_NULL	STD|CAPENABLED {
1991		int __mac_set_proc(
1992		    _In_ struct mac *mac_p
1993		);
1994	}
1995386	AUE_NULL	STD|CAPENABLED {
1996		int __mac_get_fd(
1997		    int fd,
1998		    _In_ struct mac *mac_p
1999		);
2000	}
2001387	AUE_NULL	STD {
2002		int __mac_get_file(
2003		    _In_z_ const char *path_p,
2004		    _In_ struct mac *mac_p
2005		);
2006	}
2007388	AUE_NULL	STD|CAPENABLED {
2008		int __mac_set_fd(
2009		    int fd,
2010		    _In_ struct mac *mac_p
2011		);
2012	}
2013389	AUE_NULL	STD {
2014		int __mac_set_file(
2015		    _In_z_ const char *path_p,
2016		    _In_ struct mac *mac_p
2017		);
2018	}
2019390	AUE_NULL	STD {
2020		int kenv(
2021		    int what,
2022		    _In_z_opt_ const char *name,
2023		    _Inout_updates_opt_(len) char *value,
2024		    int len
2025		);
2026	}
2027391	AUE_LCHFLAGS	STD {
2028		int lchflags(
2029		    _In_z_ const char *path,
2030		    u_long flags
2031		);
2032	}
2033392	AUE_NULL	STD|CAPENABLED {
2034		int uuidgen(
2035		    _Out_writes_(count) struct uuid *store,
2036		    int count
2037		);
2038	}
2039393	AUE_SENDFILE	STD|CAPENABLED {
2040		int sendfile(
2041		    int fd,
2042		    int s,
2043		    off_t offset,
2044		    size_t nbytes,
2045		    _In_opt_ struct sf_hdtr *hdtr,
2046		    _Out_opt_ off_t *sbytes,
2047		    int flags
2048		);
2049	}
2050394	AUE_NULL	STD {
2051		int mac_syscall(
2052		    _In_z_ const char *policy,
2053		    int call,
2054		    _In_opt_ void *arg
2055		);
2056	}
2057395	AUE_GETFSSTAT	COMPAT11 {
2058		int getfsstat(
2059		    _Out_writes_bytes_opt_(bufsize) struct freebsd11_statfs *buf,
2060		    long bufsize,
2061		    int mode
2062		);
2063	}
2064396	AUE_STATFS	COMPAT11 {
2065		int statfs(
2066		    _In_z_ const char *path,
2067		    _Out_ struct freebsd11_statfs *buf
2068		);
2069	}
2070397	AUE_FSTATFS	COMPAT11|CAPENABLED {
2071		int fstatfs(
2072		    int fd,
2073		    _Out_ struct freebsd11_statfs *buf
2074		);
2075	}
2076398	AUE_FHSTATFS	COMPAT11 {
2077		int fhstatfs(
2078		    _In_ const struct fhandle *u_fhp,
2079		    _Out_ struct freebsd11_statfs *buf
2080		);
2081	}
2082399	AUE_NULL	RESERVED
2083400	AUE_SEMCLOSE	NOSTD {
2084		int ksem_close(
2085		    semid_t id
2086		);
2087	}
2088401	AUE_SEMPOST	NOSTD {
2089		int ksem_post(
2090		    semid_t id
2091		);
2092	}
2093402	AUE_SEMWAIT	NOSTD {
2094		int ksem_wait(
2095		    semid_t id
2096		);
2097	}
2098403	AUE_SEMTRYWAIT	NOSTD {
2099		int ksem_trywait(
2100		    semid_t id
2101		);
2102	}
2103404	AUE_SEMINIT	NOSTD {
2104		int ksem_init(
2105		    _Out_ semid_t *idp,
2106		    unsigned int value
2107		);
2108	}
2109405	AUE_SEMOPEN	NOSTD {
2110		int ksem_open(
2111		    _Out_ semid_t *idp,
2112		    _In_z_ const char *name,
2113		    int oflag,
2114		    mode_t mode,
2115		    unsigned int value
2116		);
2117	}
2118406	AUE_SEMUNLINK	NOSTD {
2119		int ksem_unlink(
2120		    _In_z_ const char *name
2121		);
2122	}
2123407	AUE_SEMGETVALUE	NOSTD {
2124		int ksem_getvalue(
2125		    semid_t id,
2126		    _Out_ int *val
2127		);
2128	}
2129408	AUE_SEMDESTROY	NOSTD {
2130		int ksem_destroy(
2131		    semid_t id
2132		);
2133	}
2134409	AUE_NULL	STD {
2135		int __mac_get_pid(
2136		    pid_t pid,
2137		    _In_ struct mac *mac_p
2138		);
2139	}
2140410	AUE_NULL	STD {
2141		int __mac_get_link(
2142		    _In_z_ const char *path_p,
2143		    _In_ struct mac *mac_p
2144		);
2145	}
2146411	AUE_NULL	STD {
2147		int __mac_set_link(
2148		    _In_z_ const char *path_p,
2149		    _In_ struct mac *mac_p
2150		);
2151	}
2152412	AUE_EXTATTR_SET_LINK	STD {
2153		ssize_t extattr_set_link(
2154		    _In_z_ const char *path,
2155		    int attrnamespace,
2156		    _In_z_ const char *attrname,
2157		    _In_reads_bytes_(nbytes) void *data,
2158		    size_t nbytes
2159		);
2160	}
2161413	AUE_EXTATTR_GET_LINK	STD {
2162		ssize_t extattr_get_link(
2163		    _In_z_ const char *path,
2164		    int attrnamespace,
2165		    _In_z_ const char *attrname,
2166		    _Out_writes_bytes_(nbytes) void *data,
2167		    size_t nbytes
2168		);
2169	}
2170414	AUE_EXTATTR_DELETE_LINK	STD {
2171		int extattr_delete_link(
2172		    _In_z_ const char *path,
2173		    int attrnamespace,
2174		    _In_z_ const char *attrname
2175		);
2176	}
2177415	AUE_NULL	STD {
2178		int __mac_execve(
2179		    _In_z_ const char *fname,
2180		    _In_ char **argv,
2181		    _In_ char **envv,
2182		    _In_ struct mac *mac_p
2183		);
2184	}
2185416	AUE_SIGACTION	STD|CAPENABLED {
2186		int sigaction(
2187		    int sig,
2188		    _In_opt_ const struct sigaction *act,
2189		    _Out_opt_ struct sigaction *oact
2190		);
2191	}
2192417	AUE_SIGRETURN	STD|CAPENABLED {
2193		int sigreturn(
2194		    _In_ const struct __ucontext *sigcntxp
2195		);
2196	}
2197418-420	AUE_NULL	RESERVED
2198421	AUE_NULL	STD|CAPENABLED {
2199		int getcontext(
2200		    _Out_ struct __ucontext *ucp
2201		);
2202	}
2203422	AUE_NULL	STD|CAPENABLED {
2204		int setcontext(
2205		    _In_ const struct __ucontext *ucp
2206		);
2207	}
2208423	AUE_NULL	STD {
2209		int swapcontext(
2210		    _Out_ struct __ucontext *oucp,
2211		    _In_ const struct __ucontext *ucp
2212		);
2213	}
2214424	AUE_SWAPOFF	STD {
2215		int swapoff(
2216		    _In_z_ const char *name
2217		);
2218	}
2219425	AUE_ACL_GET_LINK	STD {
2220		int __acl_get_link(
2221		    _In_z_ const char *path,
2222		    acl_type_t type,
2223		    _Out_ struct acl *aclp
2224		);
2225	}
2226426	AUE_ACL_SET_LINK	STD {
2227		int __acl_set_link(
2228		    _In_z_ const char *path,
2229		    acl_type_t type,
2230		    _In_ struct acl *aclp
2231		);
2232	}
2233427	AUE_ACL_DELETE_LINK	STD {
2234		int __acl_delete_link(
2235		    _In_z_ const char *path,
2236		    acl_type_t type
2237		);
2238	}
2239428	AUE_ACL_CHECK_LINK	STD {
2240		int __acl_aclcheck_link(
2241		    _In_z_ const char *path,
2242		    acl_type_t type,
2243		    _In_ struct acl *aclp
2244		);
2245	}
2246429	AUE_SIGWAIT	STD|CAPENABLED {
2247		int sigwait(
2248		    _In_ const sigset_t *set,
2249		    _Out_ int *sig
2250		);
2251	}
2252430	AUE_THR_CREATE	STD|CAPENABLED {
2253		int thr_create(
2254		    _In_ ucontext_t *ctx,
2255		    _Out_ long *id,
2256		    int flags
2257		);
2258	}
2259431	AUE_THR_EXIT	STD|CAPENABLED {
2260		void thr_exit(
2261		    _Out_opt_ long *state
2262		);
2263	}
2264432	AUE_NULL	STD|CAPENABLED {
2265		int thr_self(
2266		    _Out_ long *id
2267		);
2268	}
2269433	AUE_THR_KILL	STD|CAPENABLED {
2270		int thr_kill(
2271		    long id,
2272		    int sig
2273		);
2274	}
2275
2276434	AUE_NULL	COMPAT10 {
2277		int _umtx_lock(
2278		    _Inout_ struct umtx *umtx
2279		);
2280	}
2281
2282435	AUE_NULL	COMPAT10 {
2283		int _umtx_unlock(
2284		    _Inout_ struct umtx *umtx
2285		);
2286	}
2287
2288436	AUE_JAIL_ATTACH	STD {
2289		int jail_attach(
2290		    int jid
2291		);
2292	}
2293437	AUE_EXTATTR_LIST_FD	STD|CAPENABLED {
2294		ssize_t extattr_list_fd(
2295		    int fd,
2296		    int attrnamespace,
2297		    _Out_writes_bytes_opt_(nbytes) void *data,
2298		    size_t nbytes
2299		);
2300	}
2301438	AUE_EXTATTR_LIST_FILE	STD {
2302		ssize_t extattr_list_file(
2303		    _In_z_ const char *path,
2304		    int attrnamespace,
2305		    _Out_writes_bytes_opt_(nbytes) void *data,
2306		    size_t nbytes
2307		);
2308	}
2309439	AUE_EXTATTR_LIST_LINK	STD {
2310		ssize_t extattr_list_link(
2311		    _In_z_ const char *path,
2312		    int attrnamespace,
2313		    _Out_writes_bytes_opt_(nbytes)
2314		    void *data,
2315		    size_t nbytes
2316		);
2317	}
2318440	AUE_NULL	OBSOL	kse_switchin
2319441	AUE_SEMWAIT	NOSTD {
2320		int ksem_timedwait(
2321		    semid_t id,
2322		    _In_opt_ const struct timespec *abstime
2323		);
2324	}
2325442	AUE_NULL	STD|CAPENABLED {
2326		int thr_suspend(
2327		    _In_opt_ const struct timespec *timeout
2328		);
2329	}
2330443	AUE_NULL	STD|CAPENABLED {
2331		int thr_wake(
2332		    long id
2333		);
2334	}
2335444	AUE_MODUNLOAD	STD {
2336		int kldunloadf(
2337		    int fileid,
2338		    int flags
2339		);
2340	}
2341445	AUE_AUDIT	STD {
2342		int audit(
2343		    _In_reads_bytes_(length) const void *record,
2344		    u_int length
2345		);
2346	}
2347446	AUE_AUDITON	STD {
2348		int auditon(
2349		    int cmd,
2350		    _In_opt_ void *data,
2351		    u_int length
2352		);
2353	}
2354447	AUE_GETAUID	STD|CAPENABLED {
2355		int getauid(
2356		    _Out_ uid_t *auid
2357		);
2358	}
2359448	AUE_SETAUID	STD|CAPENABLED {
2360		int setauid(
2361		    _In_ uid_t *auid
2362		);
2363	}
2364449	AUE_GETAUDIT	STD|CAPENABLED {
2365		int getaudit(
2366		    _Out_ struct auditinfo *auditinfo
2367		);
2368	}
2369450	AUE_SETAUDIT	STD|CAPENABLED {
2370		int setaudit(
2371		    _In_ struct auditinfo *auditinfo
2372		);
2373	}
2374451	AUE_GETAUDIT_ADDR	STD|CAPENABLED {
2375		int getaudit_addr(
2376		    _Out_writes_bytes_(length) struct auditinfo_addr *auditinfo_addr,
2377		    u_int length
2378		);
2379	}
2380452	AUE_SETAUDIT_ADDR	STD|CAPENABLED {
2381		int setaudit_addr(
2382		    _In_reads_bytes_(length) struct auditinfo_addr *auditinfo_addr,
2383		    u_int length
2384		);
2385	}
2386453	AUE_AUDITCTL	STD {
2387		int auditctl(
2388		    _In_z_ const char *path
2389		);
2390	}
2391454	AUE_NULL	STD|CAPENABLED {
2392		int _umtx_op(
2393		    _Inout_ void *obj,
2394		    int op,
2395		    u_long val,
2396		    _In_ void *uaddr1,
2397		    _In_ void *uaddr2
2398		);
2399	}
2400455	AUE_THR_NEW	STD|CAPENABLED {
2401		int thr_new(
2402		    _In_ struct thr_param *param,
2403		    int param_size
2404		);
2405	}
2406456	AUE_NULL	STD|CAPENABLED {
2407		int sigqueue(
2408		    pid_t pid,
2409		    int signum,
2410		    _In_ void *value
2411		);
2412	}
2413
2414457	AUE_MQ_OPEN	NOSTD {
2415		int kmq_open(
2416		    _In_z_ const char *path,
2417		    int flags,
2418		    mode_t mode,
2419		    _In_opt_ const struct mq_attr *attr
2420		);
2421	}
2422458	AUE_MQ_SETATTR	NOSTD|CAPENABLED {
2423		int kmq_setattr(
2424		    int mqd,
2425		    _In_opt_ const struct mq_attr *attr,
2426		    _Out_opt_ struct mq_attr *oattr
2427		);
2428	}
2429459	AUE_MQ_TIMEDRECEIVE	NOSTD|CAPENABLED {
2430		int kmq_timedreceive(
2431		    int mqd,
2432		    _Out_writes_bytes_(msg_len) char *msg_ptr,
2433		    size_t msg_len,
2434		    _Out_opt_ unsigned *msg_prio,
2435		    _In_opt_ const struct timespec *abs_timeout
2436		);
2437	}
2438460	AUE_MQ_TIMEDSEND	NOSTD|CAPENABLED {
2439		int kmq_timedsend(
2440		    int mqd,
2441		    _In_reads_bytes_(msg_len) const char *msg_ptr,
2442		    size_t msg_len,
2443		    unsigned msg_prio,
2444		    _In_opt_ const struct timespec *abs_timeout
2445		);
2446	}
2447461	AUE_MQ_NOTIFY	NOSTD|CAPENABLED {
2448		int kmq_notify(
2449		    int mqd,
2450		    _In_opt_ const struct sigevent *sigev
2451		);
2452	}
2453462	AUE_MQ_UNLINK	NOSTD {
2454		int kmq_unlink(
2455		    _In_z_ const char *path
2456		);
2457	}
2458463	AUE_NULL	STD|CAPENABLED {
2459		int abort2(
2460		    _In_z_ const char *why,
2461		    int nargs,
2462		    _In_reads_(nargs) void **args
2463		);
2464	}
2465464	AUE_NULL	STD|CAPENABLED {
2466		int thr_set_name(
2467		    long id,
2468		    _In_z_ const char *name
2469		);
2470	}
2471465	AUE_AIO_FSYNC	STD|CAPENABLED {
2472		int aio_fsync(
2473		    int op,
2474		    _In_ struct aiocb *aiocbp
2475		);
2476	}
2477466	AUE_RTPRIO	STD|CAPENABLED {
2478		int rtprio_thread(
2479		    int function,
2480		    lwpid_t lwpid,
2481		    _Inout_ struct rtprio *rtp
2482		);
2483	}
2484467-470	AUE_NULL	RESERVED
2485471	AUE_SCTP_PEELOFF	NOSTD|CAPENABLED {
2486		int sctp_peeloff(
2487		    int sd,
2488		    uint32_t name
2489		);
2490	}
2491472	AUE_SCTP_GENERIC_SENDMSG	NOSTD|CAPENABLED {
2492		int sctp_generic_sendmsg(
2493		    int sd,
2494		    _In_reads_bytes_(mlen) void *msg,
2495		    int mlen,
2496		    _In_reads_bytes_(tolen) struct sockaddr *to,
2497		    __socklen_t tolen,
2498		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
2499		    int flags
2500		);
2501	}
2502473	AUE_SCTP_GENERIC_SENDMSG_IOV	NOSTD|CAPENABLED {
2503		int sctp_generic_sendmsg_iov(
2504		    int sd,
2505		    _In_reads_(iovlen) struct iovec *iov,
2506		    int iovlen,
2507		    _In_reads_bytes_(tolen) struct sockaddr *to,
2508		    __socklen_t tolen,
2509		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
2510		    int flags
2511		);
2512	}
2513474	AUE_SCTP_GENERIC_RECVMSG	NOSTD|CAPENABLED {
2514		int sctp_generic_recvmsg(
2515		    int sd,
2516		    _In_reads_(iovlen) struct iovec *iov,
2517		    int iovlen,
2518		    _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
2519		    _Out_ __socklen_t *fromlenaddr,
2520		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
2521		    _Out_opt_ int *msg_flags
2522		);
2523	}
2524475	AUE_PREAD	STD|CAPENABLED {
2525		ssize_t pread(
2526		    int fd,
2527		    _Out_writes_bytes_(nbyte) void *buf,
2528		    size_t nbyte,
2529		    off_t offset
2530		);
2531	}
2532476	AUE_PWRITE	STD|CAPENABLED {
2533		ssize_t pwrite(
2534		    int fd,
2535		    _In_reads_bytes_(nbyte) const void *buf,
2536		    size_t nbyte,
2537		    off_t offset
2538		);
2539	}
2540477	AUE_MMAP	STD|CAPENABLED {
2541		void *mmap(
2542		    _In_ void *addr,
2543		    size_t len,
2544		    int prot,
2545		    int flags,
2546		    int fd,
2547		    off_t pos
2548		);
2549	}
2550478	AUE_LSEEK	STD|CAPENABLED {
2551		off_t lseek(
2552		    int fd,
2553		    off_t offset,
2554		    int whence
2555		);
2556	}
2557479	AUE_TRUNCATE	STD {
2558		int truncate(
2559		    _In_z_ const char *path,
2560		    off_t length
2561		);
2562	}
2563480	AUE_FTRUNCATE	STD|CAPENABLED {
2564		int ftruncate(
2565		    int fd,
2566		    off_t length
2567		);
2568	}
2569481	AUE_THR_KILL2	STD {
2570		int thr_kill2(
2571		    pid_t pid,
2572		    long id,
2573		    int sig
2574		);
2575	}
2576482	AUE_SHMOPEN	COMPAT12|CAPENABLED {
2577		int shm_open(
2578		    _In_z_ const char *path,
2579		    int flags,
2580		    mode_t mode
2581		);
2582	}
2583483	AUE_SHMUNLINK	STD {
2584		int shm_unlink(
2585		    _In_z_ const char *path
2586		);
2587	}
2588484	AUE_NULL	STD {
2589		int cpuset(
2590		    _Out_ cpusetid_t *setid
2591		);
2592	}
2593485	AUE_NULL	STD {
2594		int cpuset_setid(
2595		    cpuwhich_t which,
2596		    id_t id,
2597		    cpusetid_t setid
2598		);
2599	}
2600486	AUE_NULL	STD {
2601		int cpuset_getid(
2602		    cpulevel_t level,
2603		    cpuwhich_t which,
2604		    id_t id,
2605		    _Out_ cpusetid_t *setid
2606		);
2607	}
2608487	AUE_NULL	STD|CAPENABLED {
2609		int cpuset_getaffinity(
2610		    cpulevel_t level,
2611		    cpuwhich_t which,
2612		    id_t id,
2613		    size_t cpusetsize,
2614		    _Out_ cpuset_t *mask
2615		);
2616	}
2617488	AUE_NULL	STD|CAPENABLED {
2618		int cpuset_setaffinity(
2619		    cpulevel_t level,
2620		    cpuwhich_t which,
2621		    id_t id,
2622		    size_t cpusetsize,
2623		    _Out_ const cpuset_t *mask
2624		);
2625	}
2626489	AUE_FACCESSAT	STD|CAPENABLED {
2627		int faccessat(
2628		    int fd,
2629		    _In_z_ const char *path,
2630		    int amode,
2631		    int flag
2632		);
2633	}
2634490	AUE_FCHMODAT	STD|CAPENABLED {
2635		int fchmodat(
2636		    int fd,
2637		    _In_z_ const char *path,
2638		    mode_t mode,
2639		    int flag
2640		);
2641	}
2642491	AUE_FCHOWNAT	STD|CAPENABLED {
2643		int fchownat(
2644		    int fd,
2645		    _In_z_ const char *path,
2646		    uid_t uid,
2647		    gid_t gid,
2648		    int flag
2649		);
2650	}
2651492	AUE_FEXECVE	STD|CAPENABLED {
2652		int fexecve(
2653		    int fd,
2654		    _In_ char **argv,
2655		    _In_ char **envv
2656		);
2657	}
2658493	AUE_FSTATAT	COMPAT11|CAPENABLED {
2659		int fstatat(
2660		    int fd,
2661		    _In_z_ const char *path,
2662		    _Out_ struct freebsd11_stat *buf,
2663		    int flag
2664		);
2665	}
2666494	AUE_FUTIMESAT	STD|CAPENABLED {
2667		int futimesat(
2668		    int fd,
2669		    _In_z_ const char *path,
2670		    _In_reads_(2) struct timeval *times
2671		);
2672	}
2673495	AUE_LINKAT	STD|CAPENABLED {
2674		int linkat(
2675		    int fd1,
2676		    _In_z_ const char *path1,
2677		    int fd2,
2678		    _In_z_ const char *path2,
2679		    int flag
2680		);
2681	}
2682496	AUE_MKDIRAT	STD|CAPENABLED {
2683		int mkdirat(
2684		    int fd,
2685		    _In_z_ const char *path,
2686		    mode_t mode
2687		);
2688	}
2689497	AUE_MKFIFOAT	STD|CAPENABLED {
2690		int mkfifoat(
2691		    int fd,
2692		    _In_z_ const char *path,
2693		    mode_t mode
2694		);
2695	}
2696498	AUE_MKNODAT	COMPAT11|CAPENABLED {
2697		int mknodat(
2698		    int fd,
2699		    _In_z_ const char *path,
2700		    mode_t mode,
2701		    uint32_t dev
2702		);
2703	}
2704; XXX: see the comment for open
2705499	AUE_OPENAT_RWTC	STD|CAPENABLED {
2706		int openat(
2707		    int fd,
2708		    _In_z_ const char *path,
2709		    int flag,
2710		    mode_t mode
2711		);
2712	}
2713500	AUE_READLINKAT	STD|CAPENABLED {
2714		ssize_t readlinkat(
2715		    int fd,
2716		    _In_z_ const char *path,
2717		    _Out_writes_bytes_(bufsize) char *buf,
2718		    size_t bufsize
2719		);
2720	}
2721501	AUE_RENAMEAT	STD|CAPENABLED {
2722		int renameat(
2723		    int oldfd,
2724		    _In_z_ const char *old,
2725		    int newfd,
2726		    _In_z_ const char *new
2727		);
2728	}
2729502	AUE_SYMLINKAT	STD|CAPENABLED {
2730		int symlinkat(
2731		    _In_z_ const char *path1,
2732		    int fd,
2733		    _In_z_ const char *path2
2734		);
2735	}
2736503	AUE_UNLINKAT	STD|CAPENABLED {
2737		int unlinkat(
2738		    int fd,
2739		    _In_z_ const char *path,
2740		    int flag
2741		);
2742	}
2743504	AUE_POSIX_OPENPT	STD {
2744		int posix_openpt(
2745		    int flags
2746		);
2747	}
2748; 505 is initialised by the kgssapi code, if present.
2749505	AUE_NULL	NOSTD {
2750		int gssd_syscall(
2751		    _In_z_ const char *path
2752		);
2753	}
2754506	AUE_JAIL_GET	STD {
2755		int jail_get(
2756		    _In_reads_(iovcnt) struct iovec *iovp,
2757		    unsigned int iovcnt,
2758		    int flags
2759		);
2760	}
2761507	AUE_JAIL_SET	STD {
2762		int jail_set(
2763		    _In_reads_(iovcnt) struct iovec *iovp,
2764		    unsigned int iovcnt,
2765		    int flags
2766		);
2767	}
2768508	AUE_JAIL_REMOVE	STD {
2769		int jail_remove(
2770		    int jid
2771		);
2772	}
2773509	AUE_CLOSEFROM	COMPAT12|CAPENABLED {
2774		int closefrom(
2775		    int lowfd
2776		);
2777	}
2778510	AUE_SEMCTL	NOSTD {
2779		int __semctl(
2780		    int semid,
2781		    int semnum,
2782		    int cmd,
2783		    _Inout_ union semun *arg
2784		);
2785	}
2786511	AUE_MSGCTL	NOSTD {
2787		int msgctl(
2788		    int msqid,
2789		    int cmd,
2790		    _Inout_opt_ struct msqid_ds *buf
2791		);
2792	}
2793512	AUE_SHMCTL	NOSTD {
2794		int shmctl(
2795		    int shmid,
2796		    int cmd,
2797		    _Inout_opt_ struct shmid_ds *buf
2798		);
2799	}
2800513	AUE_LPATHCONF	STD {
2801		int lpathconf(
2802		    _In_z_ const char *path,
2803		    int name
2804		);
2805	}
2806514	AUE_NULL	OBSOL	cap_new
2807515	AUE_CAP_RIGHTS_GET	STD|CAPENABLED {
2808		int __cap_rights_get(
2809		    int version,
2810		    int fd,
2811		    _Out_ cap_rights_t *rightsp
2812		);
2813	}
2814516	AUE_CAP_ENTER	STD|CAPENABLED {
2815		int cap_enter(void);
2816	}
2817517	AUE_CAP_GETMODE	STD|CAPENABLED {
2818		int cap_getmode(
2819		    _Out_ u_int *modep
2820		);
2821	}
2822518	AUE_PDFORK	STD|CAPENABLED {
2823		int pdfork(
2824		    _Out_ int *fdp,
2825		    int flags
2826		);
2827	}
2828519	AUE_PDKILL	STD|CAPENABLED {
2829		int pdkill(
2830		    int fd,
2831		    int signum
2832		);
2833	}
2834520	AUE_PDGETPID	STD|CAPENABLED {
2835		int pdgetpid(
2836		    int fd,
2837		    _Out_ pid_t *pidp
2838		);
2839	}
2840521	AUE_NULL	RESERVED
2841522	AUE_SELECT	STD|CAPENABLED {
2842		int pselect(
2843		    int nd,
2844		    _Inout_opt_ fd_set *in,
2845		    _Inout_opt_ fd_set *ou,
2846		    _Inout_opt_ fd_set *ex,
2847		    _In_opt_ const struct timespec *ts,
2848		    _In_opt_ const sigset_t *sm
2849		);
2850	}
2851523	AUE_GETLOGINCLASS	STD|CAPENABLED {
2852		int getloginclass(
2853		    _Out_writes_z_(namelen) char *namebuf,
2854		    size_t namelen
2855		);
2856	}
2857524	AUE_SETLOGINCLASS	STD {
2858		int setloginclass(
2859		    _In_z_ const char *namebuf
2860		);
2861	}
2862525	AUE_NULL	STD {
2863		int rctl_get_racct(
2864		    _In_reads_bytes_(inbuflen) const void *inbufp,
2865		    size_t inbuflen,
2866		    _Out_writes_bytes_(outbuflen) void *outbufp,
2867		    size_t outbuflen
2868		);
2869	}
2870526	AUE_NULL	STD {
2871		int rctl_get_rules(
2872		    _In_reads_bytes_(inbuflen) const void *inbufp,
2873		    size_t inbuflen,
2874		    _Out_writes_bytes_(outbuflen) void *outbufp,
2875		    size_t outbuflen
2876		);
2877	}
2878527	AUE_NULL	STD {
2879		int rctl_get_limits(
2880		    _In_reads_bytes_(inbuflen) const void *inbufp,
2881		    size_t inbuflen,
2882		    _Out_writes_bytes_(outbuflen) void *outbufp,
2883		    size_t outbuflen
2884		);
2885	}
2886528	AUE_NULL	STD {
2887		int rctl_add_rule(
2888		    _In_reads_bytes_(inbuflen) const void *inbufp,
2889		    size_t inbuflen,
2890		    _Out_writes_bytes_(outbuflen) void *outbufp,
2891		    size_t outbuflen
2892		);
2893	}
2894529	AUE_NULL	STD {
2895		int rctl_remove_rule(
2896		    _In_reads_bytes_(inbuflen) const void *inbufp,
2897		    size_t inbuflen,
2898		    _Out_writes_bytes_(outbuflen) void *outbufp,
2899		    size_t outbuflen
2900		);
2901	}
2902530	AUE_POSIX_FALLOCATE	STD|CAPENABLED {
2903		int posix_fallocate(
2904		    int fd,
2905		    off_t offset,
2906		    off_t len
2907		);
2908	}
2909531	AUE_POSIX_FADVISE	STD {
2910		int posix_fadvise(
2911		    int fd,
2912		    off_t offset,
2913		    off_t len,
2914		    int advice
2915		);
2916	}
2917532	AUE_WAIT6	STD {
2918		int wait6(
2919		    idtype_t idtype,
2920		    id_t id,
2921		    _Out_opt_ int *status,
2922		    int options,
2923		    _Out_opt_ struct __wrusage *wrusage,
2924		    _Out_opt_ siginfo_t *info
2925		);
2926	}
2927533	AUE_CAP_RIGHTS_LIMIT	STD|CAPENABLED {
2928		int cap_rights_limit(
2929		    int fd,
2930		    _In_ cap_rights_t *rightsp
2931		);
2932	}
2933534	AUE_CAP_IOCTLS_LIMIT	STD|CAPENABLED {
2934		int cap_ioctls_limit(
2935		    int fd,
2936		    _In_reads_(ncmds) const u_long *cmds,
2937		    size_t ncmds
2938		);
2939	}
2940535	AUE_CAP_IOCTLS_GET	STD|CAPENABLED {
2941		ssize_t cap_ioctls_get(
2942		    int fd,
2943		    _Out_writes_(maxcmds) u_long *cmds,
2944		    size_t maxcmds
2945		);
2946	}
2947536	AUE_CAP_FCNTLS_LIMIT	STD|CAPENABLED {
2948		int cap_fcntls_limit(
2949		    int fd,
2950		    uint32_t fcntlrights
2951		);
2952	}
2953537	AUE_CAP_FCNTLS_GET	STD|CAPENABLED {
2954		int cap_fcntls_get(
2955		    int fd,
2956		    _Out_ uint32_t *fcntlrightsp
2957		);
2958	}
2959538	AUE_BINDAT	STD|CAPENABLED {
2960		int bindat(
2961		    int fd,
2962		    int s,
2963		    _In_reads_bytes_(namelen) const struct sockaddr *name,
2964		    int namelen
2965		);
2966	}
2967539	AUE_CONNECTAT	STD|CAPENABLED {
2968		int connectat(
2969		    int fd,
2970		    int s,
2971		    _In_reads_bytes_(namelen) const struct sockaddr *name,
2972		    int namelen
2973		);
2974	}
2975540	AUE_CHFLAGSAT	STD|CAPENABLED {
2976		int chflagsat(
2977		    int fd,
2978		    _In_z_ const char *path,
2979		    u_long flags,
2980		    int atflag
2981		);
2982	}
2983541	AUE_ACCEPT	STD|CAPENABLED {
2984		int accept4(
2985		    int s,
2986		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
2987		    _Inout_opt_ __socklen_t *anamelen,
2988		    int flags
2989		);
2990	}
2991542	AUE_PIPE	STD|CAPENABLED {
2992		int pipe2(
2993		    _Out_writes_(2) int *fildes,
2994		    int flags
2995		);
2996	}
2997543	AUE_AIO_MLOCK	STD {
2998		int aio_mlock(
2999		    _In_ struct aiocb *aiocbp
3000		);
3001	}
3002544	AUE_PROCCTL	STD {
3003		int procctl(
3004		    idtype_t idtype,
3005		    id_t id,
3006		    int com,
3007		    _In_opt_ void *data
3008		);
3009	}
3010545	AUE_POLL	STD|CAPENABLED {
3011		int ppoll(
3012		    _Inout_updates_(nfds) struct pollfd *fds,
3013		    u_int nfds,
3014		    _In_opt_ const struct timespec *ts,
3015		    _In_opt_ const sigset_t *set
3016		);
3017	}
3018546	AUE_FUTIMES	STD|CAPENABLED {
3019		int futimens(
3020		    int fd,
3021		    _In_reads_(2) struct timespec *times
3022		);
3023	}
3024547	AUE_FUTIMESAT	STD|CAPENABLED {
3025		int utimensat(
3026		    int fd,
3027		    _In_z_ const char *path,
3028		    _In_reads_(2) struct timespec *times,
3029		    int flag
3030		);
3031	}
3032548	AUE_NULL	OBSOL	numa_getaffinity
3033549	AUE_NULL	OBSOL	numa_setaffinity
3034550	AUE_FSYNC	STD|CAPENABLED {
3035		int fdatasync(
3036		    int fd
3037		);
3038	}
3039551	AUE_FSTAT	STD|CAPENABLED {
3040		int fstat(
3041		    int fd,
3042		    _Out_ struct stat *sb
3043		);
3044	}
3045552	AUE_FSTATAT	STD|CAPENABLED {
3046		int fstatat(
3047		    int fd,
3048		    _In_z_ const char *path,
3049		    _Out_ struct stat *buf,
3050		    int flag
3051		);
3052	}
3053553	AUE_FHSTAT	STD {
3054		int fhstat(
3055		    _In_ const struct fhandle *u_fhp,
3056		    _Out_ struct stat *sb
3057		);
3058	}
3059554	AUE_GETDIRENTRIES STD|CAPENABLED {
3060		ssize_t getdirentries(
3061		    int fd,
3062		    _Out_writes_bytes_(count) char *buf,
3063		    size_t count,
3064		    _Out_ off_t *basep
3065		);
3066	}
3067555	AUE_STATFS	STD {
3068		int statfs(
3069		    _In_z_ const char *path,
3070		    _Out_ struct statfs *buf
3071		);
3072	}
3073556	AUE_FSTATFS	STD|CAPENABLED {
3074		int fstatfs(
3075		    int fd,
3076		    _Out_ struct statfs *buf
3077		);
3078	}
3079557	AUE_GETFSSTAT	STD {
3080		int getfsstat(
3081		    _Out_writes_bytes_opt_(bufsize) struct statfs *buf,
3082		    long bufsize,
3083		    int mode
3084		);
3085	}
3086558	AUE_FHSTATFS	STD {
3087		int fhstatfs(
3088		    _In_ const struct fhandle *u_fhp,
3089		    _Out_ struct statfs *buf
3090		);
3091	}
3092559	AUE_MKNODAT	STD|CAPENABLED {
3093		int mknodat(
3094		    int fd,
3095		    _In_z_ const char *path,
3096		    mode_t mode,
3097		    dev_t dev
3098		);
3099	}
3100560	AUE_KEVENT	STD|CAPENABLED {
3101		int kevent(
3102		    int fd,
3103		    _In_reads_opt_(nchanges) struct kevent *changelist,
3104		    int nchanges,
3105		    _Out_writes_opt_(nevents) struct kevent *eventlist,
3106		    int nevents,
3107		    _In_opt_ const struct timespec *timeout
3108		);
3109	}
3110561	AUE_NULL	STD|CAPENABLED {
3111		int cpuset_getdomain(
3112		    cpulevel_t level,
3113		    cpuwhich_t which,
3114		    id_t id,
3115		    size_t domainsetsize,
3116		    _Out_writes_bytes_(domainsetsize) domainset_t *mask,
3117		    _Out_ int *policy
3118		);
3119	}
3120562	AUE_NULL	STD|CAPENABLED {
3121		int cpuset_setdomain(
3122		    cpulevel_t level,
3123		    cpuwhich_t which,
3124		    id_t id,
3125		    size_t domainsetsize,
3126		    _In_ domainset_t *mask,
3127		    int policy
3128		);
3129	}
3130563	AUE_NULL	STD|CAPENABLED {
3131		int getrandom(
3132		    _Out_writes_bytes_(buflen) void *buf,
3133		    size_t buflen,
3134		    unsigned int flags
3135		);
3136	}
3137564	AUE_NULL	STD {
3138		int getfhat(
3139		    int fd,
3140		    _In_z_ char *path,
3141		    _Out_ struct fhandle *fhp,
3142		    int flags
3143		);
3144	}
3145565	AUE_NULL	STD {
3146		int fhlink(
3147		    _In_ struct fhandle *fhp,
3148		    _In_z_ const char *to
3149		);
3150	}
3151566	AUE_NULL	STD {
3152		int fhlinkat(
3153		    _In_ struct fhandle *fhp,
3154		    int tofd,
3155		    _In_z_ const char *to,
3156		);
3157	}
3158567	AUE_NULL	STD {
3159		int fhreadlink(
3160		    _In_ struct fhandle *fhp,
3161		    _Out_writes_(bufsize) char *buf,
3162		    size_t bufsize
3163		);
3164	}
3165568	AUE_UNLINKAT	STD|CAPENABLED {
3166		int funlinkat(
3167		    int dfd,
3168		    _In_z_ const char *path,
3169		    int fd,
3170		    int flag
3171		);
3172	}
3173569	AUE_NULL	STD|CAPENABLED {
3174		ssize_t copy_file_range(
3175		    int infd,
3176		    _Inout_opt_ off_t *inoffp,
3177		    int outfd,
3178		    _Inout_opt_ off_t *outoffp,
3179		    size_t len,
3180		    unsigned int flags
3181		);
3182	}
3183570	AUE_SYSCTL	STD|CAPENABLED {
3184		int __sysctlbyname(
3185		    _In_reads_(namelen) const char *name,
3186		    size_t namelen,
3187		    _Out_writes_bytes_opt_(*oldlenp) void *old,
3188		    _Inout_opt_ size_t *oldlenp,
3189		    _In_reads_bytes_opt_(newlen) void *new,
3190		    size_t newlen
3191		);
3192	}
3193571	AUE_SHMOPEN	STD|CAPENABLED {
3194		int shm_open2(
3195		    _In_z_ const char *path,
3196		    int flags,
3197		    mode_t mode,
3198		    int shmflags,
3199		    _In_z_ const char *name
3200		);
3201	}
3202572	AUE_SHMRENAME	STD {
3203		int shm_rename(
3204		    _In_z_ const char *path_from,
3205		    _In_z_ const char *path_to,
3206		    int flags
3207		);
3208	}
3209573	AUE_NULL	STD|CAPENABLED {
3210		int sigfastblock(
3211		    int cmd,
3212		    _Inout_opt_ uint32_t *ptr
3213		);
3214	}
3215574	AUE_REALPATHAT	STD {
3216		int __realpathat(
3217		    int fd,
3218		    _In_z_ const char *path,
3219		    _Out_writes_z_(size) char *buf,
3220		    size_t size,
3221		    int flags
3222		);
3223	}
3224575	AUE_CLOSERANGE	STD|CAPENABLED {
3225		int close_range(
3226		    u_int lowfd,
3227		    u_int highfd,
3228		    int flags
3229		);
3230	}
3231; 576 is initialised by the krpc code, if present.
3232576	AUE_NULL	NOSTD {
3233		int rpctls_syscall(
3234		    int op,
3235		    _In_z_ const char *path
3236		);
3237	}
3238577	AUE_SPECIALFD	STD|CAPENABLED {
3239		int __specialfd(
3240		    int type,
3241		    _In_reads_bytes_(len) const void *req,
3242		    size_t len
3243		);
3244	}
3245578	AUE_AIO_WRITEV	STD|CAPENABLED {
3246		int aio_writev(
3247		    _Inout_ struct aiocb *aiocbp
3248		);
3249	}
3250579	AUE_AIO_READV	STD|CAPENABLED {
3251		int aio_readv(
3252		    _Inout_ struct aiocb *aiocbp
3253		);
3254	}
3255580	AUE_FSPACECTL	STD|CAPENABLED {
3256		int fspacectl(
3257		    int fd,
3258		    int cmd,
3259		    _In_ const struct spacectl_range *rqsr,
3260		    int flags,
3261		    _Out_opt_ struct spacectl_range *rmsr,
3262		);
3263	}
3264
3265; Please copy any additions and changes to the following compatability tables:
3266; sys/compat/freebsd32/syscalls.master
3267; vim: syntax=off
3268