xref: /freebsd/sys/kern/syscalls.master (revision be67ea40c5a0fd375d754a92e6cd8a3bfc508ba3)
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; To support programmatic generation of both the default ABI and 32-bit compat
54; (freebsd32) we impose a number of restrictions on the types of system calls.
55; For integer types:
56;  - Bare int and long are allowed (long is a sign of a bad interface).
57;  - Use u_int and u_long rather than "unsigned (int|long)".
58;  - size_t is allowed.
59;  - typedefs are allowed, but new signed types that vary between 32- and
60;    64-bit ABIs must be added to makesyscalls.lua so it knows they require
61;    handling.
62;  - Always-64-bit types other than dev_t, id_t, and off_t must be added to
63;    makesyscalls.lua.
64; For pointers:
65;  - Prefer structs to typedefs so an ABI-specific suffix (e.g., "32") can
66;    be prepended (e.g., ucontext_t -> struct ucontext -> struct ucontext32).
67;  - Pointers to objects (structs, unions, etc) containing any long, pointer,
68;    or time_t arguments need _Contains_ annotations.  Such objects should be
69;    padded such that all 64-bit types are 64-bit aligned.
70
71; annotations:
72;	SAL 2.0 annotations are used to specify how system calls treat
73;	arguments that are passed using pointers. There are three basic
74;	annotations.
75;
76;	_In_    Object pointed to will be read and not modified.
77;	_Out_   Object pointed to will be written and not read.
78;	_Inout_ Object pointed to will be written and read.
79;
80;	These annotations are used alone when the pointer refers to a single
81;	object i.e. scalar types, structs, and pointers, and not NULL. Adding
82;	the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also
83;	refer to NULL.
84;
85;	For pointers to arrays, additional suffixes are added:
86;
87;	_In_z_, _Out_z_, _Inout_z_:
88;	    for a NUL terminated array e.g. a string.
89;	_In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n):
90;	    for a NUL terminated array e.g. a string, of known length n bytes.
91;	_In_reads_(n),_Out_writes_(n),_Inout_updates_(n):
92;	    for an array of n elements.
93;	_In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n):
94;	    for a buffer of n-bytes.
95;
96;	In addition to SAL annotations, pointers are annotated to indicate
97;	that they point to types that change between ABIs.  That means that
98;	they contain long, pointer, or time_t types.  This is indicated with
99;	a _Contains_ annotation followed immediately by one or more of:
100;
101;	long_	Object contains a direct (or typedef'd) long value and varies
102;		between 32- and 64-bit ABIs.  This includes size_t.
103;	ptr_	Object contains pointers (or intptr_t) and varies between
104;		32- and 64-bit ABIs.
105;	timet_	Object contains a time_t and varies between i386 and other
106;		ABIs.
107
108; #ifdef's, etc. may be included, and are copied to the output files.
109
110#include <sys/param.h>
111#include <sys/sysent.h>
112#include <sys/sysproto.h>
113%%ABI_HEADERS%%
114
1150	AUE_NULL	STD {
116		int nosys(void);
117	} syscall nosys_args int
1181	AUE_EXIT	STD|CAPENABLED {
119		void sys_exit(
120		    int rval
121		);
122	} exit sys_exit_args void
1232	AUE_FORK	STD|CAPENABLED {
124		int fork(void);
125	}
1263	AUE_READ	STD|CAPENABLED {
127		ssize_t read(
128		    int fd,
129		    _Out_writes_bytes_(nbyte) void *buf,
130		    size_t nbyte
131		);
132	}
1334	AUE_WRITE	STD|CAPENABLED {
134		ssize_t write(
135		    int fd,
136		    _In_reads_bytes_(nbyte) const void *buf,
137		    size_t nbyte
138		);
139	}
1405	AUE_OPEN_RWTC	STD {
141		int open(
142		    _In_z_ const char *path,
143		    int flags,
144		    mode_t mode
145		);
146	}
147; XXX should be		{ int open(const char *path, int flags, ...); }
148; but we're not ready for varargs.
1496	AUE_CLOSE	STD|CAPENABLED {
150		int close(
151		    int fd
152		);
153	}
1547	AUE_WAIT4	STD {
155		int wait4(
156		    int pid,
157		    _Out_opt_ int *status,
158		    int options,
159		    _Out_opt_ _Contains_long_timet_ struct rusage *rusage
160		);
161	}
1628	AUE_CREAT	COMPAT {
163		int creat(
164		    _In_z_ const char *path,
165		    int mode
166		);
167	}
1689	AUE_LINK	STD {
169		int link(
170		    _In_z_ const char *path,
171		    _In_z_ const char *link
172		);
173	}
17410	AUE_UNLINK	STD {
175		int unlink(
176		    _In_z_ const char *path
177		);
178	}
17911	AUE_NULL	OBSOL	execv
18012	AUE_CHDIR	STD {
181		int chdir(
182		    _In_z_ const char *path
183		);
184	}
18513	AUE_FCHDIR	STD {
186		int fchdir(
187		    int fd
188		);
189	}
19014	AUE_MKNOD	COMPAT11 {
191		int mknod(
192		    _In_z_ const char *path,
193		    int mode,
194		    uint32_t dev
195		);
196	}
19715	AUE_CHMOD	STD {
198		int chmod(
199		    _In_z_ const char *path,
200		    mode_t mode
201		);
202	}
20316	AUE_CHOWN	STD {
204		int chown(
205		    _In_z_ const char *path,
206		    int uid,
207		    int gid
208		);
209	}
21017	AUE_NULL	STD|CAPENABLED {
211		void *break(
212		    _In_ char *nsize
213		);
214	}
21518	AUE_GETFSSTAT	COMPAT4 {
216		int getfsstat(
217		    _Out_writes_bytes_opt_(bufsize) _Contains_long_ struct ostatfs *buf,
218		    long bufsize,
219		    int mode
220		);
221	}
22219	AUE_LSEEK	COMPAT|CAPENABLED {
223		long lseek(
224		    int fd,
225		    long offset,
226		    int whence
227		);
228	}
22920	AUE_GETPID	STD|CAPENABLED {
230		pid_t getpid(void);
231	}
23221	AUE_MOUNT	STD {
233		int mount(
234		    _In_z_ const char *type,
235		    _In_z_ const char *path,
236		    int flags,
237		    _In_opt_ void *data
238		);
239	}
24022	AUE_UMOUNT	STD {
241		int unmount(
242		    _In_z_ const char *path,
243		    int flags
244		);
245	}
24623	AUE_SETUID	STD|CAPENABLED {
247		int setuid(
248		    uid_t uid
249		);
250	}
25124	AUE_GETUID	STD|CAPENABLED {
252		uid_t getuid(void);
253	}
25425	AUE_GETEUID	STD|CAPENABLED {
255		uid_t geteuid(void);
256	}
25726	AUE_PTRACE	STD {
258		int ptrace(
259		    int req,
260		    pid_t pid,
261		    _Inout_opt_ _Contains_long_ptr_ caddr_t addr,
262		    int data
263		);
264	}
26527	AUE_RECVMSG	STD|CAPENABLED {
266		ssize_t recvmsg(
267		    int s,
268		    _Inout_ _Contains_ptr_ struct msghdr *msg,
269		    int flags
270		);
271	}
27228	AUE_SENDMSG	STD|CAPENABLED {
273		ssize_t sendmsg(
274		    int s,
275		    _In_ _Contains_ptr_ const struct msghdr *msg,
276		    int flags
277		);
278	}
27929	AUE_RECVFROM	STD|CAPENABLED {
280		ssize_t recvfrom(
281		    int s,
282		    _Out_writes_bytes_(len) void *buf,
283		    size_t len,
284		    int flags,
285		    _Out_writes_bytes_opt_(*fromlenaddr) struct sockaddr *from,
286		    _Inout_opt_ __socklen_t *fromlenaddr
287		);
288	}
28930	AUE_ACCEPT	STD|CAPENABLED {
290		int accept(
291		    int s,
292		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
293		    _Inout_opt_ __socklen_t *anamelen
294		);
295	}
29631	AUE_GETPEERNAME	STD|CAPENABLED {
297		int getpeername(
298		    int fdes,
299		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
300		    _Inout_opt_ __socklen_t *alen
301		);
302	}
30332	AUE_GETSOCKNAME	STD|CAPENABLED {
304		int getsockname(
305		    int fdes,
306		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
307		    _Inout_ __socklen_t *alen
308		);
309	}
31033	AUE_ACCESS	STD {
311		int access(
312		    _In_z_ const char *path,
313		    int amode
314		);
315	}
31634	AUE_CHFLAGS	STD {
317		int chflags(
318		    _In_z_ const char *path,
319		    u_long flags
320		);
321	}
32235	AUE_FCHFLAGS	STD|CAPENABLED {
323		int fchflags(
324		    int fd,
325		    u_long flags
326		);
327	}
32836	AUE_SYNC	STD|CAPENABLED {
329		int sync(void);
330	}
33137	AUE_KILL	STD|CAPENABLED {
332		int kill(
333		    int pid,
334		    int signum
335		);
336	}
33738	AUE_STAT	COMPAT {
338		int stat(
339		    _In_z_ const char *path,
340		    _Out_ _Contains_timet_ struct ostat *ub
341		);
342	}
34339	AUE_GETPPID	STD|CAPENABLED {
344		pid_t getppid(void);
345	}
34640	AUE_LSTAT	COMPAT {
347		int lstat(
348		    _In_z_ const char *path,
349		    _Out_ _Contains_timet_ struct ostat *ub
350		);
351	}
35241	AUE_DUP		STD|CAPENABLED {
353		int dup(
354		    u_int fd
355		);
356	}
35742	AUE_PIPE	COMPAT10|CAPENABLED {
358		int pipe(void);
359	}
36043	AUE_GETEGID	STD|CAPENABLED {
361		gid_t getegid(void);
362	}
36344	AUE_PROFILE	STD|CAPENABLED {
364		int profil(
365		    _Out_writes_bytes_(size) char *samples,
366		    size_t size,
367		    size_t offset,
368		    u_int scale
369		);
370	}
37145	AUE_KTRACE	STD {
372		int ktrace(
373		    _In_z_ const char *fname,
374		    int ops,
375		    int facs,
376		    int pid
377		);
378	}
37946	AUE_SIGACTION	COMPAT|CAPENABLED {
380		int sigaction(
381		    int signum,
382		    _In_opt_ _Contains_ptr_ struct osigaction *nsa,
383		    _Out_opt_ _Contains_ptr_ struct osigaction *osa
384		);
385	}
38647	AUE_GETGID	STD|CAPENABLED {
387		gid_t getgid(void);
388	}
38948	AUE_SIGPROCMASK	COMPAT|CAPENABLED {
390		int sigprocmask(
391		    int how,
392		    osigset_t mask
393		);
394	}
395; XXX note nonstandard (bogus) calling convention - the libc stub passes
396; us the mask, not a pointer to it, and we return the old mask as the
397; (int) return value.
39849	AUE_GETLOGIN	STD|CAPENABLED {
399		int getlogin(
400		    _Out_writes_z_(namelen) char *namebuf,
401		    u_int namelen
402		);
403	}
40450	AUE_SETLOGIN	STD {
405		int setlogin(
406		    _In_z_ const char *namebuf
407		);
408	}
40951	AUE_ACCT	STD {
410		int acct(
411		    _In_z_ const char *path
412		);
413	}
41452	AUE_SIGPENDING	COMPAT|CAPENABLED {
415		int sigpending(void);
416	}
41753	AUE_SIGALTSTACK	STD|CAPENABLED {
418		int sigaltstack(
419		    _In_opt_ _Contains_long_ptr_ const struct sigaltstack *ss,
420		    _Out_opt_ _Contains_long_ptr_ struct sigaltstack *oss
421		);
422	}
42354	AUE_IOCTL	STD|CAPENABLED {
424		int ioctl(
425		    int fd,
426		    u_long com,
427		    _Inout_opt_ _Contains_long_ptr_ char *data
428		);
429	}
43055	AUE_REBOOT	STD {
431		int reboot(
432		    int opt
433		);
434	}
43556	AUE_REVOKE	STD {
436		int revoke(
437		    _In_z_ const char *path
438		);
439	}
44057	AUE_SYMLINK	STD {
441		int symlink(
442		    _In_z_ const char *path,
443		    _In_z_ const char *link
444		);
445	}
44658	AUE_READLINK	STD {
447		ssize_t readlink(
448		    _In_z_ const char *path,
449		    _Out_writes_z_(count) char *buf,
450		    size_t count
451		);
452	}
45359	AUE_EXECVE	STD {
454		int execve(
455		    _In_z_ const char *fname,
456		    _In_z_ char **argv,
457		    _In_z_ char **envv
458		);
459	}
46060	AUE_UMASK	STD|CAPENABLED {
461		mode_t umask(
462		    mode_t newmask
463		);
464	}
46561	AUE_CHROOT	STD {
466		int chroot(
467		    _In_z_ const char *path
468		);
469	}
47062	AUE_FSTAT	COMPAT|CAPENABLED {
471		int fstat(
472		    int fd,
473		    _Out_ _Contains_timet_ struct ostat *sb
474		);
475	}
47663	AUE_NULL	COMPAT {
477		int getkerninfo(
478		    int op,
479		    _Out_writes_bytes_opt(*size) char *where,
480		    _Inout_opt_ size_t *size,
481		    int arg
482		);
483	}
48464	AUE_NULL	COMPAT|CAPENABLED {
485		int getpagesize(void);
486	}
48765	AUE_MSYNC	STD|CAPENABLED {
488		int msync(
489		    _In_ void *addr,
490		    size_t len,
491		    int flags
492		);
493	}
49466	AUE_VFORK	STD {
495		int vfork(void);
496	}
49767	AUE_NULL	OBSOL	vread
49868	AUE_NULL	OBSOL	vwrite
49969	AUE_SBRK	STD|CAPENABLED {
500		int sbrk(
501		    int incr
502		);
503	}
50470	AUE_SSTK	STD|CAPENABLED {
505		int sstk(
506		    int incr
507		);
508	}
50971	AUE_MMAP	COMPAT|CAPENABLED {
510		void *mmap(
511		    _In_ void *addr,
512		    int len,
513		    int prot,
514		    int flags,
515		    int fd,
516		    long pos
517		);
518	}
51972	AUE_O_VADVISE	COMPAT11 {
520		int vadvise(
521		    int anom
522		);
523	}
52473	AUE_MUNMAP	STD|CAPENABLED {
525		int munmap(
526		    _In_ void *addr,
527		    size_t len
528		);
529	}
53074	AUE_MPROTECT	STD|CAPENABLED {
531		int mprotect(
532		    _In_ const void *addr,
533		    size_t len,
534		    int prot
535		);
536	}
53775	AUE_MADVISE	STD|CAPENABLED {
538		int madvise(
539		    _In_ void *addr,
540		    size_t len,
541		    int behav
542		);
543	}
54476	AUE_NULL	OBSOL	vhangup
54577	AUE_NULL	OBSOL	vlimit
54678	AUE_MINCORE	STD|CAPENABLED {
547		int mincore(
548		    _In_ const void *addr,
549		    size_t len,
550		    _Out_writes_bytes_(len/PAGE_SIZE) char *vec
551		);
552	}
55379	AUE_GETGROUPS	STD|CAPENABLED {
554		int getgroups(
555		    int gidsetsize,
556		    _Out_writes_opt_(gidsetsize) gid_t *gidset
557		);
558	}
55980	AUE_SETGROUPS	STD {
560		int setgroups(
561		    int gidsetsize,
562		    _In_reads_(gidsetsize) const gid_t *gidset
563		);
564	}
56581	AUE_GETPGRP	STD|CAPENABLED {
566		int getpgrp(void);
567	}
56882	AUE_SETPGRP	STD {
569		int setpgid(
570		    int pid,
571		    int pgid
572		);
573	}
57483	AUE_SETITIMER	STD|CAPENABLED {
575		int setitimer(
576		    int which,
577		    _In_ _Contains_timet_ const struct itimerval *itv,
578		    _Out_opt_ _Contains_timet_ struct itimerval *oitv
579		);
580	}
58184	AUE_WAIT4	COMPAT {
582		int wait(void);
583	}
58485	AUE_SWAPON	STD {
585		int swapon(
586		    _In_z_ const char *name
587		);
588	}
58986	AUE_GETITIMER	STD|CAPENABLED {
590		int getitimer(
591		    int which,
592		    _Out_ _Contains_timet_ struct itimerval *itv
593		);
594	}
59587	AUE_SYSCTL	COMPAT|CAPENABLED {
596		int gethostname(
597		    _Out_writes_z_(len) char *hostname,
598		    u_int len
599		);
600	}
60188	AUE_SYSCTL	COMPAT {
602		int sethostname(
603		    _In_reads_z_(len) char *hostname,
604		    u_int len
605		);
606	}
60789	AUE_GETDTABLESIZE	STD|CAPENABLED {
608		int getdtablesize(void);
609	}
61090	AUE_DUP2	STD|CAPENABLED {
611		int dup2(
612		    u_int from,
613		    u_int to
614		);
615	}
61691	AUE_NULL	RESERVED
61792	AUE_FCNTL	STD|CAPENABLED {
618		int fcntl(
619		    int fd,
620		    int cmd,
621		    long arg
622		);
623	}
624; XXX should be { int fcntl(int fd, int cmd, ...); }
625; but we're not ready for varargs.
62693	AUE_SELECT	STD|CAPENABLED {
627		int select(
628		    int nd,
629		    _Inout_opt_ fd_set *in,
630		    _Inout_opt_ fd_set *ou,
631		    _Inout_opt_ fd_set *ex,
632		    _In_opt_ _Contains_long_timet_ struct timeval *tv
633		);
634	}
63594	AUE_NULL	RESERVED
63695	AUE_FSYNC	STD|CAPENABLED {
637		int fsync(
638		    int fd
639		);
640	}
64196	AUE_SETPRIORITY	STD|CAPENABLED {
642		int setpriority(
643		    int which,
644		    int who,
645		    int prio
646		);
647	}
64897	AUE_SOCKET	STD|CAPENABLED {
649		int socket(
650		    int domain,
651		    int type,
652		    int protocol
653		);
654	}
65598	AUE_CONNECT	STD {
656		int connect(
657		    int s,
658		    _In_reads_bytes_(namelen) const struct sockaddr *name,
659		    __socklen_t namelen
660		);
661	}
66299	AUE_ACCEPT	COMPAT|CAPENABLED {
663		int accept(
664		    int s,
665		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
666		    __socklen_t *anamelen
667		);
668	}
669100	AUE_GETPRIORITY	STD|CAPENABLED {
670		int getpriority(
671		    int which,
672		    int who
673		);
674	}
675101	AUE_SEND	COMPAT|CAPENABLED {
676		int send(
677		    int s,
678		    _In_reads_bytes_(len) const void *buf,
679		    int len,
680		    int flags
681		);
682	}
683102	AUE_RECV	COMPAT|CAPENABLED {
684		int recv(
685		    int s,
686		    _Out_writes_bytes_(len) void *buf,
687		    int len,
688		    int flags
689		);
690	}
691103	AUE_SIGRETURN	COMPAT|CAPENABLED {
692		int sigreturn(
693		    _In_ struct osigcontext *sigcntxp
694		);
695	}
696104	AUE_BIND	STD {
697		int bind(
698		    int s,
699		    _In_reads_bytes_(namelen) const struct sockaddr *name,
700		    __socklen_t namelen
701		);
702	}
703105	AUE_SETSOCKOPT	STD|CAPENABLED {
704		int setsockopt(
705		    int s,
706		    int level,
707		    int name,
708		    _In_reads_bytes_opt_(valsize) const void *val,
709		    __socklen_t valsize
710		);
711	}
712106	AUE_LISTEN	STD|CAPENABLED {
713		int listen(
714		    int s,
715		    int backlog
716		);
717	}
718107	AUE_NULL	OBSOL	vtimes
719108	AUE_NULL	COMPAT|CAPENABLED {
720		int sigvec(
721		    int signum,
722		    _In_opt_ _Contains_ptr_ struct sigvec *nsv,
723		    _Out_opt_ _Contains_ptr_ struct sigvec *osv
724		);
725	}
726109	AUE_NULL	COMPAT|CAPENABLED {
727		int sigblock(
728		    int mask
729		);
730	}
731110	AUE_NULL	COMPAT|CAPENABLED {
732		int sigsetmask(
733		    int mask
734		);
735	}
736111	AUE_NULL	COMPAT|CAPENABLED {
737		int sigsuspend(
738		    osigset_t mask
739		);
740	}
741; XXX note nonstandard (bogus) calling convention - the libc stub passes
742; us the mask, not a pointer to it.
743112	AUE_NULL	COMPAT|CAPENABLED {
744		int sigstack(
745		    _In_opt_ _Contains_ptr_ struct sigstack *nss,
746		    _Out_opt_ _Contains_ptr_ struct sigstack *oss
747		);
748	}
749113	AUE_RECVMSG	COMPAT|CAPENABLED {
750		int recvmsg(
751		    int s,
752		    _Inout_ _Contains_ptr_ struct omsghdr *msg,
753		    int flags
754		);
755	}
756114	AUE_SENDMSG	COMPAT|CAPENABLED {
757		int sendmsg(
758		    int s,
759		    _In_ _Contains_ptr_ const struct omsghdr *msg,
760		    int flags
761		);
762	}
763115	AUE_NULL	OBSOL	vtrace
764116	AUE_GETTIMEOFDAY	STD|CAPENABLED {
765		int gettimeofday(
766		    _Out_ _Contains_long_timet_ struct timeval *tp,
767		    _Out_opt_ struct timezone *tzp
768		);
769	}
770117	AUE_GETRUSAGE	STD|CAPENABLED {
771		int getrusage(
772		    int who,
773		    _Out_ _Contains_long_ struct rusage *rusage
774		);
775	}
776118	AUE_GETSOCKOPT	STD|CAPENABLED {
777		int getsockopt(
778		    int s,
779		    int level,
780		    int name,
781		    _Out_writes_bytes_opt_(*avalsize) void *val,
782		    _Inout_ __socklen_t *avalsize
783		);
784	}
785119	AUE_NULL	RESERVED
786120	AUE_READV	STD|CAPENABLED {
787		int readv(
788		    int fd,
789		    _Inout_updates_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
790		    u_int iovcnt
791		);
792	}
793121	AUE_WRITEV	STD|CAPENABLED {
794		int writev(
795		    int fd,
796		    _In_reads_opt_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
797		    u_int iovcnt
798		);
799	}
800122	AUE_SETTIMEOFDAY	STD {
801		int settimeofday(
802		    _In_ _Contains_long_timet_ const struct timeval *tv,
803		    _In_opt_ const struct timezone *tzp
804		);
805	}
806123	AUE_FCHOWN	STD|CAPENABLED {
807		int fchown(
808		    int fd,
809		    int uid,
810		    int gid
811		);
812	}
813124	AUE_FCHMOD	STD|CAPENABLED {
814		int fchmod(
815		    int fd,
816		    mode_t mode
817		);
818	}
819125	AUE_RECVFROM	COMPAT|NOARGS|CAPENABLED {
820		int recvfrom(
821		    int s,
822		    _Out_writes_(len) void *buf,
823		    size_t len,
824		    int flags,
825		    _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
826		    _Inout_ __socklen_t *fromlenaddr
827		);
828	} recvfrom recvfrom_args int
829126	AUE_SETREUID	STD|CAPENABLED {
830		int setreuid(
831		    int ruid,
832		    int euid
833		);
834	}
835127	AUE_SETREGID	STD|CAPENABLED {
836		int setregid(
837		    int rgid,
838		    int egid
839		);
840	}
841128	AUE_RENAME	STD {
842		int rename(
843		    _In_z_ const char *from,
844		    _In_z_ const char *to
845		);
846	}
847129	AUE_TRUNCATE	COMPAT {
848		int truncate(
849		    _In_z_ const char *path,
850		    long length
851		);
852	}
853130	AUE_FTRUNCATE	COMPAT|CAPENABLED {
854		int ftruncate(
855		    int fd,
856		    long length
857		);
858	}
859131	AUE_FLOCK	STD|CAPENABLED {
860		int flock(
861		    int fd,
862		    int how
863		);
864	}
865132	AUE_MKFIFO	STD {
866		int mkfifo(
867		    _In_z_ const char *path,
868		    mode_t mode
869		);
870	}
871133	AUE_SENDTO	STD|CAPENABLED {
872		ssize_t sendto(
873		    int s,
874		    _In_reads_bytes_(len) const void *buf,
875		    size_t len,
876		    int flags,
877		    _In_reads_bytes_opt_(tolen) const struct sockaddr *to,
878		    __socklen_t tolen
879		);
880	}
881134	AUE_SHUTDOWN	STD|CAPENABLED {
882		int shutdown(
883		    int s,
884		    int how
885		);
886	}
887135	AUE_SOCKETPAIR	STD|CAPENABLED {
888		int socketpair(
889		    int domain,
890		    int type,
891		    int protocol,
892		    _Out_writes_(2) int *rsv
893		);
894	}
895136	AUE_MKDIR	STD {
896		int mkdir(
897		    _In_z_ const char *path,
898		    mode_t mode
899		);
900	}
901137	AUE_RMDIR	STD {
902		int rmdir(
903		    _In_z_ const char *path
904		);
905	}
906138	AUE_UTIMES	STD {
907		int utimes(
908		    _In_z_ const char *path,
909		    _In_ _Contains_long_timet_ const struct timeval *tptr
910		);
911	}
912139	AUE_NULL	OBSOL	4.2 sigreturn
913140	AUE_ADJTIME	STD {
914		int adjtime(
915		    _In_ _Contains_long_timet_ const struct timeval *delta,
916		    _Out_opt_ _Contains_long_timet_ struct timeval *olddelta
917		);
918	}
919141	AUE_GETPEERNAME	COMPAT|CAPENABLED {
920		int getpeername(
921		    int fdes,
922		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
923		    _Inout_opt_ __socklen_t *alen
924		);
925	}
926142	AUE_SYSCTL	COMPAT|CAPENABLED {
927		long gethostid(void);
928	}
929143	AUE_SYSCTL	COMPAT {
930		int sethostid(
931		    long hostid
932		);
933	}
934144	AUE_GETRLIMIT	COMPAT|CAPENABLED {
935		int getrlimit(
936		    u_int which,
937		    _Out_ struct orlimit *rlp
938		);
939	}
940145	AUE_SETRLIMIT	COMPAT|CAPENABLED {
941		int setrlimit(
942		    u_int which,
943		    _Out_ struct orlimit *rlp
944		);
945	}
946146	AUE_KILLPG	COMPAT {
947		int killpg(
948		    int pgid,
949		    int signum
950		);
951	}
952147	AUE_SETSID	STD|CAPENABLED {
953		int setsid(void);
954	}
955148	AUE_QUOTACTL	STD {
956		int quotactl(
957		    _In_z_ const char *path,
958		    int cmd,
959		    int uid,
960		    _In_ void *arg
961		);
962	}
963149	AUE_O_QUOTA	COMPAT {
964		int quota(void);
965	}
966150	AUE_GETSOCKNAME	COMPAT|NOARGS|CAPENABLED {
967		int getsockname(
968		    int fdec,
969		    _Out_writes_bytes_(*alen) struct sockaddr *asa,
970		    _Inout_ __socklen_t *alen
971		);
972	} getsockname getsockname_args int
973151-153	AUE_NULL	RESERVED
974; 154 is initialised by the NLM code, if present.
975154	AUE_NULL	NOSTD {
976		int nlm_syscall(
977		    int debug_level,
978		    int grace_period,
979		    int addr_count,
980		    _In_reads_(addr_count) char **addrs
981		);
982	}
983; 155 is initialized by the NFS code, if present.
984155	AUE_NFS_SVC	NOSTD {
985		int nfssvc(
986		    int flag,
987		    _In_ void *argp
988		);
989	}
990156	AUE_GETDIRENTRIES	COMPAT|CAPENABLED {
991		int getdirentries(
992		    int fd,
993		    _Out_writes_bytes_(count) char *buf,
994		    u_int count,
995		    _Out_ long *basep
996		);
997	}
998157	AUE_STATFS	COMPAT4 {
999		int statfs(
1000		    _In_z_ const char *path,
1001		    _Out_ _Contains_long_ struct ostatfs *buf
1002		);
1003	}
1004158	AUE_FSTATFS	COMPAT4|CAPENABLED {
1005		int fstatfs(
1006		    int fd,
1007		    _Out_ _Contains_long_ struct ostatfs *buf
1008		);
1009	}
1010159	AUE_NULL	RESERVED
1011160	AUE_LGETFH	STD {
1012		int lgetfh(
1013		    _In_z_ const char *fname,
1014		    _Out_ struct fhandle *fhp
1015		);
1016	}
1017161	AUE_NFS_GETFH	STD {
1018		int getfh(
1019		    _In_z_ const char *fname,
1020		    _Out_ struct fhandle *fhp
1021		);
1022	}
1023162	AUE_SYSCTL	COMPAT4|CAPENABLED {
1024		int getdomainname(
1025		    _Out_writes_z_(len) char *domainname,
1026		    int len
1027		);
1028	}
1029163	AUE_SYSCTL	COMPAT4 {
1030		int setdomainname(
1031		    _In_reads_z_(len) char *domainname,
1032		    int len
1033		);
1034	}
1035164	AUE_NULL	COMPAT4 {
1036		int uname(
1037		    _Out_ struct utsname *name
1038		);
1039	}
1040165	AUE_SYSARCH	STD|CAPENABLED {
1041		int sysarch(
1042		    int op,
1043		    _In_z_ char *parms
1044		);
1045	}
1046166	AUE_RTPRIO	STD|CAPENABLED {
1047		int rtprio(
1048		    int function,
1049		    pid_t pid,
1050		    _Inout_ struct rtprio *rtp
1051		);
1052	}
1053167-168	AUE_NULL	RESERVED
1054169	AUE_SEMSYS	NOSTD {
1055		int semsys(
1056		    int which,
1057		    int a2,
1058		    int a3,
1059		    int a4,
1060		    int a5
1061		);
1062	}
1063; XXX should be { int semsys(int which, ...); }
1064170	AUE_MSGSYS	NOSTD {
1065		int msgsys(
1066		    int which,
1067		    int a2,
1068		    int a3,
1069		    int a4,
1070		    int a5,
1071		    int a6
1072		);
1073	}
1074; XXX should be { int msgsys(int which, ...); }
1075171	AUE_SHMSYS	NOSTD {
1076		int shmsys(
1077		    int which,
1078		    int a2,
1079		    int a3,
1080		    int a4
1081		);
1082	}
1083; XXX should be { int shmsys(int which, ...); }
1084172	AUE_NULL	RESERVED
1085173	AUE_PREAD	COMPAT6|CAPENABLED {
1086		ssize_t pread(
1087		    int fd,
1088		    _Out_writes_bytes_(nbyte) void *buf,
1089		    size_t nbyte,
1090		    int pad,
1091		    off_t offset
1092		);
1093	}
1094174	AUE_PWRITE	COMPAT6|CAPENABLED {
1095		ssize_t pwrite(
1096		    int fd,
1097		    _In_reads_bytes_(nbyte) const void *buf,
1098		    size_t nbyte,
1099		    int pad,
1100		    off_t offset
1101		);
1102	}
1103175	AUE_SETFIB	STD {
1104		int setfib(
1105		    int fibnum
1106		);
1107	}
1108176	AUE_NTP_ADJTIME	STD {
1109		int ntp_adjtime(
1110		    _Inout_ _Contains_long_ struct timex *tp
1111		);
1112	}
1113177-180	AUE_NULL	RESERVED
1114181	AUE_SETGID	STD|CAPENABLED {
1115		int setgid(
1116		    gid_t gid
1117		);
1118	}
1119182	AUE_SETEGID	STD|CAPENABLED {
1120		int setegid(
1121		    gid_t egid
1122		);
1123	}
1124183	AUE_SETEUID	STD|CAPENABLED {
1125		int seteuid(
1126		    uid_t euid
1127		);
1128	}
1129184	AUE_NULL	OBSOL	lfs_bmapv
1130185	AUE_NULL	OBSOL	lfs_markv
1131186	AUE_NULL	OBSOL	lfs_segclean
1132187	AUE_NULL	OBSOL	lfs_segwait
1133188	AUE_STAT	COMPAT11 {
1134		int stat(
1135		    _In_z_ const char *path,
1136		    _Out_ _Contains_timet_ struct freebsd11_stat *ub
1137		);
1138	}
1139189	AUE_FSTAT	COMPAT11|CAPENABLED {
1140		int fstat(
1141		    int fd,
1142		    _Out_ _Contains_timet_ struct freebsd11_stat *sb
1143		);
1144	}
1145190	AUE_LSTAT	COMPAT11 {
1146		int lstat(
1147		    _In_z_ const char *path,
1148		    _Out_ _Contains_timet_ struct freebsd11_stat *ub
1149		);
1150	}
1151191	AUE_PATHCONF	STD {
1152		int pathconf(
1153		    _In_z_ const char *path,
1154		    int name
1155		);
1156	}
1157192	AUE_FPATHCONF	STD|CAPENABLED {
1158		int fpathconf(
1159		    int fd,
1160		    int name
1161		);
1162	}
1163193	AUE_NULL	RESERVED
1164194	AUE_GETRLIMIT	STD|CAPENABLED {
1165		int getrlimit(
1166		    u_int which,
1167		    _Out_ struct rlimit *rlp
1168		);
1169	} getrlimit __getrlimit_args int
1170195	AUE_SETRLIMIT	STD|CAPENABLED {
1171		int setrlimit(
1172		    u_int which,
1173		    _In_ struct rlimit *rlp
1174		);
1175	} setrlimit __setrlimit_args int
1176196	AUE_GETDIRENTRIES	COMPAT11|CAPENABLED {
1177		int getdirentries(
1178		    int fd,
1179		    _Out_writes_bytes_(count) char *buf,
1180		    u_int count,
1181		    _Out_ long *basep
1182		);
1183	}
1184197	AUE_MMAP	COMPAT6|CAPENABLED {
1185		void *mmap(
1186		    _In_ void *addr,
1187		    size_t len,
1188		    int prot,
1189		    int flags,
1190		    int fd,
1191		    int pad,
1192		    off_t pos
1193		);
1194	}
1195198	AUE_NULL	NOPROTO {
1196		int nosys(void);
1197	} __syscall __syscall_args int
1198199	AUE_LSEEK	COMPAT6|CAPENABLED {
1199		off_t lseek(
1200		    int fd,
1201		    int pad,
1202		    off_t offset,
1203		    int whence
1204		);
1205	}
1206200	AUE_TRUNCATE	COMPAT6 {
1207		int truncate(
1208		    _In_z_ const char *path,
1209		    int pad,
1210		    off_t length
1211		);
1212	}
1213201	AUE_FTRUNCATE	COMPAT6|CAPENABLED {
1214		int ftruncate(
1215		    int fd,
1216		    int pad,
1217		    off_t length
1218		);
1219	}
1220202	AUE_SYSCTL	STD|CAPENABLED {
1221		int __sysctl(
1222		    _In_reads_(namelen) int *name,
1223		    u_int namelen,
1224		    _Out_writes_bytes_opt_(*oldlenp) void *old,
1225		    _Inout_opt_ size_t *oldlenp,
1226		    _In_reads_bytes_opt_(newlen) const void *new,
1227		    size_t newlen
1228		);
1229	}
1230203	AUE_MLOCK	STD|CAPENABLED {
1231		int mlock(
1232		    _In_ const void *addr,
1233		    size_t len
1234		);
1235	}
1236204	AUE_MUNLOCK	STD|CAPENABLED {
1237		int munlock(
1238		    _In_ const void *addr,
1239		    size_t len
1240		);
1241	}
1242205	AUE_UNDELETE	STD {
1243		int undelete(
1244		    _In_z_ const char *path
1245		);
1246	}
1247206	AUE_FUTIMES	STD|CAPENABLED {
1248		int futimes(
1249		    int fd,
1250		    _In_reads_(2) _Contains_long_timet_ const struct timeval *tptr
1251		);
1252	}
1253207	AUE_GETPGID	STD|CAPENABLED {
1254		int getpgid(
1255		    pid_t pid
1256		);
1257	}
1258208	AUE_NULL	RESERVED
1259209	AUE_POLL	STD|CAPENABLED {
1260		int poll(
1261		    _Inout_updates_(nfds) struct pollfd *fds,
1262		    u_int nfds,
1263		    int timeout
1264		);
1265	}
1266;
1267; The following are reserved for loadable syscalls
1268;
1269210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1270211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1271212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1272213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1273214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1274215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1275216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1276217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1277218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1278219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
1279
1280220	AUE_SEMCTL	COMPAT7|NOSTD {
1281		int __semctl(
1282		    int semid,
1283		    int semnum,
1284		    int cmd,
1285		    _Contains_ptr_ union semun_old *arg
1286		);
1287	}
1288221	AUE_SEMGET	NOSTD {
1289		int semget(
1290		    key_t key,
1291		    int nsems,
1292		    int semflg
1293		);
1294	}
1295222	AUE_SEMOP	NOSTD {
1296		int semop(
1297		    int semid,
1298		    _In_reads_(nsops) struct sembuf *sops,
1299		    size_t nsops
1300		);
1301	}
1302223	AUE_NULL	OBSOL	semconfig
1303224	AUE_MSGCTL	COMPAT7|NOSTD {
1304		int msgctl(
1305		    int msqid,
1306		    int cmd,
1307		    _Contains_long_ptr_timet_ struct msqid_ds_old *buf
1308		);
1309	}
1310225	AUE_MSGGET	NOSTD {
1311		int msgget(
1312		    key_t key,
1313		    int msgflg
1314		);
1315	}
1316226	AUE_MSGSND	NOSTD {
1317		int msgsnd(
1318		    int msqid,
1319		    _In_reads_bytes_(msgsz) _Contains_long_ const void *msgp,
1320		    size_t msgsz,
1321		    int msgflg
1322		);
1323	}
1324227	AUE_MSGRCV	NOSTD {
1325		ssize_t msgrcv(
1326		    int msqid,
1327		    _Out_writes_bytes_(msgsz) _Contains_long_ void *msgp,
1328		    size_t msgsz,
1329		    long msgtyp,
1330		    int msgflg
1331		);
1332	}
1333228	AUE_SHMAT	NOSTD {
1334		void *shmat(
1335		    int shmid,
1336		    _In_ const void *shmaddr,
1337		    int shmflg
1338		);
1339	}
1340229	AUE_SHMCTL	COMPAT7|NOSTD {
1341		int shmctl(
1342		    int shmid,
1343		    int cmd,
1344		    _Contains_long_ struct shmid_ds_old *buf
1345		);
1346	}
1347230	AUE_SHMDT	NOSTD {
1348		int shmdt(
1349		    _In_ const void *shmaddr
1350		);
1351	}
1352231	AUE_SHMGET	NOSTD {
1353		int shmget(
1354		    key_t key,
1355		    size_t size,
1356		    int shmflg
1357		);
1358	}
1359232	AUE_NULL	STD|CAPENABLED {
1360		int clock_gettime(
1361		    clockid_t clock_id,
1362		    _Out_ _Contains_long_timet_ struct timespec *tp
1363		);
1364	}
1365233	AUE_CLOCK_SETTIME	STD {
1366		int clock_settime(
1367		    clockid_t clock_id,
1368		    _In_ _Contains_long_timet_ const struct timespec *tp
1369		);
1370	}
1371234	AUE_NULL	STD|CAPENABLED {
1372		int clock_getres(
1373		    clockid_t clock_id,
1374		    _Out_ _Contains_long_timet_ struct timespec *tp
1375		);
1376	}
1377235	AUE_NULL	STD|CAPENABLED {
1378		int ktimer_create(
1379		    clockid_t clock_id,
1380		    _In_ _Contains_long_ptr_ struct sigevent *evp,
1381		    _Out_ int *timerid
1382		);
1383	}
1384236	AUE_NULL	STD|CAPENABLED {
1385		int ktimer_delete(
1386		    int timerid
1387		);
1388	}
1389237	AUE_NULL	STD|CAPENABLED {
1390		int ktimer_settime(
1391		    int timerid,
1392		    int flags,
1393		    _In_ _Contains_long_timet_ const struct itimerspec *value,
1394		    _Out_opt_ _Contains_long_timet_ struct itimerspec *ovalue
1395		);
1396	}
1397238	AUE_NULL	STD|CAPENABLED {
1398		int ktimer_gettime(
1399		    int timerid,
1400		    _Out_ _Contains_long_timet_ struct itimerspec *value
1401		);
1402	}
1403239	AUE_NULL	STD|CAPENABLED {
1404		int ktimer_getoverrun(
1405		    int timerid
1406		);
1407	}
1408240	AUE_NULL	STD|CAPENABLED {
1409		int nanosleep(
1410		    _In_ _Contains_long_timet_ const struct timespec *rqtp,
1411		    _Out_opt_ _Contains_long_timet_ struct timespec *rmtp
1412		);
1413	}
1414241	AUE_NULL	STD {
1415		int ffclock_getcounter(
1416		    _Out_ ffcounter *ffcount
1417		);
1418	}
1419242	AUE_NULL	STD {
1420		int ffclock_setestimate(
1421		    _In_ _Contains_timet_ struct ffclock_estimate *cest
1422		);
1423	}
1424243	AUE_NULL	STD {
1425		int ffclock_getestimate(
1426		    _Out_ _Contains_timet_ struct ffclock_estimate *cest
1427		);
1428	}
1429244	AUE_NULL	STD {
1430		int clock_nanosleep(
1431		    clockid_t clock_id,
1432		    int flags,
1433		    _In_ _Contains_long_timet_ const struct timespec *rqtp,
1434		    _Out_opt_ _Contains_long_timet_ struct timespec *rmtp
1435		);
1436	}
1437245-246	AUE_NULL	RESERVED
1438247	AUE_NULL	STD {
1439		int clock_getcpuclockid2(
1440		    id_t id,
1441		    int which,
1442		    _Out_ clockid_t *clock_id
1443		);
1444	}
1445248	AUE_NULL	STD|CAPENABLED {
1446		int ntp_gettime(
1447		    _Out_ _Contains_long_timet_ struct ntptimeval *ntvp
1448		);
1449	}
1450249	AUE_NULL	RESERVED
1451250	AUE_MINHERIT	STD|CAPENABLED {
1452		int minherit(
1453		    _In_ void *addr,
1454		    size_t len,
1455		    int inherit
1456		);
1457	}
1458251	AUE_RFORK	STD {
1459		int rfork(
1460		    int flags
1461		);
1462	}
1463252	AUE_POLL	OBSOL	openbsd_poll
1464253	AUE_ISSETUGID	STD|CAPENABLED {
1465		int issetugid(void);
1466	}
1467254	AUE_LCHOWN	STD {
1468		int lchown(
1469		    _In_z_ const char *path,
1470		    int uid,
1471		    int gid
1472		);
1473	}
1474255	AUE_AIO_READ	STD|CAPENABLED {
1475		int aio_read(
1476		    _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp
1477		);
1478	}
1479256	AUE_AIO_WRITE	STD|CAPENABLED {
1480		int aio_write(
1481		    _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp
1482		);
1483	}
1484257	AUE_LIO_LISTIO	STD|CAPENABLED {
1485		int lio_listio(
1486		    int mode,
1487		    _Inout_updates_(nent) _Contains_long_ptr_ struct aiocb * const *acb_list,
1488		    int nent,
1489		    _In_opt_ _Contains_long_ptr_ struct sigevent *sig
1490		);
1491	}
1492258-271	AUE_NULL	RESERVED
1493272	AUE_O_GETDENTS	COMPAT11|CAPENABLED {
1494		int getdents(
1495		    int fd,
1496		    _Out_writes_bytes_(count) char *buf,
1497		    size_t count
1498		);
1499	}
1500273	AUE_NULL	RESERVED
1501274	AUE_LCHMOD	STD {
1502		int lchmod(
1503		    _In_z_ const char *path,
1504		    mode_t mode
1505		);
1506	}
1507275	AUE_NULL	OBSOL	netbsd_lchown
1508276	AUE_LUTIMES	STD {
1509		int lutimes(
1510		    _In_z_ const char *path,
1511		    _In_ _Contains_long_timet_ const struct timeval *tptr
1512		);
1513	}
1514277	AUE_NULL	OBSOL	netbsd_msync
1515278	AUE_STAT	COMPAT11 {
1516		int nstat(
1517		    _In_z_ const char *path,
1518		    _Out_ _Contains_long_timet_ struct nstat *ub
1519		);
1520	}
1521279	AUE_FSTAT	COMPAT11 {
1522		int nfstat(
1523		    int fd,
1524		    _Out_ _Contains_long_timet_ struct nstat *sb
1525		);
1526	}
1527280	AUE_LSTAT	COMPAT11 {
1528		int nlstat(
1529		    _In_z_ const char *path,
1530		    _Out_ _Contains_long_timet_ struct nstat *ub
1531		);
1532	}
1533281-288	AUE_NULL	RESERVED
1534289	AUE_PREADV	STD|CAPENABLED {
1535		ssize_t preadv(
1536		    int fd,
1537		    _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
1538		    u_int iovcnt,
1539		    off_t offset
1540		);
1541	}
1542290	AUE_PWRITEV	STD|CAPENABLED {
1543		ssize_t pwritev(
1544		    int fd,
1545		    _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
1546		    u_int iovcnt,
1547		    off_t offset
1548		);
1549	}
1550291-296	AUE_NULL	RESERVED
1551297	AUE_FHSTATFS	COMPAT4 {
1552		int fhstatfs(
1553		    _In_ const struct fhandle *u_fhp,
1554		    _Out_ _Contains_long_ struct ostatfs *buf
1555		);
1556	}
1557298	AUE_FHOPEN	STD {
1558		int fhopen(
1559		    _In_ const struct fhandle *u_fhp,
1560		    int flags
1561		);
1562	}
1563299	AUE_FHSTAT	COMPAT11 {
1564		int fhstat(
1565		    _In_ const struct fhandle *u_fhp,
1566		    _Out_ _Contains_long_timet_ struct freebsd11_stat *sb
1567		);
1568	}
1569300	AUE_NULL	STD {
1570		int modnext(
1571		    int modid
1572		);
1573	}
1574301	AUE_NULL	STD {
1575		int modstat(
1576		    int modid,
1577		    _Out_ _Contains_long_ struct module_stat *stat
1578		);
1579	}
1580302	AUE_NULL	STD {
1581		int modfnext(
1582		    int modid
1583		);
1584	}
1585303	AUE_NULL	STD {
1586		int modfind(
1587		    _In_z_ const char *name
1588		);
1589	}
1590304	AUE_MODLOAD	STD {
1591		int kldload(
1592		    _In_z_ const char *file
1593		);
1594	}
1595305	AUE_MODUNLOAD	STD {
1596		int kldunload(
1597		    int fileid
1598		);
1599	}
1600306	AUE_NULL	STD {
1601		int kldfind(
1602		    _In_z_ const char *file
1603		);
1604	}
1605307	AUE_NULL	STD {
1606		int kldnext(
1607		    int fileid
1608		);
1609	}
1610308	AUE_NULL	STD {
1611		int kldstat(
1612		    int fileid,
1613		    _Out_ _Contains_long_ptr_ struct kld_file_stat *stat
1614		);
1615	}
1616309	AUE_NULL	STD {
1617		int kldfirstmod(
1618		    int fileid
1619		);
1620	}
1621310	AUE_GETSID	STD|CAPENABLED {
1622		int getsid(
1623		    pid_t pid
1624		);
1625	}
1626311	AUE_SETRESUID	STD|CAPENABLED {
1627		int setresuid(
1628		    uid_t ruid,
1629		    uid_t euid,
1630		    uid_t suid
1631		);
1632	}
1633312	AUE_SETRESGID	STD|CAPENABLED {
1634		int setresgid(
1635		    gid_t rgid,
1636		    gid_t egid,
1637		    gid_t sgid
1638		);
1639	}
1640313	AUE_NULL	OBSOL	signanosleep
1641314	AUE_AIO_RETURN	STD|CAPENABLED {
1642		ssize_t aio_return(
1643		    _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp
1644		);
1645	}
1646315	AUE_AIO_SUSPEND	STD|CAPENABLED {
1647		int aio_suspend(
1648		    _Inout_updates_(nent) _Contains_long_ptr_ struct aiocb * const * aiocbp,
1649		    int nent,
1650		    _In_opt_ _Contains_long_timet_ const struct timespec *timeout
1651		);
1652	}
1653316	AUE_AIO_CANCEL	STD|CAPENABLED {
1654		int aio_cancel(
1655		    int fd,
1656		    _In_opt_ _Contains_long_ptr_ struct aiocb *aiocbp
1657		);
1658	}
1659317	AUE_AIO_ERROR	STD|CAPENABLED {
1660		int aio_error(
1661		    _In_ _Contains_long_ptr_ struct aiocb *aiocbp
1662		);
1663	}
1664318	AUE_AIO_READ	COMPAT6|CAPENABLED {
1665		int aio_read(
1666		    _Inout_ _Contains_long_ptr_ struct oaiocb *aiocbp
1667		);
1668	}
1669319	AUE_AIO_WRITE	COMPAT6|CAPENABLED {
1670		int aio_write(
1671		    _Inout_ _Contains_long_ptr_ struct oaiocb *aiocbp
1672		);
1673	}
1674320	AUE_LIO_LISTIO	COMPAT6|CAPENABLED {
1675		int lio_listio(
1676		    int mode,
1677		    _Inout_updates_(nent) _Contains_long_ptr_ struct oaiocb * const *acb_list,
1678		    int nent,
1679		    _In_opt_ _Contains_ptr_ struct osigevent *sig
1680		);
1681	}
1682321	AUE_NULL	STD|CAPENABLED {
1683		int yield(void);
1684	}
1685322	AUE_NULL	OBSOL	thr_sleep
1686323	AUE_NULL	OBSOL	thr_wakeup
1687324	AUE_MLOCKALL	STD|CAPENABLED {
1688		int mlockall(
1689		    int how
1690		);
1691	}
1692325	AUE_MUNLOCKALL	STD|CAPENABLED {
1693		int munlockall(void);
1694	}
1695326	AUE_GETCWD	STD {
1696		int __getcwd(
1697		    _Out_writes_z_(buflen) char *buf,
1698		    size_t buflen
1699		);
1700	}
1701327	AUE_NULL	STD|CAPENABLED {
1702		int sched_setparam(
1703		    pid_t pid,
1704		    _In_ const struct sched_param *param
1705		);
1706	}
1707328	AUE_NULL	STD|CAPENABLED {
1708		int sched_getparam(
1709		    pid_t pid,
1710		    _Out_ struct sched_param *param
1711		);
1712	}
1713329	AUE_NULL	STD|CAPENABLED {
1714		int sched_setscheduler(
1715		    pid_t pid,
1716		    int policy,
1717		    _In_ const struct sched_param *param
1718		);
1719	}
1720330	AUE_NULL	STD|CAPENABLED {
1721		int sched_getscheduler(
1722		    pid_t pid
1723		);
1724	}
1725331	AUE_NULL	STD|CAPENABLED {
1726		int sched_yield(void);
1727	}
1728332	AUE_NULL	STD|CAPENABLED {
1729		int sched_get_priority_max(
1730		    int policy
1731		);
1732	}
1733333	AUE_NULL	STD|CAPENABLED {
1734		int sched_get_priority_min(
1735		    int policy
1736		);
1737	}
1738334	AUE_NULL	STD|CAPENABLED {
1739		int sched_rr_get_interval(
1740		    pid_t pid,
1741		    _Out_ _Contains_long_timet_ struct timespec *interval
1742		);
1743	}
1744335	AUE_NULL	STD|CAPENABLED {
1745		int utrace(
1746		   _In_reads_bytes_(len) const void *addr,
1747		    size_t len
1748		);
1749	}
1750336	AUE_SENDFILE	COMPAT4|CAPENABLED {
1751		int sendfile(
1752		    int fd,
1753		    int s,
1754		    off_t offset,
1755		    size_t nbytes,
1756		    _In_opt_ _Contains_ptr_ struct sf_hdtr *hdtr,
1757		    _Out_opt_ off_t *sbytes,
1758		    int flags
1759		);
1760	}
1761337	AUE_NULL	STD {
1762		int kldsym(
1763		    int fileid,
1764		    int cmd,
1765		    _In_ _Contains_long_ptr_ void *data
1766		);
1767	}
1768338	AUE_JAIL	STD {
1769		int jail(
1770		    _In_ _Contains_ptr_ struct jail *jail
1771		);
1772	}
1773339	AUE_NULL	NOSTD|NOTSTATIC {
1774		int nnpfs_syscall(
1775		    int operation,
1776		    char *a_pathP,
1777		    int a_opcode,
1778		    void *a_paramsP,
1779		    int a_followSymlinks
1780		);
1781	}
1782340	AUE_SIGPROCMASK	STD|CAPENABLED {
1783		int sigprocmask(
1784		    int how,
1785		    _In_opt_ const sigset_t *set,
1786		    _Out_opt_ sigset_t *oset
1787		);
1788	}
1789341	AUE_SIGSUSPEND	STD|CAPENABLED {
1790		int sigsuspend(
1791		    _In_ const sigset_t *sigmask
1792		);
1793	}
1794342	AUE_SIGACTION	COMPAT4|CAPENABLED {
1795		int sigaction(
1796		    int sig,
1797		    _In_opt_ _Contains_ptr_ const struct sigaction *act,
1798		    _Out_opt_ _Contains_ptr_ struct sigaction *oact
1799		);
1800	}
1801343	AUE_SIGPENDING	STD|CAPENABLED {
1802		int sigpending(
1803		    _In_ sigset_t *set
1804		);
1805	}
1806344	AUE_SIGRETURN	COMPAT4|CAPENABLED {
1807		int sigreturn(
1808		    _In_ _Contains_long_ptr_ const struct freebsd4_ucontext *sigcntxp
1809		);
1810	}
1811345	AUE_SIGWAIT	STD|CAPENABLED {
1812		int sigtimedwait(
1813		    _In_ const sigset_t *set,
1814		    _Out_opt_ _Contains_long_ptr_ struct siginfo *info,
1815		    _In_opt_ _Contains_long_timet_ const struct timespec *timeout
1816		);
1817	}
1818346	AUE_NULL	STD|CAPENABLED {
1819		int sigwaitinfo(
1820		    _In_ const sigset_t *set,
1821		    _Out_opt_ _Contains_long_ptr_ struct siginfo *info
1822		);
1823	}
1824347	AUE_ACL_GET_FILE	STD {
1825		int __acl_get_file(
1826		    _In_z_ const char *path,
1827		    acl_type_t type,
1828		    _Out_ struct acl *aclp
1829		);
1830	}
1831348	AUE_ACL_SET_FILE	STD {
1832		int __acl_set_file(
1833		    _In_z_ const char *path,
1834		    acl_type_t type,
1835		    _In_ struct acl *aclp
1836		);
1837	}
1838349	AUE_ACL_GET_FD	STD|CAPENABLED {
1839		int __acl_get_fd(
1840		    int filedes,
1841		    acl_type_t type,
1842		    _Out_ struct acl *aclp
1843		);
1844	}
1845350	AUE_ACL_SET_FD	STD|CAPENABLED {
1846		int __acl_set_fd(
1847		    int filedes,
1848		    acl_type_t type,
1849		    _In_ struct acl *aclp
1850		);
1851	}
1852351	AUE_ACL_DELETE_FILE	STD {
1853		int __acl_delete_file(
1854		    _In_z_ const char *path,
1855		    acl_type_t type
1856		);
1857	}
1858352	AUE_ACL_DELETE_FD	STD|CAPENABLED {
1859		int __acl_delete_fd(
1860		    int filedes,
1861		    acl_type_t type
1862		);
1863	}
1864353	AUE_ACL_CHECK_FILE	STD {
1865		int __acl_aclcheck_file(
1866		    _In_z_ const char *path,
1867		    acl_type_t type,
1868		    _In_ struct acl *aclp
1869		);
1870	}
1871354	AUE_ACL_CHECK_FD	STD|CAPENABLED {
1872		int __acl_aclcheck_fd(
1873		    int filedes,
1874		    acl_type_t type,
1875		    _In_ struct acl *aclp
1876		);
1877	}
1878355	AUE_EXTATTRCTL	STD {
1879		int extattrctl(
1880		    _In_z_ const char *path,
1881		    int cmd,
1882		    _In_z_opt_ const char *filename,
1883		    int attrnamespace,
1884		    _In_z_ const char *attrname
1885		);
1886	}
1887356	AUE_EXTATTR_SET_FILE	STD {
1888		ssize_t extattr_set_file(
1889		    _In_z_ const char *path,
1890		    int attrnamespace,
1891		    _In_z_ const char *attrname,
1892		    _In_reads_bytes_(nbytes) void *data,
1893		    size_t nbytes
1894		);
1895	}
1896357	AUE_EXTATTR_GET_FILE	STD {
1897		ssize_t extattr_get_file(
1898		    _In_z_ const char *path,
1899		    int attrnamespace,
1900		    _In_z_ const char *attrname,
1901		    _Out_writes_bytes_(nbytes) void *data,
1902		    size_t nbytes
1903		);
1904	}
1905358	AUE_EXTATTR_DELETE_FILE	STD {
1906		int extattr_delete_file(
1907		    _In_z_ const char *path,
1908		    int attrnamespace,
1909		    _In_z_ const char *attrname
1910		);
1911	}
1912359	AUE_AIO_WAITCOMPLETE	STD|CAPENABLED {
1913		ssize_t aio_waitcomplete(
1914		    _Outptr_result_maybenull_ struct aiocb **aiocbp,
1915		    _In_opt_ _Contains_long_timet_ struct timespec *timeout
1916		);
1917	}
1918360	AUE_GETRESUID	STD|CAPENABLED {
1919		int getresuid(
1920		    _Out_opt_ uid_t *ruid,
1921		    _Out_opt_ uid_t *euid,
1922		    _Out_opt_ uid_t *suid
1923		);
1924	}
1925361	AUE_GETRESGID	STD|CAPENABLED {
1926		int getresgid(
1927		    _Out_opt_ gid_t *rgid,
1928		    _Out_opt_ gid_t *egid,
1929		    _Out_opt_ gid_t *sgid
1930		);
1931	}
1932362	AUE_KQUEUE	STD|CAPENABLED {
1933		int kqueue(void);
1934	}
1935363	AUE_KEVENT	COMPAT11|CAPENABLED {
1936		int kevent(
1937		    int fd,
1938		    _In_reads_opt_(nchanges) _Contains_ptr_ const struct freebsd11_kevent *changelist,
1939		    int nchanges,
1940		    _Out_writes_opt_(nevents) _Contains_ptr_ struct freebsd11_kevent *eventlist,
1941		    int nevents,
1942		    _In_opt_ _Contains_long_timet_ const struct timespec *timeout
1943		);
1944	}
1945364	AUE_NULL	OBSOL	__cap_get_proc
1946365	AUE_NULL	OBSOL	__cap_set_proc
1947366	AUE_NULL	OBSOL	__cap_get_fd
1948367	AUE_NULL	OBSOL	__cap_get_file
1949368	AUE_NULL	OBSOL	__cap_set_fd
1950369	AUE_NULL	OBSOL	__cap_set_file
1951370	AUE_NULL	RESERVED
1952371	AUE_EXTATTR_SET_FD	STD|CAPENABLED {
1953		ssize_t extattr_set_fd(
1954		    int fd,
1955		    int attrnamespace,
1956		    _In_z_ const char *attrname,
1957		    _In_reads_bytes_(nbytes) void *data,
1958		    size_t nbytes
1959		);
1960	}
1961372	AUE_EXTATTR_GET_FD	STD|CAPENABLED {
1962		ssize_t extattr_get_fd(
1963		    int fd,
1964		    int attrnamespace,
1965		    _In_z_ const char *attrname,
1966		    _Out_writes_bytes_(nbytes) void *data,
1967		    size_t nbytes
1968		);
1969	}
1970373	AUE_EXTATTR_DELETE_FD	STD|CAPENABLED {
1971		int extattr_delete_fd(
1972		    int fd,
1973		    int attrnamespace,
1974		    _In_z_ const char *attrname
1975		);
1976	}
1977374	AUE_SETUGID	STD {
1978		int __setugid(
1979		    int flag
1980		);
1981	}
1982375	AUE_NULL	OBSOL	nfsclnt
1983376	AUE_EACCESS	STD {
1984		int eaccess(
1985		    _In_z_ const char *path,
1986		    int amode
1987		);
1988	}
1989377	AUE_NULL	NOSTD|NOTSTATIC {
1990		int afs3_syscall(
1991		    long syscall,
1992		    long parm1,
1993		    long parm2,
1994		    long parm3,
1995		    long parm4,
1996		    long parm5,
1997		    long parm6
1998		);
1999	}
2000378	AUE_NMOUNT	STD {
2001		int nmount(
2002		    _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
2003		    unsigned int iovcnt,
2004		    int flags
2005		);
2006	}
2007379	AUE_NULL	OBSOL	kse_exit
2008380	AUE_NULL	OBSOL	kse_wakeup
2009381	AUE_NULL	OBSOL	kse_create
2010382	AUE_NULL	OBSOL	kse_thr_interrupt
2011383	AUE_NULL	OBSOL	kse_release
2012384	AUE_NULL	STD|CAPENABLED {
2013		int __mac_get_proc(
2014		    _In_ _Contains_long_ptr_ struct mac *mac_p
2015		);
2016	}
2017385	AUE_NULL	STD|CAPENABLED {
2018		int __mac_set_proc(
2019		    _In_ _Contains_long_ptr_ struct mac *mac_p
2020		);
2021	}
2022386	AUE_NULL	STD|CAPENABLED {
2023		int __mac_get_fd(
2024		    int fd,
2025		    _In_ _Contains_long_ptr_ struct mac *mac_p
2026		);
2027	}
2028387	AUE_NULL	STD {
2029		int __mac_get_file(
2030		    _In_z_ const char *path_p,
2031		    _In_ _Contains_long_ptr_ struct mac *mac_p
2032		);
2033	}
2034388	AUE_NULL	STD|CAPENABLED {
2035		int __mac_set_fd(
2036		    int fd,
2037		    _In_ _Contains_long_ptr_ struct mac *mac_p
2038		);
2039	}
2040389	AUE_NULL	STD {
2041		int __mac_set_file(
2042		    _In_z_ const char *path_p,
2043		    _In_ _Contains_long_ptr_ struct mac *mac_p
2044		);
2045	}
2046390	AUE_NULL	STD {
2047		int kenv(
2048		    int what,
2049		    _In_z_opt_ const char *name,
2050		    _Inout_updates_opt_(len) char *value,
2051		    int len
2052		);
2053	}
2054391	AUE_LCHFLAGS	STD {
2055		int lchflags(
2056		    _In_z_ const char *path,
2057		    u_long flags
2058		);
2059	}
2060392	AUE_NULL	STD|CAPENABLED {
2061		int uuidgen(
2062		    _Out_writes_(count) struct uuid *store,
2063		    int count
2064		);
2065	}
2066393	AUE_SENDFILE	STD|CAPENABLED {
2067		int sendfile(
2068		    int fd,
2069		    int s,
2070		    off_t offset,
2071		    size_t nbytes,
2072		    _In_opt_ _Contains_ptr_ struct sf_hdtr *hdtr,
2073		    _Out_opt_ off_t *sbytes,
2074		    int flags
2075		);
2076	}
2077394	AUE_NULL	STD {
2078		int mac_syscall(
2079		    _In_z_ const char *policy,
2080		    int call,
2081		    _In_opt_ void *arg
2082		);
2083	}
2084395	AUE_GETFSSTAT	COMPAT11 {
2085		int getfsstat(
2086		    _Out_writes_bytes_opt_(bufsize) struct freebsd11_statfs *buf,
2087		    long bufsize,
2088		    int mode
2089		);
2090	}
2091396	AUE_STATFS	COMPAT11 {
2092		int statfs(
2093		    _In_z_ const char *path,
2094		    _Out_ struct freebsd11_statfs *buf
2095		);
2096	}
2097397	AUE_FSTATFS	COMPAT11|CAPENABLED {
2098		int fstatfs(
2099		    int fd,
2100		    _Out_ struct freebsd11_statfs *buf
2101		);
2102	}
2103398	AUE_FHSTATFS	COMPAT11 {
2104		int fhstatfs(
2105		    _In_ const struct fhandle *u_fhp,
2106		    _Out_ struct freebsd11_statfs *buf
2107		);
2108	}
2109399	AUE_NULL	RESERVED
2110400	AUE_SEMCLOSE	NOSTD {
2111		int ksem_close(
2112		    semid_t id
2113		);
2114	}
2115401	AUE_SEMPOST	NOSTD {
2116		int ksem_post(
2117		    semid_t id
2118		);
2119	}
2120402	AUE_SEMWAIT	NOSTD {
2121		int ksem_wait(
2122		    semid_t id
2123		);
2124	}
2125403	AUE_SEMTRYWAIT	NOSTD {
2126		int ksem_trywait(
2127		    semid_t id
2128		);
2129	}
2130404	AUE_SEMINIT	NOSTD {
2131		int ksem_init(
2132		    _Out_ semid_t *idp,
2133		    unsigned int value
2134		);
2135	}
2136405	AUE_SEMOPEN	NOSTD {
2137		int ksem_open(
2138		    _Out_ semid_t *idp,
2139		    _In_z_ const char *name,
2140		    int oflag,
2141		    mode_t mode,
2142		    unsigned int value
2143		);
2144	}
2145406	AUE_SEMUNLINK	NOSTD {
2146		int ksem_unlink(
2147		    _In_z_ const char *name
2148		);
2149	}
2150407	AUE_SEMGETVALUE	NOSTD {
2151		int ksem_getvalue(
2152		    semid_t id,
2153		    _Out_ int *val
2154		);
2155	}
2156408	AUE_SEMDESTROY	NOSTD {
2157		int ksem_destroy(
2158		    semid_t id
2159		);
2160	}
2161409	AUE_NULL	STD {
2162		int __mac_get_pid(
2163		    pid_t pid,
2164		    _In_ _Contains_long_ptr_ struct mac *mac_p
2165		);
2166	}
2167410	AUE_NULL	STD {
2168		int __mac_get_link(
2169		    _In_z_ const char *path_p,
2170		    _In_ _Contains_long_ptr_ struct mac *mac_p
2171		);
2172	}
2173411	AUE_NULL	STD {
2174		int __mac_set_link(
2175		    _In_z_ const char *path_p,
2176		    _In_ _Contains_long_ptr_ struct mac *mac_p
2177		);
2178	}
2179412	AUE_EXTATTR_SET_LINK	STD {
2180		ssize_t extattr_set_link(
2181		    _In_z_ const char *path,
2182		    int attrnamespace,
2183		    _In_z_ const char *attrname,
2184		    _In_reads_bytes_(nbytes) void *data,
2185		    size_t nbytes
2186		);
2187	}
2188413	AUE_EXTATTR_GET_LINK	STD {
2189		ssize_t extattr_get_link(
2190		    _In_z_ const char *path,
2191		    int attrnamespace,
2192		    _In_z_ const char *attrname,
2193		    _Out_writes_bytes_(nbytes) void *data,
2194		    size_t nbytes
2195		);
2196	}
2197414	AUE_EXTATTR_DELETE_LINK	STD {
2198		int extattr_delete_link(
2199		    _In_z_ const char *path,
2200		    int attrnamespace,
2201		    _In_z_ const char *attrname
2202		);
2203	}
2204415	AUE_NULL	STD {
2205		int __mac_execve(
2206		    _In_z_ const char *fname,
2207		    _In_ char **argv,
2208		    _In_ char **envv,
2209		    _In_ _Contains_long_ptr_ struct mac *mac_p
2210		);
2211	}
2212416	AUE_SIGACTION	STD|CAPENABLED {
2213		int sigaction(
2214		    int sig,
2215		    _In_opt_ _Contains_ptr_ const struct sigaction *act,
2216		    _Out_opt_ _Contains_ptr_ struct sigaction *oact
2217		);
2218	}
2219417	AUE_SIGRETURN	STD|CAPENABLED {
2220		int sigreturn(
2221		    _In_ _Contains_long_ptr_ const struct __ucontext *sigcntxp
2222		);
2223	}
2224418-420	AUE_NULL	RESERVED
2225421	AUE_NULL	STD|CAPENABLED {
2226		int getcontext(
2227		    _Out_ _Contains_long_ptr_ struct __ucontext *ucp
2228		);
2229	}
2230422	AUE_NULL	STD|CAPENABLED {
2231		int setcontext(
2232		    _In_ _Contains_long_ptr_ const struct __ucontext *ucp
2233		);
2234	}
2235423	AUE_NULL	STD {
2236		int swapcontext(
2237		    _Out_ _Contains_long_ptr_ struct __ucontext *oucp,
2238		    _In_ _Contains_long_ptr_ const struct __ucontext *ucp
2239		);
2240	}
2241424	AUE_SWAPOFF	STD {
2242		int swapoff(
2243		    _In_z_ const char *name
2244		);
2245	}
2246425	AUE_ACL_GET_LINK	STD {
2247		int __acl_get_link(
2248		    _In_z_ const char *path,
2249		    acl_type_t type,
2250		    _Out_ struct acl *aclp
2251		);
2252	}
2253426	AUE_ACL_SET_LINK	STD {
2254		int __acl_set_link(
2255		    _In_z_ const char *path,
2256		    acl_type_t type,
2257		    _In_ struct acl *aclp
2258		);
2259	}
2260427	AUE_ACL_DELETE_LINK	STD {
2261		int __acl_delete_link(
2262		    _In_z_ const char *path,
2263		    acl_type_t type
2264		);
2265	}
2266428	AUE_ACL_CHECK_LINK	STD {
2267		int __acl_aclcheck_link(
2268		    _In_z_ const char *path,
2269		    acl_type_t type,
2270		    _In_ struct acl *aclp
2271		);
2272	}
2273429	AUE_SIGWAIT	STD|CAPENABLED {
2274		int sigwait(
2275		    _In_ const sigset_t *set,
2276		    _Out_ int *sig
2277		);
2278	}
2279430	AUE_THR_CREATE	STD|CAPENABLED {
2280		int thr_create(
2281		    _In_ _Contains_long_ptr_ ucontext_t *ctx,
2282		    _Out_ long *id,
2283		    int flags
2284		);
2285	}
2286431	AUE_THR_EXIT	STD|CAPENABLED {
2287		void thr_exit(
2288		    _Out_opt_ long *state
2289		);
2290	}
2291432	AUE_NULL	STD|CAPENABLED {
2292		int thr_self(
2293		    _Out_ long *id
2294		);
2295	}
2296433	AUE_THR_KILL	STD|CAPENABLED {
2297		int thr_kill(
2298		    long id,
2299		    int sig
2300		);
2301	}
2302
2303434	AUE_NULL	COMPAT10 {
2304		int _umtx_lock(
2305		    _Inout_ struct umtx *umtx
2306		);
2307	}
2308
2309435	AUE_NULL	COMPAT10 {
2310		int _umtx_unlock(
2311		    _Inout_ struct umtx *umtx
2312		);
2313	}
2314
2315436	AUE_JAIL_ATTACH	STD {
2316		int jail_attach(
2317		    int jid
2318		);
2319	}
2320437	AUE_EXTATTR_LIST_FD	STD|CAPENABLED {
2321		ssize_t extattr_list_fd(
2322		    int fd,
2323		    int attrnamespace,
2324		    _Out_writes_bytes_opt_(nbytes) void *data,
2325		    size_t nbytes
2326		);
2327	}
2328438	AUE_EXTATTR_LIST_FILE	STD {
2329		ssize_t extattr_list_file(
2330		    _In_z_ const char *path,
2331		    int attrnamespace,
2332		    _Out_writes_bytes_opt_(nbytes) void *data,
2333		    size_t nbytes
2334		);
2335	}
2336439	AUE_EXTATTR_LIST_LINK	STD {
2337		ssize_t extattr_list_link(
2338		    _In_z_ const char *path,
2339		    int attrnamespace,
2340		    _Out_writes_bytes_opt_(nbytes)
2341		    void *data,
2342		    size_t nbytes
2343		);
2344	}
2345440	AUE_NULL	OBSOL	kse_switchin
2346441	AUE_SEMWAIT	NOSTD {
2347		int ksem_timedwait(
2348		    semid_t id,
2349		    _In_opt_ _Contains_long_timet_ const struct timespec *abstime
2350		);
2351	}
2352442	AUE_NULL	STD|CAPENABLED {
2353		int thr_suspend(
2354		    _In_opt_ _Contains_long_timet_ const struct timespec *timeout
2355		);
2356	}
2357443	AUE_NULL	STD|CAPENABLED {
2358		int thr_wake(
2359		    long id
2360		);
2361	}
2362444	AUE_MODUNLOAD	STD {
2363		int kldunloadf(
2364		    int fileid,
2365		    int flags
2366		);
2367	}
2368445	AUE_AUDIT	STD {
2369		int audit(
2370		    _In_reads_bytes_(length) const void *record,
2371		    u_int length
2372		);
2373	}
2374446	AUE_AUDITON	STD {
2375		int auditon(
2376		    int cmd,
2377		    _In_opt_ void *data,
2378		    u_int length
2379		);
2380	}
2381447	AUE_GETAUID	STD|CAPENABLED {
2382		int getauid(
2383		    _Out_ uid_t *auid
2384		);
2385	}
2386448	AUE_SETAUID	STD|CAPENABLED {
2387		int setauid(
2388		    _In_ uid_t *auid
2389		);
2390	}
2391449	AUE_GETAUDIT	STD|CAPENABLED {
2392		int getaudit(
2393		    _Out_ struct auditinfo *auditinfo
2394		);
2395	}
2396450	AUE_SETAUDIT	STD|CAPENABLED {
2397		int setaudit(
2398		    _In_ struct auditinfo *auditinfo
2399		);
2400	}
2401451	AUE_GETAUDIT_ADDR	STD|CAPENABLED {
2402		int getaudit_addr(
2403		    _Out_writes_bytes_(length) struct auditinfo_addr *auditinfo_addr,
2404		    u_int length
2405		);
2406	}
2407452	AUE_SETAUDIT_ADDR	STD|CAPENABLED {
2408		int setaudit_addr(
2409		    _In_reads_bytes_(length) struct auditinfo_addr *auditinfo_addr,
2410		    u_int length
2411		);
2412	}
2413453	AUE_AUDITCTL	STD {
2414		int auditctl(
2415		    _In_z_ const char *path
2416		);
2417	}
2418454	AUE_NULL	STD|CAPENABLED {
2419		int _umtx_op(
2420		    _Inout_ void *obj,
2421		    int op,
2422		    u_long val,
2423		    _In_ void *uaddr1,
2424		    _In_ void *uaddr2
2425		);
2426	}
2427455	AUE_THR_NEW	STD|CAPENABLED {
2428		int thr_new(
2429		    _In_ _Contains_long_ptr_ struct thr_param *param,
2430		    int param_size
2431		);
2432	}
2433456	AUE_NULL	STD|CAPENABLED {
2434		int sigqueue(
2435		    pid_t pid,
2436		    int signum,
2437		    _In_ void *value
2438		);
2439	}
2440
2441457	AUE_MQ_OPEN	NOSTD {
2442		int kmq_open(
2443		    _In_z_ const char *path,
2444		    int flags,
2445		    mode_t mode,
2446		    _In_opt_ _Contains_long_ const struct mq_attr *attr
2447		);
2448	}
2449458	AUE_MQ_SETATTR	NOSTD|CAPENABLED {
2450		int kmq_setattr(
2451		    int mqd,
2452		    _In_opt_ _Contains_long_ const struct mq_attr *attr,
2453		    _Out_opt_ _Contains_long_ struct mq_attr *oattr
2454		);
2455	}
2456459	AUE_MQ_TIMEDRECEIVE	NOSTD|CAPENABLED {
2457		int kmq_timedreceive(
2458		    int mqd,
2459		    _Out_writes_bytes_(msg_len) char *msg_ptr,
2460		    size_t msg_len,
2461		    _Out_opt_ unsigned *msg_prio,
2462		    _In_opt_ _Contains_long_timet_ const struct timespec *abs_timeout
2463		);
2464	}
2465460	AUE_MQ_TIMEDSEND	NOSTD|CAPENABLED {
2466		int kmq_timedsend(
2467		    int mqd,
2468		    _In_reads_bytes_(msg_len) const char *msg_ptr,
2469		    size_t msg_len,
2470		    unsigned msg_prio,
2471		    _In_opt_ _Contains_long_timet_ const struct timespec *abs_timeout
2472		);
2473	}
2474461	AUE_MQ_NOTIFY	NOSTD|CAPENABLED {
2475		int kmq_notify(
2476		    int mqd,
2477		    _In_opt_ _Contains_long_ptr_ const struct sigevent *sigev
2478		);
2479	}
2480462	AUE_MQ_UNLINK	NOSTD {
2481		int kmq_unlink(
2482		    _In_z_ const char *path
2483		);
2484	}
2485463	AUE_NULL	STD|CAPENABLED {
2486		void abort2(
2487		    _In_z_ const char *why,
2488		    int nargs,
2489		    _In_reads_(nargs) void **args
2490		);
2491	}
2492464	AUE_NULL	STD|CAPENABLED {
2493		int thr_set_name(
2494		    long id,
2495		    _In_z_ const char *name
2496		);
2497	}
2498465	AUE_AIO_FSYNC	STD|CAPENABLED {
2499		int aio_fsync(
2500		    int op,
2501		    _In_ _Contains_long_ptr_ struct aiocb *aiocbp
2502		);
2503	}
2504466	AUE_RTPRIO	STD|CAPENABLED {
2505		int rtprio_thread(
2506		    int function,
2507		    lwpid_t lwpid,
2508		    _Inout_ struct rtprio *rtp
2509		);
2510	}
2511467-470	AUE_NULL	RESERVED
2512471	AUE_SCTP_PEELOFF	NOSTD|CAPENABLED {
2513		int sctp_peeloff(
2514		    int sd,
2515		    uint32_t name
2516		);
2517	}
2518472	AUE_SCTP_GENERIC_SENDMSG	NOSTD|CAPENABLED {
2519		int sctp_generic_sendmsg(
2520		    int sd,
2521		    _In_reads_bytes_(mlen) void *msg,
2522		    int mlen,
2523		    _In_reads_bytes_(tolen) const struct sockaddr *to,
2524		    __socklen_t tolen,
2525		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
2526		    int flags
2527		);
2528	}
2529473	AUE_SCTP_GENERIC_SENDMSG_IOV	NOSTD|CAPENABLED {
2530		int sctp_generic_sendmsg_iov(
2531		    int sd,
2532		    _In_reads_(iovlen) _Contains_long_ptr_ struct iovec *iov,
2533		    int iovlen,
2534		    _In_reads_bytes_(tolen) const struct sockaddr *to,
2535		    __socklen_t tolen,
2536		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
2537		    int flags
2538		);
2539	}
2540474	AUE_SCTP_GENERIC_RECVMSG	NOSTD|CAPENABLED {
2541		int sctp_generic_recvmsg(
2542		    int sd,
2543		    _In_reads_(iovlen) _Contains_long_ptr_ struct iovec *iov,
2544		    int iovlen,
2545		    _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
2546		    _Out_ __socklen_t *fromlenaddr,
2547		    _In_opt_ struct sctp_sndrcvinfo *sinfo,
2548		    _Out_opt_ int *msg_flags
2549		);
2550	}
2551475	AUE_PREAD	STD|CAPENABLED {
2552		ssize_t pread(
2553		    int fd,
2554		    _Out_writes_bytes_(nbyte) void *buf,
2555		    size_t nbyte,
2556		    off_t offset
2557		);
2558	}
2559476	AUE_PWRITE	STD|CAPENABLED {
2560		ssize_t pwrite(
2561		    int fd,
2562		    _In_reads_bytes_(nbyte) const void *buf,
2563		    size_t nbyte,
2564		    off_t offset
2565		);
2566	}
2567477	AUE_MMAP	STD|CAPENABLED {
2568		void *mmap(
2569		    _In_ void *addr,
2570		    size_t len,
2571		    int prot,
2572		    int flags,
2573		    int fd,
2574		    off_t pos
2575		);
2576	}
2577478	AUE_LSEEK	STD|CAPENABLED {
2578		off_t lseek(
2579		    int fd,
2580		    off_t offset,
2581		    int whence
2582		);
2583	}
2584479	AUE_TRUNCATE	STD {
2585		int truncate(
2586		    _In_z_ const char *path,
2587		    off_t length
2588		);
2589	}
2590480	AUE_FTRUNCATE	STD|CAPENABLED {
2591		int ftruncate(
2592		    int fd,
2593		    off_t length
2594		);
2595	}
2596481	AUE_THR_KILL2	STD {
2597		int thr_kill2(
2598		    pid_t pid,
2599		    long id,
2600		    int sig
2601		);
2602	}
2603482	AUE_SHMOPEN	COMPAT12|CAPENABLED {
2604		int shm_open(
2605		    _In_z_ const char *path,
2606		    int flags,
2607		    mode_t mode
2608		);
2609	}
2610483	AUE_SHMUNLINK	STD {
2611		int shm_unlink(
2612		    _In_z_ const char *path
2613		);
2614	}
2615484	AUE_NULL	STD {
2616		int cpuset(
2617		    _Out_ cpusetid_t *setid
2618		);
2619	}
2620485	AUE_NULL	STD {
2621		int cpuset_setid(
2622		    cpuwhich_t which,
2623		    id_t id,
2624		    cpusetid_t setid
2625		);
2626	}
2627486	AUE_NULL	STD {
2628		int cpuset_getid(
2629		    cpulevel_t level,
2630		    cpuwhich_t which,
2631		    id_t id,
2632		    _Out_ cpusetid_t *setid
2633		);
2634	}
2635487	AUE_NULL	STD|CAPENABLED {
2636		int cpuset_getaffinity(
2637		    cpulevel_t level,
2638		    cpuwhich_t which,
2639		    id_t id,
2640		    size_t cpusetsize,
2641		    _Out_ cpuset_t *mask
2642		);
2643	}
2644488	AUE_NULL	STD|CAPENABLED {
2645		int cpuset_setaffinity(
2646		    cpulevel_t level,
2647		    cpuwhich_t which,
2648		    id_t id,
2649		    size_t cpusetsize,
2650		    _Out_ const cpuset_t *mask
2651		);
2652	}
2653489	AUE_FACCESSAT	STD|CAPENABLED {
2654		int faccessat(
2655		    int fd,
2656		    _In_z_ const char *path,
2657		    int amode,
2658		    int flag
2659		);
2660	}
2661490	AUE_FCHMODAT	STD|CAPENABLED {
2662		int fchmodat(
2663		    int fd,
2664		    _In_z_ const char *path,
2665		    mode_t mode,
2666		    int flag
2667		);
2668	}
2669491	AUE_FCHOWNAT	STD|CAPENABLED {
2670		int fchownat(
2671		    int fd,
2672		    _In_z_ const char *path,
2673		    uid_t uid,
2674		    gid_t gid,
2675		    int flag
2676		);
2677	}
2678492	AUE_FEXECVE	STD|CAPENABLED {
2679		int fexecve(
2680		    int fd,
2681		    _In_ char **argv,
2682		    _In_ char **envv
2683		);
2684	}
2685493	AUE_FSTATAT	COMPAT11|CAPENABLED {
2686		int fstatat(
2687		    int fd,
2688		    _In_z_ const char *path,
2689		    _Out_ _Contains_long_timet_ struct freebsd11_stat *buf,
2690		    int flag
2691		);
2692	}
2693494	AUE_FUTIMESAT	STD|CAPENABLED {
2694		int futimesat(
2695		    int fd,
2696		    _In_z_ const char *path,
2697		    _In_reads_(2) _Contains_long_timet_ const struct timeval *times
2698		);
2699	}
2700495	AUE_LINKAT	STD|CAPENABLED {
2701		int linkat(
2702		    int fd1,
2703		    _In_z_ const char *path1,
2704		    int fd2,
2705		    _In_z_ const char *path2,
2706		    int flag
2707		);
2708	}
2709496	AUE_MKDIRAT	STD|CAPENABLED {
2710		int mkdirat(
2711		    int fd,
2712		    _In_z_ const char *path,
2713		    mode_t mode
2714		);
2715	}
2716497	AUE_MKFIFOAT	STD|CAPENABLED {
2717		int mkfifoat(
2718		    int fd,
2719		    _In_z_ const char *path,
2720		    mode_t mode
2721		);
2722	}
2723498	AUE_MKNODAT	COMPAT11|CAPENABLED {
2724		int mknodat(
2725		    int fd,
2726		    _In_z_ const char *path,
2727		    mode_t mode,
2728		    uint32_t dev
2729		);
2730	}
2731; XXX: see the comment for open
2732499	AUE_OPENAT_RWTC	STD|CAPENABLED {
2733		int openat(
2734		    int fd,
2735		    _In_z_ const char *path,
2736		    int flag,
2737		    mode_t mode
2738		);
2739	}
2740500	AUE_READLINKAT	STD|CAPENABLED {
2741		ssize_t readlinkat(
2742		    int fd,
2743		    _In_z_ const char *path,
2744		    _Out_writes_bytes_(bufsize) char *buf,
2745		    size_t bufsize
2746		);
2747	}
2748501	AUE_RENAMEAT	STD|CAPENABLED {
2749		int renameat(
2750		    int oldfd,
2751		    _In_z_ const char *old,
2752		    int newfd,
2753		    _In_z_ const char *new
2754		);
2755	}
2756502	AUE_SYMLINKAT	STD|CAPENABLED {
2757		int symlinkat(
2758		    _In_z_ const char *path1,
2759		    int fd,
2760		    _In_z_ const char *path2
2761		);
2762	}
2763503	AUE_UNLINKAT	STD|CAPENABLED {
2764		int unlinkat(
2765		    int fd,
2766		    _In_z_ const char *path,
2767		    int flag
2768		);
2769	}
2770504	AUE_POSIX_OPENPT	STD {
2771		int posix_openpt(
2772		    int flags
2773		);
2774	}
2775; 505 is initialised by the kgssapi code, if present.
2776505	AUE_NULL	NOSTD {
2777		int gssd_syscall(
2778		    _In_z_ const char *path
2779		);
2780	}
2781506	AUE_JAIL_GET	STD {
2782		int jail_get(
2783		    _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
2784		    unsigned int iovcnt,
2785		    int flags
2786		);
2787	}
2788507	AUE_JAIL_SET	STD {
2789		int jail_set(
2790		    _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp,
2791		    unsigned int iovcnt,
2792		    int flags
2793		);
2794	}
2795508	AUE_JAIL_REMOVE	STD {
2796		int jail_remove(
2797		    int jid
2798		);
2799	}
2800509	AUE_CLOSEFROM	COMPAT12|CAPENABLED {
2801		int closefrom(
2802		    int lowfd
2803		);
2804	}
2805510	AUE_SEMCTL	NOSTD {
2806		int __semctl(
2807		    int semid,
2808		    int semnum,
2809		    int cmd,
2810		    _Inout_ _Contains_ptr_ union semun *arg
2811		);
2812	}
2813511	AUE_MSGCTL	NOSTD {
2814		int msgctl(
2815		    int msqid,
2816		    int cmd,
2817		    _Inout_opt_ _Contains_long_ptr_ struct msqid_ds *buf
2818		);
2819	}
2820512	AUE_SHMCTL	NOSTD {
2821		int shmctl(
2822		    int shmid,
2823		    int cmd,
2824		    _Inout_opt_ _Contains_long_ struct shmid_ds *buf
2825		);
2826	}
2827513	AUE_LPATHCONF	STD {
2828		int lpathconf(
2829		    _In_z_ const char *path,
2830		    int name
2831		);
2832	}
2833514	AUE_NULL	OBSOL	cap_new
2834515	AUE_CAP_RIGHTS_GET	STD|CAPENABLED {
2835		int __cap_rights_get(
2836		    int version,
2837		    int fd,
2838		    _Out_ cap_rights_t *rightsp
2839		);
2840	}
2841516	AUE_CAP_ENTER	STD|CAPENABLED {
2842		int cap_enter(void);
2843	}
2844517	AUE_CAP_GETMODE	STD|CAPENABLED {
2845		int cap_getmode(
2846		    _Out_ u_int *modep
2847		);
2848	}
2849518	AUE_PDFORK	STD|CAPENABLED {
2850		int pdfork(
2851		    _Out_ int *fdp,
2852		    int flags
2853		);
2854	}
2855519	AUE_PDKILL	STD|CAPENABLED {
2856		int pdkill(
2857		    int fd,
2858		    int signum
2859		);
2860	}
2861520	AUE_PDGETPID	STD|CAPENABLED {
2862		int pdgetpid(
2863		    int fd,
2864		    _Out_ pid_t *pidp
2865		);
2866	}
2867521	AUE_NULL	RESERVED
2868522	AUE_SELECT	STD|CAPENABLED {
2869		int pselect(
2870		    int nd,
2871		    _Inout_opt_ fd_set *in,
2872		    _Inout_opt_ fd_set *ou,
2873		    _Inout_opt_ fd_set *ex,
2874		    _In_opt_ _Contains_long_timet_ const struct timespec *ts,
2875		    _In_opt_ const sigset_t *sm
2876		);
2877	}
2878523	AUE_GETLOGINCLASS	STD|CAPENABLED {
2879		int getloginclass(
2880		    _Out_writes_z_(namelen) char *namebuf,
2881		    size_t namelen
2882		);
2883	}
2884524	AUE_SETLOGINCLASS	STD {
2885		int setloginclass(
2886		    _In_z_ const char *namebuf
2887		);
2888	}
2889525	AUE_NULL	STD {
2890		int rctl_get_racct(
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	}
2897526	AUE_NULL	STD {
2898		int rctl_get_rules(
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	}
2905527	AUE_NULL	STD {
2906		int rctl_get_limits(
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	}
2913528	AUE_NULL	STD {
2914		int rctl_add_rule(
2915		    _In_reads_bytes_(inbuflen) const void *inbufp,
2916		    size_t inbuflen,
2917		    _Out_writes_bytes_(outbuflen) void *outbufp,
2918		    size_t outbuflen
2919		);
2920	}
2921529	AUE_NULL	STD {
2922		int rctl_remove_rule(
2923		    _In_reads_bytes_(inbuflen) const void *inbufp,
2924		    size_t inbuflen,
2925		    _Out_writes_bytes_(outbuflen) void *outbufp,
2926		    size_t outbuflen
2927		);
2928	}
2929530	AUE_POSIX_FALLOCATE	STD|CAPENABLED {
2930		int posix_fallocate(
2931		    int fd,
2932		    off_t offset,
2933		    off_t len
2934		);
2935	}
2936531	AUE_POSIX_FADVISE	STD {
2937		int posix_fadvise(
2938		    int fd,
2939		    off_t offset,
2940		    off_t len,
2941		    int advice
2942		);
2943	}
2944532	AUE_WAIT6	STD {
2945		int wait6(
2946		    idtype_t idtype,
2947		    id_t id,
2948		    _Out_opt_ int *status,
2949		    int options,
2950		    _Out_opt_ _Contains_long_ struct __wrusage *wrusage,
2951		    _Out_opt_ _Contains_long_ptr_ struct siginfo *info
2952		);
2953	}
2954533	AUE_CAP_RIGHTS_LIMIT	STD|CAPENABLED {
2955		int cap_rights_limit(
2956		    int fd,
2957		    _In_ cap_rights_t *rightsp
2958		);
2959	}
2960534	AUE_CAP_IOCTLS_LIMIT	STD|CAPENABLED {
2961		int cap_ioctls_limit(
2962		    int fd,
2963		    _In_reads_(ncmds) const u_long *cmds,
2964		    size_t ncmds
2965		);
2966	}
2967535	AUE_CAP_IOCTLS_GET	STD|CAPENABLED {
2968		ssize_t cap_ioctls_get(
2969		    int fd,
2970		    _Out_writes_(maxcmds) u_long *cmds,
2971		    size_t maxcmds
2972		);
2973	}
2974536	AUE_CAP_FCNTLS_LIMIT	STD|CAPENABLED {
2975		int cap_fcntls_limit(
2976		    int fd,
2977		    uint32_t fcntlrights
2978		);
2979	}
2980537	AUE_CAP_FCNTLS_GET	STD|CAPENABLED {
2981		int cap_fcntls_get(
2982		    int fd,
2983		    _Out_ uint32_t *fcntlrightsp
2984		);
2985	}
2986538	AUE_BINDAT	STD|CAPENABLED {
2987		int bindat(
2988		    int fd,
2989		    int s,
2990		    _In_reads_bytes_(namelen) const struct sockaddr *name,
2991		    __socklen_t namelen
2992		);
2993	}
2994539	AUE_CONNECTAT	STD|CAPENABLED {
2995		int connectat(
2996		    int fd,
2997		    int s,
2998		    _In_reads_bytes_(namelen) const struct sockaddr *name,
2999		    __socklen_t namelen
3000		);
3001	}
3002540	AUE_CHFLAGSAT	STD|CAPENABLED {
3003		int chflagsat(
3004		    int fd,
3005		    _In_z_ const char *path,
3006		    u_long flags,
3007		    int atflag
3008		);
3009	}
3010541	AUE_ACCEPT	STD|CAPENABLED {
3011		int accept4(
3012		    int s,
3013		    _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
3014		    _Inout_opt_ __socklen_t *anamelen,
3015		    int flags
3016		);
3017	}
3018542	AUE_PIPE	STD|CAPENABLED {
3019		int pipe2(
3020		    _Out_writes_(2) int *fildes,
3021		    int flags
3022		);
3023	}
3024543	AUE_AIO_MLOCK	STD {
3025		int aio_mlock(
3026		    _In_ _Contains_long_ptr_ struct aiocb *aiocbp
3027		);
3028	}
3029544	AUE_PROCCTL	STD {
3030		int procctl(
3031		    idtype_t idtype,
3032		    id_t id,
3033		    int com,
3034		    _In_opt_ void *data
3035		);
3036	}
3037545	AUE_POLL	STD|CAPENABLED {
3038		int ppoll(
3039		    _Inout_updates_(nfds) struct pollfd *fds,
3040		    u_int nfds,
3041		    _In_opt_ _Contains_long_timet_ const struct timespec *ts,
3042		    _In_opt_ const sigset_t *set
3043		);
3044	}
3045546	AUE_FUTIMES	STD|CAPENABLED {
3046		int futimens(
3047		    int fd,
3048		    _In_reads_(2) _Contains_long_timet_ const struct timespec *times
3049		);
3050	}
3051547	AUE_FUTIMESAT	STD|CAPENABLED {
3052		int utimensat(
3053		    int fd,
3054		    _In_z_ const char *path,
3055		    _In_reads_(2) _Contains_long_timet_ const struct timespec *times,
3056		    int flag
3057		);
3058	}
3059548	AUE_NULL	OBSOL	numa_getaffinity
3060549	AUE_NULL	OBSOL	numa_setaffinity
3061550	AUE_FSYNC	STD|CAPENABLED {
3062		int fdatasync(
3063		    int fd
3064		);
3065	}
3066551	AUE_FSTAT	STD|CAPENABLED {
3067		int fstat(
3068		    int fd,
3069		    _Out_ _Contains_long_timet_ struct stat *sb
3070		);
3071	}
3072552	AUE_FSTATAT	STD|CAPENABLED {
3073		int fstatat(
3074		    int fd,
3075		    _In_z_ const char *path,
3076		    _Out_ _Contains_long_timet_ struct stat *buf,
3077		    int flag
3078		);
3079	}
3080553	AUE_FHSTAT	STD {
3081		int fhstat(
3082		    _In_ const struct fhandle *u_fhp,
3083		    _Out_ _Contains_long_timet_ struct stat *sb
3084		);
3085	}
3086554	AUE_GETDIRENTRIES STD|CAPENABLED {
3087		ssize_t getdirentries(
3088		    int fd,
3089		    _Out_writes_bytes_(count) char *buf,
3090		    size_t count,
3091		    _Out_ off_t *basep
3092		);
3093	}
3094555	AUE_STATFS	STD {
3095		int statfs(
3096		    _In_z_ const char *path,
3097		    _Out_ struct statfs *buf
3098		);
3099	}
3100556	AUE_FSTATFS	STD|CAPENABLED {
3101		int fstatfs(
3102		    int fd,
3103		    _Out_ struct statfs *buf
3104		);
3105	}
3106557	AUE_GETFSSTAT	STD {
3107		int getfsstat(
3108		    _Out_writes_bytes_opt_(bufsize) struct statfs *buf,
3109		    long bufsize,
3110		    int mode
3111		);
3112	}
3113558	AUE_FHSTATFS	STD {
3114		int fhstatfs(
3115		    _In_ const struct fhandle *u_fhp,
3116		    _Out_ struct statfs *buf
3117		);
3118	}
3119559	AUE_MKNODAT	STD|CAPENABLED {
3120		int mknodat(
3121		    int fd,
3122		    _In_z_ const char *path,
3123		    mode_t mode,
3124		    dev_t dev
3125		);
3126	}
3127560	AUE_KEVENT	STD|CAPENABLED {
3128		int kevent(
3129		    int fd,
3130		    _In_reads_opt_(nchanges) _Contains_ptr_ const struct kevent *changelist,
3131		    int nchanges,
3132		    _Out_writes_opt_(nevents) _Contains_ptr_ struct kevent *eventlist,
3133		    int nevents,
3134		    _In_opt_ _Contains_long_timet_ const struct timespec *timeout
3135		);
3136	}
3137561	AUE_NULL	STD|CAPENABLED {
3138		int cpuset_getdomain(
3139		    cpulevel_t level,
3140		    cpuwhich_t which,
3141		    id_t id,
3142		    size_t domainsetsize,
3143		    _Out_writes_bytes_(domainsetsize) domainset_t *mask,
3144		    _Out_ int *policy
3145		);
3146	}
3147562	AUE_NULL	STD|CAPENABLED {
3148		int cpuset_setdomain(
3149		    cpulevel_t level,
3150		    cpuwhich_t which,
3151		    id_t id,
3152		    size_t domainsetsize,
3153		    _In_ domainset_t *mask,
3154		    int policy
3155		);
3156	}
3157563	AUE_NULL	STD|CAPENABLED {
3158		int getrandom(
3159		    _Out_writes_bytes_(buflen) void *buf,
3160		    size_t buflen,
3161		    unsigned int flags
3162		);
3163	}
3164564	AUE_NULL	STD {
3165		int getfhat(
3166		    int fd,
3167		    _In_z_ char *path,
3168		    _Out_ struct fhandle *fhp,
3169		    int flags
3170		);
3171	}
3172565	AUE_NULL	STD {
3173		int fhlink(
3174		    _In_ struct fhandle *fhp,
3175		    _In_z_ const char *to
3176		);
3177	}
3178566	AUE_NULL	STD {
3179		int fhlinkat(
3180		    _In_ struct fhandle *fhp,
3181		    int tofd,
3182		    _In_z_ const char *to,
3183		);
3184	}
3185567	AUE_NULL	STD {
3186		int fhreadlink(
3187		    _In_ struct fhandle *fhp,
3188		    _Out_writes_(bufsize) char *buf,
3189		    size_t bufsize
3190		);
3191	}
3192568	AUE_UNLINKAT	STD|CAPENABLED {
3193		int funlinkat(
3194		    int dfd,
3195		    _In_z_ const char *path,
3196		    int fd,
3197		    int flag
3198		);
3199	}
3200569	AUE_NULL	STD|CAPENABLED {
3201		ssize_t copy_file_range(
3202		    int infd,
3203		    _Inout_opt_ off_t *inoffp,
3204		    int outfd,
3205		    _Inout_opt_ off_t *outoffp,
3206		    size_t len,
3207		    unsigned int flags
3208		);
3209	}
3210570	AUE_SYSCTL	STD|CAPENABLED {
3211		int __sysctlbyname(
3212		    _In_reads_(namelen) const char *name,
3213		    size_t namelen,
3214		    _Out_writes_bytes_opt_(*oldlenp) void *old,
3215		    _Inout_opt_ size_t *oldlenp,
3216		    _In_reads_bytes_opt_(newlen) void *new,
3217		    size_t newlen
3218		);
3219	}
3220571	AUE_SHMOPEN	STD|CAPENABLED {
3221		int shm_open2(
3222		    _In_z_ const char *path,
3223		    int flags,
3224		    mode_t mode,
3225		    int shmflags,
3226		    _In_z_ const char *name
3227		);
3228	}
3229572	AUE_SHMRENAME	STD {
3230		int shm_rename(
3231		    _In_z_ const char *path_from,
3232		    _In_z_ const char *path_to,
3233		    int flags
3234		);
3235	}
3236573	AUE_NULL	STD|CAPENABLED {
3237		int sigfastblock(
3238		    int cmd,
3239		    _Inout_opt_ uint32_t *ptr
3240		);
3241	}
3242574	AUE_REALPATHAT	STD {
3243		int __realpathat(
3244		    int fd,
3245		    _In_z_ const char *path,
3246		    _Out_writes_z_(size) char *buf,
3247		    size_t size,
3248		    int flags
3249		);
3250	}
3251575	AUE_CLOSERANGE	STD|CAPENABLED {
3252		int close_range(
3253		    u_int lowfd,
3254		    u_int highfd,
3255		    int flags
3256		);
3257	}
3258; 576 is initialised by the krpc code, if present.
3259576	AUE_NULL	NOSTD {
3260		int rpctls_syscall(
3261		    int op,
3262		    _In_z_ const char *path
3263		);
3264	}
3265577	AUE_SPECIALFD	STD|CAPENABLED {
3266		int __specialfd(
3267		    int type,
3268		    _In_reads_bytes_(len) const void *req,
3269		    size_t len
3270		);
3271	}
3272578	AUE_AIO_WRITEV	STD|CAPENABLED {
3273		int aio_writev(
3274		    _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp
3275		);
3276	}
3277579	AUE_AIO_READV	STD|CAPENABLED {
3278		int aio_readv(
3279		    _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp
3280		);
3281	}
3282580	AUE_FSPACECTL	STD|CAPENABLED {
3283		int fspacectl(
3284		    int fd,
3285		    int cmd,
3286		    _In_ const struct spacectl_range *rqsr,
3287		    int flags,
3288		    _Out_opt_ struct spacectl_range *rmsr,
3289		);
3290	}
3291581	AUE_NULL	STD|CAPENABLED {
3292		int sched_getcpu(void);
3293	}
3294
3295; Please copy any additions and changes to the following compatability tables:
3296; sys/compat/freebsd32/syscalls.master
3297; vim: syntax=off
3298