syscalls.master revision 156134
150477Speter $FreeBSD: head/sys/kern/syscalls.master 156134 2006-03-01 06:29:34Z davidxu $
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
7155199Srwatson; Columns: number audit [M]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.
1482585Sdillon;	type	one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
15146783Srwatson;		[M]LIBCOMPAT, [M]NODEF, [M]NOARGS, [M]NOPROTO, [M]NOIMPL,
1699855Salfred;		[M]NOSTD, [M]COMPAT4
1711294Sswallace;	name	psuedo-prototype of syscall routine
1810905Sbde;		If one of the following alts is different, then all appear:
191541Srgrimes;	altname	name of system call if different
2010905Sbde;	alttag	name of args struct tag if different from [o]`name'"_args"
2110905Sbde;	altrtyp	return type if not int (bogus - syscalls always return int)
221541Srgrimes;		for UNIMPL/OBSOL, name continues with comments
231541Srgrimes
241541Srgrimes; types:
2582585Sdillon;	[M]	e.g. like MSTD -- means the system call is MP-safe.  If no
2682585Sdillon;		M prefix is used, the syscall wrapper will obtain the Giant
2782585Sdillon;		lock for the syscall.
281541Srgrimes;	STD	always included
291541Srgrimes;	COMPAT	included on COMPAT #ifdef
3099855Salfred;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
311541Srgrimes;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
321541Srgrimes;	OBSOL	obsolete, not included in system, only specifies name
331541Srgrimes;	UNIMPL	not implemented, placeholder only
3469449Salfred;	NOSTD	implemented but as a lkm that can be statically
3569449Salfred;			compiled in sysent entry will be filled with lkmsys
3669449Salfred;			so the SYSCALL_MODULE macro works
37104747Srwatson;
38104747Srwatson; Please copy any additions and changes to the following compatability tables:
39123408Speter; sys/compat/freebsd32/syscalls.master
40123408Speter
411541Srgrimes; #ifdef's, etc. may be included, and are copied to the output files.
421541Srgrimes
4311294Sswallace#include <sys/param.h>
4411294Sswallace#include <sys/sysent.h>
4511294Sswallace#include <sys/sysproto.h>
4611294Sswallace
471541Srgrimes; Reserved/unimplemented system calls in the range 0-150 inclusive
481541Srgrimes; are reserved for use in future Berkeley releases.
491541Srgrimes; Additional system calls implemented in vendor and other
501541Srgrimes; redistributions should be placed in the reserved range at the end
511541Srgrimes; of the current calls.
521541Srgrimes
53146806Srwatson0	AUE_NULL	MSTD	{ int nosys(void); } syscall nosys_args int
54155249Srwatson1	AUE_EXIT	MSTD	{ void sys_exit(int rval); } exit \
55146806Srwatson				    sys_exit_args void
56155249Srwatson2	AUE_FORK	MSTD	{ int fork(void); }
57146806Srwatson3	AUE_NULL	MSTD	{ ssize_t read(int fd, void *buf, \
58146806Srwatson				    size_t nbyte); }
59146806Srwatson4	AUE_NULL	MSTD	{ ssize_t write(int fd, const void *buf, \
60146806Srwatson				    size_t nbyte); }
61155249Srwatson5	AUE_OPEN_RWTC	MSTD	{ int open(char *path, int flags, int mode); }
6212216Sbde; XXX should be		{ int open(const char *path, int flags, ...); }
6312216Sbde; but we're not ready for `const' or varargs.
6412216Sbde; XXX man page says `mode_t mode'.
65155249Srwatson6	AUE_CLOSE	MSTD	{ int close(int fd); }
66155249Srwatson7	AUE_WAIT4	MSTD	{ int wait4(int pid, int *status, \
67146806Srwatson				    int options, struct rusage *rusage); } \
68146806Srwatson				    wait4 wait_args int
69155249Srwatson8	AUE_O_CREAT	MCOMPAT	{ int creat(char *path, int mode); }
70155249Srwatson9	AUE_LINK	MSTD	{ int link(char *path, char *link); }
71155249Srwatson10	AUE_UNLINK	MSTD	{ int unlink(char *path); }
72146806Srwatson11	AUE_NULL	OBSOL	execv
73155249Srwatson12	AUE_CHDIR	MSTD	{ int chdir(char *path); }
74155249Srwatson13	AUE_FCHDIR	MSTD	{ int fchdir(int fd); }
75155249Srwatson14	AUE_MKNOD	MSTD	{ int mknod(char *path, int mode, int dev); }
76155249Srwatson15	AUE_CHMOD	MSTD	{ int chmod(char *path, int mode); }
77155249Srwatson16	AUE_CHOWN	MSTD	{ int chown(char *path, int uid, int gid); }
78146806Srwatson17	AUE_NULL	MSTD	{ int obreak(char *nsize); } break \
79146806Srwatson				    obreak_args int
80155249Srwatson18	AUE_GETFSSTAT	MCOMPAT4	{ int getfsstat(struct ostatfs *buf, \
81146806Srwatson				    long bufsize, int flags); }
82155249Srwatson19	AUE_LSEEK	MCOMPAT	{ long lseek(int fd, long offset, \
83146806Srwatson				    int whence); }
84155249Srwatson20	AUE_GETPID	MSTD	{ pid_t getpid(void); }
85155249Srwatson21	AUE_MOUNT	STD	{ int mount(char *type, char *path, \
86146806Srwatson				    int flags, caddr_t data); }
8712216Sbde; XXX `path' should have type `const char *' but we're not ready for that.
88155249Srwatson22	AUE_UMOUNT	STD	{ int unmount(char *path, int flags); }
89155249Srwatson23	AUE_SETUID	MSTD	{ int setuid(uid_t uid); }
90155249Srwatson24	AUE_GETUID	MSTD	{ uid_t getuid(void); }
91155249Srwatson25	AUE_GETEUID	MSTD	{ uid_t geteuid(void); }
92155249Srwatson26	AUE_PTRACE	MSTD	{ int ptrace(int req, pid_t pid, \
93146806Srwatson				    caddr_t addr, int data); }
94155249Srwatson27	AUE_RECVMSG	MSTD	{ int recvmsg(int s, struct msghdr *msg, \
95146806Srwatson				    int flags); }
96155249Srwatson28	AUE_SENDMSG	MSTD	{ int sendmsg(int s, struct msghdr *msg, \
97146806Srwatson				    int flags); }
98155249Srwatson29	AUE_RECVFROM	MSTD	{ int recvfrom(int s, caddr_t buf, \
99146806Srwatson				    size_t len, int flags, \
100146806Srwatson				    struct sockaddr * __restrict from, \
101146806Srwatson				    __socklen_t * __restrict fromlenaddr); }
102155249Srwatson30	AUE_ACCEPT	MSTD	{ int accept(int s, \
103146806Srwatson				    struct sockaddr * __restrict name, \
104146806Srwatson				    __socklen_t * __restrict anamelen); }
105155249Srwatson31	AUE_GETPEERNAME	MSTD	{ int getpeername(int fdes, \
106146806Srwatson				    struct sockaddr * __restrict asa, \
107146806Srwatson				    __socklen_t * __restrict alen); }
108155249Srwatson32	AUE_GETSOCKNAME	MSTD	{ int getsockname(int fdes, \
109146806Srwatson				    struct sockaddr * __restrict asa, \
110146806Srwatson				    __socklen_t * __restrict alen); }
111155249Srwatson33	AUE_ACCESS	MSTD	{ int access(char *path, int flags); }
112155249Srwatson34	AUE_CHFLAGS	MSTD	{ int chflags(char *path, int flags); }
113155249Srwatson35	AUE_FCHFLAGS	MSTD	{ int fchflags(int fd, int flags); }
114155249Srwatson36	AUE_SYNC	MSTD	{ int sync(void); }
115155249Srwatson37	AUE_KILL	MSTD	{ int kill(int pid, int signum); }
116155249Srwatson38	AUE_STAT	MCOMPAT	{ int stat(char *path, struct ostat *ub); }
117155249Srwatson39	AUE_GETPPID	MSTD	{ pid_t getppid(void); }
118155249Srwatson40	AUE_LSTAT	MCOMPAT	{ int lstat(char *path, struct ostat *ub); }
119155249Srwatson41	AUE_DUP		MSTD	{ int dup(u_int fd); }
120155249Srwatson42	AUE_PIPE	MSTD	{ int pipe(void); }
121155249Srwatson43	AUE_GETEGID	MSTD	{ gid_t getegid(void); }
122155249Srwatson44	AUE_PROFILE	MSTD	{ int profil(caddr_t samples, size_t size, \
123146806Srwatson				    size_t offset, u_int scale); }
124155249Srwatson45	AUE_KTRACE	MSTD	{ int ktrace(const char *fname, int ops, \
125146806Srwatson				    int facs, int pid); }
126155249Srwatson46	AUE_SIGACTION	MCOMPAT	{ int sigaction(int signum, \
127146806Srwatson				    struct osigaction *nsa, \
128146806Srwatson				    struct osigaction *osa); }
129155249Srwatson47	AUE_GETGID	MSTD	{ gid_t getgid(void); }
130155249Srwatson48	AUE_SIGPROCMASK	MCOMPAT	{ int sigprocmask(int how, osigset_t mask); }
13121776Sbde; XXX note nonstandard (bogus) calling convention - the libc stub passes
13221776Sbde; us the mask, not a pointer to it, and we return the old mask as the
13321776Sbde; (int) return value.
134155249Srwatson49	AUE_GETLOGIN	MSTD	{ int getlogin(char *namebuf, u_int \
135146806Srwatson				    namelen); }
136155249Srwatson50	AUE_SETLOGIN	MSTD	{ int setlogin(char *namebuf); }
137155249Srwatson51	AUE_ACCT	MSTD	{ int acct(char *path); }
138155249Srwatson52	AUE_SIGPENDING	MCOMPAT	{ int sigpending(void); }
139155249Srwatson53	AUE_SIGPENDING	MSTD	{ int sigaltstack(stack_t *ss, \
140146806Srwatson				    stack_t *oss); }
141155249Srwatson54	AUE_IOCTL	MSTD	{ int ioctl(int fd, u_long com, \
142146806Srwatson				    caddr_t data); }
143155249Srwatson55	AUE_REBOOT	MSTD	{ int reboot(int opt); }
144155249Srwatson56	AUE_REVOKE	MSTD	{ int revoke(char *path); }
145155249Srwatson57	AUE_SYMLINK	MSTD	{ int symlink(char *path, char *link); }
146155249Srwatson58	AUE_READLINK	MSTD	{ int readlink(char *path, char *buf, \
147146806Srwatson				    int count); }
148155249Srwatson59	AUE_EXECVE	MSTD	{ int execve(char *fname, char **argv, \
149146806Srwatson				    char **envv); }
150155249Srwatson60	AUE_UMASK	MSTD	{ int umask(int newmask); } umask umask_args \
151146806Srwatson				    int
152155249Srwatson61	AUE_CHROOT	MSTD	{ int chroot(char *path); }
153155249Srwatson62	AUE_FSTAT	MCOMPAT	{ int fstat(int fd, struct ostat *sb); }
154146806Srwatson63	AUE_NULL	MCOMPAT	{ int getkerninfo(int op, char *where, \
155146806Srwatson				    size_t *size, int arg); } getkerninfo \
156146806Srwatson				    getkerninfo_args int
157155249Srwatson64	AUE_O_GETPAGESIZE	MCOMPAT	{ int getpagesize(void); } getpagesize \
158146806Srwatson				    getpagesize_args int
159155249Srwatson65	AUE_MSYNC	MSTD	{ int msync(void *addr, size_t len, \
160146806Srwatson				    int flags); }
161155249Srwatson66	AUE_VFORK	MSTD	{ int vfork(void); }
162146806Srwatson67	AUE_NULL	OBSOL	vread
163146806Srwatson68	AUE_NULL	OBSOL	vwrite
164155249Srwatson69	AUE_SBRK	MSTD	{ int sbrk(int incr); }
165155249Srwatson70	AUE_SSTK	MSTD	{ int sstk(int incr); }
166155249Srwatson71	AUE_MMAP	MCOMPAT	{ int mmap(void *addr, int len, int prot, \
167146806Srwatson				    int flags, int fd, long pos); }
168155249Srwatson72	AUE_O_VADVISE	MSTD	{ int ovadvise(int anom); } vadvise \
169146806Srwatson				    ovadvise_args int
170155249Srwatson73	AUE_MUNMAP	MSTD	{ int munmap(void *addr, size_t len); }
171155249Srwatson74	AUE_MPROTECT	MSTD	{ int mprotect(const void *addr, size_t len, \
172146806Srwatson				    int prot); }
173155249Srwatson75	AUE_MADVISE	MSTD	{ int madvise(void *addr, size_t len, \
174146806Srwatson				    int behav); }
175146806Srwatson76	AUE_NULL	OBSOL	vhangup
176146806Srwatson77	AUE_NULL	OBSOL	vlimit
177155249Srwatson78	AUE_MINCORE	MSTD	{ int mincore(const void *addr, size_t len, \
178146806Srwatson				    char *vec); }
179155249Srwatson79	AUE_GETGROUPS	MSTD	{ int getgroups(u_int gidsetsize, \
180146806Srwatson				    gid_t *gidset); }
181155249Srwatson80	AUE_SETGROUPS	MSTD	{ int setgroups(u_int gidsetsize, \
182146806Srwatson				    gid_t *gidset); }
183155249Srwatson81	AUE_GETPGRP	MSTD	{ int getpgrp(void); }
184155249Srwatson82	AUE_SETPGRP	MSTD	{ int setpgid(int pid, int pgid); }
185155249Srwatson83	AUE_SETITIMER	MSTD	{ int setitimer(u_int which, struct \
186146806Srwatson				    itimerval *itv, struct itimerval *oitv); }
187155377Srwatson84	AUE_WAIT4	MCOMPAT	{ int wait(void); }
188155249Srwatson85	AUE_SWAPON	MSTD	{ int swapon(char *name); }
189155249Srwatson86	AUE_GETITIMER	MSTD	{ int getitimer(u_int which, \
190146806Srwatson				    struct itimerval *itv); }
191155377Srwatson87	AUE_SYSCTL	MCOMPAT	{ int gethostname(char *hostname, \
192146806Srwatson				    u_int len); } gethostname \
193146806Srwatson				    gethostname_args int
194155377Srwatson88	AUE_SYSCTL	MCOMPAT	{ int sethostname(char *hostname, \
195146806Srwatson				    u_int len); } sethostname \
196146806Srwatson				    sethostname_args int
197155249Srwatson89	AUE_GETDTABLESIZE	MSTD	{ int getdtablesize(void); }
198155249Srwatson90	AUE_DUP2	MSTD	{ int dup2(u_int from, u_int to); }
199146806Srwatson91	AUE_NULL	UNIMPL	getdopt
200155249Srwatson92	AUE_FCNTL	MSTD	{ int fcntl(int fd, int cmd, long arg); }
201123750Speter; XXX should be	{ int fcntl(int fd, int cmd, ...); }
20212216Sbde; but we're not ready for varargs.
203155249Srwatson93	AUE_SELECT	MSTD	{ int select(int nd, fd_set *in, fd_set *ou, \
204146806Srwatson				    fd_set *ex, struct timeval *tv); }
205146806Srwatson94	AUE_NULL	UNIMPL	setdopt
206155249Srwatson95	AUE_FSYNC	MSTD	{ int fsync(int fd); }
207155249Srwatson96	AUE_SETPRIORITY	MSTD	{ int setpriority(int which, int who, \
208146806Srwatson				    int prio); }
209155249Srwatson97	AUE_SOCKET	MSTD	{ int socket(int domain, int type, \
210146806Srwatson				    int protocol); }
211155249Srwatson98	AUE_CONNECT	MSTD	{ int connect(int s, caddr_t name, \
212146806Srwatson				    int namelen); }
213155249Srwatson99	AUE_ACCEPT	MCPT_NOA { int accept(int s, caddr_t name, \
214146806Srwatson				    int *anamelen); } accept accept_args int
215155249Srwatson100	AUE_GETPRIORITY	MSTD	{ int getpriority(int which, int who); }
216155377Srwatson101	AUE_SEND	MCOMPAT	{ int send(int s, caddr_t buf, int len, \
217146806Srwatson				    int flags); }
218155377Srwatson102	AUE_RECV	MCOMPAT	{ int recv(int s, caddr_t buf, int len, \
219146806Srwatson				    int flags); }
220155249Srwatson103	AUE_SIGRETURN	MCOMPAT	{ int sigreturn( \
221146806Srwatson				    struct osigcontext *sigcntxp); }
222155249Srwatson104	AUE_BIND	MSTD	{ int bind(int s, caddr_t name, \
223146806Srwatson				    int namelen); }
224155249Srwatson105	AUE_SETSOCKOPT	MSTD	{ int setsockopt(int s, int level, int name, \
225146806Srwatson				    caddr_t val, int valsize); }
226155249Srwatson106	AUE_LISTEN	MSTD	{ int listen(int s, int backlog); }
227146806Srwatson107	AUE_NULL	OBSOL	vtimes
228155377Srwatson108	AUE_NULL	MCOMPAT	{ int sigvec(int signum, struct sigvec *nsv, \
229146806Srwatson				    struct sigvec *osv); }
230155377Srwatson109	AUE_NULL	MCOMPAT	{ int sigblock(int mask); }
231155377Srwatson110	AUE_NULL	MCOMPAT	{ int sigsetmask(int mask); }
232155377Srwatson111	AUE_NULL	MCOMPAT	{ int sigsuspend(osigset_t mask); }
23321776Sbde; XXX note nonstandard (bogus) calling convention - the libc stub passes
23421776Sbde; us the mask, not a pointer to it.
235155377Srwatson112	AUE_NULL	MCOMPAT	{ int sigstack(struct sigstack *nss, \
236146806Srwatson				    struct sigstack *oss); }
237155377Srwatson113	AUE_RECVMSG	MCOMPAT	{ int recvmsg(int s, struct omsghdr *msg, \
238146806Srwatson				    int flags); }
239155377Srwatson114	AUE_SENDMSG	MCOMPAT	{ int sendmsg(int s, caddr_t msg, \
240146806Srwatson				    int flags); }
241146806Srwatson115	AUE_NULL	OBSOL	vtrace
242155249Srwatson116	AUE_GETTIMEOFDAY	MSTD	{ int gettimeofday(struct timeval *tp, \
243146806Srwatson				    struct timezone *tzp); }
244155249Srwatson117	AUE_GETRUSAGE	MSTD	{ int getrusage(int who, \
245146806Srwatson				    struct rusage *rusage); }
246155377Srwatson118	AUE_GETSOCKOPT	MSTD	{ int getsockopt(int s, int level, int name, \
247146806Srwatson				    caddr_t val, int *avalsize); }
248146806Srwatson119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
249155249Srwatson120	AUE_READV	MSTD	{ int readv(int fd, struct iovec *iovp, \
250146806Srwatson				    u_int iovcnt); }
251155249Srwatson121	AUE_WRITEV	MSTD	{ int writev(int fd, struct iovec *iovp, \
252146806Srwatson				    u_int iovcnt); }
253155249Srwatson122	AUE_SETTIMEOFDAY	MSTD	{ int settimeofday(struct timeval *tv, \
254146806Srwatson				    struct timezone *tzp); }
255155249Srwatson123	AUE_FCHOWN	MSTD	{ int fchown(int fd, int uid, int gid); }
256155249Srwatson124	AUE_FCHMOD	MSTD	{ int fchmod(int fd, int mode); }
257155249Srwatson125	AUE_RECVFROM	MCPT_NOA { int recvfrom(int s, caddr_t buf, \
258146806Srwatson				    size_t len, int flags, caddr_t from, int \
259146806Srwatson				    *fromlenaddr); } recvfrom recvfrom_args \
260146806Srwatson				    int
261155249Srwatson126	AUE_SETREUID	MSTD	{ int setreuid(int ruid, int euid); }
262155249Srwatson127	AUE_SETREGID	MSTD	{ int setregid(int rgid, int egid); }
263155249Srwatson128	AUE_RENAME	MSTD	{ int rename(char *from, char *to); }
264155377Srwatson129	AUE_TRUNCATE	MCOMPAT	{ int truncate(char *path, long length); }
265155377Srwatson130	AUE_FTRUNCATE	MCOMPAT	{ int ftruncate(int fd, long length); }
266155249Srwatson131	AUE_FLOCK	MSTD	{ int flock(int fd, int how); }
267155249Srwatson132	AUE_MKFIFO	MSTD	{ int mkfifo(char *path, int mode); }
268155249Srwatson133	AUE_SENDTO	MSTD	{ int sendto(int s, caddr_t buf, size_t len, \
269146806Srwatson				    int flags, caddr_t to, int tolen); }
270155249Srwatson134	AUE_SHUTDOWN	MSTD	{ int shutdown(int s, int how); }
271155249Srwatson135	AUE_SOCKETPAIR	MSTD	{ int socketpair(int domain, int type, \
272146806Srwatson				    int protocol, int *rsv); }
273155249Srwatson136	AUE_MKDIR	MSTD	{ int mkdir(char *path, int mode); }
274155249Srwatson137	AUE_RMDIR	MSTD	{ int rmdir(char *path); }
275155249Srwatson138	AUE_UTIMES	MSTD	{ int utimes(char *path, \
276146806Srwatson				    struct timeval *tptr); }
277146806Srwatson139	AUE_NULL	OBSOL	4.2 sigreturn
278155249Srwatson140	AUE_ADJTIME	MSTD	{ int adjtime(struct timeval *delta, \
279146806Srwatson				    struct timeval *olddelta); }
280155377Srwatson141	AUE_GETPEERNAME	MCOMPAT	{ int getpeername(int fdes, caddr_t asa, \
281146806Srwatson				    int *alen); }
282155377Srwatson142	AUE_SYSCTL	MCOMPAT	{ long gethostid(void); }
283155377Srwatson143	AUE_SYSCTL	MCOMPAT	{ int sethostid(long hostid); }
284155377Srwatson144	AUE_GETRLIMIT	MCOMPAT	{ int getrlimit(u_int which, struct \
285146806Srwatson				    orlimit *rlp); }
286155377Srwatson145	AUE_SETRLIMIT	MCOMPAT	{ int setrlimit(u_int which, \
287146806Srwatson				    struct orlimit *rlp); }
288155377Srwatson146	AUE_KILLPG	MCOMPAT	{ int killpg(int pgid, int signum); }
289155249Srwatson147	AUE_SETSID	MSTD	{ int setsid(void); }
290155249Srwatson148	AUE_QUOTACTL	MSTD	{ int quotactl(char *path, int cmd, int uid, \
291146806Srwatson				    caddr_t arg); }
292155249Srwatson149	AUE_O_QUOTA	MCOMPAT	{ int quota(void); }
293155249Srwatson150	AUE_GETSOCKNAME	MCPT_NOA	{ int getsockname(int fdec, \
294146806Srwatson				    caddr_t asa, int *alen); } getsockname \
295146806Srwatson				    getsockname_args int
2961541Srgrimes
2971541Srgrimes; Syscalls 151-180 inclusive are reserved for vendor-specific
2981541Srgrimes; system calls.  (This includes various calls added for compatibity
2991541Srgrimes; with other Unix variants.)
3001541Srgrimes; Some of these calls are now supported by BSD...
301146806Srwatson151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
302146806Srwatson152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
303146806Srwatson153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
304146806Srwatson154	AUE_NULL	UNIMPL	nosys
30530740Sphk; 155 is initialized by the NFS code, if present.
306155249Srwatson155	AUE_NFSSVC	MNOIMPL	{ int nfssvc(int flag, caddr_t argp); }
307155249Srwatson156	AUE_GETDIRENTRIES	COMPAT	{ int getdirentries(int fd, char *buf, \
308146806Srwatson				    u_int count, long *basep); }
309155249Srwatson157	AUE_STATFS	MCOMPAT4	{ int statfs(char *path, \
310146806Srwatson				    struct ostatfs *buf); }
311155249Srwatson158	AUE_FSTATFS	MCOMPAT4	{ int fstatfs(int fd, \
312146806Srwatson				    struct ostatfs *buf); }
313146806Srwatson159	AUE_NULL	UNIMPL	nosys
314155249Srwatson160	AUE_LGETFH	MSTD	{ int lgetfh(char *fname, \
315146806Srwatson				    struct fhandle *fhp); }
316155249Srwatson161	AUE_NFS_GETFH	MSTD	{ int getfh(char *fname, \
317146806Srwatson				    struct fhandle *fhp); }
318155249Srwatson162	AUE_SYSCTL	MSTD	{ int getdomainname(char *domainname, \
319146806Srwatson				    int len); }
320155249Srwatson163	AUE_SYSCTL	MSTD	{ int setdomainname(char *domainname, \
321146806Srwatson				    int len); }
322146806Srwatson164	AUE_NULL	MSTD	{ int uname(struct utsname *name); }
323146806Srwatson165	AUE_NULL	MSTD	{ int sysarch(int op, char *parms); }
324146806Srwatson166	AUE_NULL	MSTD	{ int rtprio(int function, pid_t pid, \
325146806Srwatson				    struct rtprio *rtp); }
326146806Srwatson167	AUE_NULL	UNIMPL	nosys
327146806Srwatson168	AUE_NULL	UNIMPL	nosys
32869449Salfred; 169 is initialized by the SYSVSEM code if present or loaded
329155249Srwatson169	AUE_SEMSYS	MNOSTD	{ int semsys(int which, int a2, int a3, \
330146806Srwatson				    int a4, int a5); }
33169449Salfred; 169 is initialized by the SYSVMSG code if present or loaded
332123750Speter; XXX should be	{ int semsys(int which, ...); }
333155249Srwatson170	AUE_MSGSYS	MNOSTD	{ int msgsys(int which, int a2, int a3, \
334146806Srwatson				    int a4, int a5, int a6); }
33569449Salfred; 169 is initialized by the SYSVSHM code if present or loaded
336123750Speter; XXX should be	{ int msgsys(int which, ...); }
337155249Srwatson171	AUE_SHMSYS	MNOSTD	{ int shmsys(int which, int a2, int a3, \
338146806Srwatson				    int a4); }
339123750Speter; XXX should be	{ int shmsys(int which, ...); }
340146806Srwatson172	AUE_NULL	UNIMPL	nosys
341155249Srwatson173	AUE_PREAD	MSTD	{ ssize_t pread(int fd, void *buf, \
342146806Srwatson				    size_t nbyte, int pad, off_t offset); }
343155249Srwatson174	AUE_PWRITE	MSTD	{ ssize_t pwrite(int fd, const void *buf, \
344146806Srwatson				    size_t nbyte, int pad, off_t offset); }
345146806Srwatson175	AUE_NULL	UNIMPL	nosys
346155249Srwatson176	AUE_ADJTIME	MSTD	{ int ntp_adjtime(struct timex *tp); }
347146806Srwatson177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
348146806Srwatson178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
349146806Srwatson179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
350146806Srwatson180	AUE_NULL	UNIMPL	nosys
3511541Srgrimes
35249428Sjkh; Syscalls 181-199 are used by/reserved for BSD
353155249Srwatson181	AUE_SETGID	MSTD	{ int setgid(gid_t gid); }
354155249Srwatson182	AUE_SETEGID	MSTD	{ int setegid(gid_t egid); }
355155249Srwatson183	AUE_SETEUID	MSTD	{ int seteuid(uid_t euid); }
356146806Srwatson184	AUE_NULL	UNIMPL	lfs_bmapv
357146806Srwatson185	AUE_NULL	UNIMPL	lfs_markv
358146806Srwatson186	AUE_NULL	UNIMPL	lfs_segclean
359146806Srwatson187	AUE_NULL	UNIMPL	lfs_segwait
360155249Srwatson188	AUE_STAT	MSTD	{ int stat(char *path, struct stat *ub); }
361155249Srwatson189	AUE_FSTAT	MSTD	{ int fstat(int fd, struct stat *sb); }
362155249Srwatson190	AUE_LSTAT	MSTD	{ int lstat(char *path, struct stat *ub); }
363155249Srwatson191	AUE_PATHCONF	MSTD	{ int pathconf(char *path, int name); }
364155249Srwatson192	AUE_FPATHCONF	MSTD	{ int fpathconf(int fd, int name); }
365146806Srwatson193	AUE_NULL	UNIMPL	nosys
366155249Srwatson194	AUE_GETRLIMIT	MSTD	{ int getrlimit(u_int which, \
367146806Srwatson				    struct rlimit *rlp); } getrlimit \
368146806Srwatson				    __getrlimit_args int
369155249Srwatson195	AUE_SETRLIMIT	MSTD	{ int setrlimit(u_int which, \
370146806Srwatson				    struct rlimit *rlp); } setrlimit \
371146806Srwatson				    __setrlimit_args int
372155249Srwatson196	AUE_GETDIRENTRIES	MSTD	{ int getdirentries(int fd, char *buf, \
373146806Srwatson				    u_int count, long *basep); }
374155249Srwatson197	AUE_MMAP	MSTD	{ caddr_t mmap(caddr_t addr, size_t len, \
375146806Srwatson				    int prot, int flags, int fd, int pad, \
376146806Srwatson				    off_t pos); }
377146806Srwatson198	AUE_NULL	MSTD	{ int nosys(void); } __syscall \
378146806Srwatson				    __syscall_args int
379155249Srwatson199	AUE_LSEEK	MSTD	{ off_t lseek(int fd, int pad, off_t offset, \
380146806Srwatson				    int whence); }
381155249Srwatson200	AUE_TRUNCATE	MSTD	{ int truncate(char *path, int pad, \
382146806Srwatson				    off_t length); }
383155249Srwatson201	AUE_FTRUNCATE	MSTD	{ int ftruncate(int fd, int pad, \
384146806Srwatson				    off_t length); }
385155249Srwatson202	AUE_SYSCTL	MSTD	{ int __sysctl(int *name, u_int namelen, \
386146806Srwatson				    void *old, size_t *oldlenp, void *new, \
387146806Srwatson				    size_t newlen); } __sysctl sysctl_args int
388155249Srwatson203	AUE_MLOCK	MSTD	{ int mlock(const void *addr, size_t len); }
389155249Srwatson204	AUE_MUNLOCK	MSTD	{ int munlock(const void *addr, size_t len); }
390155249Srwatson205	AUE_UNDELETE	MSTD	{ int undelete(char *path); }
391155249Srwatson206	AUE_FUTIMES	MSTD	{ int futimes(int fd, struct timeval *tptr); }
392155249Srwatson207	AUE_GETPGID	MSTD	{ int getpgid(pid_t pid); }
393146806Srwatson208	AUE_NULL	UNIMPL	newreboot (NetBSD)
394155249Srwatson209	AUE_POLL	MSTD	{ int poll(struct pollfd *fds, u_int nfds, \
395146806Srwatson				    int timeout); }
3962124Sdg
3972124Sdg;
3982124Sdg; The following are reserved for loadable syscalls
3992124Sdg;
400146806Srwatson210	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
401146806Srwatson211	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
402146806Srwatson212	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
403146806Srwatson213	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
404146806Srwatson214	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
405146806Srwatson215	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
406146806Srwatson216	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
407146806Srwatson217	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
408146806Srwatson218	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
409146806Srwatson219	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
41012864Speter
41112864Speter;
41214215Speter; The following were introduced with NetBSD/4.4Lite-2
413155249Srwatson220	AUE_SEMCTL	MNOSTD	{ int __semctl(int semid, int semnum, \
414146806Srwatson				    int cmd, union semun *arg); }
415155249Srwatson221	AUE_SEMGET	MNOSTD	{ int semget(key_t key, int nsems, \
416146806Srwatson				    int semflg); }
417155249Srwatson222	AUE_SEMOP	MNOSTD	{ int semop(int semid, struct sembuf *sops, \
418146806Srwatson				    size_t nsops); }
419146806Srwatson223	AUE_NULL	UNIMPL	semconfig
420155249Srwatson224	AUE_MSGCTL	MNOSTD	{ int msgctl(int msqid, int cmd, \
421146806Srwatson				    struct msqid_ds *buf); }
422155249Srwatson225	AUE_MSGGET	MNOSTD	{ int msgget(key_t key, int msgflg); }
423155249Srwatson226	AUE_MSGSND	MNOSTD	{ int msgsnd(int msqid, const void *msgp, \
424146806Srwatson				    size_t msgsz, int msgflg); }
425155249Srwatson227	AUE_MSGRCV	MNOSTD	{ int msgrcv(int msqid, void *msgp, \
426146806Srwatson				    size_t msgsz, long msgtyp, int msgflg); }
427155249Srwatson228	AUE_SHMAT	MNOSTD	{ int shmat(int shmid, const void *shmaddr, \
428146806Srwatson				    int shmflg); }
429155249Srwatson229	AUE_SHMCTL	MNOSTD	{ int shmctl(int shmid, int cmd, \
430146806Srwatson				    struct shmid_ds *buf); }
431155249Srwatson230	AUE_SHMDT	MNOSTD	{ int shmdt(const void *shmaddr); }
432155249Srwatson231	AUE_SHMGET	MNOSTD	{ int shmget(key_t key, size_t size, \
433146806Srwatson				    int shmflg); }
43414219Speter;
435146806Srwatson232	AUE_NULL	MSTD	{ int clock_gettime(clockid_t clock_id, \
436146806Srwatson				    struct timespec *tp); }
437146806Srwatson233	AUE_NULL	MSTD	{ int clock_settime(clockid_t clock_id, \
438146806Srwatson				    const struct timespec *tp); }
439146806Srwatson234	AUE_NULL	MSTD	{ int clock_getres(clockid_t clock_id, \
440146806Srwatson				    struct timespec *tp); }
441156134Sdavidxu235	AUE_NULL	MSTD	{ int ktimer_create(clockid_t clock_id, \
442156134Sdavidxu				    struct sigevent *evp, int *timerid); }
443156134Sdavidxu236	AUE_NULL	MSTD	{ int ktimer_delete(int timerid); }
444156134Sdavidxu237	AUE_NULL	MSTD	{ int ktimer_settime(int timerid, int flags, \
445151576Sdavidxu				    const struct itimerspec *value, \
446151576Sdavidxu				    struct itimerspec *ovalue); }
447156134Sdavidxu238	AUE_NULL	MSTD	{ int ktimer_gettime(int timerid, struct \
448151576Sdavidxu				    itimerspec *value); }
449156134Sdavidxu239	AUE_NULL	MSTD	{ int ktimer_getoverrun(int timerid); }
450146806Srwatson240	AUE_NULL	MSTD	{ int nanosleep(const struct timespec *rqtp, \
451146806Srwatson				    struct timespec *rmtp); }
452146806Srwatson241	AUE_NULL	UNIMPL	nosys
453146806Srwatson242	AUE_NULL	UNIMPL	nosys
454146806Srwatson243	AUE_NULL	UNIMPL	nosys
455146806Srwatson244	AUE_NULL	UNIMPL	nosys
456146806Srwatson245	AUE_NULL	UNIMPL	nosys
457146806Srwatson246	AUE_NULL	UNIMPL	nosys
458146806Srwatson247	AUE_NULL	UNIMPL	nosys
459146806Srwatson248	AUE_NULL	MSTD	{ int ntp_gettime(struct ntptimeval *ntvp); }
460146806Srwatson249	AUE_NULL	UNIMPL	nosys
46114219Speter; syscall numbers initially used in OpenBSD
462155249Srwatson250	AUE_MINHERIT	MSTD	{ int minherit(void *addr, size_t len, \
463146806Srwatson				    int inherit); }
464155249Srwatson251	AUE_RFORK	MSTD	{ int rfork(int flags); }
465155249Srwatson252	AUE_POLL	MSTD	{ int openbsd_poll(struct pollfd *fds, \
466146806Srwatson				    u_int nfds, int timeout); }
467155249Srwatson253	AUE_ISSETUGID	MSTD	{ int issetugid(void); }
468155249Srwatson254	AUE_LCHOWN	MSTD	{ int lchown(char *path, int uid, int gid); }
469154669Sdavidxu255	AUE_NULL	MNOSTD	{ int aio_read(struct aiocb *aiocbp); }
470154669Sdavidxu256	AUE_NULL	MNOSTD	{ int aio_write(struct aiocb *aiocbp); }
471154669Sdavidxu257	AUE_NULL	MNOSTD	{ int lio_listio(int mode, \
472151867Sdavidxu				    struct aiocb * const *acb_list, \
473151867Sdavidxu				    int nent, struct sigevent *sig); }
474152845Sdavidxu258	AUE_NULL	UNIMPL	nosys
475152845Sdavidxu259	AUE_NULL	UNIMPL	nosys
476152845Sdavidxu260	AUE_NULL	UNIMPL	nosys
477152845Sdavidxu261	AUE_NULL	UNIMPL	nosys
478152845Sdavidxu262	AUE_NULL	UNIMPL	nosys
479152845Sdavidxu263	AUE_NULL	UNIMPL	nosys
480146806Srwatson264	AUE_NULL	UNIMPL	nosys
481146806Srwatson265	AUE_NULL	UNIMPL	nosys
482146806Srwatson266	AUE_NULL	UNIMPL	nosys
483146806Srwatson267	AUE_NULL	UNIMPL	nosys
484146806Srwatson268	AUE_NULL	UNIMPL	nosys
485146806Srwatson269	AUE_NULL	UNIMPL	nosys
486146806Srwatson270	AUE_NULL	UNIMPL	nosys
487146806Srwatson271	AUE_NULL	UNIMPL	nosys
488155249Srwatson272	AUE_O_GETDENTS	MSTD	{ int getdents(int fd, char *buf, \
489146806Srwatson				    size_t count); }
490146806Srwatson273	AUE_NULL	UNIMPL	nosys
491155249Srwatson274	AUE_LCHMOD	MSTD	{ int lchmod(char *path, mode_t mode); }
492155249Srwatson275	AUE_LCHOWN	MNOPROTO { int lchown(char *path, uid_t uid, \
493146806Srwatson				    gid_t gid); } netbsd_lchown lchown_args \
494146806Srwatson				    int
495155249Srwatson276	AUE_LUTIMES	MSTD	{ int lutimes(char *path, \
496146806Srwatson				    struct timeval *tptr); }
497155249Srwatson277	AUE_MSYNC	MNOPROTO	{ int msync(void *addr, size_t len, \
498146806Srwatson				    int flags); } netbsd_msync msync_args int
499155249Srwatson278	AUE_STAT	MSTD	{ int nstat(char *path, struct nstat *ub); }
500155249Srwatson279	AUE_FSTAT	MSTD	{ int nfstat(int fd, struct nstat *sb); }
501155249Srwatson280	AUE_LSTAT	MSTD	{ int nlstat(char *path, struct nstat *ub); }
502146806Srwatson281	AUE_NULL	UNIMPL	nosys
503146806Srwatson282	AUE_NULL	UNIMPL	nosys
504146806Srwatson283	AUE_NULL	UNIMPL	nosys
505146806Srwatson284	AUE_NULL	UNIMPL	nosys
506146806Srwatson285	AUE_NULL	UNIMPL	nosys
507146806Srwatson286	AUE_NULL	UNIMPL	nosys
508146806Srwatson287	AUE_NULL	UNIMPL	nosys
509146806Srwatson288	AUE_NULL	UNIMPL	nosys
510147813Sjhb; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
511147813Sjhb289	AUE_NULL	MSTD	{ ssize_t preadv(int fd, struct iovec *iovp, \
512147813Sjhb					u_int iovcnt, off_t offset); }
513147813Sjhb290	AUE_NULL	MSTD	{ ssize_t pwritev(int fd, struct iovec *iovp, \
514147813Sjhb					u_int iovcnt, off_t offset); }
515146806Srwatson291	AUE_NULL	UNIMPL	nosys
516146806Srwatson292	AUE_NULL	UNIMPL	nosys
517146806Srwatson293	AUE_NULL	UNIMPL	nosys
518146806Srwatson294	AUE_NULL	UNIMPL	nosys
519146806Srwatson295	AUE_NULL	UNIMPL	nosys
520146806Srwatson296	AUE_NULL	UNIMPL	nosys
52151138Salfred; XXX 297 is 300 in NetBSD 
522155249Srwatson297	AUE_FHSTATFS	MCOMPAT4	{ int fhstatfs( \
523146806Srwatson				    const struct fhandle *u_fhp, \
524146806Srwatson				    struct ostatfs *buf); }
525155249Srwatson298	AUE_FHOPEN	MSTD	{ int fhopen(const struct fhandle *u_fhp, \
526146806Srwatson				    int flags); }
527155249Srwatson299	AUE_FHSTAT	MSTD	{ int fhstat(const struct fhandle *u_fhp, \
528146806Srwatson				    struct stat *sb); }
52925537Sdfr; syscall numbers for FreeBSD
530146806Srwatson300	AUE_NULL	MSTD	{ int modnext(int modid); }
531146806Srwatson301	AUE_NULL	MSTD	{ int modstat(int modid, \
532146806Srwatson				    struct module_stat *stat); }
533146806Srwatson302	AUE_NULL	MSTD	{ int modfnext(int modid); }
534146806Srwatson303	AUE_NULL	MSTD	{ int modfind(const char *name); }
535155249Srwatson304	AUE_MODLOAD	MSTD	{ int kldload(const char *file); }
536155249Srwatson305	AUE_MODUNLOAD	MSTD	{ int kldunload(int fileid); }
537146806Srwatson306	AUE_NULL	MSTD	{ int kldfind(const char *file); }
538146806Srwatson307	AUE_NULL	MSTD	{ int kldnext(int fileid); }
539146806Srwatson308	AUE_NULL	MSTD	{ int kldstat(int fileid, struct \
540146806Srwatson				    kld_file_stat* stat); }
541146806Srwatson309	AUE_NULL	MSTD	{ int kldfirstmod(int fileid); }
542155249Srwatson310	AUE_GETSID	MSTD	{ int getsid(pid_t pid); }
543155249Srwatson311	AUE_SETRESUID	MSTD	{ int setresuid(uid_t ruid, uid_t euid, \
544146806Srwatson				    uid_t suid); }
545155249Srwatson312	AUE_SETRESGID	MSTD	{ int setresgid(gid_t rgid, gid_t egid, \
546146806Srwatson				    gid_t sgid); }
547146806Srwatson313	AUE_NULL	OBSOL	signanosleep
548154669Sdavidxu314	AUE_NULL	MNOSTD	{ int aio_return(struct aiocb *aiocbp); }
549154669Sdavidxu315	AUE_NULL	MNOSTD	{ int aio_suspend( \
550146806Srwatson				    struct aiocb * const * aiocbp, int nent, \
551146806Srwatson				    const struct timespec *timeout); }
552154669Sdavidxu316	AUE_NULL	MNOSTD	{ int aio_cancel(int fd, \
553146806Srwatson				    struct aiocb *aiocbp); }
554154669Sdavidxu317	AUE_NULL	MNOSTD	{ int aio_error(struct aiocb *aiocbp); }
555154669Sdavidxu318	AUE_NULL	MNOSTD	{ int oaio_read(struct oaiocb *aiocbp); }
556154669Sdavidxu319	AUE_NULL	MNOSTD	{ int oaio_write(struct oaiocb *aiocbp); }
557154669Sdavidxu320	AUE_NULL	MNOSTD	{ int olio_listio(int mode, \
558151867Sdavidxu				    struct oaiocb * const *acb_list, \
559151867Sdavidxu				    int nent, struct osigevent *sig); }
560146806Srwatson321	AUE_NULL	MSTD	{ int yield(void); }
561146806Srwatson322	AUE_NULL	OBSOL	thr_sleep
562146806Srwatson323	AUE_NULL	OBSOL	thr_wakeup
563155249Srwatson324	AUE_MLOCKALL	MSTD	{ int mlockall(int how); }
564155249Srwatson325	AUE_MUNLOCKALL	MSTD	{ int munlockall(void); }
565146806Srwatson326	AUE_NULL	MSTD	{ int __getcwd(u_char *buf, u_int buflen); }
56634925Sdufault
567146806Srwatson327	AUE_NULL	MSTD	{ int sched_setparam (pid_t pid, \
568146806Srwatson				    const struct sched_param *param); }
569146806Srwatson328	AUE_NULL	MSTD	{ int sched_getparam (pid_t pid, struct \
570146806Srwatson				    sched_param *param); }
57134925Sdufault
572146806Srwatson329	AUE_NULL	MSTD	{ int sched_setscheduler (pid_t pid, int \
573146806Srwatson				    policy, const struct sched_param \
574146806Srwatson				    *param); }
575146806Srwatson330	AUE_NULL	MSTD	{ int sched_getscheduler (pid_t pid); }
57634925Sdufault
577146806Srwatson331	AUE_NULL	MSTD	{ int sched_yield (void); }
578146806Srwatson332	AUE_NULL	MSTD	{ int sched_get_priority_max (int policy); }
579146806Srwatson333	AUE_NULL	MSTD	{ int sched_get_priority_min (int policy); }
580146806Srwatson334	AUE_NULL	MSTD	{ int sched_rr_get_interval (pid_t pid, \
581146806Srwatson				    struct timespec *interval); }
582146806Srwatson335	AUE_NULL	MSTD	{ int utrace(const void *addr, size_t len); }
583155249Srwatson336	AUE_SENDFILE	MCOMPAT4	{ int sendfile(int fd, int s, \
584146806Srwatson				    off_t offset, size_t nbytes, \
585146806Srwatson				    struct sf_hdtr *hdtr, off_t *sbytes, \
586146806Srwatson				    int flags); }
587146806Srwatson337	AUE_NULL	MSTD	{ int kldsym(int fileid, int cmd, \
588146806Srwatson				    void *data); }
589155249Srwatson338	AUE_JAIL	MSTD	{ int jail(struct jail *jail); }
590146806Srwatson339	AUE_NULL	UNIMPL	pioctl
591155249Srwatson340	AUE_SIGPROCMASK	MSTD	{ int sigprocmask(int how, \
592146806Srwatson				    const sigset_t *set, sigset_t *oset); }
593155249Srwatson341	AUE_SIGSUSPEND	MSTD	{ int sigsuspend(const sigset_t *sigmask); }
594155249Srwatson342	AUE_SIGACTION	MCOMPAT4	{ int sigaction(int sig, const \
595146806Srwatson				    struct sigaction *act, \
596146806Srwatson				    struct sigaction *oact); }
597155249Srwatson343	AUE_SIGPENDING	MSTD	{ int sigpending(sigset_t *set); }
598155249Srwatson344	AUE_SIGRETURN	MCOMPAT4	{ int sigreturn( \
599146806Srwatson				    const struct ucontext4 *sigcntxp); }
600155249Srwatson345	AUE_SIGWAIT	MSTD	{ int sigtimedwait(const sigset_t *set, \
601146806Srwatson				    siginfo_t *info, \
602146806Srwatson				    const struct timespec *timeout); }
603146806Srwatson346	AUE_NULL	MSTD	{ int sigwaitinfo(const sigset_t *set, \
604146806Srwatson				    siginfo_t *info); }
605146806Srwatson347	AUE_NULL	MSTD	{ int __acl_get_file(const char *path, \
606146806Srwatson				    acl_type_t type, struct acl *aclp); }
607146806Srwatson348	AUE_NULL	MSTD	{ int __acl_set_file(const char *path, \
608146806Srwatson				    acl_type_t type, struct acl *aclp); }
609146806Srwatson349	AUE_NULL	MSTD	{ int __acl_get_fd(int filedes, \
610146806Srwatson				    acl_type_t type, struct acl *aclp); }
611146806Srwatson350	AUE_NULL	MSTD	{ int __acl_set_fd(int filedes, \
612146806Srwatson				    acl_type_t type, struct acl *aclp); }
613146806Srwatson351	AUE_NULL	MSTD	{ int __acl_delete_file(const char *path, \
614146806Srwatson				    acl_type_t type); }
615146806Srwatson352	AUE_NULL	MSTD	{ int __acl_delete_fd(int filedes, \
616146806Srwatson				    acl_type_t type); }
617146806Srwatson353	AUE_NULL	MSTD	{ int __acl_aclcheck_file(const char *path, \
618146806Srwatson				    acl_type_t type, struct acl *aclp); }
619146806Srwatson354	AUE_NULL	MSTD	{ int __acl_aclcheck_fd(int filedes, \
620146806Srwatson				    acl_type_t type, struct acl *aclp); }
621150619Scsjp355	AUE_NULL	MSTD	{ int extattrctl(const char *path, int cmd, \
622146806Srwatson				    const char *filename, int attrnamespace, \
623146806Srwatson				    const char *attrname); }
624150619Scsjp356	AUE_NULL	MSTD	{ int extattr_set_file(const char *path, \
625146806Srwatson				    int attrnamespace, const char *attrname, \
626146806Srwatson				    void *data, size_t nbytes); }
627150619Scsjp357	AUE_NULL	MSTD	{ ssize_t extattr_get_file(const char *path, \
628146806Srwatson				    int attrnamespace, const char *attrname, \
629146806Srwatson				    void *data, size_t nbytes); }
630150619Scsjp358	AUE_NULL	MSTD	{ int extattr_delete_file(const char *path, \
631146806Srwatson				    int attrnamespace, \
632146806Srwatson				    const char *attrname); }
633154669Sdavidxu359	AUE_NULL	MNOSTD	{ int aio_waitcomplete( \
634146806Srwatson				    struct aiocb **aiocbp, \
635146806Srwatson				    struct timespec *timeout); }
636155249Srwatson360	AUE_GETRESUID	MSTD	{ int getresuid(uid_t *ruid, uid_t *euid, \
637146806Srwatson				    uid_t *suid); }
638155249Srwatson361	AUE_GETRESGID	MSTD	{ int getresgid(gid_t *rgid, gid_t *egid, \
639146806Srwatson				    gid_t *sgid); }
640146806Srwatson362	AUE_NULL	MSTD	{ int kqueue(void); }
641146806Srwatson363	AUE_NULL	MSTD	{ int kevent(int fd, \
642146806Srwatson				    struct kevent *changelist, int nchanges, \
643146806Srwatson				    struct kevent *eventlist, int nevents, \
644146806Srwatson				    const struct timespec *timeout); }
645146806Srwatson364	AUE_NULL	UNIMPL	__cap_get_proc
646146806Srwatson365	AUE_NULL	UNIMPL	__cap_set_proc
647146806Srwatson366	AUE_NULL	UNIMPL	__cap_get_fd
648146806Srwatson367	AUE_NULL	UNIMPL	__cap_get_file
649146806Srwatson368	AUE_NULL	UNIMPL	__cap_set_fd
650146806Srwatson369	AUE_NULL	UNIMPL	__cap_set_file
651146806Srwatson370	AUE_NULL	NODEF	lkmressys lkmressys nosys_args int
652150619Scsjp371	AUE_NULL	MSTD	{ int extattr_set_fd(int fd, \
653146806Srwatson				    int attrnamespace, const char *attrname, \
654146806Srwatson				    void *data, size_t nbytes); }
655150619Scsjp372	AUE_NULL	MSTD	{ ssize_t extattr_get_fd(int fd, \
656146806Srwatson				    int attrnamespace, const char *attrname, \
657146806Srwatson				    void *data, size_t nbytes); }
658150619Scsjp373	AUE_NULL	MSTD	{ int extattr_delete_fd(int fd, \
659146806Srwatson				    int attrnamespace, \
660146806Srwatson				    const char *attrname); }
661146806Srwatson374	AUE_NULL	MSTD	{ int __setugid(int flag); }
662146806Srwatson375	AUE_NULL	NOIMPL	{ int nfsclnt(int flag, caddr_t argp); }
663155249Srwatson376	AUE_EACCESS	MSTD	{ int eaccess(char *path, int flags); }
664146806Srwatson377	AUE_NULL	UNIMPL	afs_syscall
665155377Srwatson378	AUE_NMOUNT	STD	{ int nmount(struct iovec *iovp, \
666146806Srwatson				    unsigned int iovcnt, int flags); }
667146806Srwatson379	AUE_NULL	MSTD	{ int kse_exit(void); }
668146806Srwatson380	AUE_NULL	MSTD	{ int kse_wakeup(struct kse_mailbox *mbx); }
669146806Srwatson381	AUE_NULL	MSTD	{ int kse_create(struct kse_mailbox *mbx, \
670146806Srwatson				    int newgroup); }
671146806Srwatson382	AUE_NULL	MSTD	{ int kse_thr_interrupt( \
672146806Srwatson				    struct kse_thr_mailbox *tmbx, int cmd, \
673146806Srwatson				    long data); }
674146806Srwatson383	AUE_NULL	MSTD	{ int kse_release(struct timespec *timeout); }
675146806Srwatson384	AUE_NULL	MSTD	{ int __mac_get_proc(struct mac *mac_p); }
676146806Srwatson385	AUE_NULL	MSTD	{ int __mac_set_proc(struct mac *mac_p); }
677146806Srwatson386	AUE_NULL	MSTD	{ int __mac_get_fd(int fd, \
678146806Srwatson				    struct mac *mac_p); }
679146806Srwatson387	AUE_NULL	MSTD	{ int __mac_get_file(const char *path_p, \
680146806Srwatson				    struct mac *mac_p); }
681146806Srwatson388	AUE_NULL	MSTD	{ int __mac_set_fd(int fd, \
682146806Srwatson				    struct mac *mac_p); }
683146806Srwatson389	AUE_NULL	MSTD	{ int __mac_set_file(const char *path_p, \
684146806Srwatson				    struct mac *mac_p); }
685146806Srwatson390	AUE_NULL	MSTD	{ int kenv(int what, const char *name, \
686146806Srwatson				    char *value, int len); }
687155249Srwatson391	AUE_LCHFLAGS	MSTD	{ int lchflags(const char *path, int flags); }
688146806Srwatson392	AUE_NULL	MSTD	{ int uuidgen(struct uuid *store, \
689146806Srwatson				    int count); }
690155249Srwatson393	AUE_SENDFILE	MSTD	{ int sendfile(int fd, int s, off_t offset, \
691146806Srwatson				    size_t nbytes, struct sf_hdtr *hdtr, \
692146806Srwatson				    off_t *sbytes, int flags); }
693146806Srwatson394	AUE_NULL	MSTD	{ int mac_syscall(const char *policy, \
694146806Srwatson				    int call, void *arg); }
695155249Srwatson395	AUE_GETFSSTAT	MSTD	{ int getfsstat(struct statfs *buf, \
696146806Srwatson				    long bufsize, int flags); }
697155249Srwatson396	AUE_STATFS	MSTD	{ int statfs(char *path, \
698146806Srwatson				    struct statfs *buf); }
699155249Srwatson397	AUE_FSTATFS	MSTD	{ int fstatfs(int fd, struct statfs *buf); }
700146806Srwatson398	AUE_NULL	MSTD	{ int fhstatfs(const struct fhandle *u_fhp, \
701146806Srwatson				    struct statfs *buf); }
702146806Srwatson399	AUE_NULL	UNIMPL	nosys
703146806Srwatson400	AUE_NULL	MNOSTD	{ int ksem_close(semid_t id); }
704146806Srwatson401	AUE_NULL	MNOSTD	{ int ksem_post(semid_t id); }
705146806Srwatson402	AUE_NULL	MNOSTD	{ int ksem_wait(semid_t id); }
706146806Srwatson403	AUE_NULL	MNOSTD	{ int ksem_trywait(semid_t id); }
707146806Srwatson404	AUE_NULL	MNOSTD	{ int ksem_init(semid_t *idp, \
708146806Srwatson				    unsigned int value); }
709146806Srwatson405	AUE_NULL	MNOSTD	{ int ksem_open(semid_t *idp, \
710146806Srwatson				    const char *name, int oflag, \
711146806Srwatson				    mode_t mode, unsigned int value); }
712146806Srwatson406	AUE_NULL	MNOSTD	{ int ksem_unlink(const char *name); }
713146806Srwatson407	AUE_NULL	MNOSTD	{ int ksem_getvalue(semid_t id, int *val); }
714146806Srwatson408	AUE_NULL	MNOSTD	{ int ksem_destroy(semid_t id); }
715146806Srwatson409	AUE_NULL	MSTD	{ int __mac_get_pid(pid_t pid, \
716146806Srwatson				    struct mac *mac_p); }
717146806Srwatson410	AUE_NULL	MSTD	{ int __mac_get_link(const char *path_p, \
718146806Srwatson				    struct mac *mac_p); }
719146806Srwatson411	AUE_NULL	MSTD	{ int __mac_set_link(const char *path_p, \
720146806Srwatson				    struct mac *mac_p); }
721150619Scsjp412	AUE_NULL	MSTD	{ int extattr_set_link(const char *path, \
722146806Srwatson				    int attrnamespace, const char *attrname, \
723146806Srwatson				    void *data, size_t nbytes); }
724150619Scsjp413	AUE_NULL	MSTD	{ ssize_t extattr_get_link(const char *path, \
725146806Srwatson				    int attrnamespace, const char *attrname, \
726146806Srwatson				    void *data, size_t nbytes); }
727150619Scsjp414	AUE_NULL	MSTD	{ int extattr_delete_link(const char *path, \
728146806Srwatson				    int attrnamespace, \
729146806Srwatson				    const char *attrname); }
730146806Srwatson415	AUE_NULL	MSTD	{ int __mac_execve(char *fname, char **argv, \
731146806Srwatson				    char **envv, struct mac *mac_p); }
732155249Srwatson416	AUE_SIGACTION	MSTD	{ int sigaction(int sig, \
733146806Srwatson				    const struct sigaction *act, \
734146806Srwatson				    struct sigaction *oact); }
735155249Srwatson417	AUE_SIGRETURN	MSTD	{ int sigreturn( \
736146806Srwatson				    const struct __ucontext *sigcntxp); }
737146806Srwatson418	AUE_NULL	UNIMPL	__xstat
738146806Srwatson419	AUE_NULL	UNIMPL	__xfstat
739146806Srwatson420	AUE_NULL	UNIMPL	__xlstat
740146806Srwatson421	AUE_NULL	MSTD	{ int getcontext(struct __ucontext *ucp); }
741146806Srwatson422	AUE_NULL	MSTD	{ int setcontext( \
742146806Srwatson				    const struct __ucontext *ucp); }
743146806Srwatson423	AUE_NULL	MSTD	{ int swapcontext(struct __ucontext *oucp, \
744146806Srwatson				    const struct __ucontext *ucp); }
745155249Srwatson424	AUE_SWAPOFF	MSTD	{ int swapoff(const char *name); }
746146806Srwatson425	AUE_NULL	MSTD	{ int __acl_get_link(const char *path, \
747146806Srwatson				    acl_type_t type, struct acl *aclp); }
748146806Srwatson426	AUE_NULL	MSTD	{ int __acl_set_link(const char *path, \
749146806Srwatson				    acl_type_t type, struct acl *aclp); }
750146806Srwatson427	AUE_NULL	MSTD	{ int __acl_delete_link(const char *path, \
751146806Srwatson				    acl_type_t type); }
752146806Srwatson428	AUE_NULL	MSTD	{ int __acl_aclcheck_link(const char *path, \
753146806Srwatson				    acl_type_t type, struct acl *aclp); }
754155249Srwatson429	AUE_SIGWAIT	MSTD	{ int sigwait(const sigset_t *set, \
755146806Srwatson				    int *sig); }
756146806Srwatson430	AUE_NULL	MSTD	{ int thr_create(ucontext_t *ctx, long *id, \
757146806Srwatson				    int flags); }
758146806Srwatson431	AUE_NULL	MSTD	{ void thr_exit(long *state); }
759146806Srwatson432	AUE_NULL	MSTD	{ int thr_self(long *id); }
760146806Srwatson433	AUE_NULL	MSTD	{ int thr_kill(long id, int sig); }
761146806Srwatson434	AUE_NULL	MSTD	{ int _umtx_lock(struct umtx *umtx); }
762146806Srwatson435	AUE_NULL	MSTD	{ int _umtx_unlock(struct umtx *umtx); }
763146806Srwatson436	AUE_NULL	MSTD	{ int jail_attach(int jid); }
764150619Scsjp437	AUE_NULL	MSTD	{ ssize_t extattr_list_fd(int fd, \
765146806Srwatson				    int attrnamespace, void *data, \
766146806Srwatson				    size_t nbytes); }
767150619Scsjp438	AUE_NULL	MSTD	{ ssize_t extattr_list_file( \
768146806Srwatson				    const char *path, int attrnamespace, \
769146806Srwatson				    void *data, size_t nbytes); }
770150619Scsjp439	AUE_NULL	MSTD	{ ssize_t extattr_list_link( \
771146806Srwatson				    const char *path, int attrnamespace, \
772146806Srwatson				    void *data, size_t nbytes); }
773146806Srwatson440	AUE_NULL	MSTD	{ int kse_switchin( \
774146806Srwatson				    struct kse_thr_mailbox *tmbx, \
775146806Srwatson				    int flags); }
776146806Srwatson441	AUE_NULL	MNOSTD	{ int ksem_timedwait(semid_t id, \
777151445Sstefanf				    const struct timespec *abstime); }
778146806Srwatson442	AUE_NULL	MSTD	{ int thr_suspend( \
779146806Srwatson				    const struct timespec *timeout); }
780146806Srwatson443	AUE_NULL	MSTD	{ int thr_wake(long id); }
781146806Srwatson444	AUE_NULL	MSTD	{ int kldunloadf(int fileid, int flags); }
782155199Srwatson445	AUE_AUDIT	MSTD	{ int audit(const void *record, \
783146806Srwatson				    u_int length); }
784155199Srwatson446	AUE_AUDITON	MSTD	{ int auditon(int cmd, void *data, \
785146806Srwatson				    u_int length); }
786155199Srwatson447	AUE_GETAUID	MSTD	{ int getauid(uid_t *auid); }
787155199Srwatson448	AUE_SETAUID	MSTD	{ int setauid(uid_t *auid); }
788155199Srwatson449	AUE_GETAUDIT	MSTD	{ int getaudit(struct auditinfo *auditinfo); }
789155199Srwatson450	AUE_SETAUDIT	MSTD	{ int setaudit(struct auditinfo *auditinfo); }
790155199Srwatson451	AUE_GETAUDIT_ADDR	MSTD	{ int getaudit_addr( \
791146806Srwatson				    struct auditinfo_addr *auditinfo_addr, \
792146806Srwatson				    u_int length); }
793155199Srwatson452	AUE_SETAUDIT_ADDR	MSTD	{ int setaudit_addr( \
794146806Srwatson				    struct auditinfo_addr *auditinfo_addr, \
795146806Srwatson				    u_int length); }
796155199Srwatson453	AUE_AUDITCTL	MSTD	{ int auditctl(char *path); }
797146806Srwatson454	AUE_NULL	MSTD	{ int _umtx_op(struct umtx *umtx, int op, \
798146806Srwatson				    long id, void *uaddr, void *uaddr2); }
799146806Srwatson455	AUE_NULL	MSTD	{ int thr_new(struct thr_param *param, \
800146806Srwatson				    int param_size); }
801151316Sdavidxu456	AUE_NULL	MSTD	{ int sigqueue(pid_t pid, int signum, void *value); }
802156134Sdavidxu457	AUE_NULL	MNOSTD	{ int kmq_open(const char *path, int flags, \
803152845Sdavidxu				    mode_t mode, const struct mq_attr *attr); }
804156134Sdavidxu458	AUE_NULL	MNOSTD	{ int kmq_setattr(int mqd,		\
805152845Sdavidxu				    const struct mq_attr *attr,		\
806152845Sdavidxu				    struct mq_attr *oattr); }
807156134Sdavidxu459	AUE_NULL	MNOSTD	{ int kmq_timedreceive(int mqd,	\
808152845Sdavidxu				    char *msg_ptr, size_t msg_len,	\
809152845Sdavidxu				    unsigned *msg_prio,			\
810152845Sdavidxu				    const struct timespec *abs_timeout); }
811156134Sdavidxu460	AUE_NULL	MNOSTD  { int kmq_timedsend(int mqd,		\
812152845Sdavidxu				    const char *msg_ptr, size_t msg_len,\
813152845Sdavidxu				    unsigned msg_prio,			\
814152845Sdavidxu				    const struct timespec *abs_timeout);}
815156134Sdavidxu461	AUE_NULL	MNOSTD	{ int kmq_notify(int mqd,		\
816152845Sdavidxu				    const struct sigevent *sigev); }
817156134Sdavidxu462	AUE_NULL	MNOSTD	{ int kmq_unlink(const char *path); }
818153679Sphk463	AUE_NULL	MSTD	{ int abort2(const char *why, int nargs, void **args); }
819155327Sdavidxu464	AUE_NULL	MSTD	{ int thr_set_name(long id, const char *name); }
820105144Speter; Please copy any additions and changes to the following compatability tables:
821123408Speter; sys/compat/freebsd32/syscalls.master
822