xref: /freebsd/sys/kern/syscalls.master (revision 2a2234c0f41da33b8cfc938e46b54a8234b64135)
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; Columns: number audit type name alt{name,tag,rtyp}/comments
8;	number	system call number, must be in order
9;	audit	the audit event associated with the system call
10;		A value of AUE_NULL means no auditing, but it also means that
11;		there is no audit event for the call at this time. For the
12;		case where the event exists, but we don't want auditing, the
13;		event should be #defined to AUE_NULL in audit_kevents.h.
14;	type	one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
15;		COMPAT7, COMPAT11, NODEF, NOARGS, NOPROTO, NOSTD
16;		The COMPAT* options may be combined with one or more NO*
17;		options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
18;	name	pseudo-prototype of syscall routine
19;		If one of the following alts is different, then all appear:
20;	altname	name of system call if different
21;	alttag	name of args struct tag if different from [o]`name'"_args"
22;	altrtyp	return type if not int (bogus - syscalls always return int)
23;		for UNIMPL/OBSOL, name continues with comments
24
25; types:
26;	STD	always included
27;	COMPAT	included on COMPAT #ifdef
28;	COMPAT4	included on COMPAT_FREEBSD4 #ifdef (FreeBSD 4 compat)
29;	COMPAT6	included on COMPAT_FREEBSD6 #ifdef (FreeBSD 6 compat)
30;	COMPAT7	included on COMPAT_FREEBSD7 #ifdef (FreeBSD 7 compat)
31;	COMPAT10 included on COMPAT_FREEBSD10 #ifdef (FreeBSD 10 compat)
32;	COMPAT11 included on COMPAT11 #ifdef (FreeBSD 11 compat)
33;	OBSOL	obsolete, not included in system, only specifies name
34;	UNIMPL	not implemented, placeholder only
35;	NOSTD	implemented but as a lkm that can be statically
36;		compiled in; sysent entry will be filled with lkmressys
37;		so the SYSCALL_MODULE macro works
38;	NOARGS	same as STD except do not create structure in sys/sysproto.h
39;	NODEF	same as STD except only have the entry in the syscall table
40;		added.  Meaning - do not create structure or function
41;		prototype in sys/sysproto.h
42;	NOPROTO	same as STD except do not create structure or
43;		function prototype in sys/sysproto.h.  Does add a
44;		definition to syscall.h besides adding a sysent.
45;	NOTSTATIC syscall is loadable
46
47; annotations:
48;	SAL 2.0 annotations are used to specify how system calls treat
49;	arguments that are passed using pointers. There are three basic
50;	annotations.
51;
52;	_In_    Object pointed to will be read and not modified.
53;	_Out_   Object pointed to will be written and not read.
54;	_Inout_ Object pointed to will be written and read.
55;
56;	These annotations are used alone when the pointer refers to a single
57;	object i.e. scalar types, structs, and pointers, and not NULL. Adding
58;	the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also
59;	refer to NULL.
60;
61;	For pointers to arrays, additional suffixes are added:
62;
63;	_In_z_, _Out_z_, _Inout_z_:
64;	    for a NUL terminated array e.g. a string.
65;	_In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n):
66;	    for a NUL terminated array e.g. a string, of known length n bytes.
67;	_In_reads_(n),_Out_writes_(n),_Inout_updates_(n):
68;	    for an array of n elements.
69;	_In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n):
70;	    for a buffer of n-bytes.
71
72; Please copy any additions and changes to the following compatability tables:
73; sys/compat/freebsd32/syscalls.master
74
75; #ifdef's, etc. may be included, and are copied to the output files.
76
77#include <sys/param.h>
78#include <sys/sysent.h>
79#include <sys/sysproto.h>
80
81; Reserved/unimplemented system calls in the range 0-150 inclusive
82; are reserved for use in future Berkeley releases.
83; Additional system calls implemented in vendor and other
84; redistributions should be placed in the reserved range at the end
85; of the current calls.
86
870	AUE_NULL	STD	{ int nosys(void); } syscall nosys_args int
881	AUE_EXIT	STD	{ void sys_exit(int rval); } exit \
89				    sys_exit_args void
902	AUE_FORK	STD	{ int fork(void); }
913	AUE_READ	STD	{ ssize_t read(int fd, \
92				    _Out_writes_bytes_(nbyte) void *buf, \
93				    size_t nbyte); }
944	AUE_WRITE	STD	{ ssize_t write(int fd, \
95				    _In_reads_bytes_(nbyte) const void *buf, \
96				    size_t nbyte); }
975	AUE_OPEN_RWTC	STD	{ int open( \
98				    _In_z_ char *path, \
99				    int flags, \
100				    int mode); }
101; XXX should be		{ int open(const char *path, int flags, ...); }
102; but we're not ready for `const' or varargs.
103; XXX man page says `mode_t mode'.
1046	AUE_CLOSE	STD	{ int close(int fd); }
1057	AUE_WAIT4	STD	{ int wait4(int pid, \
106				    _Out_opt_ int *status, \
107				    int options, \
108				    _Out_opt_ struct rusage *rusage); }
1098	AUE_CREAT	COMPAT	{ int creat(_In_z_ char *path, int mode); }
1109	AUE_LINK	STD	{ int link(_In_z_ char *path, \
111				    _In_z_ char *link); }
11210	AUE_UNLINK	STD	{ int unlink(_In_z_ char *path); }
11311	AUE_NULL	OBSOL	execv
11412	AUE_CHDIR	STD	{ int chdir(_In_z_ char *path); }
11513	AUE_FCHDIR	STD	{ int fchdir(int fd); }
11614	AUE_MKNOD	COMPAT11 { int mknod(_In_z_ char *path, int mode, \
117				    int dev); }
11815	AUE_CHMOD	STD	{ int chmod(_In_z_ char *path, int mode); }
11916	AUE_CHOWN	STD	{ int chown(_In_z_ char *path, \
120				    int uid, int gid); }
12117	AUE_NULL	STD	{ int obreak(_In_ char *nsize); } break \
122				    obreak_args int
12318	AUE_GETFSSTAT	COMPAT4	{ int getfsstat( \
124				    _Out_writes_bytes_opt_(bufsize) \
125				    struct ostatfs *buf, \
126				    long bufsize, int mode); }
12719	AUE_LSEEK	COMPAT	{ long lseek(int fd, long offset, \
128				    int whence); }
12920	AUE_GETPID	STD	{ pid_t getpid(void); }
13021	AUE_MOUNT	STD	{ int mount(_In_z_ char *type, \
131				    _In_z_ char *path, int flags, \
132				    _In_opt_ caddr_t data); }
133; XXX `path' should have type `const char *' but we're not ready for that.
13422	AUE_UMOUNT	STD	{ int unmount(_In_z_ char *path, int flags); }
13523	AUE_SETUID	STD	{ int setuid(uid_t uid); }
13624	AUE_GETUID	STD	{ uid_t getuid(void); }
13725	AUE_GETEUID	STD	{ uid_t geteuid(void); }
13826	AUE_PTRACE	STD	{ int ptrace(int req, pid_t pid, \
139				    _Inout_opt_ caddr_t addr, int data); }
14027	AUE_RECVMSG	STD	{ int recvmsg(int s, \
141				    _Inout_ struct msghdr *msg, int flags); }
14228	AUE_SENDMSG	STD	{ int sendmsg(int s, _In_ struct msghdr *msg, \
143				    int flags); }
14429	AUE_RECVFROM	STD	{ int recvfrom(int s, \
145				    _Out_writes_bytes_(len) caddr_t buf, \
146				    size_t len, int flags, \
147				    _Out_writes_bytes_opt_(*fromlenaddr) \
148				    struct sockaddr * __restrict from, \
149				    _Inout_opt_ \
150				    __socklen_t * __restrict fromlenaddr); }
15130	AUE_ACCEPT	STD	{ int accept(int s, \
152				    _Out_writes_bytes_opt_(*anamelen) \
153				    struct sockaddr * __restrict name, \
154				    _Inout_opt_ \
155				    __socklen_t * __restrict anamelen); }
15631	AUE_GETPEERNAME	STD	{ int getpeername(int fdes, \
157				    _Out_writes_bytes_(*alen) \
158				    struct sockaddr * __restrict asa, \
159				    _Inout_opt_ \
160				    __socklen_t * __restrict alen); }
16132	AUE_GETSOCKNAME	STD	{ int getsockname(int fdes, \
162				    _Out_writes_bytes_(*alen) \
163				    struct sockaddr * __restrict asa, \
164				    _Inout_ __socklen_t * __restrict alen); }
16533	AUE_ACCESS	STD	{ int access(_In_z_ char *path, int amode); }
16634	AUE_CHFLAGS	STD	{ int chflags(_In_z_ const char *path, \
167				    u_long flags); }
16835	AUE_FCHFLAGS	STD	{ int fchflags(int fd, u_long flags); }
16936	AUE_SYNC	STD	{ int sync(void); }
17037	AUE_KILL	STD	{ int kill(int pid, int signum); }
17138	AUE_STAT	COMPAT	{ int stat(_In_z_ char *path, \
172				    _Out_ struct ostat *ub); }
17339	AUE_GETPPID	STD	{ pid_t getppid(void); }
17440	AUE_LSTAT	COMPAT	{ int lstat(_In_z_ char *path, \
175				    _Out_ struct ostat *ub); }
17641	AUE_DUP		STD	{ int dup(u_int fd); }
17742	AUE_PIPE	COMPAT10	{ int pipe(void); }
17843	AUE_GETEGID	STD	{ gid_t getegid(void); }
17944	AUE_PROFILE	STD	{ int profil( \
180				    _Out_writes_bytes_(size) caddr_t samples, \
181				    size_t size, size_t offset, u_int scale); }
18245	AUE_KTRACE	STD	{ int ktrace(_In_z_ const char *fname, \
183				    int ops, int facs, int pid); }
18446	AUE_SIGACTION	COMPAT	{ int sigaction(int signum, \
185				    _In_opt_ struct osigaction *nsa, \
186				    _Out_opt_ struct osigaction *osa); }
18747	AUE_GETGID	STD	{ gid_t getgid(void); }
18848	AUE_SIGPROCMASK	COMPAT	{ int sigprocmask(int how, osigset_t mask); }
189; XXX note nonstandard (bogus) calling convention - the libc stub passes
190; us the mask, not a pointer to it, and we return the old mask as the
191; (int) return value.
19249	AUE_GETLOGIN	STD	{ int getlogin( \
193				    _Out_writes_z_(namelen) char *namebuf, \
194				    u_int namelen); }
19550	AUE_SETLOGIN	STD	{ int setlogin(_In_z_ char *namebuf); }
19651	AUE_ACCT	STD	{ int acct(_In_z_ char *path); }
19752	AUE_SIGPENDING	COMPAT	{ int sigpending(void); }
19853	AUE_SIGALTSTACK	STD	{ int sigaltstack(_In_opt_ stack_t *ss, \
199				    _Out_opt_ stack_t *oss); }
20054	AUE_IOCTL	STD	{ int ioctl(int fd, u_long com, \
201				    _Inout_opt_ caddr_t data); }
20255	AUE_REBOOT	STD	{ int reboot(int opt); }
20356	AUE_REVOKE	STD	{ int revoke(_In_z_ char *path); }
20457	AUE_SYMLINK	STD	{ int symlink(_In_z_ char *path, \
205				    _In_z_ char *link); }
20658	AUE_READLINK	STD	{ ssize_t readlink(_In_z_ char *path, \
207				    _Out_writes_z_(count) char *buf, \
208				    size_t count); }
20959	AUE_EXECVE	STD	{ int execve( \
210				    _In_z_ char *fname, \
211				    _In_z_ char **argv, \
212				    _In_z_ char **envv); }
21360	AUE_UMASK	STD	{ int umask(int newmask); } umask umask_args \
214				    int
21561	AUE_CHROOT	STD	{ int chroot(_In_z_ char *path); }
21662	AUE_FSTAT	COMPAT	{ int fstat(int fd, _Out_ struct ostat *sb); }
21763	AUE_NULL	COMPAT	{ int getkerninfo(int op, \
218				    _Out_writes_bytes_opt(*size) char *where, \
219				    _Inout_opt_ size_t *size, \
220				    int arg); } getkerninfo getkerninfo_args int
22164	AUE_NULL	COMPAT	{ int getpagesize(void); } getpagesize \
222				    getpagesize_args int
22365	AUE_MSYNC	STD	{ int msync(_In_ void *addr, size_t len, \
224				    int flags); }
22566	AUE_VFORK	STD	{ int vfork(void); }
22667	AUE_NULL	OBSOL	vread
22768	AUE_NULL	OBSOL	vwrite
22869	AUE_SBRK	STD	{ int sbrk(int incr); }
22970	AUE_SSTK	STD	{ int sstk(int incr); }
23071	AUE_MMAP	COMPAT	{ int mmap(_In_ void *addr, int len, int prot, \
231				    int flags, int fd, long pos); }
23272	AUE_O_VADVISE	STD	{ int ovadvise(int anom); } vadvise \
233				    ovadvise_args int
23473	AUE_MUNMAP	STD	{ int munmap(_In_ void *addr, size_t len); }
23574	AUE_MPROTECT	STD	{ int mprotect(_In_ void *addr, \
236				    size_t len, int prot); }
23775	AUE_MADVISE	STD	{ int madvise(_In_ void *addr, \
238				    size_t len, int behav); }
23976	AUE_NULL	OBSOL	vhangup
24077	AUE_NULL	OBSOL	vlimit
24178	AUE_MINCORE	STD	{ int mincore( \
242				    _In_ const void *addr, \
243				    size_t len, \
244				    _Out_writes_bytes_(len/PAGE_SIZE) \
245				    char *vec); }
24679	AUE_GETGROUPS	STD	{ int getgroups(u_int gidsetsize, \
247				    _Out_writes_opt_(gidsetsize) \
248				    gid_t *gidset); }
24980	AUE_SETGROUPS	STD	{ int setgroups(u_int gidsetsize, \
250				    _In_reads_(gidsetsize) gid_t *gidset); }
25181	AUE_GETPGRP	STD	{ int getpgrp(void); }
25282	AUE_SETPGRP	STD	{ int setpgid(int pid, int pgid); }
25383	AUE_SETITIMER	STD	{ int setitimer(u_int which, \
254				    _In_ struct itimerval *itv, \
255				    _Out_opt_ struct itimerval *oitv); }
25684	AUE_WAIT4	COMPAT	{ int wait(void); }
25785	AUE_SWAPON	STD	{ int swapon(_In_z_ char *name); }
25886	AUE_GETITIMER	STD	{ int getitimer(u_int which, \
259				    _Out_ struct itimerval *itv); }
26087	AUE_SYSCTL	COMPAT	{ int gethostname( \
261				    _Out_writes_z_(len) char *hostname, \
262				    u_int len); } gethostname \
263				    gethostname_args int
26488	AUE_SYSCTL	COMPAT	{ int sethostname( \
265				    _In_reads_z_(len) char *hostname, \
266				    u_int len); } sethostname \
267				    sethostname_args int
26889	AUE_GETDTABLESIZE	STD	{ int getdtablesize(void); }
26990	AUE_DUP2	STD	{ int dup2(u_int from, u_int to); }
27091	AUE_NULL	UNIMPL	getdopt
27192	AUE_FCNTL	STD	{ int fcntl(int fd, int cmd, long arg); }
272; XXX should be	{ int fcntl(int fd, int cmd, ...); }
273; but we're not ready for varargs.
27493	AUE_SELECT	STD	{ int select(int nd, \
275				    _Inout_opt_ fd_set *in, \
276				    _Inout_opt_ fd_set *ou, \
277				    _Inout_opt_ fd_set *ex, \
278				    _In_opt_ struct timeval *tv); }
27994	AUE_NULL	UNIMPL	setdopt
28095	AUE_FSYNC	STD	{ int fsync(int fd); }
28196	AUE_SETPRIORITY	STD	{ int setpriority(int which, int who, \
282				    int prio); }
28397	AUE_SOCKET	STD	{ int socket(int domain, int type, \
284				    int protocol); }
28598	AUE_CONNECT	STD	{ int connect(int s, \
286				    _In_reads_bytes_(namelen) caddr_t name, \
287				    int namelen); }
28899	AUE_ACCEPT	COMPAT|NOARGS { int accept(int s, \
289				    _Out_writes_bytes_opt_(*anamelen) \
290				    caddr_t name, int *anamelen); } \
291				    accept accept_args int
292100	AUE_GETPRIORITY	STD	{ int getpriority(int which, int who); }
293101	AUE_SEND	COMPAT	{ int send(int s, \
294				    _In_reads_bytes_(len) caddr_t buf, \
295				    int len, \
296				    int flags); }
297102	AUE_RECV	COMPAT	{ int recv(int s, \
298				    _Out_writes_bytes_(len) caddr_t buf, \
299				    int len, int flags); }
300103	AUE_SIGRETURN	COMPAT	{ int sigreturn( \
301				    _In_ struct osigcontext *sigcntxp); }
302104	AUE_BIND	STD	{ int bind(int s, \
303				    _In_reads_bytes_(namelen) caddr_t name, \
304				    int namelen); }
305105	AUE_SETSOCKOPT	STD	{ int setsockopt(int s, int level, int name, \
306				    _In_reads_bytes_opt_(valsize) caddr_t val, \
307				    int valsize); }
308106	AUE_LISTEN	STD	{ int listen(int s, int backlog); }
309107	AUE_NULL	OBSOL	vtimes
310108	AUE_NULL	COMPAT	{ int sigvec(int signum, \
311				    _In_opt_ struct sigvec *nsv, \
312				    _Out_opt_ struct sigvec *osv); }
313109	AUE_NULL	COMPAT	{ int sigblock(int mask); }
314110	AUE_NULL	COMPAT	{ int sigsetmask(int mask); }
315111	AUE_NULL	COMPAT	{ int sigsuspend(osigset_t mask); }
316; XXX note nonstandard (bogus) calling convention - the libc stub passes
317; us the mask, not a pointer to it.
318112	AUE_NULL	COMPAT	{ int sigstack(_In_opt_ struct sigstack *nss, \
319				    _Out_opt_ struct sigstack *oss); }
320113	AUE_RECVMSG	COMPAT	{ int recvmsg(int s, \
321				    _Inout_ struct omsghdr *msg, \
322				    int flags); }
323114	AUE_SENDMSG	COMPAT	{ int sendmsg(int s, _In_ caddr_t msg, \
324				    int flags); }
325115	AUE_NULL	OBSOL	vtrace
326116	AUE_GETTIMEOFDAY	STD	{ int gettimeofday( \
327				    _Out_ struct timeval *tp, \
328				    _Out_opt_ struct timezone *tzp); }
329117	AUE_GETRUSAGE	STD	{ int getrusage(int who, \
330				    _Out_ struct rusage *rusage); }
331118	AUE_GETSOCKOPT	STD	{ int getsockopt(int s, int level, int name, \
332				    _Out_writes_bytes_opt_(*avalsize) \
333				    caddr_t val, _Inout_  int *avalsize); }
334119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
335120	AUE_READV	STD	{ int readv(int fd, \
336				   _Inout_updates_(iovcnt) struct iovec *iovp, \
337				   u_int iovcnt); }
338121	AUE_WRITEV	STD	{ int writev(int fd, \
339				    _In_reads_opt_(iovcnt) struct iovec *iovp, \
340				    u_int iovcnt); }
341122	AUE_SETTIMEOFDAY	STD	{ int settimeofday( \
342				    _In_ struct timeval *tv, \
343				    _In_opt_ struct timezone *tzp); }
344123	AUE_FCHOWN	STD	{ int fchown(int fd, int uid, int gid); }
345124	AUE_FCHMOD	STD	{ int fchmod(int fd, int mode); }
346125	AUE_RECVFROM	COMPAT|NOARGS { int recvfrom(int s, \
347				    _Out_writes_(len) caddr_t buf, \
348				    size_t len, int flags, \
349				    _Out_writes_bytes_(*fromlenaddr) \
350				    caddr_t from, \
351				    _Inout_ int *fromlenaddr); } \
352				    recvfrom recvfrom_args int
353126	AUE_SETREUID	STD	{ int setreuid(int ruid, int euid); }
354127	AUE_SETREGID	STD	{ int setregid(int rgid, int egid); }
355128	AUE_RENAME	STD	{ int rename(_In_z_ char *from, \
356				    _In_z_ char *to); }
357129	AUE_TRUNCATE	COMPAT	{ int truncate(_In_z_ char *path, \
358				    long length); }
359130	AUE_FTRUNCATE	COMPAT	{ int ftruncate(int fd, long length); }
360131	AUE_FLOCK	STD	{ int flock(int fd, int how); }
361132	AUE_MKFIFO	STD	{ int mkfifo(_In_z_ char *path, int mode); }
362133	AUE_SENDTO	STD	{ int sendto(int s, \
363				    _In_reads_bytes_(len) caddr_t buf, \
364				    size_t len,  int flags, \
365				    _In_reads_bytes_opt_(tolen) caddr_t to, \
366				    int tolen); }
367134	AUE_SHUTDOWN	STD	{ int shutdown(int s, int how); }
368135	AUE_SOCKETPAIR	STD	{ int socketpair(int domain, int type, \
369				    int protocol, _Out_writes_(2) int *rsv); }
370136	AUE_MKDIR	STD	{ int mkdir(_In_z_ char *path, int mode); }
371137	AUE_RMDIR	STD	{ int rmdir(_In_z_ char *path); }
372138	AUE_UTIMES	STD	{ int utimes(_In_z_ char *path, \
373				    _In_ struct timeval *tptr); }
374139	AUE_NULL	OBSOL	4.2 sigreturn
375140	AUE_ADJTIME	STD	{ int adjtime(_In_ struct timeval *delta, \
376				    _Out_opt_ struct timeval *olddelta); }
377141	AUE_GETPEERNAME	COMPAT	{ int getpeername(int fdes, \
378				    _Out_writes_bytes_(*alen) \
379				    caddr_t asa, \
380				    _Inout_opt_ int *alen); }
381142	AUE_SYSCTL	COMPAT	{ long gethostid(void); }
382143	AUE_SYSCTL	COMPAT	{ int sethostid(long hostid); }
383144	AUE_GETRLIMIT	COMPAT	{ int getrlimit(u_int which, _Out_ struct \
384				    orlimit *rlp); }
385145	AUE_SETRLIMIT	COMPAT	{ int setrlimit(u_int which, \
386				    _Out_ struct orlimit *rlp); }
387146	AUE_KILLPG	COMPAT	{ int killpg(int pgid, int signum); }
388147	AUE_SETSID	STD	{ int setsid(void); }
389148	AUE_QUOTACTL	STD	{ int quotactl( \
390				    _In_z_ char *path, int cmd, int uid, \
391				    _In_ caddr_t arg); }
392149	AUE_O_QUOTA	COMPAT	{ int quota(void); }
393150	AUE_GETSOCKNAME	COMPAT|NOARGS { int getsockname(int fdec, \
394				    _Out_writes_bytes_(*alen) \
395				    caddr_t asa, \
396				    _Inout_ int *alen); } getsockname \
397				    getsockname_args int
398
399; Syscalls 151-180 inclusive are reserved for vendor-specific
400; system calls.  (This includes various calls added for compatibity
401; with other Unix variants.)
402; Some of these calls are now supported by BSD...
403151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
404152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
405153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
406; 154 is initialised by the NLM code, if present.
407154	AUE_NULL	NOSTD	{ int nlm_syscall(int debug_level, \
408				    int grace_period, int addr_count, \
409				    _In_reads_(addr_count) \
410				    char **addrs); }
411; 155 is initialized by the NFS code, if present.
412155	AUE_NFS_SVC	NOSTD	{ int nfssvc(int flag, _In_ caddr_t argp); }
413156	AUE_GETDIRENTRIES	COMPAT	{ int getdirentries(int fd, \
414				    _Out_writes_bytes_(count) char *buf, \
415				    u_int count, _Out_ long *basep); }
416157	AUE_STATFS	COMPAT4	{ int statfs(_In_z_ char *path, \
417				    _Out_ struct ostatfs *buf); }
418158	AUE_FSTATFS	COMPAT4	{ int fstatfs(int fd, \
419				    _Out_ struct ostatfs *buf); }
420159	AUE_NULL	UNIMPL	nosys
421160	AUE_LGETFH	STD { int lgetfh(_In_z_ char *fname, \
422				    _Out_ struct fhandle *fhp); }
423161	AUE_NFS_GETFH	STD	{ int getfh(_In_z_ char *fname, \
424				    _Out_ struct fhandle *fhp); }
425162	AUE_SYSCTL	COMPAT4	{ int getdomainname( \
426				    _Out_writes_z_(len) char *domainname, \
427				    int len); }
428163	AUE_SYSCTL	COMPAT4	{ int setdomainname( \
429				    _In_reads_z_(len) char *domainname, \
430				    int len); }
431164	AUE_NULL	COMPAT4	{ int uname(_Out_ struct utsname *name); }
432165	AUE_SYSARCH	STD	{ int sysarch(int op, _In_z_ char *parms); }
433166	AUE_RTPRIO	STD	{ int rtprio(int function, pid_t pid, \
434				    _Inout_ struct rtprio *rtp); }
435167	AUE_NULL	UNIMPL	nosys
436168	AUE_NULL	UNIMPL	nosys
437169	AUE_SEMSYS	NOSTD	{ int semsys(int which, int a2, int a3, \
438				    int a4, int a5); }
439; XXX should be	{ int semsys(int which, ...); }
440170	AUE_MSGSYS	NOSTD	{ int msgsys(int which, int a2, int a3, \
441				    int a4, int a5, int a6); }
442; XXX should be	{ int msgsys(int which, ...); }
443171	AUE_SHMSYS	NOSTD	{ int shmsys(int which, int a2, int a3, \
444				    int a4); }
445; XXX should be	{ int shmsys(int which, ...); }
446172	AUE_NULL	UNIMPL	nosys
447173	AUE_PREAD	COMPAT6	{ ssize_t pread(int fd, \
448				    _Out_writes_bytes_(nbyte) void *buf, \
449				    size_t nbyte, int pad, off_t offset); }
450174	AUE_PWRITE	COMPAT6	{ ssize_t pwrite(int fd, \
451				    _In_reads_bytes_(nbyte) \
452				    const void *buf, \
453				    size_t nbyte, int pad, off_t offset); }
454175	AUE_SETFIB	STD	{ int setfib(int fibnum); }
455176	AUE_NTP_ADJTIME	STD	{ int ntp_adjtime(_Inout_ struct timex *tp); }
456177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
457178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
458179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
459180	AUE_NULL	UNIMPL	nosys
460
461; Syscalls 181-199 are used by/reserved for BSD
462181	AUE_SETGID	STD	{ int setgid(gid_t gid); }
463182	AUE_SETEGID	STD	{ int setegid(gid_t egid); }
464183	AUE_SETEUID	STD	{ int seteuid(uid_t euid); }
465184	AUE_NULL	UNIMPL	lfs_bmapv
466185	AUE_NULL	UNIMPL	lfs_markv
467186	AUE_NULL	UNIMPL	lfs_segclean
468187	AUE_NULL	UNIMPL	lfs_segwait
469188	AUE_STAT	COMPAT11 { int stat(_In_z_ char *path, \
470				    _Out_ struct freebsd11_stat *ub); }
471189	AUE_FSTAT	COMPAT11 { int fstat(int fd, \
472				    _Out_ struct freebsd11_stat *sb); }
473190	AUE_LSTAT	COMPAT11 { int lstat(_In_z_ char *path, \
474				    _Out_ struct freebsd11_stat *ub); }
475191	AUE_PATHCONF	STD	{ int pathconf(_In_z_ char *path, int name); }
476192	AUE_FPATHCONF	STD	{ int fpathconf(int fd, int name); }
477193	AUE_NULL	UNIMPL	nosys
478194	AUE_GETRLIMIT	STD	{ int getrlimit(u_int which, \
479				    _Out_ struct rlimit *rlp); } getrlimit \
480				    __getrlimit_args int
481195	AUE_SETRLIMIT	STD	{ int setrlimit(u_int which, \
482				    _In_ struct rlimit *rlp); } setrlimit \
483				    __setrlimit_args int
484196	AUE_GETDIRENTRIES	COMPAT11 { int getdirentries(int fd, \
485				    _Out_writes_bytes_(count) char *buf, \
486				    u_int count, _Out_ long *basep); }
487197	AUE_MMAP	COMPAT6	{ caddr_t mmap(_In_ caddr_t addr, size_t len, \
488				    int prot, int flags, int fd, int pad, \
489				    off_t pos); }
490198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
491				    __syscall_args int
492199	AUE_LSEEK	COMPAT6	{ off_t lseek(int fd, int pad, \
493				    off_t offset, int whence); }
494200	AUE_TRUNCATE	COMPAT6	{ int truncate(_In_z_ char *path, int pad, \
495				    off_t length); }
496201	AUE_FTRUNCATE	COMPAT6	{ int ftruncate(int fd, int pad, \
497				    off_t length); }
498202	AUE_SYSCTL	STD	{ int __sysctl( \
499				    _In_reads_(namelen) int *name, \
500				    u_int namelen, \
501				    _Out_writes_bytes_opt_(*oldlenp) \
502				    void *old, \
503				    _Inout_opt_ size_t *oldlenp, \
504				    _In_reads_bytes_opt_(newlen) \
505				    void *new, \
506				    size_t newlen); } \
507				    __sysctl sysctl_args int
508203	AUE_MLOCK	STD	{ int mlock(_In_ const void *addr, \
509				    size_t len); }
510204	AUE_MUNLOCK	STD	{ int munlock(_In_ const void *addr, \
511				    size_t len); }
512205	AUE_UNDELETE	STD	{ int undelete(_In_z_ char *path); }
513206	AUE_FUTIMES	STD	{ int futimes(int fd, \
514				    _In_reads_(2) struct timeval *tptr); }
515207	AUE_GETPGID	STD	{ int getpgid(pid_t pid); }
516208	AUE_NULL	UNIMPL	nosys
517209	AUE_POLL	STD	{ int poll( \
518				    _Inout_updates_(nfds) \
519				    struct pollfd *fds, \
520				    u_int nfds, int timeout); }
521;
522; The following are reserved for loadable syscalls
523;
524210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
525211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
526212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
527213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
528214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
529215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
530216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
531217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
532218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
533219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
534
535220	AUE_SEMCTL	COMPAT7|NOSTD { int __semctl(int semid, int semnum, \
536				    int cmd, union semun_old *arg); }
537221	AUE_SEMGET	NOSTD	{ int semget(key_t key, int nsems, \
538				    int semflg); }
539222	AUE_SEMOP	NOSTD	{ int semop(int semid, \
540				    _In_reads_(nsops) struct sembuf *sops, \
541				    size_t nsops); }
542223	AUE_NULL	UNIMPL	semconfig
543224	AUE_MSGCTL	COMPAT7|NOSTD { int msgctl(int msqid, int cmd, \
544				    struct msqid_ds_old *buf); }
545225	AUE_MSGGET	NOSTD	{ int msgget(key_t key, int msgflg); }
546226	AUE_MSGSND	NOSTD	{ int msgsnd(int msqid, \
547				    _In_reads_bytes_(msgsz) const void *msgp, \
548				    size_t msgsz, int msgflg); }
549227	AUE_MSGRCV	NOSTD	{ ssize_t msgrcv(int msqid, \
550				    _Out_writes_bytes_(msgsz) void *msgp, \
551				    size_t msgsz, long msgtyp, int msgflg); }
552228	AUE_SHMAT	NOSTD	{ int shmat(int shmid, \
553				    _In_ const void *shmaddr, \
554				    int shmflg); }
555229	AUE_SHMCTL	COMPAT7|NOSTD { int shmctl(int shmid, int cmd, \
556				    struct shmid_ds_old *buf); }
557230	AUE_SHMDT	NOSTD	{ int shmdt(_In_ const void *shmaddr); }
558231	AUE_SHMGET	NOSTD	{ int shmget(key_t key, size_t size, \
559				    int shmflg); }
560;
561232	AUE_NULL	STD	{ int clock_gettime(clockid_t clock_id, \
562				    _Out_ struct timespec *tp); }
563233	AUE_CLOCK_SETTIME	STD	{ int clock_settime(clockid_t clock_id, \
564				    _In_ const struct timespec *tp); }
565234	AUE_NULL	STD	{ int clock_getres(clockid_t clock_id, \
566				    _Out_ struct timespec *tp); }
567235	AUE_NULL	STD	{ int ktimer_create( \
568				    clockid_t clock_id, \
569				    _In_ struct sigevent *evp, \
570				    _Out_ int *timerid); }
571236	AUE_NULL	STD	{ int ktimer_delete(int timerid); }
572237	AUE_NULL	STD	{ int ktimer_settime(int timerid, \
573				    int flags, \
574				    _In_ const struct itimerspec *value, \
575				    _Out_opt_ struct itimerspec *ovalue); }
576238	AUE_NULL	STD	{ int ktimer_gettime(int timerid, \
577				    _Out_ struct itimerspec *value); }
578239	AUE_NULL	STD	{ int ktimer_getoverrun(int timerid); }
579240	AUE_NULL	STD	{ int nanosleep( \
580				    _In_ const struct timespec *rqtp, \
581				    _Out_opt_ struct timespec *rmtp); }
582241	AUE_NULL	STD	{ int ffclock_getcounter( \
583				    _Out_ ffcounter *ffcount); }
584242	AUE_NULL	STD	{ int ffclock_setestimate( \
585				    _In_ struct ffclock_estimate *cest); }
586243	AUE_NULL	STD	{ int ffclock_getestimate( \
587				    _Out_ struct ffclock_estimate *cest); }
588244	AUE_NULL	STD	{ int clock_nanosleep(clockid_t clock_id, \
589				    int flags, \
590				    _In_ const struct timespec *rqtp, \
591				    _Out_opt_ struct timespec *rmtp); }
592245	AUE_NULL	UNIMPL	nosys
593246	AUE_NULL	UNIMPL	nosys
594247	AUE_NULL	STD	{ int clock_getcpuclockid2(id_t id, \
595				    int which, _Out_ clockid_t *clock_id); }
596248	AUE_NULL	STD	{ int ntp_gettime( \
597				    _Out_ struct ntptimeval *ntvp); }
598249	AUE_NULL	UNIMPL	nosys
599; syscall numbers initially used in OpenBSD
600250	AUE_MINHERIT	STD	{ int minherit( \
601				    _In_ void *addr, \
602				    size_t len, int inherit); }
603251	AUE_RFORK	STD	{ int rfork(int flags); }
604252	AUE_POLL	OBSOL	openbsd_poll
605253	AUE_ISSETUGID	STD	{ int issetugid(void); }
606254	AUE_LCHOWN	STD	{ int lchown(_In_z_ char *path, int uid, \
607				    int gid); }
608255	AUE_AIO_READ	STD	{ int aio_read( \
609				    _Inout_ struct aiocb *aiocbp); }
610256	AUE_AIO_WRITE	STD	{ int aio_write( \
611				    _Inout_ struct aiocb *aiocbp); }
612257	AUE_LIO_LISTIO	STD	{ int lio_listio(int mode, \
613				    _Inout_updates_(nent) \
614				    struct aiocb* const *acb_list, \
615				    int nent, \
616				    _In_opt_ struct sigevent *sig); }
617258	AUE_NULL	UNIMPL	nosys
618259	AUE_NULL	UNIMPL	nosys
619260	AUE_NULL	UNIMPL	nosys
620261	AUE_NULL	UNIMPL	nosys
621262	AUE_NULL	UNIMPL	nosys
622263	AUE_NULL	UNIMPL	nosys
623264	AUE_NULL	UNIMPL	nosys
624265	AUE_NULL	UNIMPL	nosys
625266	AUE_NULL	UNIMPL	nosys
626267	AUE_NULL	UNIMPL	nosys
627268	AUE_NULL	UNIMPL	nosys
628269	AUE_NULL	UNIMPL	nosys
629270	AUE_NULL	UNIMPL	nosys
630271	AUE_NULL	UNIMPL	nosys
631272	AUE_O_GETDENTS	COMPAT11 { int getdents(int fd, \
632				    _Out_writes_bytes_(count) char *buf, \
633				    size_t count); }
634273	AUE_NULL	UNIMPL	nosys
635274	AUE_LCHMOD	STD	{ int lchmod(_In_z_ char *path, mode_t mode); }
636275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
637				    gid_t gid); } netbsd_lchown lchown_args \
638				    int
639276	AUE_LUTIMES	STD	{ int lutimes(_In_z_ char *path, \
640				    _In_ struct timeval *tptr); }
641277	AUE_MSYNC	NOPROTO	{ int msync(_In_ void *addr, size_t len, \
642				    int flags); } netbsd_msync msync_args int
643278	AUE_STAT	COMPAT11 { int nstat(_In_z_ char *path, \
644				    _Out_ struct nstat *ub); }
645279	AUE_FSTAT	COMPAT11 { int nfstat(int fd, _Out_ struct nstat *sb); }
646280	AUE_LSTAT	COMPAT11 { int nlstat(_In_z_ char *path, \
647				    _Out_ struct nstat *ub); }
648281	AUE_NULL	UNIMPL	nosys
649282	AUE_NULL	UNIMPL	nosys
650283	AUE_NULL	UNIMPL	nosys
651284	AUE_NULL	UNIMPL	nosys
652285	AUE_NULL	UNIMPL	nosys
653286	AUE_NULL	UNIMPL	nosys
654287	AUE_NULL	UNIMPL	nosys
655288	AUE_NULL	UNIMPL	nosys
656289	AUE_PREADV	STD	{ ssize_t preadv(int fd, \
657				    _In_reads_(iovcnt) \
658				    struct iovec *iovp, \
659				    u_int iovcnt, off_t offset); }
660290	AUE_PWRITEV	STD	{ ssize_t pwritev(int fd, \
661				    _In_reads_(iovcnt) struct iovec *iovp, \
662				    u_int iovcnt, off_t offset); }
663291	AUE_NULL	UNIMPL	nosys
664292	AUE_NULL	UNIMPL	nosys
665293	AUE_NULL	UNIMPL	nosys
666294	AUE_NULL	UNIMPL	nosys
667295	AUE_NULL	UNIMPL	nosys
668296	AUE_NULL	UNIMPL	nosys
669297	AUE_FHSTATFS	COMPAT4	{ int fhstatfs( \
670				    _In_ const struct fhandle *u_fhp, \
671				    _Out_ struct ostatfs *buf); }
672298	AUE_FHOPEN	STD	{ int fhopen( \
673				    _In_ const struct fhandle *u_fhp, \
674				    int flags); }
675299	AUE_FHSTAT	COMPAT11 { int fhstat( \
676				    _In_ const struct fhandle *u_fhp, \
677				    _Out_ struct freebsd11_stat *sb); }
678300	AUE_NULL	STD	{ int modnext(int modid); }
679301	AUE_NULL	STD	{ int modstat(int modid, \
680				    _Out_ struct module_stat* stat); }
681302	AUE_NULL	STD	{ int modfnext(int modid); }
682303	AUE_NULL	STD	{ int modfind(_In_z_ const char *name); }
683304	AUE_MODLOAD	STD	{ int kldload(_In_z_ const char *file); }
684305	AUE_MODUNLOAD	STD	{ int kldunload(int fileid); }
685306	AUE_NULL	STD	{ int kldfind(_In_z_ const char *file); }
686307	AUE_NULL	STD	{ int kldnext(int fileid); }
687308	AUE_NULL	STD	{ int kldstat(int fileid, \
688				    _Out_ struct kld_file_stat *stat); }
689309	AUE_NULL	STD	{ int kldfirstmod(int fileid); }
690310	AUE_GETSID	STD	{ int getsid(pid_t pid); }
691311	AUE_SETRESUID	STD	{ int setresuid(uid_t ruid, uid_t euid, \
692				    uid_t suid); }
693312	AUE_SETRESGID	STD	{ int setresgid(gid_t rgid, gid_t egid, \
694				    gid_t sgid); }
695313	AUE_NULL	OBSOL	signanosleep
696314	AUE_AIO_RETURN	STD	{ ssize_t aio_return( \
697				    _Inout_ struct aiocb *aiocbp); }
698315	AUE_AIO_SUSPEND	STD	{ int aio_suspend( \
699				    _Inout_updates_(nent) \
700				    struct aiocb * const * aiocbp, \
701				    int nent, \
702				    _In_opt_ \
703				    const struct timespec *timeout); }
704316	AUE_AIO_CANCEL	STD	{ int aio_cancel(int fd, \
705				    _In_opt_ struct aiocb *aiocbp); }
706317	AUE_AIO_ERROR	STD	{ int aio_error( \
707				    _In_ struct aiocb *aiocbp); }
708318	AUE_AIO_READ	COMPAT6	{ int aio_read( \
709				    _Inout_  struct oaiocb *aiocbp); }
710319	AUE_AIO_WRITE	COMPAT6	{ int aio_write( \
711				    _Inout_ struct oaiocb *aiocbp); }
712320	AUE_LIO_LISTIO	COMPAT6	{ int lio_listio(int mode, \
713				    _Inout_updates_(nent) \
714				    struct oaiocb * const *acb_list, \
715				    int nent, \
716				    _In_opt_ struct osigevent *sig); }
717321	AUE_NULL	STD	{ int yield(void); }
718322	AUE_NULL	OBSOL	thr_sleep
719323	AUE_NULL	OBSOL	thr_wakeup
720324	AUE_MLOCKALL	STD	{ int mlockall(int how); }
721325	AUE_MUNLOCKALL	STD	{ int munlockall(void); }
722326	AUE_GETCWD	STD	{ int __getcwd( \
723				    _Out_writes_z_(buflen) char *buf, \
724				    size_t buflen); }
725327	AUE_NULL	STD	{ int sched_setparam (pid_t pid, \
726				    _In_ const struct sched_param *param); }
727328	AUE_NULL	STD	{ int sched_getparam (pid_t pid, \
728				    _Out_ struct sched_param *param); }
729329	AUE_NULL	STD	{ int sched_setscheduler (pid_t pid, int \
730				    policy, _In_ const struct sched_param \
731				    *param); }
732330	AUE_NULL	STD	{ int sched_getscheduler (pid_t pid); }
733331	AUE_NULL	STD	{ int sched_yield (void); }
734332	AUE_NULL	STD	{ int sched_get_priority_max (int policy); }
735333	AUE_NULL	STD	{ int sched_get_priority_min (int policy); }
736334	AUE_NULL	STD	{ int sched_rr_get_interval (pid_t pid, \
737				    _Out_ struct timespec *interval); }
738335	AUE_NULL	STD	{ int utrace( \
739				   _In_reads_bytes_(len) const void *addr, \
740				    size_t len); }
741336	AUE_SENDFILE	COMPAT4	{ int sendfile(int fd, int s, \
742				    off_t offset, size_t nbytes, \
743				    _In_opt_ struct sf_hdtr *hdtr, \
744				    _Out_opt_ off_t *sbytes, int flags); }
745337	AUE_NULL	STD	{ int kldsym(int fileid, int cmd, \
746				    _In_ void *data); }
747338	AUE_JAIL	STD	{ int jail( \
748				    _In_ struct jail *jail); }
749
750339	AUE_NULL	NOSTD|NOTSTATIC	{ int nnpfs_syscall(int operation, \
751				    char *a_pathP, int a_opcode, \
752				    void *a_paramsP, \
753				    int a_followSymlinks); }
754340	AUE_SIGPROCMASK	STD	{ int sigprocmask(int how, \
755				    _In_opt_ const sigset_t *set, \
756				    _Out_opt_ sigset_t *oset); }
757341	AUE_SIGSUSPEND	STD	{ int sigsuspend( \
758				    _In_ const sigset_t *sigmask); }
759342	AUE_SIGACTION	COMPAT4	{ int sigaction(int sig, \
760				    _In_opt_ const struct sigaction *act, \
761				    _Out_opt_ struct sigaction *oact); }
762343	AUE_SIGPENDING	STD	{ int sigpending(_In_ sigset_t *set); }
763344	AUE_SIGRETURN	COMPAT4	{ int sigreturn( \
764				    _In_ const struct ucontext4 *sigcntxp); }
765345	AUE_SIGWAIT	STD	{ int sigtimedwait(_In_ const sigset_t *set, \
766				    _Out_opt_ siginfo_t *info, \
767				    _In_opt_ const struct timespec *timeout); }
768346	AUE_NULL	STD	{ int sigwaitinfo(_In_ const sigset_t *set, \
769				    _Out_opt_ siginfo_t *info); }
770347	AUE_ACL_GET_FILE	STD	{ int __acl_get_file( \
771				    _In_z_ const char *path, \
772				    acl_type_t type, \
773				    _Out_ struct acl *aclp); }
774348	AUE_ACL_SET_FILE	STD	{ int __acl_set_file( \
775				    _In_z_ const char *path, \
776				    acl_type_t type, _In_ struct acl *aclp); }
777349	AUE_ACL_GET_FD	STD	{ int __acl_get_fd(int filedes, \
778				    acl_type_t type, _Out_ struct acl *aclp); }
779350	AUE_ACL_SET_FD	STD	{ int __acl_set_fd(int filedes, \
780				    acl_type_t type, _In_ struct acl *aclp); }
781351	AUE_ACL_DELETE_FILE	STD	{ int __acl_delete_file( \
782				    _In_z_ const char *path, \
783				    acl_type_t type); }
784352	AUE_ACL_DELETE_FD	STD	{ int __acl_delete_fd(int filedes, \
785				    acl_type_t type); }
786353	AUE_ACL_CHECK_FILE	STD	{ int __acl_aclcheck_file( \
787				    _In_z_ const char *path, \
788				    acl_type_t type, _In_ struct acl *aclp); }
789354	AUE_ACL_CHECK_FD	STD	{ int __acl_aclcheck_fd(int filedes, \
790				    acl_type_t type, _In_ struct acl *aclp); }
791355	AUE_EXTATTRCTL	STD	{ int extattrctl(_In_z_ const char *path, \
792				    int cmd, _In_z_opt_ const char *filename, \
793				    int attrnamespace, \
794				    _In_z_ const char *attrname); }
795356	AUE_EXTATTR_SET_FILE	STD	{ ssize_t extattr_set_file( \
796				    _In_z_ const char *path, \
797				    int attrnamespace, \
798				    _In_z_ const char *attrname, \
799				    _In_reads_bytes_(nbytes) void *data, \
800				    size_t nbytes); }
801357	AUE_EXTATTR_GET_FILE	STD	{ ssize_t extattr_get_file( \
802				    _In_z_ const char *path, \
803				    int attrnamespace, \
804				    _In_z_ const char *attrname, \
805				    _Out_writes_bytes_(nbytes) void *data, \
806				    size_t nbytes); }
807358	AUE_EXTATTR_DELETE_FILE	STD	{ int extattr_delete_file( \
808				    _In_z_ const char *path, \
809				    int attrnamespace, \
810				    _In_z_ const char *attrname); }
811359	AUE_AIO_WAITCOMPLETE	STD	{ ssize_t aio_waitcomplete( \
812				    _Outptr_result_maybenull_ \
813				    struct aiocb **aiocbp, \
814				    _In_opt_ struct timespec *timeout); }
815360	AUE_GETRESUID	STD	{ int getresuid(_Out_opt_ uid_t *ruid, \
816				    _Out_opt_ uid_t *euid, \
817				    _Out_opt_ uid_t *suid); }
818361	AUE_GETRESGID	STD	{ int getresgid(_Out_opt_ gid_t *rgid, \
819				    _Out_opt_ gid_t *egid, \
820				    _Out_opt_ gid_t *sgid); }
821362	AUE_KQUEUE	STD	{ int kqueue(void); }
822363	AUE_KEVENT	COMPAT11 { int kevent(int fd, \
823				    _In_reads_opt_(nchanges) \
824				    struct kevent_freebsd11 *changelist, \
825				    int nchanges, \
826				    _Out_writes_opt_(nevents) \
827				    struct kevent_freebsd11 *eventlist, \
828				    int nevents, \
829				    _In_opt_ const struct timespec *timeout); }
830364	AUE_NULL	UNIMPL	__cap_get_proc
831365	AUE_NULL	UNIMPL	__cap_set_proc
832366	AUE_NULL	UNIMPL	__cap_get_fd
833367	AUE_NULL	UNIMPL	__cap_get_file
834368	AUE_NULL	UNIMPL	__cap_set_fd
835369	AUE_NULL	UNIMPL	__cap_set_file
836370	AUE_NULL	UNIMPL	nosys
837371	AUE_EXTATTR_SET_FD	STD	{ ssize_t extattr_set_fd(int fd, \
838				    int attrnamespace, \
839				    _In_z_ const char *attrname, \
840				    _In_reads_bytes_(nbytes) void *data, \
841				    size_t nbytes); }
842372	AUE_EXTATTR_GET_FD	STD	{ ssize_t extattr_get_fd(int fd, \
843				    int attrnamespace, \
844				    _In_z_ const char *attrname, \
845				    _Out_writes_bytes_(nbytes) void *data, \
846				    size_t nbytes); }
847373	AUE_EXTATTR_DELETE_FD	STD	{ int extattr_delete_fd(int fd, \
848				    int attrnamespace, \
849				    _In_z_ const char *attrname); }
850374	AUE_SETUGID	STD	{ int __setugid(int flag); }
851375	AUE_NULL	UNIMPL	nfsclnt
852376	AUE_EACCESS	STD	{ int eaccess(_In_z_ char *path, int amode); }
853377	AUE_NULL	NOSTD|NOTSTATIC	{ int afs3_syscall(long syscall, \
854				    long parm1, long parm2, long parm3, \
855				    long parm4, long parm5, long parm6); }
856378	AUE_NMOUNT	STD	{ int nmount( \
857				    _In_reads_(iovcnt) struct iovec *iovp, \
858				    unsigned int iovcnt, int flags); }
859379	AUE_NULL	UNIMPL	kse_exit
860380	AUE_NULL	UNIMPL	kse_wakeup
861381	AUE_NULL	UNIMPL	kse_create
862382	AUE_NULL	UNIMPL	kse_thr_interrupt
863383	AUE_NULL	UNIMPL	kse_release
864384	AUE_NULL	STD	{ int __mac_get_proc( \
865				    _In_ struct mac *mac_p); }
866385	AUE_NULL	STD	{ int __mac_set_proc( \
867				    _In_ struct mac *mac_p); }
868386	AUE_NULL	STD	{ int __mac_get_fd(int fd, \
869				    _In_ struct mac *mac_p); }
870387	AUE_NULL	STD	{ int __mac_get_file( \
871				    _In_z_ const char *path_p, \
872				    _In_ struct mac *mac_p); }
873388	AUE_NULL	STD	{ int __mac_set_fd(int fd, \
874				    _In_ struct mac *mac_p); }
875389	AUE_NULL	STD	{ int __mac_set_file( \
876				    _In_z_ const char *path_p, \
877				    _In_ struct mac *mac_p); }
878390	AUE_NULL	STD	{ int kenv(int what, \
879				    _In_z_opt_ const char *name, \
880				    _Inout_updates_opt_(len) \
881				    char *value, int len); }
882391	AUE_LCHFLAGS	STD	{ int lchflags(_In_z_ const char *path, \
883				    u_long flags); }
884392	AUE_NULL	STD	{ int uuidgen( \
885				    _Out_writes_(count) struct uuid *store, \
886				    int count); }
887393	AUE_SENDFILE	STD	{ int sendfile(int fd, int s, \
888				    off_t offset, \
889				    size_t nbytes, \
890				    _In_opt_ struct sf_hdtr *hdtr, \
891				    _Out_opt_ off_t *sbytes, int flags); }
892394	AUE_NULL	STD	{ int mac_syscall( \
893				    _In_z_ const char *policy, \
894				    int call, \
895				    _In_opt_ void *arg); }
896395	AUE_GETFSSTAT	COMPAT11 { int getfsstat( \
897				    _Out_writes_bytes_opt_(bufsize) \
898				    struct freebsd11_statfs *buf, \
899				    long bufsize, int mode); }
900396	AUE_STATFS	COMPAT11 { int statfs(_In_z_ char *path, \
901				    _Out_ struct freebsd11_statfs *buf); }
902397	AUE_FSTATFS	COMPAT11 { int fstatfs(int fd, \
903				    _Out_ struct freebsd11_statfs *buf); }
904398	AUE_FHSTATFS	COMPAT11 { int fhstatfs( \
905				    _In_ const struct fhandle *u_fhp, \
906				    _Out_ struct freebsd11_statfs *buf); }
907399	AUE_NULL	UNIMPL	nosys
908400	AUE_SEMCLOSE	NOSTD	{ int ksem_close(semid_t id); }
909401	AUE_SEMPOST	NOSTD	{ int ksem_post(semid_t id); }
910402	AUE_SEMWAIT	NOSTD	{ int ksem_wait(semid_t id); }
911403	AUE_SEMTRYWAIT	NOSTD	{ int ksem_trywait(semid_t id); }
912404	AUE_SEMINIT	NOSTD	{ int ksem_init(_Out_ semid_t *idp, \
913				    unsigned int value); }
914405	AUE_SEMOPEN	NOSTD	{ int ksem_open(_Out_ semid_t *idp, \
915				    _In_z_ const char *name, int oflag, \
916				    mode_t mode, unsigned int value); }
917406	AUE_SEMUNLINK	NOSTD	{ int ksem_unlink( \
918				    _In_z_ const char *name); }
919407	AUE_SEMGETVALUE	NOSTD	{ int ksem_getvalue(semid_t id, \
920				    _Out_ int *val); }
921408	AUE_SEMDESTROY	NOSTD	{ int ksem_destroy(semid_t id); }
922409	AUE_NULL	STD	{ int __mac_get_pid(pid_t pid, \
923				    _In_ struct mac *mac_p); }
924410	AUE_NULL	STD	{ int __mac_get_link( \
925				    _In_z_ const char *path_p, \
926				    _In_ struct mac *mac_p); }
927411	AUE_NULL	STD	{ int __mac_set_link( \
928				    _In_z_ const char *path_p, \
929				    _In_ struct mac *mac_p); }
930412	AUE_EXTATTR_SET_LINK	STD	{ ssize_t extattr_set_link( \
931				    _In_z_ const char *path, \
932				    int attrnamespace, \
933				    _In_z_ const char *attrname, \
934				    _In_reads_bytes_(nbytes) void *data, \
935				    size_t nbytes); }
936413	AUE_EXTATTR_GET_LINK	STD	{ ssize_t extattr_get_link( \
937				    _In_z_ const char *path, \
938				    int attrnamespace, \
939				    _In_z_ const char *attrname, \
940				    _Out_writes_bytes_(nbytes) void *data, \
941				    size_t nbytes); }
942414	AUE_EXTATTR_DELETE_LINK	STD	{ int extattr_delete_link( \
943				    _In_z_ const char *path, \
944				    int attrnamespace, \
945				    _In_z_ const char *attrname); }
946415	AUE_NULL	STD	{ int __mac_execve(_In_z_ char *fname, \
947				    _In_ char **argv, \
948				    _In_ char **envv, \
949				    _In_ struct mac *mac_p); }
950416	AUE_SIGACTION	STD	{ int sigaction(int sig, \
951				    _In_opt_ const struct sigaction *act, \
952				    _Out_opt_ struct sigaction *oact); }
953417	AUE_SIGRETURN	STD	{ int sigreturn( \
954				    _In_ const struct __ucontext *sigcntxp); }
955418	AUE_NULL	UNIMPL	__xstat
956419	AUE_NULL	UNIMPL	__xfstat
957420	AUE_NULL	UNIMPL	__xlstat
958421	AUE_NULL	STD	{ int getcontext( \
959				    _Out_ struct __ucontext *ucp); }
960422	AUE_NULL	STD	{ int setcontext( \
961				    _In_ const struct __ucontext *ucp); }
962423	AUE_NULL	STD	{ int swapcontext( \
963				    _Out_ struct __ucontext *oucp, \
964				    _In_ const struct __ucontext *ucp); }
965424	AUE_SWAPOFF	STD	{ int swapoff(_In_z_ const char *name); }
966425	AUE_ACL_GET_LINK	STD	{ int __acl_get_link( \
967				    _In_z_ const char *path, acl_type_t type, \
968				    _Out_ struct acl *aclp); }
969426	AUE_ACL_SET_LINK	STD	{ int __acl_set_link( \
970				    _In_z_ const char *path, acl_type_t type, \
971				    _In_ struct acl *aclp); }
972427	AUE_ACL_DELETE_LINK	STD	{ int __acl_delete_link( \
973				    _In_z_ const char *path, \
974				    acl_type_t type); }
975428	AUE_ACL_CHECK_LINK	STD	{ int __acl_aclcheck_link( \
976				    _In_z_ const char *path, acl_type_t type, \
977				    _In_ struct acl *aclp); }
978429	AUE_SIGWAIT	STD	{ int sigwait(_In_ const sigset_t *set, \
979				    _Out_ int *sig); }
980430	AUE_THR_CREATE	STD	{ int thr_create(_In_ ucontext_t *ctx, \
981				    _Out_ long *id, int flags); }
982431	AUE_THR_EXIT	STD	{ void thr_exit(_Out_opt_ long *state); }
983432	AUE_NULL	STD	{ int thr_self(_Out_ long *id); }
984433	AUE_THR_KILL	STD	{ int thr_kill(long id, int sig); }
985434	AUE_NULL	UNIMPL	nosys
986435	AUE_NULL	UNIMPL	nosys
987436	AUE_JAIL_ATTACH	STD	{ int jail_attach(int jid); }
988437	AUE_EXTATTR_LIST_FD	STD	{ ssize_t extattr_list_fd(int fd, \
989				    int attrnamespace, \
990				    _Out_writes_bytes_opt_(nbytes) \
991				    void *data, \
992				    size_t nbytes); }
993438	AUE_EXTATTR_LIST_FILE	STD	{ ssize_t extattr_list_file( \
994				    _In_z_ const char *path, \
995				    int attrnamespace, \
996				    _Out_writes_bytes_opt_(nbytes) \
997				    void *data, size_t nbytes); }
998439	AUE_EXTATTR_LIST_LINK	STD	{ ssize_t extattr_list_link( \
999				    _In_z_ const char *path, \
1000				    int attrnamespace, \
1001				    _Out_writes_bytes_opt_(nbytes) \
1002				    void *data, size_t nbytes); }
1003440	AUE_NULL	UNIMPL	kse_switchin
1004441	AUE_SEMWAIT	NOSTD	{ int ksem_timedwait(semid_t id, \
1005				    _In_opt_ const struct timespec *abstime); }
1006442	AUE_NULL	STD	{ int thr_suspend( \
1007				    _In_opt_ const struct timespec *timeout); }
1008443	AUE_NULL	STD	{ int thr_wake(long id); }
1009444	AUE_MODUNLOAD	STD	{ int kldunloadf(int fileid, int flags); }
1010445	AUE_AUDIT	STD	{ int audit( \
1011				    _In_reads_bytes_(length) \
1012				    const void *record, \
1013				    u_int length); }
1014446	AUE_AUDITON	STD	{ int auditon(int cmd, \
1015				    _In_opt_ void *data, \
1016				    u_int length); }
1017447	AUE_GETAUID	STD	{ int getauid(_Out_ uid_t *auid); }
1018448	AUE_SETAUID	STD	{ int setauid(_In_ uid_t *auid); }
1019449	AUE_GETAUDIT	STD	{ int getaudit( \
1020				    _Out_ struct auditinfo *auditinfo); }
1021450	AUE_SETAUDIT	STD	{ int setaudit( \
1022				    _In_ struct auditinfo *auditinfo); }
1023451	AUE_GETAUDIT_ADDR	STD	{ int getaudit_addr( \
1024				    _Out_writes_bytes_(length) \
1025				    struct auditinfo_addr *auditinfo_addr, \
1026				    u_int length); }
1027452	AUE_SETAUDIT_ADDR	STD	{ int setaudit_addr( \
1028				    _In_reads_bytes_(length) \
1029				    struct auditinfo_addr *auditinfo_addr, \
1030				    u_int length); }
1031453	AUE_AUDITCTL	STD	{ int auditctl(_In_z_ char *path); }
1032454	AUE_NULL	STD	{ int _umtx_op(_Inout_ void *obj, int op, \
1033				    u_long val, _In_ void *uaddr1, \
1034				    _In_ void *uaddr2); }
1035455	AUE_THR_NEW	STD	{ int thr_new(_In_ struct thr_param *param, \
1036				    int param_size); }
1037456	AUE_NULL	STD	{ int sigqueue(pid_t pid, int signum, \
1038				    _In_ void *value); }
1039
1040457	AUE_MQ_OPEN	NOSTD	{ int kmq_open( \
1041				    _In_z_ const char *path, \
1042				    int flags, \
1043				    mode_t mode, \
1044				    _In_opt_ const struct mq_attr *attr); }
1045458	AUE_MQ_SETATTR	NOSTD	{ int kmq_setattr(int mqd, \
1046				    _In_opt_ const struct mq_attr *attr, \
1047				    _Out_opt_ struct mq_attr *oattr); }
1048459	AUE_MQ_TIMEDRECEIVE	NOSTD	{ int kmq_timedreceive( \
1049				    int mqd, \
1050				    _Out_writes_bytes_(msg_len) char *msg_ptr, \
1051				    size_t msg_len, \
1052				    _Out_opt_ unsigned *msg_prio, \
1053				    _In_opt_ \
1054				    const struct timespec *abs_timeout); }
1055460	AUE_MQ_TIMEDSEND	NOSTD	{ int kmq_timedsend(int mqd, \
1056				    _In_reads_bytes_(msg_len) \
1057				    const char *msg_ptr, size_t msg_len, \
1058				    unsigned msg_prio, \
1059				    _In_opt_ \
1060				    const struct timespec *abs_timeout); }
1061461	AUE_MQ_NOTIFY	NOSTD	{ int kmq_notify(int mqd, \
1062				    _In_opt_ const struct sigevent *sigev); }
1063462	AUE_MQ_UNLINK	NOSTD	{ int kmq_unlink(_In_z_ const char *path); }
1064463	AUE_NULL	STD	{ int abort2(_In_z_ const char *why, \
1065				    int nargs, \
1066				    _In_reads_(nargs) void **args); }
1067464	AUE_NULL	STD	{ int thr_set_name(long id, \
1068				    _In_z_ const char *name); }
1069465	AUE_AIO_FSYNC	STD	{ int aio_fsync(int op, \
1070				    _In_ struct aiocb *aiocbp); }
1071466	AUE_RTPRIO	STD	{ int rtprio_thread(int function, \
1072				    lwpid_t lwpid, \
1073				    _Inout_ struct rtprio *rtp); }
1074467	AUE_NULL	UNIMPL	nosys
1075468	AUE_NULL	UNIMPL	nosys
1076469	AUE_NULL	UNIMPL	__getpath_fromfd
1077470	AUE_NULL	UNIMPL	__getpath_fromaddr
1078471	AUE_SCTP_PEELOFF	NOSTD	{ int sctp_peeloff(int sd, \
1079				    uint32_t name); }
1080472	AUE_SCTP_GENERIC_SENDMSG	NOSTD	{ int sctp_generic_sendmsg( \
1081				    int sd, \
1082				    _In_reads_bytes_(mlen) caddr_t msg, \
1083				    int mlen, \
1084				    _In_reads_bytes_(tolen) \
1085				    caddr_t to, \
1086				    __socklen_t tolen, \
1087				    _In_opt_ struct sctp_sndrcvinfo *sinfo, \
1088				    int flags); }
1089473	AUE_SCTP_GENERIC_SENDMSG_IOV	NOSTD	{ \
1090				int sctp_generic_sendmsg_iov( \
1091				    int sd, \
1092				    _In_reads_(iovlen) struct iovec *iov, \
1093				    int iovlen, \
1094				    _In_reads_bytes_(tolen) \
1095				    caddr_t to, \
1096				    __socklen_t tolen, \
1097				    _In_opt_ struct sctp_sndrcvinfo *sinfo, \
1098				    int flags); }
1099474	AUE_SCTP_GENERIC_RECVMSG	NOSTD	{ int sctp_generic_recvmsg( \
1100				    int sd, \
1101				    _In_reads_(iovlen) struct iovec *iov, \
1102				    int iovlen, \
1103				    _Out_writes_bytes_(*fromlenaddr) \
1104				    struct sockaddr *from, \
1105				    _Out_ __socklen_t *fromlenaddr, \
1106				    _In_opt_ struct sctp_sndrcvinfo *sinfo, \
1107				    _Out_opt_ int *msg_flags); }
1108475	AUE_PREAD	STD	{ ssize_t pread(int fd, \
1109				    _Out_writes_bytes_(nbyte) void *buf, \
1110				    size_t nbyte, off_t offset); }
1111476	AUE_PWRITE	STD	{ ssize_t pwrite(int fd, \
1112				    _In_reads_bytes_(nbyte) \
1113				    const void *buf, \
1114				    size_t nbyte, off_t offset); }
1115477	AUE_MMAP	STD	{ caddr_t mmap(_In_ caddr_t addr, size_t len, \
1116				    int prot, int flags, int fd, off_t pos); }
1117478	AUE_LSEEK	STD	{ off_t lseek(int fd, off_t offset, \
1118				    int whence); }
1119479	AUE_TRUNCATE	STD	{ int truncate(_In_z_ char *path,  \
1120				    off_t length); }
1121480	AUE_FTRUNCATE	STD	{ int ftruncate(int fd, off_t length); }
1122481	AUE_THR_KILL2	STD	{ int thr_kill2(pid_t pid, long id, int sig); }
1123482	AUE_SHMOPEN	STD	{ int shm_open( \
1124				    _In_z_ const char *path, \
1125				    int flags, \
1126				    mode_t mode); }
1127483	AUE_SHMUNLINK	STD	{ int shm_unlink(_In_z_ const char *path); }
1128484	AUE_NULL	STD	{ int cpuset(_Out_ cpusetid_t *setid); }
1129485	AUE_NULL	STD	{ int cpuset_setid(cpuwhich_t which, id_t id, \
1130				    cpusetid_t setid); }
1131486	AUE_NULL	STD	{ int cpuset_getid(cpulevel_t level, \
1132				    cpuwhich_t which, id_t id, \
1133				    _Out_ cpusetid_t *setid); }
1134487	AUE_NULL	STD	{ int cpuset_getaffinity(cpulevel_t level, \
1135				    cpuwhich_t which, id_t id, \
1136				    size_t cpusetsize, \
1137				    _Out_ cpuset_t *mask); }
1138488	AUE_NULL	STD	{ int cpuset_setaffinity(cpulevel_t level, \
1139				    cpuwhich_t which, id_t id, \
1140				    size_t cpusetsize, \
1141				    _Out_ const cpuset_t *mask); }
1142489	AUE_FACCESSAT	STD	{ int faccessat(int fd, _In_z_ char *path, \
1143				    int amode, int flag); }
1144490	AUE_FCHMODAT	STD	{ int fchmodat(int fd, \
1145				    _In_z_ char *path, mode_t mode, \
1146				    int flag); }
1147491	AUE_FCHOWNAT	STD	{ int fchownat(int fd, _In_z_ char *path, \
1148				    uid_t uid, gid_t gid, int flag); }
1149492	AUE_FEXECVE	STD	{ int fexecve(int fd, \
1150				    _In_ char **argv, \
1151				    _In_ char **envv); }
1152493	AUE_FSTATAT	COMPAT11 { int fstatat(int fd, _In_z_ char *path, \
1153				    _Out_ struct freebsd11_stat *buf, \
1154				    int flag); }
1155494	AUE_FUTIMESAT	STD	{ int futimesat(int fd, \
1156				    _In_z_ char *path, \
1157				    _In_reads_(2) struct timeval *times); }
1158495	AUE_LINKAT	STD	{ int linkat(int fd1, \
1159				    _In_z_ char *path1, \
1160				    int fd2, \
1161				    _In_z_ char *path2, \
1162				    int flag); }
1163496	AUE_MKDIRAT	STD	{ int mkdirat(int fd, _In_z_ char *path, \
1164				mode_t mode); }
1165497	AUE_MKFIFOAT	STD	{ int mkfifoat(int fd, \
1166				_In_z_ char *path, mode_t mode); }
1167498	AUE_MKNODAT	COMPAT11 { int mknodat(int fd, _In_z_ char *path, \
1168				    mode_t mode, \
1169				    uint32_t dev); }
1170; XXX: see the comment for open
1171499	AUE_OPENAT_RWTC	STD	{ int openat(int fd, _In_z_ char *path,  \
1172				    int flag, mode_t mode); }
1173500	AUE_READLINKAT	STD	{ int readlinkat(int fd, \
1174				    _In_z_ char *path, \
1175				    _Out_writes_bytes_(bufsize) char *buf, \
1176				    size_t bufsize); }
1177501	AUE_RENAMEAT	STD	{ int renameat(int oldfd, \
1178				    _In_z_ char *old, \
1179				    int newfd, _In_z_ char *new); }
1180502	AUE_SYMLINKAT	STD	{ int symlinkat(_In_z_ char *path1, int fd, \
1181				    _In_z_ char *path2); }
1182503	AUE_UNLINKAT	STD	{ int unlinkat(int fd, _In_z_ char *path, \
1183				    int flag); }
1184504	AUE_POSIX_OPENPT	STD	{ int posix_openpt(int flags); }
1185; 505 is initialised by the kgssapi code, if present.
1186505	AUE_NULL	NOSTD	{ int gssd_syscall(_In_z_ char *path); }
1187506	AUE_JAIL_GET	STD	{ int jail_get( \
1188				    _In_reads_(iovcnt) struct iovec *iovp, \
1189				    unsigned int iovcnt, int flags); }
1190507	AUE_JAIL_SET	STD	{ int jail_set( \
1191				    _In_reads_(iovcnt) struct iovec *iovp, \
1192				    unsigned int iovcnt, int flags); }
1193508	AUE_JAIL_REMOVE	STD	{ int jail_remove(int jid); }
1194509	AUE_CLOSEFROM	STD	{ int closefrom(int lowfd); }
1195510	AUE_SEMCTL	NOSTD	{ int __semctl(int semid, int semnum, \
1196				    int cmd, _Inout_ union semun *arg); }
1197511	AUE_MSGCTL	NOSTD	{ int msgctl(int msqid, int cmd, \
1198				    _Inout_opt_ struct msqid_ds *buf); }
1199512	AUE_SHMCTL	NOSTD	{ int shmctl(int shmid, int cmd, \
1200				    _Inout_opt_ struct shmid_ds *buf); }
1201513	AUE_LPATHCONF	STD	{ int lpathconf(_In_z_ char *path, \
1202				    int name); }
1203514	AUE_NULL	OBSOL	cap_new
1204515	AUE_CAP_RIGHTS_GET	STD	{ int __cap_rights_get(int version, \
1205				    int fd, _Out_ cap_rights_t *rightsp); }
1206516	AUE_CAP_ENTER	STD	{ int cap_enter(void); }
1207517	AUE_CAP_GETMODE	STD	{ int cap_getmode(_Out_ u_int *modep); }
1208518	AUE_PDFORK	STD	{ int pdfork(_Out_ int *fdp, int flags); }
1209519	AUE_PDKILL	STD	{ int pdkill(int fd, int signum); }
1210520	AUE_PDGETPID	STD	{ int pdgetpid(int fd, _Out_ pid_t *pidp); }
1211521	AUE_PDWAIT	UNIMPL	pdwait4
1212522	AUE_SELECT	STD	{ int pselect(int nd, \
1213				    _Inout_opt_ fd_set *in, \
1214				    _Inout_opt_ fd_set *ou, \
1215				    _Inout_opt_ fd_set *ex, \
1216				    _In_opt_ const struct timespec *ts, \
1217				    _In_opt_ const sigset_t *sm); }
1218523	AUE_GETLOGINCLASS	STD	{ int getloginclass( \
1219				    _Out_writes_z_(namelen) char *namebuf, \
1220				    size_t namelen); }
1221524	AUE_SETLOGINCLASS	STD	{ int setloginclass( \
1222				    _In_z_ const char *namebuf); }
1223525	AUE_NULL	STD	{ int rctl_get_racct( \
1224				    _In_reads_bytes_(inbuflen) \
1225				    const void *inbufp, size_t inbuflen, \
1226				    _Out_writes_bytes_(outbuflen) \
1227				    void *outbufp, size_t outbuflen); }
1228526	AUE_NULL	STD	{ int rctl_get_rules( \
1229				    _In_reads_bytes_(inbuflen) \
1230				    const void *inbufp, size_t inbuflen, \
1231				    _Out_writes_bytes_(outbuflen) \
1232				    void *outbufp, size_t outbuflen); }
1233527	AUE_NULL	STD	{ int rctl_get_limits( \
1234				    _In_reads_bytes_(inbuflen) \
1235				    const void *inbufp, size_t inbuflen, \
1236				    _Out_writes_bytes_(outbuflen) \
1237				    void *outbufp, size_t outbuflen); }
1238528	AUE_NULL	STD	{ int rctl_add_rule( \
1239				    _In_reads_bytes_(inbuflen) \
1240				    const void *inbufp, size_t inbuflen, \
1241				    _Out_writes_bytes_(outbuflen) \
1242				    void *outbufp, size_t outbuflen); }
1243529	AUE_NULL	STD	{ int rctl_remove_rule( \
1244				    _In_reads_bytes_(inbuflen) \
1245				    const void *inbufp, size_t inbuflen, \
1246				    _Out_writes_bytes_(outbuflen) \
1247				    void *outbufp, size_t outbuflen); }
1248530	AUE_POSIX_FALLOCATE	STD	{ int posix_fallocate(int fd, \
1249				    off_t offset, off_t len); }
1250531	AUE_POSIX_FADVISE	STD	{ int posix_fadvise(int fd, \
1251				    off_t offset, \
1252				    off_t len, int advice); }
1253532	AUE_WAIT6	STD	{ int wait6(idtype_t idtype, id_t id, \
1254				    _Out_opt_ int *status, int options, \
1255				    _Out_opt_ struct __wrusage *wrusage, \
1256				    _Out_opt_ siginfo_t *info); }
1257533	AUE_CAP_RIGHTS_LIMIT	STD	{ int cap_rights_limit(int fd, \
1258				    _In_ cap_rights_t *rightsp); }
1259534	AUE_CAP_IOCTLS_LIMIT	STD	{ int cap_ioctls_limit(int fd, \
1260				    _In_reads_(ncmds) const u_long *cmds, \
1261				    size_t ncmds); }
1262535	AUE_CAP_IOCTLS_GET	STD	{ ssize_t cap_ioctls_get(int fd, \
1263				    _Out_writes_(maxcmds) u_long *cmds, \
1264				    size_t maxcmds); }
1265536	AUE_CAP_FCNTLS_LIMIT	STD	{ int cap_fcntls_limit(int fd, \
1266				    uint32_t fcntlrights); }
1267537	AUE_CAP_FCNTLS_GET	STD	{ int cap_fcntls_get(int fd, \
1268				    _Out_ uint32_t *fcntlrightsp); }
1269538	AUE_BINDAT	STD	{ int bindat(int fd, int s, \
1270				    _In_reads_bytes_(namelen) \
1271				    caddr_t name, \
1272				    int namelen); }
1273539	AUE_CONNECTAT	STD	{ int connectat(int fd, int s, \
1274				    _In_reads_bytes_(namelen) \
1275				    caddr_t name, \
1276				    int namelen); }
1277540	AUE_CHFLAGSAT	STD	{ int chflagsat(int fd, \
1278				    _In_z_ const char *path, \
1279				    u_long flags, int atflag); }
1280541	AUE_ACCEPT	STD	{ int accept4(int s, \
1281				    _Out_writes_bytes_opt_(*anamelen) \
1282				    struct sockaddr * __restrict name, \
1283				    _Inout_opt_ \
1284				    __socklen_t * __restrict anamelen, \
1285				    int flags); }
1286542	AUE_PIPE	STD	{ int pipe2(_Out_writes_(2) int *fildes, \
1287				    int flags); }
1288543	AUE_AIO_MLOCK	STD	{ int aio_mlock(_In_ struct aiocb *aiocbp); }
1289544	AUE_PROCCTL	STD	{ int procctl(idtype_t idtype, id_t id, \
1290				    int com, _In_opt_ void *data); }
1291545	AUE_POLL	STD	{ int ppoll( \
1292				    _Inout_updates_(nfds) struct pollfd *fds, \
1293				    u_int nfds, \
1294				    _In_opt_ const struct timespec *ts, \
1295				    _In_opt_ const sigset_t *set); }
1296546	AUE_FUTIMES	STD	{ int futimens(int fd, \
1297				    _In_reads_(2) \
1298				    struct timespec *times); }
1299547	AUE_FUTIMESAT	STD	{ int utimensat(int fd, \
1300				    _In_z_ char *path, \
1301				    _In_reads_(2) \
1302				    struct timespec *times, \
1303				    int flag); }
1304548	AUE_NULL	UNIMPL	numa_getaffinity
1305549	AUE_NULL	UNIMPL	numa_setaffinity
1306550	AUE_FSYNC	STD	{ int fdatasync(int fd); }
1307551	AUE_FSTAT	STD	{ int fstat(int fd, _Out_ struct stat *sb); }
1308552	AUE_FSTATAT	STD	{ int fstatat(int fd, _In_z_ char *path, \
1309                                    _Out_ struct stat *buf, int flag); }
1310553	AUE_FHSTAT	STD	{ int fhstat(_In_ const struct fhandle *u_fhp, \
1311                                    _Out_ struct stat *sb); }
1312554	AUE_GETDIRENTRIES STD { ssize_t getdirentries(int fd, \
1313				    _Out_writes_bytes_(count) char *buf, \
1314                                    size_t count, _Out_ off_t *basep); }
1315555	AUE_STATFS	STD	{ int statfs(_In_z_ char *path, \
1316				    _Out_ struct statfs *buf); }
1317556	AUE_FSTATFS	STD	{ int fstatfs(int fd, \
1318				    _Out_ struct statfs *buf); }
1319557	AUE_GETFSSTAT	STD	{ int getfsstat( \
1320				    _Out_writes_bytes_opt_(bufsize) \
1321				    struct statfs *buf, \
1322                                    long bufsize, int mode); }
1323558	AUE_FHSTATFS	STD	{ int fhstatfs( \
1324				    _In_ const struct fhandle *u_fhp, \
1325                                    _Out_ struct statfs *buf); }
1326559	AUE_MKNODAT	STD	{ int mknodat(int fd, _In_z_ char *path, \
1327				    mode_t mode, dev_t dev); }
1328560	AUE_KEVENT	STD	{ int kevent(int fd, \
1329				    _In_reads_opt_(nchanges) \
1330				    struct kevent *changelist, \
1331				    int nchanges, \
1332				    _Out_writes_opt_(nevents) \
1333				    struct kevent *eventlist, int nevents, \
1334				    _In_opt_ const struct timespec *timeout); }
1335561	AUE_NULL	STD	{ int cpuset_getdomain(cpulevel_t level, \
1336				    cpuwhich_t which, id_t id, \
1337				    size_t domainsetsize, \
1338				    _Out_writes_bytes_(domainsetsize) \
1339				    domainset_t *mask, \
1340				    _Out_ int *policy); }
1341562	AUE_NULL	STD	{ int cpuset_setdomain(cpulevel_t level, \
1342				    cpuwhich_t which, id_t id, \
1343				    size_t domainsetsize, \
1344				    _In_ domainset_t *mask, \
1345				    int policy); }
1346563	AUE_NULL	STD	{ int getrandom( \
1347				    _Out_writes_bytes_(buflen) void *buf, \
1348				    size_t buflen, unsigned int flags); }
1349
1350; Please copy any additions and changes to the following compatability tables:
1351; sys/compat/freebsd32/syscalls.master
1352; vim: syntax=off
1353