syscalls.master revision 175517
1239310Sdim $FreeBSD: head/sys/kern/syscalls.master 175517 2008-01-20 23:43:06Z rwatson $
2239310Sdim;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
3239310Sdim;
4239310Sdim; System call name/number master file.
5239310Sdim; Processed to created init_sysent.c, syscalls.c and syscall.h.
6239310Sdim
7239310Sdim; Columns: number audit type name alt{name,tag,rtyp}/comments
8239310Sdim;	number	system call number, must be in order
9239310Sdim;	audit	the audit event associated with the system call
10239310Sdim;		A value of AUE_NULL means no auditing, but it also means that
11239310Sdim;		there is no audit event for the call at this time. For the
12239310Sdim;		case where the event exists, but we don't want auditing, the
13239310Sdim;		event should be #defined to AUE_NULL in audit_kevents.h.
14239310Sdim;	type	one of STD, OBSOL, UNIMPL, COMPAT, CPT_NOA, LIBCOMPAT,
15239310Sdim;		NODEF, NOARGS, NOPROTO, NOIMPL, NOSTD, COMPAT4
16239310Sdim;	name	psuedo-prototype of syscall routine
17239310Sdim;		If one of the following alts is different, then all appear:
18239310Sdim;	altname	name of system call if different
19239310Sdim;	alttag	name of args struct tag if different from [o]`name'"_args"
20239310Sdim;	altrtyp	return type if not int (bogus - syscalls always return int)
21239310Sdim;		for UNIMPL/OBSOL, name continues with comments
22239310Sdim
23239310Sdim; types:
24239310Sdim;	STD	always included
25239310Sdim;	COMPAT	included on COMPAT #ifdef
26239310Sdim;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
27239310Sdim;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
28239310Sdim;	OBSOL	obsolete, not included in system, only specifies name
29239310Sdim;	UNIMPL	not implemented, placeholder only
30239310Sdim;	NOSTD	implemented but as a lkm that can be statically
31239310Sdim;		compiled in; sysent entry will be filled with lkmsys
32239310Sdim;		so the SYSCALL_MODULE macro works
33239310Sdim;
34239310Sdim; Please copy any additions and changes to the following compatability tables:
35239310Sdim; sys/compat/freebsd32/syscalls.master
36239310Sdim
37249423Sdim; #ifdef's, etc. may be included, and are copied to the output files.
38239310Sdim
39239310Sdim#include <sys/param.h>
40239310Sdim#include <sys/sysent.h>
41239310Sdim#include <sys/sysproto.h>
42239310Sdim
43239310Sdim; Reserved/unimplemented system calls in the range 0-150 inclusive
44239310Sdim; are reserved for use in future Berkeley releases.
45239310Sdim; Additional system calls implemented in vendor and other
46239310Sdim; redistributions should be placed in the reserved range at the end
47239310Sdim; of the current calls.
48239310Sdim
49239310Sdim0	AUE_NULL	STD	{ int nosys(void); } syscall nosys_args int
50239310Sdim1	AUE_EXIT	STD	{ void sys_exit(int rval); } exit \
51239310Sdim				    sys_exit_args void
52239310Sdim2	AUE_FORK	STD	{ int fork(void); }
53239310Sdim3	AUE_NULL	STD	{ ssize_t read(int fd, void *buf, \
54239310Sdim				    size_t nbyte); }
55239310Sdim4	AUE_NULL	STD	{ ssize_t write(int fd, const void *buf, \
56249423Sdim				    size_t nbyte); }
57249423Sdim5	AUE_OPEN_RWTC	STD	{ int open(char *path, int flags, int mode); }
58239310Sdim; XXX should be		{ int open(const char *path, int flags, ...); }
59239310Sdim; but we're not ready for `const' or varargs.
60239310Sdim; XXX man page says `mode_t mode'.
61239310Sdim6	AUE_CLOSE	STD	{ int close(int fd); }
62239310Sdim7	AUE_WAIT4	STD	{ int wait4(int pid, int *status, \
63239310Sdim				    int options, struct rusage *rusage); } \
64263508Sdim				    wait4 wait_args int
65249423Sdim8	AUE_CREAT	COMPAT	{ int creat(char *path, int mode); }
66249423Sdim9	AUE_LINK	STD	{ int link(char *path, char *link); }
67239310Sdim10	AUE_UNLINK	STD	{ int unlink(char *path); }
68239310Sdim11	AUE_NULL	OBSOL	execv
69239310Sdim12	AUE_CHDIR	STD	{ int chdir(char *path); }
70239310Sdim13	AUE_FCHDIR	STD	{ int fchdir(int fd); }
71239310Sdim14	AUE_MKNOD	STD	{ int mknod(char *path, int mode, int dev); }
72239310Sdim15	AUE_CHMOD	STD	{ int chmod(char *path, int mode); }
73249423Sdim16	AUE_CHOWN	STD	{ int chown(char *path, int uid, int gid); }
74249423Sdim17	AUE_NULL	STD	{ int obreak(char *nsize); } break \
75239310Sdim				    obreak_args int
76239310Sdim18	AUE_GETFSSTAT	COMPAT4	{ int getfsstat(struct ostatfs *buf, \
77263508Sdim				    long bufsize, int flags); }
78249423Sdim19	AUE_LSEEK	COMPAT	{ long lseek(int fd, long offset, \
79249423Sdim				    int whence); }
80239310Sdim20	AUE_GETPID	STD	{ pid_t getpid(void); }
81239310Sdim21	AUE_MOUNT	STD	{ int mount(char *type, char *path, \
82239310Sdim				    int flags, caddr_t data); }
83249423Sdim; XXX `path' should have type `const char *' but we're not ready for that.
84249423Sdim22	AUE_UMOUNT	STD	{ int unmount(char *path, int flags); }
85239310Sdim23	AUE_SETUID	STD	{ int setuid(uid_t uid); }
86239310Sdim24	AUE_GETUID	STD	{ uid_t getuid(void); }
87239310Sdim25	AUE_GETEUID	STD	{ uid_t geteuid(void); }
88239310Sdim26	AUE_PTRACE	STD	{ int ptrace(int req, pid_t pid, \
89239310Sdim				    caddr_t addr, int data); }
90239310Sdim27	AUE_RECVMSG	STD	{ int recvmsg(int s, struct msghdr *msg, \
91239310Sdim				    int flags); }
92239310Sdim28	AUE_SENDMSG	STD	{ int sendmsg(int s, struct msghdr *msg, \
93249423Sdim				    int flags); }
94239310Sdim29	AUE_RECVFROM	STD	{ int recvfrom(int s, caddr_t buf, \
95239310Sdim				    size_t len, int flags, \
96239310Sdim				    struct sockaddr * __restrict from, \
97239310Sdim				    __socklen_t * __restrict fromlenaddr); }
98239310Sdim30	AUE_ACCEPT	STD	{ int accept(int s, \
99239310Sdim				    struct sockaddr * __restrict name, \
100239310Sdim				    __socklen_t * __restrict anamelen); }
101239310Sdim31	AUE_GETPEERNAME	STD	{ int getpeername(int fdes, \
102239310Sdim				    struct sockaddr * __restrict asa, \
103239310Sdim				    __socklen_t * __restrict alen); }
104239310Sdim32	AUE_GETSOCKNAME	STD	{ int getsockname(int fdes, \
105249423Sdim				    struct sockaddr * __restrict asa, \
106239310Sdim				    __socklen_t * __restrict alen); }
107239310Sdim33	AUE_ACCESS	STD	{ int access(char *path, int flags); }
108239310Sdim34	AUE_CHFLAGS	STD	{ int chflags(char *path, int flags); }
109239310Sdim35	AUE_FCHFLAGS	STD	{ int fchflags(int fd, int flags); }
110239310Sdim36	AUE_SYNC	STD	{ int sync(void); }
111239310Sdim37	AUE_KILL	STD	{ int kill(int pid, int signum); }
112239310Sdim38	AUE_STAT	COMPAT	{ int stat(char *path, struct ostat *ub); }
113239310Sdim39	AUE_GETPPID	STD	{ pid_t getppid(void); }
114239310Sdim40	AUE_LSTAT	COMPAT	{ int lstat(char *path, struct ostat *ub); }
115239310Sdim41	AUE_DUP		STD	{ int dup(u_int fd); }
116239310Sdim42	AUE_PIPE	STD	{ int pipe(void); }
117239310Sdim43	AUE_GETEGID	STD	{ gid_t getegid(void); }
118239310Sdim44	AUE_PROFILE	STD	{ int profil(caddr_t samples, size_t size, \
119239310Sdim				    size_t offset, u_int scale); }
120249423Sdim45	AUE_KTRACE	STD	{ int ktrace(const char *fname, int ops, \
121239310Sdim				    int facs, int pid); }
122239310Sdim46	AUE_SIGACTION	COMPAT	{ int sigaction(int signum, \
123239310Sdim				    struct osigaction *nsa, \
124239310Sdim				    struct osigaction *osa); }
125239310Sdim47	AUE_GETGID	STD	{ gid_t getgid(void); }
126239310Sdim48	AUE_SIGPROCMASK	COMPAT	{ int sigprocmask(int how, osigset_t mask); }
127239310Sdim; XXX note nonstandard (bogus) calling convention - the libc stub passes
128239310Sdim; us the mask, not a pointer to it, and we return the old mask as the
129239310Sdim; (int) return value.
130239310Sdim49	AUE_GETLOGIN	STD	{ int getlogin(char *namebuf, u_int \
131239310Sdim				    namelen); }
132239310Sdim50	AUE_SETLOGIN	STD	{ int setlogin(char *namebuf); }
133239310Sdim51	AUE_ACCT	STD	{ int acct(char *path); }
134239310Sdim52	AUE_SIGPENDING	COMPAT	{ int sigpending(void); }
135239310Sdim53	AUE_SIGALTSTACK	STD	{ int sigaltstack(stack_t *ss, \
136239310Sdim				    stack_t *oss); }
137249423Sdim54	AUE_IOCTL	STD	{ int ioctl(int fd, u_long com, \
138239310Sdim				    caddr_t data); }
139239310Sdim55	AUE_REBOOT	STD	{ int reboot(int opt); }
140239310Sdim56	AUE_REVOKE	STD	{ int revoke(char *path); }
141239310Sdim57	AUE_SYMLINK	STD	{ int symlink(char *path, char *link); }
142239310Sdim58	AUE_READLINK	STD	{ int readlink(char *path, char *buf, \
143239310Sdim				    int count); }
144239310Sdim59	AUE_EXECVE	STD	{ int execve(char *fname, char **argv, \
145239310Sdim				    char **envv); }
146239310Sdim60	AUE_UMASK	STD	{ int umask(int newmask); } umask umask_args \
147239310Sdim				    int
148239310Sdim61	AUE_CHROOT	STD	{ int chroot(char *path); }
149239310Sdim62	AUE_FSTAT	COMPAT	{ int fstat(int fd, struct ostat *sb); }
150239310Sdim63	AUE_NULL	COMPAT	{ int getkerninfo(int op, char *where, \
151263508Sdim				    size_t *size, int arg); } getkerninfo \
152263508Sdim				    getkerninfo_args int
153263508Sdim64	AUE_NULL	COMPAT	{ int getpagesize(void); } getpagesize \
154263508Sdim				    getpagesize_args int
155263508Sdim65	AUE_MSYNC	STD	{ int msync(void *addr, size_t len, \
156263508Sdim				    int flags); }
157263508Sdim66	AUE_VFORK	STD	{ int vfork(void); }
158263508Sdim67	AUE_NULL	OBSOL	vread
159263508Sdim68	AUE_NULL	OBSOL	vwrite
160263508Sdim69	AUE_SBRK	STD	{ int sbrk(int incr); }
161263508Sdim70	AUE_SSTK	STD	{ int sstk(int incr); }
162263508Sdim71	AUE_MMAP	COMPAT	{ int mmap(void *addr, int len, int prot, \
163263508Sdim				    int flags, int fd, long pos); }
164263508Sdim72	AUE_O_VADVISE	STD	{ int ovadvise(int anom); } vadvise \
165239310Sdim				    ovadvise_args int
166239310Sdim73	AUE_MUNMAP	STD	{ int munmap(void *addr, size_t len); }
167239310Sdim74	AUE_MPROTECT	STD	{ int mprotect(const void *addr, size_t len, \
168239310Sdim				    int prot); }
169239310Sdim75	AUE_MADVISE	STD	{ int madvise(void *addr, size_t len, \
170249423Sdim				    int behav); }
171239310Sdim76	AUE_NULL	OBSOL	vhangup
172239310Sdim77	AUE_NULL	OBSOL	vlimit
173239310Sdim78	AUE_MINCORE	STD	{ int mincore(const void *addr, size_t len, \
174239310Sdim				    char *vec); }
175239310Sdim79	AUE_GETGROUPS	STD	{ int getgroups(u_int gidsetsize, \
176239310Sdim				    gid_t *gidset); }
177239310Sdim80	AUE_SETGROUPS	STD	{ int setgroups(u_int gidsetsize, \
178239310Sdim				    gid_t *gidset); }
179239310Sdim81	AUE_GETPGRP	STD	{ int getpgrp(void); }
180239310Sdim82	AUE_SETPGRP	STD	{ int setpgid(int pid, int pgid); }
181239310Sdim83	AUE_SETITIMER	STD	{ int setitimer(u_int which, struct \
182239310Sdim				    itimerval *itv, struct itimerval *oitv); }
183239310Sdim84	AUE_WAIT4	COMPAT	{ int wait(void); }
184239310Sdim85	AUE_SWAPON	STD	{ int swapon(char *name); }
185239310Sdim86	AUE_GETITIMER	STD	{ int getitimer(u_int which, \
186239310Sdim				    struct itimerval *itv); }
187239310Sdim87	AUE_SYSCTL	COMPAT	{ int gethostname(char *hostname, \
188239310Sdim				    u_int len); } gethostname \
189239310Sdim				    gethostname_args int
190249423Sdim88	AUE_SYSCTL	COMPAT	{ int sethostname(char *hostname, \
191239310Sdim				    u_int len); } sethostname \
192239310Sdim				    sethostname_args int
193239310Sdim89	AUE_GETDTABLESIZE	STD	{ int getdtablesize(void); }
194239310Sdim90	AUE_DUP2	STD	{ int dup2(u_int from, u_int to); }
195239310Sdim91	AUE_NULL	UNIMPL	getdopt
196239310Sdim92	AUE_FCNTL	STD	{ int fcntl(int fd, int cmd, long arg); }
197239310Sdim; XXX should be	{ int fcntl(int fd, int cmd, ...); }
198239310Sdim; but we're not ready for varargs.
199239310Sdim93	AUE_SELECT	STD	{ int select(int nd, fd_set *in, fd_set *ou, \
200239310Sdim				    fd_set *ex, struct timeval *tv); }
201239310Sdim94	AUE_NULL	UNIMPL	setdopt
202239310Sdim95	AUE_FSYNC	STD	{ int fsync(int fd); }
203239310Sdim96	AUE_SETPRIORITY	STD	{ int setpriority(int which, int who, \
204239310Sdim				    int prio); }
205239310Sdim97	AUE_SOCKET	STD	{ int socket(int domain, int type, \
206239310Sdim				    int protocol); }
207239310Sdim98	AUE_CONNECT	STD	{ int connect(int s, caddr_t name, \
208249423Sdim				    int namelen); }
209239310Sdim99	AUE_ACCEPT	CPT_NOA	{ int accept(int s, caddr_t name, \
210239310Sdim				    int *anamelen); } accept accept_args int
211239310Sdim100	AUE_GETPRIORITY	STD	{ int getpriority(int which, int who); }
212239310Sdim101	AUE_SEND	COMPAT	{ int send(int s, caddr_t buf, int len, \
213239310Sdim				    int flags); }
214239310Sdim102	AUE_RECV	COMPAT	{ int recv(int s, caddr_t buf, int len, \
215239310Sdim				    int flags); }
216239310Sdim103	AUE_SIGRETURN	COMPAT	{ int sigreturn( \
217239310Sdim				    struct osigcontext *sigcntxp); }
218239310Sdim104	AUE_BIND	STD	{ int bind(int s, caddr_t name, \
219239310Sdim				    int namelen); }
220239310Sdim105	AUE_SETSOCKOPT	STD	{ int setsockopt(int s, int level, int name, \
221239310Sdim				    caddr_t val, int valsize); }
222239310Sdim106	AUE_LISTEN	STD	{ int listen(int s, int backlog); }
223239310Sdim107	AUE_NULL	OBSOL	vtimes
224239310Sdim108	AUE_NULL	COMPAT	{ int sigvec(int signum, struct sigvec *nsv, \
225239310Sdim				    struct sigvec *osv); }
226239310Sdim109	AUE_NULL	COMPAT	{ int sigblock(int mask); }
227239310Sdim110	AUE_NULL	COMPAT	{ int sigsetmask(int mask); }
228239310Sdim111	AUE_NULL	COMPAT	{ int sigsuspend(osigset_t mask); }
229239310Sdim; XXX note nonstandard (bogus) calling convention - the libc stub passes
230239310Sdim; us the mask, not a pointer to it.
231239310Sdim112	AUE_NULL	COMPAT	{ int sigstack(struct sigstack *nss, \
232239310Sdim				    struct sigstack *oss); }
233239310Sdim113	AUE_RECVMSG	COMPAT	{ int recvmsg(int s, struct omsghdr *msg, \
234249423Sdim				    int flags); }
235239310Sdim114	AUE_SENDMSG	COMPAT	{ int sendmsg(int s, caddr_t msg, \
236239310Sdim				    int flags); }
237239310Sdim115	AUE_NULL	OBSOL	vtrace
238239310Sdim116	AUE_GETTIMEOFDAY	STD	{ int gettimeofday(struct timeval *tp, \
239239310Sdim				    struct timezone *tzp); }
240239310Sdim117	AUE_GETRUSAGE	STD	{ int getrusage(int who, \
241239310Sdim				    struct rusage *rusage); }
242239310Sdim118	AUE_GETSOCKOPT	STD	{ int getsockopt(int s, int level, int name, \
243239310Sdim				    caddr_t val, int *avalsize); }
244239310Sdim119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
245239310Sdim120	AUE_READV	STD	{ int readv(int fd, struct iovec *iovp, \
246239310Sdim				    u_int iovcnt); }
247239310Sdim121	AUE_WRITEV	STD	{ int writev(int fd, struct iovec *iovp, \
248239310Sdim				    u_int iovcnt); }
249239310Sdim122	AUE_SETTIMEOFDAY	STD	{ int settimeofday(struct timeval *tv, \
250239310Sdim				    struct timezone *tzp); }
251239310Sdim123	AUE_FCHOWN	STD	{ int fchown(int fd, int uid, int gid); }
252239310Sdim124	AUE_FCHMOD	STD	{ int fchmod(int fd, int mode); }
253239310Sdim125	AUE_RECVFROM	CPT_NOA	{ int recvfrom(int s, caddr_t buf, \
254249423Sdim				    size_t len, int flags, caddr_t from, int \
255239310Sdim				    *fromlenaddr); } recvfrom recvfrom_args \
256239310Sdim				    int
257239310Sdim126	AUE_SETREUID	STD	{ int setreuid(int ruid, int euid); }
258239310Sdim127	AUE_SETREGID	STD	{ int setregid(int rgid, int egid); }
259239310Sdim128	AUE_RENAME	STD	{ int rename(char *from, char *to); }
260239310Sdim129	AUE_TRUNCATE	COMPAT	{ int truncate(char *path, long length); }
261239310Sdim130	AUE_FTRUNCATE	COMPAT	{ int ftruncate(int fd, long length); }
262239310Sdim131	AUE_FLOCK	STD	{ int flock(int fd, int how); }
263239310Sdim132	AUE_MKFIFO	STD	{ int mkfifo(char *path, int mode); }
264239310Sdim133	AUE_SENDTO	STD	{ int sendto(int s, caddr_t buf, size_t len, \
265239310Sdim				    int flags, caddr_t to, int tolen); }
266239310Sdim134	AUE_SHUTDOWN	STD	{ int shutdown(int s, int how); }
267239310Sdim135	AUE_SOCKETPAIR	STD	{ int socketpair(int domain, int type, \
268239310Sdim				    int protocol, int *rsv); }
269239310Sdim136	AUE_MKDIR	STD	{ int mkdir(char *path, int mode); }
270239310Sdim137	AUE_RMDIR	STD	{ int rmdir(char *path); }
271239310Sdim138	AUE_UTIMES	STD	{ int utimes(char *path, \
272239310Sdim				    struct timeval *tptr); }
273239310Sdim139	AUE_NULL	OBSOL	4.2 sigreturn
274239310Sdim140	AUE_ADJTIME	STD	{ int adjtime(struct timeval *delta, \
275239310Sdim				    struct timeval *olddelta); }
276249423Sdim141	AUE_GETPEERNAME	COMPAT	{ int getpeername(int fdes, caddr_t asa, \
277239310Sdim				    int *alen); }
278239310Sdim142	AUE_SYSCTL	COMPAT	{ long gethostid(void); }
279239310Sdim143	AUE_SYSCTL	COMPAT	{ int sethostid(long hostid); }
280239310Sdim144	AUE_GETRLIMIT	COMPAT	{ int getrlimit(u_int which, struct \
281239310Sdim				    orlimit *rlp); }
282239310Sdim145	AUE_SETRLIMIT	COMPAT	{ int setrlimit(u_int which, \
283239310Sdim				    struct orlimit *rlp); }
284239310Sdim146	AUE_KILLPG	COMPAT	{ int killpg(int pgid, int signum); }
285239310Sdim147	AUE_SETSID	STD	{ int setsid(void); }
286239310Sdim148	AUE_QUOTACTL	STD	{ int quotactl(char *path, int cmd, int uid, \
287239310Sdim				    caddr_t arg); }
288239310Sdim149	AUE_O_QUOTA	COMPAT	{ int quota(void); }
289239310Sdim150	AUE_GETSOCKNAME	CPT_NOA	{ int getsockname(int fdec, \
290239310Sdim				    caddr_t asa, int *alen); } getsockname \
291239310Sdim				    getsockname_args int
292239310Sdim
293239310Sdim; Syscalls 151-180 inclusive are reserved for vendor-specific
294239310Sdim; system calls.  (This includes various calls added for compatibity
295239310Sdim; with other Unix variants.)
296239310Sdim; Some of these calls are now supported by BSD...
297239310Sdim151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
298249423Sdim152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
299239310Sdim153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
300239310Sdim154	AUE_NULL	UNIMPL	nosys
301239310Sdim; 155 is initialized by the NFS code, if present.
302239310Sdim155	AUE_NFS_SVC	NOSTD	{ int nfssvc(int flag, caddr_t argp); }
303239310Sdim156	AUE_GETDIRENTRIES	COMPAT	{ int getdirentries(int fd, char *buf, \
304239310Sdim				    u_int count, long *basep); }
305239310Sdim157	AUE_STATFS	COMPAT4	{ int statfs(char *path, \
306239310Sdim				    struct ostatfs *buf); }
307239310Sdim158	AUE_FSTATFS	COMPAT4	{ int fstatfs(int fd, \
308239310Sdim				    struct ostatfs *buf); }
309239310Sdim159	AUE_NULL	UNIMPL	nosys
310239310Sdim160	AUE_LGETFH	STD	{ int lgetfh(char *fname, \
311239310Sdim				    struct fhandle *fhp); }
312239310Sdim161	AUE_NFS_GETFH	STD	{ int getfh(char *fname, \
313239310Sdim				    struct fhandle *fhp); }
314239310Sdim162	AUE_SYSCTL	STD	{ int getdomainname(char *domainname, \
315239310Sdim				    int len); }
316239310Sdim163	AUE_SYSCTL	STD	{ int setdomainname(char *domainname, \
317239310Sdim				    int len); }
318239310Sdim164	AUE_NULL	STD	{ int uname(struct utsname *name); }
319239310Sdim165	AUE_SYSARCH	STD	{ int sysarch(int op, char *parms); }
320249423Sdim166	AUE_RTPRIO	STD	{ int rtprio(int function, pid_t pid, \
321239310Sdim				    struct rtprio *rtp); }
322239310Sdim167	AUE_NULL	UNIMPL	nosys
323239310Sdim168	AUE_NULL	UNIMPL	nosys
324239310Sdim; 169 is initialized by the SYSVSEM code if present or loaded
325239310Sdim169	AUE_SEMSYS	NOSTD	{ int semsys(int which, int a2, int a3, \
326239310Sdim				    int a4, int a5); }
327239310Sdim; XXX should be	{ int semsys(int which, ...); }
328239310Sdim; 170 is initialized by the SYSVMSG code if present or loaded
329239310Sdim170	AUE_MSGSYS	NOSTD	{ int msgsys(int which, int a2, int a3, \
330239310Sdim				    int a4, int a5, int a6); }
331239310Sdim; XXX should be	{ int msgsys(int which, ...); }
332239310Sdim; 171 is initialized by the SYSVSHM code if present or loaded
333239310Sdim171	AUE_SHMSYS	NOSTD	{ int shmsys(int which, int a2, int a3, \
334239310Sdim				    int a4); }
335239310Sdim; XXX should be	{ int shmsys(int which, ...); }
336239310Sdim172	AUE_NULL	UNIMPL	nosys
337239310Sdim173	AUE_PREAD	STD	{ ssize_t freebsd6_pread(int fd, void *buf, \
338249423Sdim				    size_t nbyte, int pad, off_t offset); }
339239310Sdim174	AUE_PWRITE	STD	{ ssize_t freebsd6_pwrite(int fd, \
340239310Sdim				    const void *buf, \
341239310Sdim				    size_t nbyte, int pad, off_t offset); }
342239310Sdim175	AUE_NULL	UNIMPL	nosys
343239310Sdim176	AUE_NTP_ADJTIME	STD	{ int ntp_adjtime(struct timex *tp); }
344239310Sdim177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
345239310Sdim178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
346239310Sdim179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
347239310Sdim180	AUE_NULL	UNIMPL	nosys
348239310Sdim
349239310Sdim; Syscalls 181-199 are used by/reserved for BSD
350239310Sdim181	AUE_SETGID	STD	{ int setgid(gid_t gid); }
351239310Sdim182	AUE_SETEGID	STD	{ int setegid(gid_t egid); }
352239310Sdim183	AUE_SETEUID	STD	{ int seteuid(uid_t euid); }
353239310Sdim184	AUE_NULL	UNIMPL	lfs_bmapv
354239310Sdim185	AUE_NULL	UNIMPL	lfs_markv
355239310Sdim186	AUE_NULL	UNIMPL	lfs_segclean
356239310Sdim187	AUE_NULL	UNIMPL	lfs_segwait
357239310Sdim188	AUE_STAT	STD	{ int stat(char *path, struct stat *ub); }
358239310Sdim189	AUE_FSTAT	STD	{ int fstat(int fd, struct stat *sb); }
359239310Sdim190	AUE_LSTAT	STD	{ int lstat(char *path, struct stat *ub); }
360249423Sdim191	AUE_PATHCONF	STD	{ int pathconf(char *path, int name); }
361239310Sdim192	AUE_FPATHCONF	STD	{ int fpathconf(int fd, int name); }
362239310Sdim193	AUE_NULL	UNIMPL	nosys
363239310Sdim194	AUE_GETRLIMIT	STD	{ int getrlimit(u_int which, \
364239310Sdim				    struct rlimit *rlp); } getrlimit \
365239310Sdim				    __getrlimit_args int
366239310Sdim195	AUE_SETRLIMIT	STD	{ int setrlimit(u_int which, \
367239310Sdim				    struct rlimit *rlp); } setrlimit \
368239310Sdim				    __setrlimit_args int
369239310Sdim196	AUE_GETDIRENTRIES	STD	{ int getdirentries(int fd, char *buf, \
370239310Sdim				    u_int count, long *basep); }
371239310Sdim197	AUE_MMAP	STD	{ caddr_t freebsd6_mmap(caddr_t addr, \
372239310Sdim				    size_t len, int prot, int flags, int fd, \
373239310Sdim				    int pad, off_t pos); }
374239310Sdim198	AUE_NULL	STD	{ int nosys(void); } __syscall \
375239310Sdim				    __syscall_args int
376239310Sdim199	AUE_LSEEK	STD	{ off_t freebsd6_lseek(int fd, int pad, \
377239310Sdim				    off_t offset, int whence); }
378239310Sdim200	AUE_TRUNCATE	STD	{ int freebsd6_truncate(char *path, int pad, \
379239310Sdim				    off_t length); }
380239310Sdim201	AUE_FTRUNCATE	STD	{ int freebsd6_ftruncate(int fd, int pad, \
381239310Sdim				    off_t length); }
382239310Sdim202	AUE_SYSCTL	STD	{ int __sysctl(int *name, u_int namelen, \
383239310Sdim				    void *old, size_t *oldlenp, void *new, \
384249423Sdim				    size_t newlen); } __sysctl sysctl_args int
385239310Sdim203	AUE_MLOCK	STD	{ int mlock(const void *addr, size_t len); }
386239310Sdim204	AUE_MUNLOCK	STD	{ int munlock(const void *addr, size_t len); }
387239310Sdim205	AUE_UNDELETE	STD	{ int undelete(char *path); }
388239310Sdim206	AUE_FUTIMES	STD	{ int futimes(int fd, struct timeval *tptr); }
389239310Sdim207	AUE_GETPGID	STD	{ int getpgid(pid_t pid); }
390239310Sdim208	AUE_NULL	UNIMPL	newreboot (NetBSD)
391239310Sdim209	AUE_POLL	STD	{ int poll(struct pollfd *fds, u_int nfds, \
392239310Sdim				    int timeout); }
393239310Sdim
394239310Sdim;
395239310Sdim; The following are reserved for loadable syscalls
396239310Sdim;
397239310Sdim210	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
398239310Sdim211	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
399239310Sdim212	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
400239310Sdim213	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
401239310Sdim214	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
402239310Sdim215	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
403239310Sdim216	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
404239310Sdim217	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
405239310Sdim218	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
406239310Sdim219	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
407239310Sdim
408239310Sdim;
409239310Sdim; The following were introduced with NetBSD/4.4Lite-2
410239310Sdim220	AUE_SEMCTL	NOSTD	{ int __semctl(int semid, int semnum, \
411249423Sdim				    int cmd, union semun *arg); }
412239310Sdim221	AUE_SEMGET	NOSTD	{ int semget(key_t key, int nsems, \
413239310Sdim				    int semflg); }
414239310Sdim222	AUE_SEMOP	NOSTD	{ int semop(int semid, struct sembuf *sops, \
415239310Sdim				    size_t nsops); }
416239310Sdim223	AUE_NULL	UNIMPL	semconfig
417239310Sdim224	AUE_MSGCTL	NOSTD	{ int msgctl(int msqid, int cmd, \
418239310Sdim				    struct msqid_ds *buf); }
419239310Sdim225	AUE_MSGGET	NOSTD	{ int msgget(key_t key, int msgflg); }
420239310Sdim226	AUE_MSGSND	NOSTD	{ int msgsnd(int msqid, const void *msgp, \
421239310Sdim				    size_t msgsz, int msgflg); }
422239310Sdim227	AUE_MSGRCV	NOSTD	{ int msgrcv(int msqid, void *msgp, \
423239310Sdim				    size_t msgsz, long msgtyp, int msgflg); }
424239310Sdim228	AUE_SHMAT	NOSTD	{ int shmat(int shmid, const void *shmaddr, \
425239310Sdim				    int shmflg); }
426239310Sdim229	AUE_SHMCTL	NOSTD	{ int shmctl(int shmid, int cmd, \
427239310Sdim				    struct shmid_ds *buf); }
428239310Sdim230	AUE_SHMDT	NOSTD	{ int shmdt(const void *shmaddr); }
429239310Sdim231	AUE_SHMGET	NOSTD	{ int shmget(key_t key, size_t size, \
430239310Sdim				    int shmflg); }
431239310Sdim;
432239310Sdim232	AUE_NULL	STD	{ int clock_gettime(clockid_t clock_id, \
433239310Sdim				    struct timespec *tp); }
434249423Sdim233	AUE_CLOCK_SETTIME	STD	{ int clock_settime( \
435239310Sdim				    clockid_t clock_id, \
436239310Sdim				    const struct timespec *tp); }
437239310Sdim234	AUE_NULL	STD	{ int clock_getres(clockid_t clock_id, \
438239310Sdim				    struct timespec *tp); }
439239310Sdim235	AUE_NULL	STD	{ int ktimer_create(clockid_t clock_id, \
440239310Sdim				    struct sigevent *evp, int *timerid); }
441239310Sdim236	AUE_NULL	STD	{ int ktimer_delete(int timerid); }
442239310Sdim237	AUE_NULL	STD	{ int ktimer_settime(int timerid, int flags, \
443239310Sdim				    const struct itimerspec *value, \
444239310Sdim				    struct itimerspec *ovalue); }
445239310Sdim238	AUE_NULL	STD	{ int ktimer_gettime(int timerid, struct \
446239310Sdim				    itimerspec *value); }
447239310Sdim239	AUE_NULL	STD	{ int ktimer_getoverrun(int timerid); }
448239310Sdim240	AUE_NULL	STD	{ int nanosleep(const struct timespec *rqtp, \
449239310Sdim				    struct timespec *rmtp); }
450239310Sdim241	AUE_NULL	UNIMPL	nosys
451239310Sdim242	AUE_NULL	UNIMPL	nosys
452239310Sdim243	AUE_NULL	UNIMPL	nosys
453239310Sdim244	AUE_NULL	UNIMPL	nosys
454239310Sdim245	AUE_NULL	UNIMPL	nosys
455239310Sdim246	AUE_NULL	UNIMPL	nosys
456249423Sdim247	AUE_NULL	UNIMPL	nosys
457239310Sdim248	AUE_NULL	STD	{ int ntp_gettime(struct ntptimeval *ntvp); }
458239310Sdim249	AUE_NULL	UNIMPL	nosys
459239310Sdim; syscall numbers initially used in OpenBSD
460239310Sdim250	AUE_MINHERIT	STD	{ int minherit(void *addr, size_t len, \
461239310Sdim				    int inherit); }
462239310Sdim251	AUE_RFORK	STD	{ int rfork(int flags); }
463239310Sdim252	AUE_POLL	STD	{ int openbsd_poll(struct pollfd *fds, \
464239310Sdim				    u_int nfds, int timeout); }
465239310Sdim253	AUE_ISSETUGID	STD	{ int issetugid(void); }
466239310Sdim254	AUE_LCHOWN	STD	{ int lchown(char *path, int uid, int gid); }
467239310Sdim255	AUE_NULL	NOSTD	{ int aio_read(struct aiocb *aiocbp); }
468239310Sdim256	AUE_NULL	NOSTD	{ int aio_write(struct aiocb *aiocbp); }
469239310Sdim257	AUE_NULL	NOSTD	{ int lio_listio(int mode, \
470239310Sdim				    struct aiocb * const *acb_list, \
471239310Sdim				    int nent, struct sigevent *sig); }
472239310Sdim258	AUE_NULL	UNIMPL	nosys
473239310Sdim259	AUE_NULL	UNIMPL	nosys
474239310Sdim260	AUE_NULL	UNIMPL	nosys
475239310Sdim261	AUE_NULL	UNIMPL	nosys
476239310Sdim262	AUE_NULL	UNIMPL	nosys
477239310Sdim263	AUE_NULL	UNIMPL	nosys
478239310Sdim264	AUE_NULL	UNIMPL	nosys
479239310Sdim265	AUE_NULL	UNIMPL	nosys
480239310Sdim266	AUE_NULL	UNIMPL	nosys
481239310Sdim267	AUE_NULL	UNIMPL	nosys
482239310Sdim268	AUE_NULL	UNIMPL	nosys
483239310Sdim269	AUE_NULL	UNIMPL	nosys
484239310Sdim270	AUE_NULL	UNIMPL	nosys
485249423Sdim271	AUE_NULL	UNIMPL	nosys
486239310Sdim272	AUE_O_GETDENTS	STD	{ int getdents(int fd, char *buf, \
487239310Sdim				    size_t count); }
488239310Sdim273	AUE_NULL	UNIMPL	nosys
489239310Sdim274	AUE_LCHMOD	STD	{ int lchmod(char *path, mode_t mode); }
490239310Sdim275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
491239310Sdim				    gid_t gid); } netbsd_lchown lchown_args \
492239310Sdim				    int
493239310Sdim276	AUE_LUTIMES	STD	{ int lutimes(char *path, \
494239310Sdim				    struct timeval *tptr); }
495239310Sdim277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
496239310Sdim				    int flags); } netbsd_msync msync_args int
497239310Sdim278	AUE_STAT	STD	{ int nstat(char *path, struct nstat *ub); }
498239310Sdim279	AUE_FSTAT	STD	{ int nfstat(int fd, struct nstat *sb); }
499239310Sdim280	AUE_LSTAT	STD	{ int nlstat(char *path, struct nstat *ub); }
500239310Sdim281	AUE_NULL	UNIMPL	nosys
501239310Sdim282	AUE_NULL	UNIMPL	nosys
502239310Sdim283	AUE_NULL	UNIMPL	nosys
503239310Sdim284	AUE_NULL	UNIMPL	nosys
504239310Sdim285	AUE_NULL	UNIMPL	nosys
505239310Sdim286	AUE_NULL	UNIMPL	nosys
506239310Sdim287	AUE_NULL	UNIMPL	nosys
507239310Sdim288	AUE_NULL	UNIMPL	nosys
508239310Sdim; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
509249423Sdim289	AUE_PREADV	STD	{ ssize_t preadv(int fd, struct iovec *iovp, \
510239310Sdim					u_int iovcnt, off_t offset); }
511239310Sdim290	AUE_PWRITEV	STD	{ ssize_t pwritev(int fd, struct iovec *iovp, \
512239310Sdim					u_int iovcnt, off_t offset); }
513239310Sdim291	AUE_NULL	UNIMPL	nosys
514239310Sdim292	AUE_NULL	UNIMPL	nosys
515239310Sdim293	AUE_NULL	UNIMPL	nosys
516239310Sdim294	AUE_NULL	UNIMPL	nosys
517239310Sdim295	AUE_NULL	UNIMPL	nosys
518239310Sdim296	AUE_NULL	UNIMPL	nosys
519239310Sdim; XXX 297 is 300 in NetBSD 
520239310Sdim297	AUE_FHSTATFS	COMPAT4	{ int fhstatfs( \
521239310Sdim				    const struct fhandle *u_fhp, \
522239310Sdim				    struct ostatfs *buf); }
523239310Sdim298	AUE_FHOPEN	STD	{ int fhopen(const struct fhandle *u_fhp, \
524239310Sdim				    int flags); }
525239310Sdim299	AUE_FHSTAT	STD	{ int fhstat(const struct fhandle *u_fhp, \
526239310Sdim				    struct stat *sb); }
527239310Sdim; syscall numbers for FreeBSD
528239310Sdim300	AUE_NULL	STD	{ int modnext(int modid); }
529239310Sdim301	AUE_NULL	STD	{ int modstat(int modid, \
530239310Sdim				    struct module_stat *stat); }
531239310Sdim302	AUE_NULL	STD	{ int modfnext(int modid); }
532239310Sdim303	AUE_NULL	STD	{ int modfind(const char *name); }
533239310Sdim304	AUE_MODLOAD	STD	{ int kldload(const char *file); }
534249423Sdim305	AUE_MODUNLOAD	STD	{ int kldunload(int fileid); }
535239310Sdim306	AUE_NULL	STD	{ int kldfind(const char *file); }
536239310Sdim307	AUE_NULL	STD	{ int kldnext(int fileid); }
537239310Sdim308	AUE_NULL	STD	{ int kldstat(int fileid, struct \
538239310Sdim				    kld_file_stat* stat); }
539239310Sdim309	AUE_NULL	STD	{ int kldfirstmod(int fileid); }
540239310Sdim310	AUE_GETSID	STD	{ int getsid(pid_t pid); }
541239310Sdim311	AUE_SETRESUID	STD	{ int setresuid(uid_t ruid, uid_t euid, \
542239310Sdim				    uid_t suid); }
543239310Sdim312	AUE_SETRESGID	STD	{ int setresgid(gid_t rgid, gid_t egid, \
544239310Sdim				    gid_t sgid); }
545239310Sdim313	AUE_NULL	OBSOL	signanosleep
546239310Sdim314	AUE_NULL	NOSTD	{ int aio_return(struct aiocb *aiocbp); }
547239310Sdim315	AUE_NULL	NOSTD	{ int aio_suspend( \
548239310Sdim				    struct aiocb * const * aiocbp, int nent, \
549239310Sdim				    const struct timespec *timeout); }
550239310Sdim316	AUE_NULL	NOSTD	{ int aio_cancel(int fd, \
551239310Sdim				    struct aiocb *aiocbp); }
552239310Sdim317	AUE_NULL	NOSTD	{ int aio_error(struct aiocb *aiocbp); }
553239310Sdim318	AUE_NULL	NOSTD	{ int oaio_read(struct oaiocb *aiocbp); }
554239310Sdim319	AUE_NULL	NOSTD	{ int oaio_write(struct oaiocb *aiocbp); }
555239310Sdim320	AUE_NULL	NOSTD	{ int olio_listio(int mode, \
556239310Sdim				    struct oaiocb * const *acb_list, \
557239310Sdim				    int nent, struct osigevent *sig); }
558239310Sdim321	AUE_NULL	STD	{ int yield(void); }
559239310Sdim322	AUE_NULL	OBSOL	thr_sleep
560249423Sdim323	AUE_NULL	OBSOL	thr_wakeup
561239310Sdim324	AUE_MLOCKALL	STD	{ int mlockall(int how); }
562239310Sdim325	AUE_MUNLOCKALL	STD	{ int munlockall(void); }
563239310Sdim326	AUE_GETCWD	STD	{ int __getcwd(u_char *buf, u_int buflen); }
564239310Sdim
565239310Sdim327	AUE_NULL	STD	{ int sched_setparam (pid_t pid, \
566239310Sdim				    const struct sched_param *param); }
567239310Sdim328	AUE_NULL	STD	{ int sched_getparam (pid_t pid, struct \
568239310Sdim				    sched_param *param); }
569239310Sdim
570239310Sdim329	AUE_NULL	STD	{ int sched_setscheduler (pid_t pid, int \
571239310Sdim				    policy, const struct sched_param \
572239310Sdim				    *param); }
573239310Sdim330	AUE_NULL	STD	{ int sched_getscheduler (pid_t pid); }
574239310Sdim
575239310Sdim331	AUE_NULL	STD	{ int sched_yield (void); }
576239310Sdim332	AUE_NULL	STD	{ int sched_get_priority_max (int policy); }
577239310Sdim333	AUE_NULL	STD	{ int sched_get_priority_min (int policy); }
578239310Sdim334	AUE_NULL	STD	{ int sched_rr_get_interval (pid_t pid, \
579239310Sdim				    struct timespec *interval); }
580239310Sdim335	AUE_NULL	STD	{ int utrace(const void *addr, size_t len); }
581239310Sdim336	AUE_SENDFILE	COMPAT4	{ int sendfile(int fd, int s, \
582239310Sdim				    off_t offset, size_t nbytes, \
583239310Sdim				    struct sf_hdtr *hdtr, off_t *sbytes, \
584239310Sdim				    int flags); }
585239310Sdim337	AUE_NULL	STD	{ int kldsym(int fileid, int cmd, \
586239310Sdim				    void *data); }
587249423Sdim338	AUE_JAIL	STD	{ int jail(struct jail *jail); }
588239310Sdim339	AUE_NULL	UNIMPL	pioctl
589239310Sdim340	AUE_SIGPROCMASK	STD	{ int sigprocmask(int how, \
590239310Sdim				    const sigset_t *set, sigset_t *oset); }
591239310Sdim341	AUE_SIGSUSPEND	STD	{ int sigsuspend(const sigset_t *sigmask); }
592239310Sdim342	AUE_SIGACTION	COMPAT4	{ int sigaction(int sig, const \
593239310Sdim				    struct sigaction *act, \
594239310Sdim				    struct sigaction *oact); }
595239310Sdim343	AUE_SIGPENDING	STD	{ int sigpending(sigset_t *set); }
596239310Sdim344	AUE_SIGRETURN	COMPAT4	{ int sigreturn( \
597239310Sdim				    const struct ucontext4 *sigcntxp); }
598239310Sdim345	AUE_SIGWAIT	STD	{ int sigtimedwait(const sigset_t *set, \
599239310Sdim				    siginfo_t *info, \
600239310Sdim				    const struct timespec *timeout); }
601239310Sdim346	AUE_NULL	STD	{ int sigwaitinfo(const sigset_t *set, \
602239310Sdim				    siginfo_t *info); }
603239310Sdim347	AUE_NULL	STD	{ int __acl_get_file(const char *path, \
604239310Sdim				    acl_type_t type, struct acl *aclp); }
605239310Sdim348	AUE_NULL	STD	{ int __acl_set_file(const char *path, \
606239310Sdim				    acl_type_t type, struct acl *aclp); }
607239310Sdim349	AUE_NULL	STD	{ int __acl_get_fd(int filedes, \
608239310Sdim				    acl_type_t type, struct acl *aclp); }
609239310Sdim350	AUE_NULL	STD	{ int __acl_set_fd(int filedes, \
610239310Sdim				    acl_type_t type, struct acl *aclp); }
611239310Sdim351	AUE_NULL	STD	{ int __acl_delete_file(const char *path, \
612249423Sdim				    acl_type_t type); }
613239310Sdim352	AUE_NULL	STD	{ int __acl_delete_fd(int filedes, \
614239310Sdim				    acl_type_t type); }
615239310Sdim353	AUE_NULL	STD	{ int __acl_aclcheck_file(const char *path, \
616239310Sdim				    acl_type_t type, struct acl *aclp); }
617239310Sdim354	AUE_NULL	STD	{ int __acl_aclcheck_fd(int filedes, \
618239310Sdim				    acl_type_t type, struct acl *aclp); }
619239310Sdim355	AUE_EXTATTRCTL	STD	{ int extattrctl(const char *path, int cmd, \
620239310Sdim				    const char *filename, int attrnamespace, \
621239310Sdim				    const char *attrname); }
622239310Sdim356	AUE_EXTATTR_SET_FILE	STD	{ int extattr_set_file( \
623239310Sdim				    const char *path, int attrnamespace, \
624239310Sdim				    const char *attrname, void *data, \
625239310Sdim				    size_t nbytes); }
626239310Sdim357	AUE_EXTATTR_GET_FILE	STD	{ ssize_t extattr_get_file( \
627239310Sdim				    const char *path, int attrnamespace, \
628239310Sdim				    const char *attrname, void *data, \
629239310Sdim				    size_t nbytes); }
630239310Sdim358	AUE_EXTATTR_DELETE_FILE	STD	{ int extattr_delete_file(const char *path, \
631239310Sdim				    int attrnamespace, \
632239310Sdim				    const char *attrname); }
633239310Sdim359	AUE_NULL	NOSTD	{ int aio_waitcomplete( \
634239310Sdim				    struct aiocb **aiocbp, \
635239310Sdim				    struct timespec *timeout); }
636239310Sdim360	AUE_GETRESUID	STD	{ int getresuid(uid_t *ruid, uid_t *euid, \
637239310Sdim				    uid_t *suid); }
638239310Sdim361	AUE_GETRESGID	STD	{ int getresgid(gid_t *rgid, gid_t *egid, \
639239310Sdim				    gid_t *sgid); }
640239310Sdim362	AUE_KQUEUE	STD	{ int kqueue(void); }
641363	AUE_NULL	STD	{ int kevent(int fd, \
642				    struct kevent *changelist, int nchanges, \
643				    struct kevent *eventlist, int nevents, \
644				    const struct timespec *timeout); }
645364	AUE_NULL	UNIMPL	__cap_get_proc
646365	AUE_NULL	UNIMPL	__cap_set_proc
647366	AUE_NULL	UNIMPL	__cap_get_fd
648367	AUE_NULL	UNIMPL	__cap_get_file
649368	AUE_NULL	UNIMPL	__cap_set_fd
650369	AUE_NULL	UNIMPL	__cap_set_file
651370	AUE_NULL	NODEF	lkmressys lkmressys nosys_args int
652371	AUE_EXTATTR_SET_FD	STD	{ int extattr_set_fd(int fd, \
653				    int attrnamespace, const char *attrname, \
654				    void *data, size_t nbytes); }
655372	AUE_EXTATTR_GET_FD	STD	{ ssize_t extattr_get_fd(int fd, \
656				    int attrnamespace, const char *attrname, \
657				    void *data, size_t nbytes); }
658373	AUE_EXTATTR_DELETE_FD	STD	{ int extattr_delete_fd(int fd, \
659				    int attrnamespace, \
660				    const char *attrname); }
661374	AUE_NULL	STD	{ int __setugid(int flag); }
662375	AUE_NULL	NOIMPL	{ int nfsclnt(int flag, caddr_t argp); }
663376	AUE_EACCESS	STD	{ int eaccess(char *path, int flags); }
664377	AUE_NULL	UNIMPL	afs_syscall
665378	AUE_NMOUNT	STD	{ int nmount(struct iovec *iovp, \
666				    unsigned int iovcnt, int flags); }
667379	AUE_NULL	STD	{ int kse_exit(void); }
668380	AUE_NULL	STD	{ int kse_wakeup(struct kse_mailbox *mbx); }
669381	AUE_NULL	STD	{ int kse_create(struct kse_mailbox *mbx, \
670				    int newgroup); }
671382	AUE_NULL	STD	{ int kse_thr_interrupt( \
672				    struct kse_thr_mailbox *tmbx, int cmd, \
673				    long data); }
674383	AUE_NULL	STD	{ int kse_release(struct timespec *timeout); }
675384	AUE_NULL	STD	{ int __mac_get_proc(struct mac *mac_p); }
676385	AUE_NULL	STD	{ int __mac_set_proc(struct mac *mac_p); }
677386	AUE_NULL	STD	{ int __mac_get_fd(int fd, \
678				    struct mac *mac_p); }
679387	AUE_NULL	STD	{ int __mac_get_file(const char *path_p, \
680				    struct mac *mac_p); }
681388	AUE_NULL	STD	{ int __mac_set_fd(int fd, \
682				    struct mac *mac_p); }
683389	AUE_NULL	STD	{ int __mac_set_file(const char *path_p, \
684				    struct mac *mac_p); }
685390	AUE_NULL	STD	{ int kenv(int what, const char *name, \
686				    char *value, int len); }
687391	AUE_LCHFLAGS	STD	{ int lchflags(const char *path, int flags); }
688392	AUE_NULL	STD	{ int uuidgen(struct uuid *store, \
689				    int count); }
690393	AUE_SENDFILE	STD	{ int sendfile(int fd, int s, off_t offset, \
691				    size_t nbytes, struct sf_hdtr *hdtr, \
692				    off_t *sbytes, int flags); }
693394	AUE_NULL	STD	{ int mac_syscall(const char *policy, \
694				    int call, void *arg); }
695395	AUE_GETFSSTAT	STD	{ int getfsstat(struct statfs *buf, \
696				    long bufsize, int flags); }
697396	AUE_STATFS	STD	{ int statfs(char *path, \
698				    struct statfs *buf); }
699397	AUE_FSTATFS	STD	{ int fstatfs(int fd, struct statfs *buf); }
700398	AUE_FHSTATFS	STD	{ int fhstatfs(const struct fhandle *u_fhp, \
701				    struct statfs *buf); }
702399	AUE_NULL	UNIMPL	nosys
703400	AUE_NULL	NOSTD	{ int ksem_close(semid_t id); }
704401	AUE_NULL	NOSTD	{ int ksem_post(semid_t id); }
705402	AUE_NULL	NOSTD	{ int ksem_wait(semid_t id); }
706403	AUE_NULL	NOSTD	{ int ksem_trywait(semid_t id); }
707404	AUE_NULL	NOSTD	{ int ksem_init(semid_t *idp, \
708				    unsigned int value); }
709405	AUE_NULL	NOSTD	{ int ksem_open(semid_t *idp, \
710				    const char *name, int oflag, \
711				    mode_t mode, unsigned int value); }
712406	AUE_NULL	NOSTD	{ int ksem_unlink(const char *name); }
713407	AUE_NULL	NOSTD	{ int ksem_getvalue(semid_t id, int *val); }
714408	AUE_NULL	NOSTD	{ int ksem_destroy(semid_t id); }
715409	AUE_NULL	STD	{ int __mac_get_pid(pid_t pid, \
716				    struct mac *mac_p); }
717410	AUE_NULL	STD	{ int __mac_get_link(const char *path_p, \
718				    struct mac *mac_p); }
719411	AUE_NULL	STD	{ int __mac_set_link(const char *path_p, \
720				    struct mac *mac_p); }
721412	AUE_EXTATTR_SET_LINK	STD	{ int extattr_set_link( \
722				    const char *path, int attrnamespace, \
723				    const char *attrname, void *data, \
724				    size_t nbytes); }
725413	AUE_EXTATTR_GET_LINK	STD	{ ssize_t extattr_get_link( \
726				    const char *path, int attrnamespace, \
727				    const char *attrname, void *data, \
728				    size_t nbytes); }
729414	AUE_EXTATTR_DELETE_LINK	STD	{ int extattr_delete_link( \
730				    const char *path, int attrnamespace, \
731				    const char *attrname); }
732415	AUE_NULL	STD	{ int __mac_execve(char *fname, char **argv, \
733				    char **envv, struct mac *mac_p); }
734416	AUE_SIGACTION	STD	{ int sigaction(int sig, \
735				    const struct sigaction *act, \
736				    struct sigaction *oact); }
737417	AUE_SIGRETURN	STD	{ int sigreturn( \
738				    const struct __ucontext *sigcntxp); }
739418	AUE_NULL	UNIMPL	__xstat
740419	AUE_NULL	UNIMPL	__xfstat
741420	AUE_NULL	UNIMPL	__xlstat
742421	AUE_NULL	STD	{ int getcontext(struct __ucontext *ucp); }
743422	AUE_NULL	STD	{ int setcontext( \
744				    const struct __ucontext *ucp); }
745423	AUE_NULL	STD	{ int swapcontext(struct __ucontext *oucp, \
746				    const struct __ucontext *ucp); }
747424	AUE_SWAPOFF	STD	{ int swapoff(const char *name); }
748425	AUE_NULL	STD	{ int __acl_get_link(const char *path, \
749				    acl_type_t type, struct acl *aclp); }
750426	AUE_NULL	STD	{ int __acl_set_link(const char *path, \
751				    acl_type_t type, struct acl *aclp); }
752427	AUE_NULL	STD	{ int __acl_delete_link(const char *path, \
753				    acl_type_t type); }
754428	AUE_NULL	STD	{ int __acl_aclcheck_link(const char *path, \
755				    acl_type_t type, struct acl *aclp); }
756429	AUE_SIGWAIT	STD	{ int sigwait(const sigset_t *set, \
757				    int *sig); }
758430	AUE_NULL	STD	{ int thr_create(ucontext_t *ctx, long *id, \
759				    int flags); }
760431	AUE_NULL	STD	{ void thr_exit(long *state); }
761432	AUE_NULL	STD	{ int thr_self(long *id); }
762433	AUE_NULL	STD	{ int thr_kill(long id, int sig); }
763434	AUE_NULL	STD	{ int _umtx_lock(struct umtx *umtx); }
764435	AUE_NULL	STD	{ int _umtx_unlock(struct umtx *umtx); }
765436	AUE_NULL	STD	{ int jail_attach(int jid); }
766437	AUE_EXTATTR_LIST_FD	STD	{ ssize_t extattr_list_fd(int fd, \
767				    int attrnamespace, void *data, \
768				    size_t nbytes); }
769438	AUE_EXTATTR_LIST_FILE	STD	{ ssize_t extattr_list_file( \
770				    const char *path, int attrnamespace, \
771				    void *data, size_t nbytes); }
772439	AUE_EXTATTR_LIST_LINK	STD	{ ssize_t extattr_list_link( \
773				    const char *path, int attrnamespace, \
774				    void *data, size_t nbytes); }
775440	AUE_NULL	STD	{ int kse_switchin( \
776				    struct kse_thr_mailbox *tmbx, \
777				    int flags); }
778441	AUE_NULL	NOSTD	{ int ksem_timedwait(semid_t id, \
779				    const struct timespec *abstime); }
780442	AUE_NULL	STD	{ int thr_suspend( \
781				    const struct timespec *timeout); }
782443	AUE_NULL	STD	{ int thr_wake(long id); }
783444	AUE_MODUNLOAD	STD	{ int kldunloadf(int fileid, int flags); }
784445	AUE_AUDIT	STD	{ int audit(const void *record, \
785				    u_int length); }
786446	AUE_AUDITON	STD	{ int auditon(int cmd, void *data, \
787				    u_int length); }
788447	AUE_GETAUID	STD	{ int getauid(uid_t *auid); }
789448	AUE_SETAUID	STD	{ int setauid(uid_t *auid); }
790449	AUE_GETAUDIT	STD	{ int getaudit(struct auditinfo *auditinfo); }
791450	AUE_SETAUDIT	STD	{ int setaudit(struct auditinfo *auditinfo); }
792451	AUE_GETAUDIT_ADDR	STD	{ int getaudit_addr( \
793				    struct auditinfo_addr *auditinfo_addr, \
794				    u_int length); }
795452	AUE_SETAUDIT_ADDR	STD	{ int setaudit_addr( \
796				    struct auditinfo_addr *auditinfo_addr, \
797				    u_int length); }
798453	AUE_AUDITCTL	STD	{ int auditctl(char *path); }
799454	AUE_NULL	STD	{ int _umtx_op(void *obj, int op, \
800				    u_long val, void *uaddr1, void *uaddr2); }
801455	AUE_NULL	STD	{ int thr_new(struct thr_param *param, \
802				    int param_size); }
803456	AUE_NULL	STD	{ int sigqueue(pid_t pid, int signum, void *value); }
804457	AUE_NULL	NOSTD	{ int kmq_open(const char *path, int flags, \
805				    mode_t mode, const struct mq_attr *attr); }
806458	AUE_NULL	NOSTD	{ int kmq_setattr(int mqd,		\
807				    const struct mq_attr *attr,		\
808				    struct mq_attr *oattr); }
809459	AUE_NULL	NOSTD	{ int kmq_timedreceive(int mqd,	\
810				    char *msg_ptr, size_t msg_len,	\
811				    unsigned *msg_prio,			\
812				    const struct timespec *abs_timeout); }
813460	AUE_NULL	NOSTD	{ int kmq_timedsend(int mqd,		\
814				    const char *msg_ptr, size_t msg_len,\
815				    unsigned msg_prio,			\
816				    const struct timespec *abs_timeout);}
817461	AUE_NULL	NOSTD	{ int kmq_notify(int mqd,		\
818				    const struct sigevent *sigev); }
819462	AUE_NULL	NOSTD	{ int kmq_unlink(const char *path); }
820463	AUE_NULL	STD	{ int abort2(const char *why, int nargs, void **args); }
821464	AUE_NULL	STD	{ int thr_set_name(long id, const char *name); }
822465	AUE_NULL	NOSTD	{ int aio_fsync(int op, struct aiocb *aiocbp); }
823466	AUE_RTPRIO	STD	{ int rtprio_thread(int function, \
824				    lwpid_t lwpid, struct rtprio *rtp); }
825467	AUE_NULL	UNIMPL	nosys
826468	AUE_NULL	UNIMPL	nosys
827469	AUE_NULL	UNIMPL	__getpath_fromfd
828470	AUE_NULL	UNIMPL	__getpath_fromaddr
829471	AUE_NULL	STD	{ int sctp_peeloff(int sd, uint32_t name); }
830472     AUE_NULL        STD    { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
831	                            caddr_t to, __socklen_t tolen, \
832				    struct sctp_sndrcvinfo *sinfo, int flags); }
833473     AUE_NULL        STD    { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
834	                            caddr_t to, __socklen_t tolen, \
835				    struct sctp_sndrcvinfo *sinfo, int flags); }
836474     AUE_NULL        STD    { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
837				    struct sockaddr * from, __socklen_t *fromlenaddr, \
838				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
839475	AUE_PREAD	STD	{ ssize_t pread(int fd, void *buf, \
840				    size_t nbyte, off_t offset); }
841476	AUE_PWRITE	STD	{ ssize_t pwrite(int fd, const void *buf, \
842				    size_t nbyte, off_t offset); }
843477	AUE_MMAP	STD	{ caddr_t mmap(caddr_t addr, size_t len, \
844				    int prot, int flags, int fd, off_t pos); }
845478	AUE_LSEEK	STD	{ off_t lseek(int fd, off_t offset, \
846				    int whence); }
847479	AUE_TRUNCATE	STD	{ int truncate(char *path, off_t length); }
848480	AUE_FTRUNCATE	STD	{ int ftruncate(int fd, off_t length); }
849481	AUE_KILL	STD	{ int thr_kill2(pid_t pid, long id, int sig); }
850482	AUE_SHMOPEN	STD	{ int shm_open(const char *path, int flags, \
851				    mode_t mode); }
852483	AUE_SHMUNLINK	STD	{ int shm_unlink(const char *path); }
853; Please copy any additions and changes to the following compatability tables:
854; sys/compat/freebsd32/syscalls.master
855