150477Speter $FreeBSD: stable/10/sys/kern/syscalls.master 321017 2017-07-15 16:55:02Z dchagin $
21817Sdg;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
31817Sdg;
41541Srgrimes; System call name/number master file.
51541Srgrimes; Processed to created init_sysent.c, syscalls.c and syscall.h.
61541Srgrimes
7160798Sjhb; Columns: number audit type name alt{name,tag,rtyp}/comments
81541Srgrimes;	number	system call number, must be in order
9146806Srwatson;	audit	the audit event associated with the system call
10146806Srwatson;		A value of AUE_NULL means no auditing, but it also means that
11146806Srwatson;		there is no audit event for the call at this time. For the
12146806Srwatson;		case where the event exists, but we don't want auditing, the
13146806Srwatson;		event should be #defined to AUE_NULL in audit_kevents.h.
14194390Sjhb;	type	one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
15203660Sed;		COMPAT7, NODEF, NOARGS, NOPROTO, NOSTD
16194390Sjhb;		The COMPAT* options may be combined with one or more NO*
17194390Sjhb;		options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
1811294Sswallace;	name	psuedo-prototype of syscall routine
1910905Sbde;		If one of the following alts is different, then all appear:
201541Srgrimes;	altname	name of system call if different
2110905Sbde;	alttag	name of args struct tag if different from [o]`name'"_args"
2210905Sbde;	altrtyp	return type if not int (bogus - syscalls always return int)
231541Srgrimes;		for UNIMPL/OBSOL, name continues with comments
241541Srgrimes
251541Srgrimes; types:
261541Srgrimes;	STD	always included
271541Srgrimes;	COMPAT	included on COMPAT #ifdef
2899855Salfred;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
29194645Sjhb;	COMPAT6	included on COMPAT6 #ifdef (FreeBSD 6 compat)
30194833Sjhb;	COMPAT7	included on COMPAT7 #ifdef (FreeBSD 7 compat)
311541Srgrimes;	OBSOL	obsolete, not included in system, only specifies name
321541Srgrimes;	UNIMPL	not implemented, placeholder only
3369449Salfred;	NOSTD	implemented but as a lkm that can be statically
34194383Sjhb;		compiled in; sysent entry will be filled with lkmressys
35160797Sjhb;		so the SYSCALL_MODULE macro works
36181972Sobrien;	NOARGS	same as STD except do not create structure in sys/sysproto.h
37181972Sobrien;	NODEF	same as STD except only have the entry in the syscall table
38183361Sjhb;		added.  Meaning - do not create structure or function
39181972Sobrien;		prototype in sys/sysproto.h
40181972Sobrien;	NOPROTO	same as STD except do not create structure or
41181972Sobrien;		function prototype in sys/sysproto.h.  Does add a
42181972Sobrien;		definition to syscall.h besides adding a sysent.
43211838Skib;	NOTSTATIC syscall is loadable
44104747Srwatson;
45104747Srwatson; Please copy any additions and changes to the following compatability tables:
46123408Speter; sys/compat/freebsd32/syscalls.master
47123408Speter
481541Srgrimes; #ifdef's, etc. may be included, and are copied to the output files.
491541Srgrimes
5011294Sswallace#include <sys/param.h>
5111294Sswallace#include <sys/sysent.h>
5211294Sswallace#include <sys/sysproto.h>
5311294Sswallace
541541Srgrimes; Reserved/unimplemented system calls in the range 0-150 inclusive
551541Srgrimes; are reserved for use in future Berkeley releases.
561541Srgrimes; Additional system calls implemented in vendor and other
571541Srgrimes; redistributions should be placed in the reserved range at the end
581541Srgrimes; of the current calls.
591541Srgrimes
60160798Sjhb0	AUE_NULL	STD	{ int nosys(void); } syscall nosys_args int
61160798Sjhb1	AUE_EXIT	STD	{ void sys_exit(int rval); } exit \
62146806Srwatson				    sys_exit_args void
63160798Sjhb2	AUE_FORK	STD	{ int fork(void); }
64160798Sjhb3	AUE_NULL	STD	{ ssize_t read(int fd, void *buf, \
65146806Srwatson				    size_t nbyte); }
66160798Sjhb4	AUE_NULL	STD	{ ssize_t write(int fd, const void *buf, \
67146806Srwatson				    size_t nbyte); }
68160798Sjhb5	AUE_OPEN_RWTC	STD	{ int open(char *path, int flags, int mode); }
6912216Sbde; XXX should be		{ int open(const char *path, int flags, ...); }
7012216Sbde; but we're not ready for `const' or varargs.
7112216Sbde; XXX man page says `mode_t mode'.
72160798Sjhb6	AUE_CLOSE	STD	{ int close(int fd); }
73160798Sjhb7	AUE_WAIT4	STD	{ int wait4(int pid, int *status, \
74242958Skib				    int options, struct rusage *rusage); }
75162991Srwatson8	AUE_CREAT	COMPAT	{ int creat(char *path, int mode); }
76160798Sjhb9	AUE_LINK	STD	{ int link(char *path, char *link); }
77160798Sjhb10	AUE_UNLINK	STD	{ int unlink(char *path); }
78146806Srwatson11	AUE_NULL	OBSOL	execv
79160798Sjhb12	AUE_CHDIR	STD	{ int chdir(char *path); }
80160798Sjhb13	AUE_FCHDIR	STD	{ int fchdir(int fd); }
81160798Sjhb14	AUE_MKNOD	STD	{ int mknod(char *path, int mode, int dev); }
82160798Sjhb15	AUE_CHMOD	STD	{ int chmod(char *path, int mode); }
83160798Sjhb16	AUE_CHOWN	STD	{ int chown(char *path, int uid, int gid); }
84160798Sjhb17	AUE_NULL	STD	{ int obreak(char *nsize); } break \
85146806Srwatson				    obreak_args int
86160798Sjhb18	AUE_GETFSSTAT	COMPAT4	{ int getfsstat(struct ostatfs *buf, \
87146806Srwatson				    long bufsize, int flags); }
88160798Sjhb19	AUE_LSEEK	COMPAT	{ long lseek(int fd, long offset, \
89146806Srwatson				    int whence); }
90160798Sjhb20	AUE_GETPID	STD	{ pid_t getpid(void); }
91160798Sjhb21	AUE_MOUNT	STD	{ int mount(char *type, char *path, \
92146806Srwatson				    int flags, caddr_t data); }
9312216Sbde; XXX `path' should have type `const char *' but we're not ready for that.
94160798Sjhb22	AUE_UMOUNT	STD	{ int unmount(char *path, int flags); }
95160798Sjhb23	AUE_SETUID	STD	{ int setuid(uid_t uid); }
96160798Sjhb24	AUE_GETUID	STD	{ uid_t getuid(void); }
97160798Sjhb25	AUE_GETEUID	STD	{ uid_t geteuid(void); }
98160798Sjhb26	AUE_PTRACE	STD	{ int ptrace(int req, pid_t pid, \
99146806Srwatson				    caddr_t addr, int data); }
100160798Sjhb27	AUE_RECVMSG	STD	{ int recvmsg(int s, struct msghdr *msg, \
101146806Srwatson				    int flags); }
102160798Sjhb28	AUE_SENDMSG	STD	{ int sendmsg(int s, struct msghdr *msg, \
103146806Srwatson				    int flags); }
104160798Sjhb29	AUE_RECVFROM	STD	{ int recvfrom(int s, caddr_t buf, \
105146806Srwatson				    size_t len, int flags, \
106146806Srwatson				    struct sockaddr * __restrict from, \
107146806Srwatson				    __socklen_t * __restrict fromlenaddr); }
108160798Sjhb30	AUE_ACCEPT	STD	{ int accept(int s, \
109146806Srwatson				    struct sockaddr * __restrict name, \
110146806Srwatson				    __socklen_t * __restrict anamelen); }
111160798Sjhb31	AUE_GETPEERNAME	STD	{ int getpeername(int fdes, \
112146806Srwatson				    struct sockaddr * __restrict asa, \
113146806Srwatson				    __socklen_t * __restrict alen); }
114160798Sjhb32	AUE_GETSOCKNAME	STD	{ int getsockname(int fdes, \
115146806Srwatson				    struct sockaddr * __restrict asa, \
116146806Srwatson				    __socklen_t * __restrict alen); }
117227691Sed33	AUE_ACCESS	STD	{ int access(char *path, int amode); }
118248597Spjd34	AUE_CHFLAGS	STD	{ int chflags(const char *path, u_long flags); }
119248597Spjd35	AUE_FCHFLAGS	STD	{ int fchflags(int fd, u_long flags); }
120160798Sjhb36	AUE_SYNC	STD	{ int sync(void); }
121160798Sjhb37	AUE_KILL	STD	{ int kill(int pid, int signum); }
122160798Sjhb38	AUE_STAT	COMPAT	{ int stat(char *path, struct ostat *ub); }
123160798Sjhb39	AUE_GETPPID	STD	{ pid_t getppid(void); }
124160798Sjhb40	AUE_LSTAT	COMPAT	{ int lstat(char *path, struct ostat *ub); }
125160798Sjhb41	AUE_DUP		STD	{ int dup(u_int fd); }
126160798Sjhb42	AUE_PIPE	STD	{ int pipe(void); }
127160798Sjhb43	AUE_GETEGID	STD	{ gid_t getegid(void); }
128160798Sjhb44	AUE_PROFILE	STD	{ int profil(caddr_t samples, size_t size, \
129146806Srwatson				    size_t offset, u_int scale); }
130160798Sjhb45	AUE_KTRACE	STD	{ int ktrace(const char *fname, int ops, \
131146806Srwatson				    int facs, int pid); }
132160798Sjhb46	AUE_SIGACTION	COMPAT	{ int sigaction(int signum, \
133146806Srwatson				    struct osigaction *nsa, \
134146806Srwatson				    struct osigaction *osa); }
135160798Sjhb47	AUE_GETGID	STD	{ gid_t getgid(void); }
136160798Sjhb48	AUE_SIGPROCMASK	COMPAT	{ int sigprocmask(int how, osigset_t mask); }
13721776Sbde; XXX note nonstandard (bogus) calling convention - the libc stub passes
13821776Sbde; us the mask, not a pointer to it, and we return the old mask as the
13921776Sbde; (int) return value.
140160798Sjhb49	AUE_GETLOGIN	STD	{ int getlogin(char *namebuf, u_int \
141146806Srwatson				    namelen); }
142160798Sjhb50	AUE_SETLOGIN	STD	{ int setlogin(char *namebuf); }
143160798Sjhb51	AUE_ACCT	STD	{ int acct(char *path); }
144160798Sjhb52	AUE_SIGPENDING	COMPAT	{ int sigpending(void); }
145162373Srwatson53	AUE_SIGALTSTACK	STD	{ int sigaltstack(stack_t *ss, \
146146806Srwatson				    stack_t *oss); }
147160798Sjhb54	AUE_IOCTL	STD	{ int ioctl(int fd, u_long com, \
148146806Srwatson				    caddr_t data); }
149160798Sjhb55	AUE_REBOOT	STD	{ int reboot(int opt); }
150160798Sjhb56	AUE_REVOKE	STD	{ int revoke(char *path); }
151160798Sjhb57	AUE_SYMLINK	STD	{ int symlink(char *path, char *link); }
152176215Sru58	AUE_READLINK	STD	{ ssize_t readlink(char *path, char *buf, \
153176215Sru				    size_t count); }
154160798Sjhb59	AUE_EXECVE	STD	{ int execve(char *fname, char **argv, \
155146806Srwatson				    char **envv); }
156160798Sjhb60	AUE_UMASK	STD	{ int umask(int newmask); } umask umask_args \
157146806Srwatson				    int
158160798Sjhb61	AUE_CHROOT	STD	{ int chroot(char *path); }
159160798Sjhb62	AUE_FSTAT	COMPAT	{ int fstat(int fd, struct ostat *sb); }
160160798Sjhb63	AUE_NULL	COMPAT	{ int getkerninfo(int op, char *where, \
161146806Srwatson				    size_t *size, int arg); } getkerninfo \
162146806Srwatson				    getkerninfo_args int
163162991Srwatson64	AUE_NULL	COMPAT	{ int getpagesize(void); } getpagesize \
164146806Srwatson				    getpagesize_args int
165160798Sjhb65	AUE_MSYNC	STD	{ int msync(void *addr, size_t len, \
166146806Srwatson				    int flags); }
167160798Sjhb66	AUE_VFORK	STD	{ int vfork(void); }
168146806Srwatson67	AUE_NULL	OBSOL	vread
169146806Srwatson68	AUE_NULL	OBSOL	vwrite
170160798Sjhb69	AUE_SBRK	STD	{ int sbrk(int incr); }
171160798Sjhb70	AUE_SSTK	STD	{ int sstk(int incr); }
172160798Sjhb71	AUE_MMAP	COMPAT	{ int mmap(void *addr, int len, int prot, \
173146806Srwatson				    int flags, int fd, long pos); }
174160798Sjhb72	AUE_O_VADVISE	STD	{ int ovadvise(int anom); } vadvise \
175146806Srwatson				    ovadvise_args int
176160798Sjhb73	AUE_MUNMAP	STD	{ int munmap(void *addr, size_t len); }
177160798Sjhb74	AUE_MPROTECT	STD	{ int mprotect(const void *addr, size_t len, \
178146806Srwatson				    int prot); }
179160798Sjhb75	AUE_MADVISE	STD	{ int madvise(void *addr, size_t len, \
180146806Srwatson				    int behav); }
181146806Srwatson76	AUE_NULL	OBSOL	vhangup
182146806Srwatson77	AUE_NULL	OBSOL	vlimit
183160798Sjhb78	AUE_MINCORE	STD	{ int mincore(const void *addr, size_t len, \
184146806Srwatson				    char *vec); }
185160798Sjhb79	AUE_GETGROUPS	STD	{ int getgroups(u_int gidsetsize, \
186146806Srwatson				    gid_t *gidset); }
187160798Sjhb80	AUE_SETGROUPS	STD	{ int setgroups(u_int gidsetsize, \
188146806Srwatson				    gid_t *gidset); }
189160798Sjhb81	AUE_GETPGRP	STD	{ int getpgrp(void); }
190160798Sjhb82	AUE_SETPGRP	STD	{ int setpgid(int pid, int pgid); }
191160798Sjhb83	AUE_SETITIMER	STD	{ int setitimer(u_int which, struct \
192146806Srwatson				    itimerval *itv, struct itimerval *oitv); }
193160798Sjhb84	AUE_WAIT4	COMPAT	{ int wait(void); }
194160798Sjhb85	AUE_SWAPON	STD	{ int swapon(char *name); }
195160798Sjhb86	AUE_GETITIMER	STD	{ int getitimer(u_int which, \
196146806Srwatson				    struct itimerval *itv); }
197160798Sjhb87	AUE_SYSCTL	COMPAT	{ int gethostname(char *hostname, \
198146806Srwatson				    u_int len); } gethostname \
199146806Srwatson				    gethostname_args int
200160798Sjhb88	AUE_SYSCTL	COMPAT	{ int sethostname(char *hostname, \
201146806Srwatson				    u_int len); } sethostname \
202146806Srwatson				    sethostname_args int
203160798Sjhb89	AUE_GETDTABLESIZE	STD	{ int getdtablesize(void); }
204160798Sjhb90	AUE_DUP2	STD	{ int dup2(u_int from, u_int to); }
205146806Srwatson91	AUE_NULL	UNIMPL	getdopt
206160798Sjhb92	AUE_FCNTL	STD	{ int fcntl(int fd, int cmd, long arg); }
207123750Speter; XXX should be	{ int fcntl(int fd, int cmd, ...); }
20812216Sbde; but we're not ready for varargs.
209160798Sjhb93	AUE_SELECT	STD	{ int select(int nd, fd_set *in, fd_set *ou, \
210146806Srwatson				    fd_set *ex, struct timeval *tv); }
211146806Srwatson94	AUE_NULL	UNIMPL	setdopt
212160798Sjhb95	AUE_FSYNC	STD	{ int fsync(int fd); }
213160798Sjhb96	AUE_SETPRIORITY	STD	{ int setpriority(int which, int who, \
214146806Srwatson				    int prio); }
215160798Sjhb97	AUE_SOCKET	STD	{ int socket(int domain, int type, \
216146806Srwatson				    int protocol); }
217160798Sjhb98	AUE_CONNECT	STD	{ int connect(int s, caddr_t name, \
218146806Srwatson				    int namelen); }
219194390Sjhb99	AUE_ACCEPT	COMPAT|NOARGS { int accept(int s, caddr_t name, \
220146806Srwatson				    int *anamelen); } accept accept_args int
221160798Sjhb100	AUE_GETPRIORITY	STD	{ int getpriority(int which, int who); }
222160798Sjhb101	AUE_SEND	COMPAT	{ int send(int s, caddr_t buf, int len, \
223146806Srwatson				    int flags); }
224160798Sjhb102	AUE_RECV	COMPAT	{ int recv(int s, caddr_t buf, int len, \
225146806Srwatson				    int flags); }
226160798Sjhb103	AUE_SIGRETURN	COMPAT	{ int sigreturn( \
227146806Srwatson				    struct osigcontext *sigcntxp); }
228160798Sjhb104	AUE_BIND	STD	{ int bind(int s, caddr_t name, \
229146806Srwatson				    int namelen); }
230160798Sjhb105	AUE_SETSOCKOPT	STD	{ int setsockopt(int s, int level, int name, \
231146806Srwatson				    caddr_t val, int valsize); }
232160798Sjhb106	AUE_LISTEN	STD	{ int listen(int s, int backlog); }
233146806Srwatson107	AUE_NULL	OBSOL	vtimes
234160798Sjhb108	AUE_NULL	COMPAT	{ int sigvec(int signum, struct sigvec *nsv, \
235146806Srwatson				    struct sigvec *osv); }
236160798Sjhb109	AUE_NULL	COMPAT	{ int sigblock(int mask); }
237160798Sjhb110	AUE_NULL	COMPAT	{ int sigsetmask(int mask); }
238160798Sjhb111	AUE_NULL	COMPAT	{ int sigsuspend(osigset_t mask); }
23921776Sbde; XXX note nonstandard (bogus) calling convention - the libc stub passes
24021776Sbde; us the mask, not a pointer to it.
241160798Sjhb112	AUE_NULL	COMPAT	{ int sigstack(struct sigstack *nss, \
242146806Srwatson				    struct sigstack *oss); }
243160798Sjhb113	AUE_RECVMSG	COMPAT	{ int recvmsg(int s, struct omsghdr *msg, \
244146806Srwatson				    int flags); }
245160798Sjhb114	AUE_SENDMSG	COMPAT	{ int sendmsg(int s, caddr_t msg, \
246146806Srwatson				    int flags); }
247146806Srwatson115	AUE_NULL	OBSOL	vtrace
248160798Sjhb116	AUE_GETTIMEOFDAY	STD	{ int gettimeofday(struct timeval *tp, \
249146806Srwatson				    struct timezone *tzp); }
250160798Sjhb117	AUE_GETRUSAGE	STD	{ int getrusage(int who, \
251146806Srwatson				    struct rusage *rusage); }
252160798Sjhb118	AUE_GETSOCKOPT	STD	{ int getsockopt(int s, int level, int name, \
253146806Srwatson				    caddr_t val, int *avalsize); }
254146806Srwatson119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
255160798Sjhb120	AUE_READV	STD	{ int readv(int fd, struct iovec *iovp, \
256146806Srwatson				    u_int iovcnt); }
257160798Sjhb121	AUE_WRITEV	STD	{ int writev(int fd, struct iovec *iovp, \
258146806Srwatson				    u_int iovcnt); }
259160798Sjhb122	AUE_SETTIMEOFDAY	STD	{ int settimeofday(struct timeval *tv, \
260146806Srwatson				    struct timezone *tzp); }
261160798Sjhb123	AUE_FCHOWN	STD	{ int fchown(int fd, int uid, int gid); }
262160798Sjhb124	AUE_FCHMOD	STD	{ int fchmod(int fd, int mode); }
263194390Sjhb125	AUE_RECVFROM	COMPAT|NOARGS { int recvfrom(int s, caddr_t buf, \
264146806Srwatson				    size_t len, int flags, caddr_t from, int \
265146806Srwatson				    *fromlenaddr); } recvfrom recvfrom_args \
266146806Srwatson				    int
267160798Sjhb126	AUE_SETREUID	STD	{ int setreuid(int ruid, int euid); }
268160798Sjhb127	AUE_SETREGID	STD	{ int setregid(int rgid, int egid); }
269160798Sjhb128	AUE_RENAME	STD	{ int rename(char *from, char *to); }
270160798Sjhb129	AUE_TRUNCATE	COMPAT	{ int truncate(char *path, long length); }
271160798Sjhb130	AUE_FTRUNCATE	COMPAT	{ int ftruncate(int fd, long length); }
272160798Sjhb131	AUE_FLOCK	STD	{ int flock(int fd, int how); }
273160798Sjhb132	AUE_MKFIFO	STD	{ int mkfifo(char *path, int mode); }
274160798Sjhb133	AUE_SENDTO	STD	{ int sendto(int s, caddr_t buf, size_t len, \
275146806Srwatson				    int flags, caddr_t to, int tolen); }
276160798Sjhb134	AUE_SHUTDOWN	STD	{ int shutdown(int s, int how); }
277160798Sjhb135	AUE_SOCKETPAIR	STD	{ int socketpair(int domain, int type, \
278146806Srwatson				    int protocol, int *rsv); }
279160798Sjhb136	AUE_MKDIR	STD	{ int mkdir(char *path, int mode); }
280160798Sjhb137	AUE_RMDIR	STD	{ int rmdir(char *path); }
281160798Sjhb138	AUE_UTIMES	STD	{ int utimes(char *path, \
282146806Srwatson				    struct timeval *tptr); }
283146806Srwatson139	AUE_NULL	OBSOL	4.2 sigreturn
284160798Sjhb140	AUE_ADJTIME	STD	{ int adjtime(struct timeval *delta, \
285146806Srwatson				    struct timeval *olddelta); }
286160798Sjhb141	AUE_GETPEERNAME	COMPAT	{ int getpeername(int fdes, caddr_t asa, \
287146806Srwatson				    int *alen); }
288160798Sjhb142	AUE_SYSCTL	COMPAT	{ long gethostid(void); }
289160798Sjhb143	AUE_SYSCTL	COMPAT	{ int sethostid(long hostid); }
290160798Sjhb144	AUE_GETRLIMIT	COMPAT	{ int getrlimit(u_int which, struct \
291146806Srwatson				    orlimit *rlp); }
292160798Sjhb145	AUE_SETRLIMIT	COMPAT	{ int setrlimit(u_int which, \
293146806Srwatson				    struct orlimit *rlp); }
294160798Sjhb146	AUE_KILLPG	COMPAT	{ int killpg(int pgid, int signum); }
295160798Sjhb147	AUE_SETSID	STD	{ int setsid(void); }
296160798Sjhb148	AUE_QUOTACTL	STD	{ int quotactl(char *path, int cmd, int uid, \
297146806Srwatson				    caddr_t arg); }
298160798Sjhb149	AUE_O_QUOTA	COMPAT	{ int quota(void); }
299194390Sjhb150	AUE_GETSOCKNAME	COMPAT|NOARGS { int getsockname(int fdec, \
300146806Srwatson				    caddr_t asa, int *alen); } getsockname \
301146806Srwatson				    getsockname_args int
3021541Srgrimes
3031541Srgrimes; Syscalls 151-180 inclusive are reserved for vendor-specific
3041541Srgrimes; system calls.  (This includes various calls added for compatibity
3051541Srgrimes; with other Unix variants.)
3061541Srgrimes; Some of these calls are now supported by BSD...
307146806Srwatson151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
308146806Srwatson152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
309146806Srwatson153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
310177633Sdfr; 154 is initialised by the NLM code, if present.
311177633Sdfr154	AUE_NULL	NOSTD	{ int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
31230740Sphk; 155 is initialized by the NFS code, if present.
313161325Sjhb155	AUE_NFS_SVC	NOSTD	{ int nfssvc(int flag, caddr_t argp); }
314160798Sjhb156	AUE_GETDIRENTRIES	COMPAT	{ int getdirentries(int fd, char *buf, \
315146806Srwatson				    u_int count, long *basep); }
316160798Sjhb157	AUE_STATFS	COMPAT4	{ int statfs(char *path, \
317146806Srwatson				    struct ostatfs *buf); }
318160798Sjhb158	AUE_FSTATFS	COMPAT4	{ int fstatfs(int fd, \
319146806Srwatson				    struct ostatfs *buf); }
320146806Srwatson159	AUE_NULL	UNIMPL	nosys
321160798Sjhb160	AUE_LGETFH	STD	{ int lgetfh(char *fname, \
322146806Srwatson				    struct fhandle *fhp); }
323160798Sjhb161	AUE_NFS_GETFH	STD	{ int getfh(char *fname, \
324146806Srwatson				    struct fhandle *fhp); }
325184789Sed162	AUE_SYSCTL	COMPAT4	{ int getdomainname(char *domainname, \
326146806Srwatson				    int len); }
327184789Sed163	AUE_SYSCTL	COMPAT4	{ int setdomainname(char *domainname, \
328146806Srwatson				    int len); }
329184789Sed164	AUE_NULL	COMPAT4	{ int uname(struct utsname *name); }
330161952Srwatson165	AUE_SYSARCH	STD	{ int sysarch(int op, char *parms); }
331161952Srwatson166	AUE_RTPRIO	STD	{ int rtprio(int function, pid_t pid, \
332146806Srwatson				    struct rtprio *rtp); }
333146806Srwatson167	AUE_NULL	UNIMPL	nosys
334146806Srwatson168	AUE_NULL	UNIMPL	nosys
335160798Sjhb169	AUE_SEMSYS	NOSTD	{ int semsys(int which, int a2, int a3, \
336146806Srwatson				    int a4, int a5); }
337123750Speter; XXX should be	{ int semsys(int which, ...); }
338160798Sjhb170	AUE_MSGSYS	NOSTD	{ int msgsys(int which, int a2, int a3, \
339146806Srwatson				    int a4, int a5, int a6); }
340123750Speter; XXX should be	{ int msgsys(int which, ...); }
341160798Sjhb171	AUE_SHMSYS	NOSTD	{ int shmsys(int which, int a2, int a3, \
342146806Srwatson				    int a4); }
343123750Speter; XXX should be	{ int shmsys(int which, ...); }
344146806Srwatson172	AUE_NULL	UNIMPL	nosys
345171209Speter173	AUE_PREAD	STD	{ ssize_t freebsd6_pread(int fd, void *buf, \
346146806Srwatson				    size_t nbyte, int pad, off_t offset); }
347171209Speter174	AUE_PWRITE	STD	{ ssize_t freebsd6_pwrite(int fd, \
348171209Speter				    const void *buf, \
349146806Srwatson				    size_t nbyte, int pad, off_t offset); }
350178888Sjulian175	AUE_NULL	STD	{ int setfib(int fibnum); }
351161946Srwatson176	AUE_NTP_ADJTIME	STD	{ int ntp_adjtime(struct timex *tp); }
352146806Srwatson177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
353146806Srwatson178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
354146806Srwatson179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
355146806Srwatson180	AUE_NULL	UNIMPL	nosys
3561541Srgrimes
35749428Sjkh; Syscalls 181-199 are used by/reserved for BSD
358160798Sjhb181	AUE_SETGID	STD	{ int setgid(gid_t gid); }
359160798Sjhb182	AUE_SETEGID	STD	{ int setegid(gid_t egid); }
360160798Sjhb183	AUE_SETEUID	STD	{ int seteuid(uid_t euid); }
361146806Srwatson184	AUE_NULL	UNIMPL	lfs_bmapv
362146806Srwatson185	AUE_NULL	UNIMPL	lfs_markv
363146806Srwatson186	AUE_NULL	UNIMPL	lfs_segclean
364146806Srwatson187	AUE_NULL	UNIMPL	lfs_segwait
365160798Sjhb188	AUE_STAT	STD	{ int stat(char *path, struct stat *ub); }
366160798Sjhb189	AUE_FSTAT	STD	{ int fstat(int fd, struct stat *sb); }
367160798Sjhb190	AUE_LSTAT	STD	{ int lstat(char *path, struct stat *ub); }
368160798Sjhb191	AUE_PATHCONF	STD	{ int pathconf(char *path, int name); }
369160798Sjhb192	AUE_FPATHCONF	STD	{ int fpathconf(int fd, int name); }
370146806Srwatson193	AUE_NULL	UNIMPL	nosys
371160798Sjhb194	AUE_GETRLIMIT	STD	{ int getrlimit(u_int which, \
372146806Srwatson				    struct rlimit *rlp); } getrlimit \
373146806Srwatson				    __getrlimit_args int
374160798Sjhb195	AUE_SETRLIMIT	STD	{ int setrlimit(u_int which, \
375146806Srwatson				    struct rlimit *rlp); } setrlimit \
376146806Srwatson				    __setrlimit_args int
377160798Sjhb196	AUE_GETDIRENTRIES	STD	{ int getdirentries(int fd, char *buf, \
378146806Srwatson				    u_int count, long *basep); }
379171209Speter197	AUE_MMAP	STD	{ caddr_t freebsd6_mmap(caddr_t addr, \
380171209Speter				    size_t len, int prot, int flags, int fd, \
381171209Speter				    int pad, off_t pos); }
382183361Sjhb198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
383146806Srwatson				    __syscall_args int
384171209Speter199	AUE_LSEEK	STD	{ off_t freebsd6_lseek(int fd, int pad, \
385171209Speter				    off_t offset, int whence); }
386171209Speter200	AUE_TRUNCATE	STD	{ int freebsd6_truncate(char *path, int pad, \
387146806Srwatson				    off_t length); }
388171209Speter201	AUE_FTRUNCATE	STD	{ int freebsd6_ftruncate(int fd, int pad, \
389146806Srwatson				    off_t length); }
390160798Sjhb202	AUE_SYSCTL	STD	{ int __sysctl(int *name, u_int namelen, \
391146806Srwatson				    void *old, size_t *oldlenp, void *new, \
392146806Srwatson				    size_t newlen); } __sysctl sysctl_args int
393160798Sjhb203	AUE_MLOCK	STD	{ int mlock(const void *addr, size_t len); }
394160798Sjhb204	AUE_MUNLOCK	STD	{ int munlock(const void *addr, size_t len); }
395160798Sjhb205	AUE_UNDELETE	STD	{ int undelete(char *path); }
396160798Sjhb206	AUE_FUTIMES	STD	{ int futimes(int fd, struct timeval *tptr); }
397160798Sjhb207	AUE_GETPGID	STD	{ int getpgid(pid_t pid); }
398146806Srwatson208	AUE_NULL	UNIMPL	newreboot (NetBSD)
399160798Sjhb209	AUE_POLL	STD	{ int poll(struct pollfd *fds, u_int nfds, \
400146806Srwatson				    int timeout); }
4012124Sdg
4022124Sdg;
4032124Sdg; The following are reserved for loadable syscalls
4042124Sdg;
405209579Skib210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
406209579Skib211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
407209579Skib212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
408209579Skib213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
409209579Skib214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
410209579Skib215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
411209579Skib216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
412209579Skib217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
413209579Skib218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
414209579Skib219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
41512864Speter
41612864Speter;
41714215Speter; The following were introduced with NetBSD/4.4Lite-2
418194910Sjhb220	AUE_SEMCTL	COMPAT7|NOSTD { int __semctl(int semid, int semnum, \
419194910Sjhb				    int cmd, union semun_old *arg); }
420160798Sjhb221	AUE_SEMGET	NOSTD	{ int semget(key_t key, int nsems, \
421146806Srwatson				    int semflg); }
422160798Sjhb222	AUE_SEMOP	NOSTD	{ int semop(int semid, struct sembuf *sops, \
423146806Srwatson				    size_t nsops); }
424146806Srwatson223	AUE_NULL	UNIMPL	semconfig
425194910Sjhb224	AUE_MSGCTL	COMPAT7|NOSTD { int msgctl(int msqid, int cmd, \
426194910Sjhb				    struct msqid_ds_old *buf); }
427160798Sjhb225	AUE_MSGGET	NOSTD	{ int msgget(key_t key, int msgflg); }
428160798Sjhb226	AUE_MSGSND	NOSTD	{ int msgsnd(int msqid, const void *msgp, \
429146806Srwatson				    size_t msgsz, int msgflg); }
430160798Sjhb227	AUE_MSGRCV	NOSTD	{ int msgrcv(int msqid, void *msgp, \
431146806Srwatson				    size_t msgsz, long msgtyp, int msgflg); }
432160798Sjhb228	AUE_SHMAT	NOSTD	{ int shmat(int shmid, const void *shmaddr, \
433146806Srwatson				    int shmflg); }
434194910Sjhb229	AUE_SHMCTL	COMPAT7|NOSTD { int shmctl(int shmid, int cmd, \
435194910Sjhb				    struct shmid_ds_old *buf); }
436160798Sjhb230	AUE_SHMDT	NOSTD	{ int shmdt(const void *shmaddr); }
437160798Sjhb231	AUE_SHMGET	NOSTD	{ int shmget(key_t key, size_t size, \
438146806Srwatson				    int shmflg); }
43914219Speter;
440160798Sjhb232	AUE_NULL	STD	{ int clock_gettime(clockid_t clock_id, \
441146806Srwatson				    struct timespec *tp); }
442161952Srwatson233	AUE_CLOCK_SETTIME	STD	{ int clock_settime( \
443161952Srwatson				    clockid_t clock_id, \
444146806Srwatson				    const struct timespec *tp); }
445160798Sjhb234	AUE_NULL	STD	{ int clock_getres(clockid_t clock_id, \
446146806Srwatson				    struct timespec *tp); }
447160798Sjhb235	AUE_NULL	STD	{ int ktimer_create(clockid_t clock_id, \
448156134Sdavidxu				    struct sigevent *evp, int *timerid); }
449160798Sjhb236	AUE_NULL	STD	{ int ktimer_delete(int timerid); }
450160798Sjhb237	AUE_NULL	STD	{ int ktimer_settime(int timerid, int flags, \
451151576Sdavidxu				    const struct itimerspec *value, \
452151576Sdavidxu				    struct itimerspec *ovalue); }
453160798Sjhb238	AUE_NULL	STD	{ int ktimer_gettime(int timerid, struct \
454151576Sdavidxu				    itimerspec *value); }
455160798Sjhb239	AUE_NULL	STD	{ int ktimer_getoverrun(int timerid); }
456160798Sjhb240	AUE_NULL	STD	{ int nanosleep(const struct timespec *rqtp, \
457146806Srwatson				    struct timespec *rmtp); }
458227776Slstewart241	AUE_NULL	STD	{ int ffclock_getcounter(ffcounter *ffcount); }
459227776Slstewart242	AUE_NULL	STD	{ int ffclock_setestimate( \
460227776Slstewart				    struct ffclock_estimate *cest); }
461227776Slstewart243	AUE_NULL	STD	{ int ffclock_getestimate( \
462227776Slstewart				    struct ffclock_estimate *cest); }
463146806Srwatson244	AUE_NULL	UNIMPL	nosys
464146806Srwatson245	AUE_NULL	UNIMPL	nosys
465146806Srwatson246	AUE_NULL	UNIMPL	nosys
466239347Sdavidxu247	AUE_NULL	STD	{ int clock_getcpuclockid2(id_t id,\
467239347Sdavidxu				    int which, clockid_t *clock_id); }
468160798Sjhb248	AUE_NULL	STD	{ int ntp_gettime(struct ntptimeval *ntvp); }
469146806Srwatson249	AUE_NULL	UNIMPL	nosys
47014219Speter; syscall numbers initially used in OpenBSD
471160798Sjhb250	AUE_MINHERIT	STD	{ int minherit(void *addr, size_t len, \
472146806Srwatson				    int inherit); }
473160798Sjhb251	AUE_RFORK	STD	{ int rfork(int flags); }
474160798Sjhb252	AUE_POLL	STD	{ int openbsd_poll(struct pollfd *fds, \
475146806Srwatson				    u_int nfds, int timeout); }
476160798Sjhb253	AUE_ISSETUGID	STD	{ int issetugid(void); }
477160798Sjhb254	AUE_LCHOWN	STD	{ int lchown(char *path, int uid, int gid); }
478160798Sjhb255	AUE_NULL	NOSTD	{ int aio_read(struct aiocb *aiocbp); }
479160798Sjhb256	AUE_NULL	NOSTD	{ int aio_write(struct aiocb *aiocbp); }
480160798Sjhb257	AUE_NULL	NOSTD	{ int lio_listio(int mode, \
481151867Sdavidxu				    struct aiocb * const *acb_list, \
482151867Sdavidxu				    int nent, struct sigevent *sig); }
483152845Sdavidxu258	AUE_NULL	UNIMPL	nosys
484152845Sdavidxu259	AUE_NULL	UNIMPL	nosys
485152845Sdavidxu260	AUE_NULL	UNIMPL	nosys
486152845Sdavidxu261	AUE_NULL	UNIMPL	nosys
487152845Sdavidxu262	AUE_NULL	UNIMPL	nosys
488152845Sdavidxu263	AUE_NULL	UNIMPL	nosys
489146806Srwatson264	AUE_NULL	UNIMPL	nosys
490146806Srwatson265	AUE_NULL	UNIMPL	nosys
491146806Srwatson266	AUE_NULL	UNIMPL	nosys
492146806Srwatson267	AUE_NULL	UNIMPL	nosys
493146806Srwatson268	AUE_NULL	UNIMPL	nosys
494146806Srwatson269	AUE_NULL	UNIMPL	nosys
495146806Srwatson270	AUE_NULL	UNIMPL	nosys
496146806Srwatson271	AUE_NULL	UNIMPL	nosys
497160798Sjhb272	AUE_O_GETDENTS	STD	{ int getdents(int fd, char *buf, \
498146806Srwatson				    size_t count); }
499146806Srwatson273	AUE_NULL	UNIMPL	nosys
500160798Sjhb274	AUE_LCHMOD	STD	{ int lchmod(char *path, mode_t mode); }
501160798Sjhb275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
502146806Srwatson				    gid_t gid); } netbsd_lchown lchown_args \
503146806Srwatson				    int
504160798Sjhb276	AUE_LUTIMES	STD	{ int lutimes(char *path, \
505146806Srwatson				    struct timeval *tptr); }
506160798Sjhb277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
507146806Srwatson				    int flags); } netbsd_msync msync_args int
508160798Sjhb278	AUE_STAT	STD	{ int nstat(char *path, struct nstat *ub); }
509160798Sjhb279	AUE_FSTAT	STD	{ int nfstat(int fd, struct nstat *sb); }
510160798Sjhb280	AUE_LSTAT	STD	{ int nlstat(char *path, struct nstat *ub); }
511146806Srwatson281	AUE_NULL	UNIMPL	nosys
512146806Srwatson282	AUE_NULL	UNIMPL	nosys
513146806Srwatson283	AUE_NULL	UNIMPL	nosys
514146806Srwatson284	AUE_NULL	UNIMPL	nosys
515146806Srwatson285	AUE_NULL	UNIMPL	nosys
516146806Srwatson286	AUE_NULL	UNIMPL	nosys
517146806Srwatson287	AUE_NULL	UNIMPL	nosys
518146806Srwatson288	AUE_NULL	UNIMPL	nosys
519147813Sjhb; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
520161952Srwatson289	AUE_PREADV	STD	{ ssize_t preadv(int fd, struct iovec *iovp, \
521147813Sjhb					u_int iovcnt, off_t offset); }
522161952Srwatson290	AUE_PWRITEV	STD	{ ssize_t pwritev(int fd, struct iovec *iovp, \
523147813Sjhb					u_int iovcnt, off_t offset); }
524146806Srwatson291	AUE_NULL	UNIMPL	nosys
525146806Srwatson292	AUE_NULL	UNIMPL	nosys
526146806Srwatson293	AUE_NULL	UNIMPL	nosys
527146806Srwatson294	AUE_NULL	UNIMPL	nosys
528146806Srwatson295	AUE_NULL	UNIMPL	nosys
529146806Srwatson296	AUE_NULL	UNIMPL	nosys
53051138Salfred; XXX 297 is 300 in NetBSD 
531160798Sjhb297	AUE_FHSTATFS	COMPAT4	{ int fhstatfs( \
532146806Srwatson				    const struct fhandle *u_fhp, \
533146806Srwatson				    struct ostatfs *buf); }
534160798Sjhb298	AUE_FHOPEN	STD	{ int fhopen(const struct fhandle *u_fhp, \
535146806Srwatson				    int flags); }
536160798Sjhb299	AUE_FHSTAT	STD	{ int fhstat(const struct fhandle *u_fhp, \
537146806Srwatson				    struct stat *sb); }
53825537Sdfr; syscall numbers for FreeBSD
539160798Sjhb300	AUE_NULL	STD	{ int modnext(int modid); }
540160798Sjhb301	AUE_NULL	STD	{ int modstat(int modid, \
541146806Srwatson				    struct module_stat *stat); }
542160798Sjhb302	AUE_NULL	STD	{ int modfnext(int modid); }
543160798Sjhb303	AUE_NULL	STD	{ int modfind(const char *name); }
544160798Sjhb304	AUE_MODLOAD	STD	{ int kldload(const char *file); }
545160798Sjhb305	AUE_MODUNLOAD	STD	{ int kldunload(int fileid); }
546160798Sjhb306	AUE_NULL	STD	{ int kldfind(const char *file); }
547160798Sjhb307	AUE_NULL	STD	{ int kldnext(int fileid); }
548160798Sjhb308	AUE_NULL	STD	{ int kldstat(int fileid, struct \
549146806Srwatson				    kld_file_stat* stat); }
550160798Sjhb309	AUE_NULL	STD	{ int kldfirstmod(int fileid); }
551160798Sjhb310	AUE_GETSID	STD	{ int getsid(pid_t pid); }
552160798Sjhb311	AUE_SETRESUID	STD	{ int setresuid(uid_t ruid, uid_t euid, \
553146806Srwatson				    uid_t suid); }
554160798Sjhb312	AUE_SETRESGID	STD	{ int setresgid(gid_t rgid, gid_t egid, \
555146806Srwatson				    gid_t sgid); }
556146806Srwatson313	AUE_NULL	OBSOL	signanosleep
557160798Sjhb314	AUE_NULL	NOSTD	{ int aio_return(struct aiocb *aiocbp); }
558160798Sjhb315	AUE_NULL	NOSTD	{ int aio_suspend( \
559146806Srwatson				    struct aiocb * const * aiocbp, int nent, \
560146806Srwatson				    const struct timespec *timeout); }
561160798Sjhb316	AUE_NULL	NOSTD	{ int aio_cancel(int fd, \
562146806Srwatson				    struct aiocb *aiocbp); }
563160798Sjhb317	AUE_NULL	NOSTD	{ int aio_error(struct aiocb *aiocbp); }
564160798Sjhb318	AUE_NULL	NOSTD	{ int oaio_read(struct oaiocb *aiocbp); }
565160798Sjhb319	AUE_NULL	NOSTD	{ int oaio_write(struct oaiocb *aiocbp); }
566160798Sjhb320	AUE_NULL	NOSTD	{ int olio_listio(int mode, \
567151867Sdavidxu				    struct oaiocb * const *acb_list, \
568151867Sdavidxu				    int nent, struct osigevent *sig); }
569160798Sjhb321	AUE_NULL	STD	{ int yield(void); }
570146806Srwatson322	AUE_NULL	OBSOL	thr_sleep
571146806Srwatson323	AUE_NULL	OBSOL	thr_wakeup
572160798Sjhb324	AUE_MLOCKALL	STD	{ int mlockall(int how); }
573160798Sjhb325	AUE_MUNLOCKALL	STD	{ int munlockall(void); }
574276955Sdchagin326	AUE_GETCWD	STD	{ int __getcwd(char *buf, u_int buflen); }
57534925Sdufault
576160798Sjhb327	AUE_NULL	STD	{ int sched_setparam (pid_t pid, \
577146806Srwatson				    const struct sched_param *param); }
578160798Sjhb328	AUE_NULL	STD	{ int sched_getparam (pid_t pid, struct \
579146806Srwatson				    sched_param *param); }
58034925Sdufault
581160798Sjhb329	AUE_NULL	STD	{ int sched_setscheduler (pid_t pid, int \
582146806Srwatson				    policy, const struct sched_param \
583146806Srwatson				    *param); }
584160798Sjhb330	AUE_NULL	STD	{ int sched_getscheduler (pid_t pid); }
58534925Sdufault
586160798Sjhb331	AUE_NULL	STD	{ int sched_yield (void); }
587160798Sjhb332	AUE_NULL	STD	{ int sched_get_priority_max (int policy); }
588160798Sjhb333	AUE_NULL	STD	{ int sched_get_priority_min (int policy); }
589160798Sjhb334	AUE_NULL	STD	{ int sched_rr_get_interval (pid_t pid, \
590146806Srwatson				    struct timespec *interval); }
591160798Sjhb335	AUE_NULL	STD	{ int utrace(const void *addr, size_t len); }
592160798Sjhb336	AUE_SENDFILE	COMPAT4	{ int sendfile(int fd, int s, \
593146806Srwatson				    off_t offset, size_t nbytes, \
594146806Srwatson				    struct sf_hdtr *hdtr, off_t *sbytes, \
595146806Srwatson				    int flags); }
596160798Sjhb337	AUE_NULL	STD	{ int kldsym(int fileid, int cmd, \
597146806Srwatson				    void *data); }
598160798Sjhb338	AUE_JAIL	STD	{ int jail(struct jail *jail); }
599211998Skib339	AUE_NULL	NOSTD|NOTSTATIC	{ int nnpfs_syscall(int operation, \
600211998Skib				    char *a_pathP, int a_opcode, \
601211998Skib				    void *a_paramsP, int a_followSymlinks); }
602160798Sjhb340	AUE_SIGPROCMASK	STD	{ int sigprocmask(int how, \
603146806Srwatson				    const sigset_t *set, sigset_t *oset); }
604160798Sjhb341	AUE_SIGSUSPEND	STD	{ int sigsuspend(const sigset_t *sigmask); }
605160798Sjhb342	AUE_SIGACTION	COMPAT4	{ int sigaction(int sig, const \
606146806Srwatson				    struct sigaction *act, \
607146806Srwatson				    struct sigaction *oact); }
608160798Sjhb343	AUE_SIGPENDING	STD	{ int sigpending(sigset_t *set); }
609160798Sjhb344	AUE_SIGRETURN	COMPAT4	{ int sigreturn( \
610146806Srwatson				    const struct ucontext4 *sigcntxp); }
611160798Sjhb345	AUE_SIGWAIT	STD	{ int sigtimedwait(const sigset_t *set, \
612146806Srwatson				    siginfo_t *info, \
613146806Srwatson				    const struct timespec *timeout); }
614160798Sjhb346	AUE_NULL	STD	{ int sigwaitinfo(const sigset_t *set, \
615146806Srwatson				    siginfo_t *info); }
616160798Sjhb347	AUE_NULL	STD	{ int __acl_get_file(const char *path, \
617146806Srwatson				    acl_type_t type, struct acl *aclp); }
618160798Sjhb348	AUE_NULL	STD	{ int __acl_set_file(const char *path, \
619146806Srwatson				    acl_type_t type, struct acl *aclp); }
620160798Sjhb349	AUE_NULL	STD	{ int __acl_get_fd(int filedes, \
621146806Srwatson				    acl_type_t type, struct acl *aclp); }
622160798Sjhb350	AUE_NULL	STD	{ int __acl_set_fd(int filedes, \
623146806Srwatson				    acl_type_t type, struct acl *aclp); }
624160798Sjhb351	AUE_NULL	STD	{ int __acl_delete_file(const char *path, \
625146806Srwatson				    acl_type_t type); }
626160798Sjhb352	AUE_NULL	STD	{ int __acl_delete_fd(int filedes, \
627146806Srwatson				    acl_type_t type); }
628160798Sjhb353	AUE_NULL	STD	{ int __acl_aclcheck_file(const char *path, \
629146806Srwatson				    acl_type_t type, struct acl *aclp); }
630160798Sjhb354	AUE_NULL	STD	{ int __acl_aclcheck_fd(int filedes, \
631146806Srwatson				    acl_type_t type, struct acl *aclp); }
632160798Sjhb355	AUE_EXTATTRCTL	STD	{ int extattrctl(const char *path, int cmd, \
633146806Srwatson				    const char *filename, int attrnamespace, \
634146806Srwatson				    const char *attrname); }
635248995Smdf356	AUE_EXTATTR_SET_FILE	STD	{ ssize_t extattr_set_file( \
636160111Swsalamon				    const char *path, int attrnamespace, \
637160111Swsalamon				    const char *attrname, void *data, \
638160111Swsalamon				    size_t nbytes); }
639160798Sjhb357	AUE_EXTATTR_GET_FILE	STD	{ ssize_t extattr_get_file( \
640160111Swsalamon				    const char *path, int attrnamespace, \
641160111Swsalamon				    const char *attrname, void *data, \
642160111Swsalamon				    size_t nbytes); }
643160798Sjhb358	AUE_EXTATTR_DELETE_FILE	STD	{ int extattr_delete_file(const char *path, \
644146806Srwatson				    int attrnamespace, \
645146806Srwatson				    const char *attrname); }
646160798Sjhb359	AUE_NULL	NOSTD	{ int aio_waitcomplete( \
647146806Srwatson				    struct aiocb **aiocbp, \
648146806Srwatson				    struct timespec *timeout); }
649160798Sjhb360	AUE_GETRESUID	STD	{ int getresuid(uid_t *ruid, uid_t *euid, \
650146806Srwatson				    uid_t *suid); }
651160798Sjhb361	AUE_GETRESGID	STD	{ int getresgid(gid_t *rgid, gid_t *egid, \
652146806Srwatson				    gid_t *sgid); }
653161952Srwatson362	AUE_KQUEUE	STD	{ int kqueue(void); }
654160798Sjhb363	AUE_NULL	STD	{ int kevent(int fd, \
655146806Srwatson				    struct kevent *changelist, int nchanges, \
656146806Srwatson				    struct kevent *eventlist, int nevents, \
657146806Srwatson				    const struct timespec *timeout); }
658146806Srwatson364	AUE_NULL	UNIMPL	__cap_get_proc
659146806Srwatson365	AUE_NULL	UNIMPL	__cap_set_proc
660146806Srwatson366	AUE_NULL	UNIMPL	__cap_get_fd
661146806Srwatson367	AUE_NULL	UNIMPL	__cap_get_file
662146806Srwatson368	AUE_NULL	UNIMPL	__cap_set_fd
663146806Srwatson369	AUE_NULL	UNIMPL	__cap_set_file
664183361Sjhb370	AUE_NULL	UNIMPL	nosys
665248995Smdf371	AUE_EXTATTR_SET_FD	STD	{ ssize_t extattr_set_fd(int fd, \
666146806Srwatson				    int attrnamespace, const char *attrname, \
667146806Srwatson				    void *data, size_t nbytes); }
668160798Sjhb372	AUE_EXTATTR_GET_FD	STD	{ ssize_t extattr_get_fd(int fd, \
669146806Srwatson				    int attrnamespace, const char *attrname, \
670146806Srwatson				    void *data, size_t nbytes); }
671160798Sjhb373	AUE_EXTATTR_DELETE_FD	STD	{ int extattr_delete_fd(int fd, \
672146806Srwatson				    int attrnamespace, \
673146806Srwatson				    const char *attrname); }
674160798Sjhb374	AUE_NULL	STD	{ int __setugid(int flag); }
675194383Sjhb375	AUE_NULL	UNIMPL	nfsclnt
676227691Sed376	AUE_EACCESS	STD	{ int eaccess(char *path, int amode); }
677211998Skib377	AUE_NULL	NOSTD|NOTSTATIC	{ int afs3_syscall(long syscall, \
678211998Skib				    long parm1, long parm2, long parm3, \
679211998Skib				    long parm4, long parm5, long parm6); }
680160798Sjhb378	AUE_NMOUNT	STD	{ int nmount(struct iovec *iovp, \
681146806Srwatson				    unsigned int iovcnt, int flags); }
682177091Sjeff379	AUE_NULL	UNIMPL	kse_exit
683177091Sjeff380	AUE_NULL	UNIMPL	kse_wakeup
684177091Sjeff381	AUE_NULL	UNIMPL	kse_create
685177091Sjeff382	AUE_NULL	UNIMPL	kse_thr_interrupt
686177091Sjeff383	AUE_NULL	UNIMPL	kse_release
687160798Sjhb384	AUE_NULL	STD	{ int __mac_get_proc(struct mac *mac_p); }
688160798Sjhb385	AUE_NULL	STD	{ int __mac_set_proc(struct mac *mac_p); }
689160798Sjhb386	AUE_NULL	STD	{ int __mac_get_fd(int fd, \
690146806Srwatson				    struct mac *mac_p); }
691160798Sjhb387	AUE_NULL	STD	{ int __mac_get_file(const char *path_p, \
692146806Srwatson				    struct mac *mac_p); }
693160798Sjhb388	AUE_NULL	STD	{ int __mac_set_fd(int fd, \
694146806Srwatson				    struct mac *mac_p); }
695160798Sjhb389	AUE_NULL	STD	{ int __mac_set_file(const char *path_p, \
696146806Srwatson				    struct mac *mac_p); }
697160798Sjhb390	AUE_NULL	STD	{ int kenv(int what, const char *name, \
698146806Srwatson				    char *value, int len); }
699248597Spjd391	AUE_LCHFLAGS	STD	{ int lchflags(const char *path, \
700248597Spjd				    u_long flags); }
701160798Sjhb392	AUE_NULL	STD	{ int uuidgen(struct uuid *store, \
702146806Srwatson				    int count); }
703160798Sjhb393	AUE_SENDFILE	STD	{ int sendfile(int fd, int s, off_t offset, \
704146806Srwatson				    size_t nbytes, struct sf_hdtr *hdtr, \
705146806Srwatson				    off_t *sbytes, int flags); }
706160798Sjhb394	AUE_NULL	STD	{ int mac_syscall(const char *policy, \
707146806Srwatson				    int call, void *arg); }
708160798Sjhb395	AUE_GETFSSTAT	STD	{ int getfsstat(struct statfs *buf, \
709146806Srwatson				    long bufsize, int flags); }
710160798Sjhb396	AUE_STATFS	STD	{ int statfs(char *path, \
711146806Srwatson				    struct statfs *buf); }
712160798Sjhb397	AUE_FSTATFS	STD	{ int fstatfs(int fd, struct statfs *buf); }
713161952Srwatson398	AUE_FHSTATFS	STD	{ int fhstatfs(const struct fhandle *u_fhp, \
714146806Srwatson				    struct statfs *buf); }
715146806Srwatson399	AUE_NULL	UNIMPL	nosys
716160798Sjhb400	AUE_NULL	NOSTD	{ int ksem_close(semid_t id); }
717160798Sjhb401	AUE_NULL	NOSTD	{ int ksem_post(semid_t id); }
718160798Sjhb402	AUE_NULL	NOSTD	{ int ksem_wait(semid_t id); }
719160798Sjhb403	AUE_NULL	NOSTD	{ int ksem_trywait(semid_t id); }
720160798Sjhb404	AUE_NULL	NOSTD	{ int ksem_init(semid_t *idp, \
721146806Srwatson				    unsigned int value); }
722160798Sjhb405	AUE_NULL	NOSTD	{ int ksem_open(semid_t *idp, \
723146806Srwatson				    const char *name, int oflag, \
724146806Srwatson				    mode_t mode, unsigned int value); }
725160798Sjhb406	AUE_NULL	NOSTD	{ int ksem_unlink(const char *name); }
726160798Sjhb407	AUE_NULL	NOSTD	{ int ksem_getvalue(semid_t id, int *val); }
727160798Sjhb408	AUE_NULL	NOSTD	{ int ksem_destroy(semid_t id); }
728160798Sjhb409	AUE_NULL	STD	{ int __mac_get_pid(pid_t pid, \
729146806Srwatson				    struct mac *mac_p); }
730160798Sjhb410	AUE_NULL	STD	{ int __mac_get_link(const char *path_p, \
731146806Srwatson				    struct mac *mac_p); }
732160798Sjhb411	AUE_NULL	STD	{ int __mac_set_link(const char *path_p, \
733146806Srwatson				    struct mac *mac_p); }
734248995Smdf412	AUE_EXTATTR_SET_LINK	STD	{ ssize_t extattr_set_link( \
735160111Swsalamon				    const char *path, int attrnamespace, \
736160111Swsalamon				    const char *attrname, void *data, \
737160111Swsalamon				    size_t nbytes); }
738160798Sjhb413	AUE_EXTATTR_GET_LINK	STD	{ ssize_t extattr_get_link( \
739160111Swsalamon				    const char *path, int attrnamespace, \
740160111Swsalamon				    const char *attrname, void *data, \
741160111Swsalamon				    size_t nbytes); }
742160798Sjhb414	AUE_EXTATTR_DELETE_LINK	STD	{ int extattr_delete_link( \
743160111Swsalamon				    const char *path, int attrnamespace, \
744146806Srwatson				    const char *attrname); }
745160798Sjhb415	AUE_NULL	STD	{ int __mac_execve(char *fname, char **argv, \
746146806Srwatson				    char **envv, struct mac *mac_p); }
747160798Sjhb416	AUE_SIGACTION	STD	{ int sigaction(int sig, \
748146806Srwatson				    const struct sigaction *act, \
749146806Srwatson				    struct sigaction *oact); }
750160798Sjhb417	AUE_SIGRETURN	STD	{ int sigreturn( \
751146806Srwatson				    const struct __ucontext *sigcntxp); }
752146806Srwatson418	AUE_NULL	UNIMPL	__xstat
753146806Srwatson419	AUE_NULL	UNIMPL	__xfstat
754146806Srwatson420	AUE_NULL	UNIMPL	__xlstat
755160798Sjhb421	AUE_NULL	STD	{ int getcontext(struct __ucontext *ucp); }
756160798Sjhb422	AUE_NULL	STD	{ int setcontext( \
757146806Srwatson				    const struct __ucontext *ucp); }
758160798Sjhb423	AUE_NULL	STD	{ int swapcontext(struct __ucontext *oucp, \
759146806Srwatson				    const struct __ucontext *ucp); }
760160798Sjhb424	AUE_SWAPOFF	STD	{ int swapoff(const char *name); }
761160798Sjhb425	AUE_NULL	STD	{ int __acl_get_link(const char *path, \
762146806Srwatson				    acl_type_t type, struct acl *aclp); }
763160798Sjhb426	AUE_NULL	STD	{ int __acl_set_link(const char *path, \
764146806Srwatson				    acl_type_t type, struct acl *aclp); }
765160798Sjhb427	AUE_NULL	STD	{ int __acl_delete_link(const char *path, \
766146806Srwatson				    acl_type_t type); }
767160798Sjhb428	AUE_NULL	STD	{ int __acl_aclcheck_link(const char *path, \
768146806Srwatson				    acl_type_t type, struct acl *aclp); }
769160798Sjhb429	AUE_SIGWAIT	STD	{ int sigwait(const sigset_t *set, \
770146806Srwatson				    int *sig); }
771160798Sjhb430	AUE_NULL	STD	{ int thr_create(ucontext_t *ctx, long *id, \
772146806Srwatson				    int flags); }
773160798Sjhb431	AUE_NULL	STD	{ void thr_exit(long *state); }
774160798Sjhb432	AUE_NULL	STD	{ int thr_self(long *id); }
775160798Sjhb433	AUE_NULL	STD	{ int thr_kill(long id, int sig); }
776160798Sjhb434	AUE_NULL	STD	{ int _umtx_lock(struct umtx *umtx); }
777160798Sjhb435	AUE_NULL	STD	{ int _umtx_unlock(struct umtx *umtx); }
778160798Sjhb436	AUE_NULL	STD	{ int jail_attach(int jid); }
779160798Sjhb437	AUE_EXTATTR_LIST_FD	STD	{ ssize_t extattr_list_fd(int fd, \
780146806Srwatson				    int attrnamespace, void *data, \
781146806Srwatson				    size_t nbytes); }
782160798Sjhb438	AUE_EXTATTR_LIST_FILE	STD	{ ssize_t extattr_list_file( \
783146806Srwatson				    const char *path, int attrnamespace, \
784146806Srwatson				    void *data, size_t nbytes); }
785160798Sjhb439	AUE_EXTATTR_LIST_LINK	STD	{ ssize_t extattr_list_link( \
786146806Srwatson				    const char *path, int attrnamespace, \
787146806Srwatson				    void *data, size_t nbytes); }
788177091Sjeff440	AUE_NULL	UNIMPL	kse_switchin
789160798Sjhb441	AUE_NULL	NOSTD	{ int ksem_timedwait(semid_t id, \
790151445Sstefanf				    const struct timespec *abstime); }
791160798Sjhb442	AUE_NULL	STD	{ int thr_suspend( \
792146806Srwatson				    const struct timespec *timeout); }
793160798Sjhb443	AUE_NULL	STD	{ int thr_wake(long id); }
794161952Srwatson444	AUE_MODUNLOAD	STD	{ int kldunloadf(int fileid, int flags); }
795160798Sjhb445	AUE_AUDIT	STD	{ int audit(const void *record, \
796146806Srwatson				    u_int length); }
797160798Sjhb446	AUE_AUDITON	STD	{ int auditon(int cmd, void *data, \
798146806Srwatson				    u_int length); }
799160798Sjhb447	AUE_GETAUID	STD	{ int getauid(uid_t *auid); }
800160798Sjhb448	AUE_SETAUID	STD	{ int setauid(uid_t *auid); }
801160798Sjhb449	AUE_GETAUDIT	STD	{ int getaudit(struct auditinfo *auditinfo); }
802160798Sjhb450	AUE_SETAUDIT	STD	{ int setaudit(struct auditinfo *auditinfo); }
803160798Sjhb451	AUE_GETAUDIT_ADDR	STD	{ int getaudit_addr( \
804146806Srwatson				    struct auditinfo_addr *auditinfo_addr, \
805146806Srwatson				    u_int length); }
806160798Sjhb452	AUE_SETAUDIT_ADDR	STD	{ int setaudit_addr( \
807146806Srwatson				    struct auditinfo_addr *auditinfo_addr, \
808146806Srwatson				    u_int length); }
809160798Sjhb453	AUE_AUDITCTL	STD	{ int auditctl(char *path); }
810161678Sdavidxu454	AUE_NULL	STD	{ int _umtx_op(void *obj, int op, \
811163449Sdavidxu				    u_long val, void *uaddr1, void *uaddr2); }
812160798Sjhb455	AUE_NULL	STD	{ int thr_new(struct thr_param *param, \
813146806Srwatson				    int param_size); }
814160798Sjhb456	AUE_NULL	STD	{ int sigqueue(pid_t pid, int signum, void *value); }
815160798Sjhb457	AUE_NULL	NOSTD	{ int kmq_open(const char *path, int flags, \
816152845Sdavidxu				    mode_t mode, const struct mq_attr *attr); }
817160798Sjhb458	AUE_NULL	NOSTD	{ int kmq_setattr(int mqd,		\
818152845Sdavidxu				    const struct mq_attr *attr,		\
819152845Sdavidxu				    struct mq_attr *oattr); }
820160798Sjhb459	AUE_NULL	NOSTD	{ int kmq_timedreceive(int mqd,	\
821152845Sdavidxu				    char *msg_ptr, size_t msg_len,	\
822152845Sdavidxu				    unsigned *msg_prio,			\
823152845Sdavidxu				    const struct timespec *abs_timeout); }
824160798Sjhb460	AUE_NULL	NOSTD	{ int kmq_timedsend(int mqd,		\
825152845Sdavidxu				    const char *msg_ptr, size_t msg_len,\
826152845Sdavidxu				    unsigned msg_prio,			\
827152845Sdavidxu				    const struct timespec *abs_timeout);}
828160798Sjhb461	AUE_NULL	NOSTD	{ int kmq_notify(int mqd,		\
829152845Sdavidxu				    const struct sigevent *sigev); }
830160798Sjhb462	AUE_NULL	NOSTD	{ int kmq_unlink(const char *path); }
831160798Sjhb463	AUE_NULL	STD	{ int abort2(const char *why, int nargs, void **args); }
832160798Sjhb464	AUE_NULL	STD	{ int thr_set_name(long id, const char *name); }
833160798Sjhb465	AUE_NULL	NOSTD	{ int aio_fsync(int op, struct aiocb *aiocbp); }
834162497Sdavidxu466	AUE_RTPRIO	STD	{ int rtprio_thread(int function, \
835162497Sdavidxu				    lwpid_t lwpid, struct rtprio *rtp); }
836162497Sdavidxu467	AUE_NULL	UNIMPL	nosys
837162497Sdavidxu468	AUE_NULL	UNIMPL	nosys
838161367Speter469	AUE_NULL	UNIMPL	__getpath_fromfd
839161367Speter470	AUE_NULL	UNIMPL	__getpath_fromaddr
840321017Sdchagin471	AUE_NULL	NOSTD	{ int sctp_peeloff(int sd, uint32_t name); }
841321017Sdchagin472     AUE_NULL        NOSTD	{ int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
842163953Srrs	                            caddr_t to, __socklen_t tolen, \
843163953Srrs				    struct sctp_sndrcvinfo *sinfo, int flags); }
844321017Sdchagin473     AUE_NULL        NOSTD	{ int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
845163953Srrs	                            caddr_t to, __socklen_t tolen, \
846163953Srrs				    struct sctp_sndrcvinfo *sinfo, int flags); }
847321017Sdchagin474     AUE_NULL        NOSTD	{ int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
848163953Srrs				    struct sockaddr * from, __socklen_t *fromlenaddr, \
849163953Srrs				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
850171209Speter475	AUE_PREAD	STD	{ ssize_t pread(int fd, void *buf, \
851171209Speter				    size_t nbyte, off_t offset); }
852171209Speter476	AUE_PWRITE	STD	{ ssize_t pwrite(int fd, const void *buf, \
853171209Speter				    size_t nbyte, off_t offset); }
854171209Speter477	AUE_MMAP	STD	{ caddr_t mmap(caddr_t addr, size_t len, \
855171209Speter				    int prot, int flags, int fd, off_t pos); }
856171209Speter478	AUE_LSEEK	STD	{ off_t lseek(int fd, off_t offset, \
857171209Speter				    int whence); }
858171209Speter479	AUE_TRUNCATE	STD	{ int truncate(char *path, off_t length); }
859171209Speter480	AUE_FTRUNCATE	STD	{ int ftruncate(int fd, off_t length); }
860171859Sdavidxu481	AUE_KILL	STD	{ int thr_kill2(pid_t pid, long id, int sig); }
861175517Srwatson482	AUE_SHMOPEN	STD	{ int shm_open(const char *path, int flags, \
862175164Sjhb				    mode_t mode); }
863175517Srwatson483	AUE_SHMUNLINK	STD	{ int shm_unlink(const char *path); }
864176730Sjeff484	AUE_NULL	STD	{ int cpuset(cpusetid_t *setid); }
865176730Sjeff485	AUE_NULL	STD	{ int cpuset_setid(cpuwhich_t which, id_t id, \
866176730Sjeff				    cpusetid_t setid); }
867176730Sjeff486	AUE_NULL	STD	{ int cpuset_getid(cpulevel_t level, \
868176730Sjeff				    cpuwhich_t which, id_t id, \
869176730Sjeff				    cpusetid_t *setid); }
870176730Sjeff487	AUE_NULL	STD	{ int cpuset_getaffinity(cpulevel_t level, \
871177597Sru				    cpuwhich_t which, id_t id, size_t cpusetsize, \
872177597Sru				    cpuset_t *mask); }
873176730Sjeff488	AUE_NULL	STD	{ int cpuset_setaffinity(cpulevel_t level, \
874177597Sru				    cpuwhich_t which, id_t id, size_t cpusetsize, \
875177597Sru				    const cpuset_t *mask); }
876227691Sed489	AUE_FACCESSAT	STD	{ int faccessat(int fd, char *path, int amode, \
877177788Skib				    int flag); }
878177788Skib490	AUE_FCHMODAT	STD	{ int fchmodat(int fd, char *path, mode_t mode, \
879177788Skib				    int flag); }
880177788Skib491	AUE_FCHOWNAT	STD	{ int fchownat(int fd, char *path, uid_t uid, \
881177788Skib				    gid_t gid, int flag); }
882177788Skib492	AUE_FEXECVE	STD	{ int fexecve(int fd, char **argv, \
883177788Skib				    char **envv); }
884177788Skib493	AUE_FSTATAT	STD	{ int fstatat(int fd, char *path, \
885177788Skib				    struct stat *buf, int flag); }
886177788Skib494	AUE_FUTIMESAT	STD	{ int futimesat(int fd, char *path, \
887177788Skib				    struct timeval *times); }
888177788Skib495	AUE_LINKAT	STD	{ int linkat(int fd1, char *path1, int fd2, \
889177788Skib				    char *path2, int flag); }
890177788Skib496	AUE_MKDIRAT	STD	{ int mkdirat(int fd, char *path, mode_t mode); }
891177788Skib497	AUE_MKFIFOAT	STD	{ int mkfifoat(int fd, char *path, mode_t mode); }
892177788Skib498	AUE_MKNODAT	STD	{ int mknodat(int fd, char *path, mode_t mode, \
893177788Skib				    dev_t dev); }
894177788Skib; XXX: see the comment for open
895177788Skib499	AUE_OPENAT_RWTC	STD	{ int openat(int fd, char *path, int flag, \
896177788Skib				    mode_t mode); }
897177788Skib500	AUE_READLINKAT	STD	{ int readlinkat(int fd, char *path, char *buf, \
898177788Skib				    size_t bufsize); }
899177788Skib501	AUE_RENAMEAT	STD	{ int renameat(int oldfd, char *old, int newfd, \
900177788Skib				     char *new); }
901177788Skib502	AUE_SYMLINKAT	STD	{ int symlinkat(char *path1, int fd, \
902177788Skib				     char *path2); }
903177788Skib503	AUE_UNLINKAT	STD	{ int unlinkat(int fd, char *path, int flag); }
904182123Srwatson504	AUE_POSIX_OPENPT	STD	{ int posix_openpt(int flags); }
905184588Sdfr; 505 is initialised by the kgssapi code, if present.
906184588Sdfr505	AUE_NULL	NOSTD	{ int gssd_syscall(char *path); }
907191673Sjamie506	AUE_NULL	STD	{ int jail_get(struct iovec *iovp, \
908191673Sjamie				    unsigned int iovcnt, int flags); }
909191673Sjamie507	AUE_NULL	STD	{ int jail_set(struct iovec *iovp, \
910191673Sjamie				    unsigned int iovcnt, int flags); }
911191673Sjamie508	AUE_NULL	STD	{ int jail_remove(int jid); }
912194262Sjhb509	AUE_CLOSEFROM	STD	{ int closefrom(int lowfd); }
913194910Sjhb510	AUE_SEMCTL	NOSTD	{ int __semctl(int semid, int semnum, \
914194910Sjhb				    int cmd, union semun *arg); }
915194910Sjhb511	AUE_MSGCTL	NOSTD	{ int msgctl(int msqid, int cmd, \
916194910Sjhb				    struct msqid_ds *buf); }
917194910Sjhb512	AUE_SHMCTL	NOSTD	{ int shmctl(int shmid, int cmd, \
918194910Sjhb				    struct shmid_ds *buf); }
919195458Strasz513	AUE_LPATHCONF	STD	{ int lpathconf(char *path, int name); }
920255219Spjd514	AUE_NULL	OBSOL	cap_new
921255219Spjd515	AUE_CAP_RIGHTS_GET	STD	{ int __cap_rights_get(int version, \
922255219Spjd				    int fd, cap_rights_t *rightsp); }
923219129Srwatson516	AUE_CAP_ENTER	STD	{ int cap_enter(void); }
924219129Srwatson517	AUE_CAP_GETMODE	STD	{ int cap_getmode(u_int *modep); }
925224987Sjonathan518	AUE_PDFORK	STD	{ int pdfork(int *fdp, int flags); }
926224987Sjonathan519	AUE_PDKILL	STD	{ int pdkill(int fd, int signum); }
927224987Sjonathan520	AUE_PDGETPID	STD	{ int pdgetpid(int fd, pid_t *pidp); }
928224987Sjonathan521	AUE_PDWAIT	UNIMPL	pdwait4
929198508Skib522	AUE_SELECT	STD	{ int pselect(int nd, fd_set *in, \
930198508Skib				    fd_set *ou, fd_set *ex, \
931198508Skib				    const struct timespec *ts, \
932198508Skib				    const sigset_t *sm); }
933219304Strasz523	AUE_NULL	STD	{ int getloginclass(char *namebuf, \
934219304Strasz				    size_t namelen); }
935219304Strasz524	AUE_NULL	STD	{ int setloginclass(const char *namebuf); }
936220163Strasz525	AUE_NULL	STD	{ int rctl_get_racct(const void *inbufp, \
937220163Strasz				    size_t inbuflen, void *outbufp, \
938220163Strasz				    size_t outbuflen); }
939220163Strasz526	AUE_NULL	STD	{ int rctl_get_rules(const void *inbufp, \
940220163Strasz				    size_t inbuflen, void *outbufp, \
941220163Strasz				    size_t outbuflen); }
942220163Strasz527	AUE_NULL	STD	{ int rctl_get_limits(const void *inbufp, \
943220163Strasz				    size_t inbuflen, void *outbufp, \
944220163Strasz				    size_t outbuflen); }
945220163Strasz528	AUE_NULL	STD	{ int rctl_add_rule(const void *inbufp, \
946220163Strasz				    size_t inbuflen, void *outbufp, \
947220163Strasz				    size_t outbuflen); }
948220163Strasz529	AUE_NULL	STD	{ int rctl_remove_rule(const void *inbufp, \
949220163Strasz				    size_t inbuflen, void *outbufp, \
950220163Strasz				    size_t outbuflen); }
951220791Smdf530	AUE_NULL	STD	{ int posix_fallocate(int fd, \
952220791Smdf				    off_t offset, off_t len); }
953227070Sjhb531	AUE_NULL	STD	{ int posix_fadvise(int fd, off_t offset, \
954227070Sjhb				    off_t len, int advice); }
955255490Sjhb532	AUE_WAIT6	STD	{ int wait6(idtype_t idtype, id_t id, \
956242958Skib				    int *status, int options, \
957242958Skib				    struct __wrusage *wrusage, \
958242958Skib				    siginfo_t *info); }
959247602Spjd533	AUE_CAP_RIGHTS_LIMIT	STD	{ int cap_rights_limit(int fd, \
960255219Spjd					    cap_rights_t *rightsp); }
961247602Spjd534	AUE_CAP_IOCTLS_LIMIT	STD	{ int cap_ioctls_limit(int fd, \
962247602Spjd					    const u_long *cmds, size_t ncmds); }
963247602Spjd535	AUE_CAP_IOCTLS_GET	STD	{ ssize_t cap_ioctls_get(int fd, \
964247602Spjd					    u_long *cmds, size_t maxcmds); }
965247602Spjd536	AUE_CAP_FCNTLS_LIMIT	STD	{ int cap_fcntls_limit(int fd, \
966247602Spjd					    uint32_t fcntlrights); }
967247602Spjd537	AUE_CAP_FCNTLS_GET	STD	{ int cap_fcntls_get(int fd, \
968247602Spjd					    uint32_t *fcntlrightsp); }
969247667Spjd538	AUE_BINDAT	STD	{ int bindat(int fd, int s, caddr_t name, \
970247667Spjd				    int namelen); }
971247667Spjd539	AUE_CONNECTAT	STD	{ int connectat(int fd, int s, caddr_t name, \
972247667Spjd				    int namelen); }
973248599Spjd540	AUE_CHFLAGSAT	STD	{ int chflagsat(int fd, const char *path, \
974248599Spjd				    u_long flags, int atflag); }
975250154Sjilles541	AUE_ACCEPT	STD	{ int accept4(int s, \
976250154Sjilles				    struct sockaddr * __restrict name, \
977250154Sjilles				    __socklen_t * __restrict anamelen, \
978250154Sjilles				    int flags); }
979250159Sjilles542	AUE_PIPE	STD	{ int pipe2(int *fildes, int flags); }
980251526Sglebius543	AUE_NULL	NOSTD	{ int aio_mlock(struct aiocb *aiocbp); }
981255708Sjhb544	AUE_NULL	STD	{ int procctl(idtype_t idtype, id_t id, \
982255708Sjhb				    int com, void *data); }
983275986Sdchagin545	AUE_POLL	STD	{ int ppoll(struct pollfd *fds, u_int nfds, \
984275986Sdchagin				    const struct timespec *ts, \
985275986Sdchagin				    const sigset_t *set); }
986293474Sdchagin546	AUE_FUTIMES	STD	{ int futimens(int fd, \
987293474Sdchagin				    struct timespec *times); }
988293474Sdchagin547	AUE_FUTIMESAT	STD	{ int utimensat(int fd, \
989293474Sdchagin				    char *path, \
990293474Sdchagin				    struct timespec *times, int flag); }
991105144Speter; Please copy any additions and changes to the following compatability tables:
992123408Speter; sys/compat/freebsd32/syscalls.master
993