syscalls.master revision 194390
1264790Sbapt $FreeBSD: head/sys/compat/freebsd32/syscalls.master 194390 2009-06-17 19:50:38Z jhb $
2264790Sbapt;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
3272955Srodrigc;	from: src/sys/kern/syscalls.master 1.107
4264790Sbapt;
5264790Sbapt; System call name/number master file.
6264790Sbapt; Processed to created init_sysent.c, syscalls.c and syscall.h.
7264790Sbapt
8264790Sbapt; Columns: number audit type name alt{name,tag,rtyp}/comments
9264790Sbapt;	number	system call number, must be in order
10264790Sbapt;	audit	the audit event associated with the system call
11264790Sbapt;		A value of AUE_NULL means no auditing, but it also means that
12264790Sbapt;		there is no audit event for the call at this time. For the
13264790Sbapt;		case where the event exists, but we don't want auditing, the
14264790Sbapt;		event should be #defined to AUE_NULL in audit_kevents.h.
15264790Sbapt;	type	one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
16264790Sbapt;		LIBCOMPAT, NODEF, NOARGS, NOPROTO, NOSTD
17264790Sbapt;		The COMPAT* options may be combined with one or more NO*
18264790Sbapt;		options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
19264790Sbapt;	name	psuedo-prototype of syscall routine
20264790Sbapt;		If one of the following alts is different, then all appear:
21264790Sbapt;	altname	name of system call if different
22264790Sbapt;	alttag	name of args struct tag if different from [o]`name'"_args"
23264790Sbapt;	altrtyp	return type if not int (bogus - syscalls always return int)
24264790Sbapt;		for UNIMPL/OBSOL, name continues with comments
25264790Sbapt
26264790Sbapt; types:
27264790Sbapt;	STD	always included
28264790Sbapt;	COMPAT	included on COMPAT #ifdef
29264790Sbapt;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
30264790Sbapt;	COMPAT6	included on COMPAT4 #ifdef (FreeBSD 6 compat)
31264790Sbapt;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
32264790Sbapt;	OBSOL	obsolete, not included in system, only specifies name
33264790Sbapt;	UNIMPL	not implemented, placeholder only
34264790Sbapt;	NOSTD	implemented but as a lkm that can be statically
35264790Sbapt;		compiled in; sysent entry will be filled with lkmressys
36264790Sbapt;		so the SYSCALL_MODULE macro works
37264790Sbapt;	NOARGS	same as STD except do not create structure in sys/sysproto.h
38264790Sbapt;	NODEF	same as STD except only have the entry in the syscall table
39264790Sbapt;		added.  Meaning - do not create structure or function
40264790Sbapt;		prototype in sys/sysproto.h
41264790Sbapt;	NOPROTO	same as STD except do not create structure or
42264790Sbapt;		function prototype in sys/sysproto.h.  Does add a
43264790Sbapt;		definition to syscall.h besides adding a sysent.
44264790Sbapt
45264790Sbapt; #ifdef's, etc. may be included, and are copied to the output files.
46264790Sbapt
47264790Sbapt#include <sys/param.h>
48264790Sbapt#include <sys/sysent.h>
49264790Sbapt#include <sys/sysproto.h>
50264790Sbapt#include <sys/mount.h>
51264790Sbapt#include <sys/socket.h>
52264790Sbapt#include <compat/freebsd32/freebsd32.h>
53264790Sbapt#include <compat/freebsd32/freebsd32_proto.h>
54264790Sbapt
55264790Sbapt; Reserved/unimplemented system calls in the range 0-150 inclusive
56264790Sbapt; are reserved for use in future Berkeley releases.
57264790Sbapt; Additional system calls implemented in vendor and other
58264790Sbapt; redistributions should be placed in the reserved range at the end
59264790Sbapt; of the current calls.
60264790Sbapt
61264790Sbapt0	AUE_NULL	NOPROTO	{ int nosys(void); } syscall nosys_args int
62264790Sbapt1	AUE_EXIT	NOPROTO	{ void sys_exit(int rval); } exit \
63264790Sbapt				    sys_exit_args void
64264790Sbapt2	AUE_FORK	NOPROTO	{ int fork(void); }
65264790Sbapt3	AUE_READ	NOPROTO	{ ssize_t read(int fd, void *buf, \
66264790Sbapt				    size_t nbyte); }
67264790Sbapt4	AUE_WRITE	NOPROTO	{ ssize_t write(int fd, const void *buf, \
68264790Sbapt				    size_t nbyte); }
69264790Sbapt5	AUE_OPEN_RWTC	NOPROTO	{ int open(char *path, int flags, \
70264790Sbapt				    int mode); }
71264790Sbapt6	AUE_CLOSE	NOPROTO	{ int close(int fd); }
72264790Sbapt7	AUE_WAIT4	STD	{ int freebsd32_wait4(int pid, int *status, \
73264790Sbapt				    int options, struct rusage32 *rusage); }
74264790Sbapt8	AUE_CREAT	OBSOL	old creat
75264790Sbapt9	AUE_LINK	NOPROTO	{ int link(char *path, char *link); }
76264790Sbapt10	AUE_UNLINK	NOPROTO	{ int unlink(char *path); }
77264790Sbapt11	AUE_NULL	OBSOL	execv
78264790Sbapt12	AUE_CHDIR	NOPROTO	{ int chdir(char *path); }
79264790Sbapt13	AUE_FCHDIR	NOPROTO	{ int fchdir(int fd); }
80264790Sbapt14	AUE_MKNOD	NOPROTO	{ int mknod(char *path, int mode, int dev); }
81264790Sbapt15	AUE_CHMOD	NOPROTO	{ int chmod(char *path, int mode); }
82264790Sbapt16	AUE_CHOWN	NOPROTO	{ int chown(char *path, int uid, int gid); }
83264790Sbapt17	AUE_NULL	NOPROTO	{ int obreak(char *nsize); } break \
84264790Sbapt				    obreak_args int
85264790Sbapt18	AUE_GETFSSTAT	COMPAT4	{ int freebsd32_getfsstat( \
86264790Sbapt				    struct statfs32 *buf, long bufsize, \
87264790Sbapt				    int flags); }
88264790Sbapt19	AUE_LSEEK	OBSOL	olseek
89264790Sbapt20	AUE_GETPID	NOPROTO	{ pid_t getpid(void); }
90264790Sbapt21	AUE_MOUNT	NOPROTO	{ int mount(char *type, char *path, \
91264790Sbapt				    int flags, caddr_t data); }
92264790Sbapt22	AUE_UMOUNT	NOPROTO	{ int unmount(char *path, int flags); }
93264790Sbapt23	AUE_SETUID	NOPROTO	{ int setuid(uid_t uid); }
94264790Sbapt24	AUE_GETUID	NOPROTO	{ uid_t getuid(void); }
95264790Sbapt25	AUE_GETEUID	NOPROTO	{ uid_t geteuid(void); }
96264790Sbapt26	AUE_PTRACE	NOPROTO	{ int ptrace(int req, pid_t pid, \
97264790Sbapt				    caddr_t addr, int data); }
98264790Sbapt27	AUE_RECVMSG	STD	{ int freebsd32_recvmsg(int s, struct msghdr32 *msg, \
99264790Sbapt				    int flags); }
100264790Sbapt28	AUE_SENDMSG	STD	{ int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
101264790Sbapt				    int flags); }
102264790Sbapt29	AUE_RECVFROM	STD	{ int freebsd32_recvfrom(int s, u_int32_t buf, \
103264790Sbapt				    u_int32_t len, int flags, u_int32_t from, \
104264790Sbapt				    u_int32_t fromlenaddr); }
105264790Sbapt30	AUE_ACCEPT	NOPROTO	{ int accept(int s, caddr_t name, \
106264790Sbapt				    int *anamelen); }
107264790Sbapt31	AUE_GETPEERNAME	NOPROTO	{ int getpeername(int fdes, caddr_t asa, \
108264790Sbapt				    int *alen); }
109264790Sbapt32	AUE_GETSOCKNAME	NOPROTO	{ int getsockname(int fdes, caddr_t asa, \
110264790Sbapt				    int *alen); }
111264790Sbapt33	AUE_ACCESS	NOPROTO	{ int access(char *path, int flags); }
112264790Sbapt34	AUE_CHFLAGS	NOPROTO	{ int chflags(char *path, int flags); }
113264790Sbapt35	AUE_FCHFLAGS	NOPROTO	{ int fchflags(int fd, int flags); }
114264790Sbapt36	AUE_SYNC	NOPROTO	{ int sync(void); }
115264790Sbapt37	AUE_KILL	NOPROTO	{ int kill(int pid, int signum); }
116264790Sbapt38	AUE_STAT	UNIMPL	ostat
117264790Sbapt39	AUE_GETPPID	NOPROTO	{ pid_t getppid(void); }
118264790Sbapt40	AUE_LSTAT	UNIMPL	olstat
119264790Sbapt41	AUE_DUP		NOPROTO	{ int dup(u_int fd); }
120264790Sbapt42	AUE_PIPE	NOPROTO	{ int pipe(void); }
121264790Sbapt43	AUE_GETEGID	NOPROTO	{ gid_t getegid(void); }
122264790Sbapt44	AUE_PROFILE	NOPROTO	{ int profil(caddr_t samples, size_t size, \
123264790Sbapt				    size_t offset, u_int scale); }
124264790Sbapt45	AUE_KTRACE	NOPROTO	{ int ktrace(const char *fname, int ops, \
125264790Sbapt				    int facs, int pid); }
126264790Sbapt46	AUE_SIGACTION	COMPAT	{ int freebsd32_sigaction( int signum, \
127264790Sbapt				   struct osigaction32 *nsa, \
128264790Sbapt				   struct osigaction32 *osa); }
129264790Sbapt47	AUE_GETGID	NOPROTO	{ gid_t getgid(void); }
130264790Sbapt48	AUE_SIGPROCMASK	COMPAT	{ int freebsd32_sigprocmask(int how, \
131264790Sbapt				   osigset_t mask); }
132264790Sbapt49	AUE_GETLOGIN	NOPROTO	{ int getlogin(char *namebuf, \
133264790Sbapt				    u_int namelen); }
134264790Sbapt50	AUE_SETLOGIN	NOPROTO	{ int setlogin(char *namebuf); }
135264790Sbapt51	AUE_ACCT	NOPROTO	{ int acct(char *path); }
136264790Sbapt52	AUE_SIGPENDING	COMPAT	{ int freebsd32_sigpending(void); }
137264790Sbapt53	AUE_SIGALTSTACK	STD	{ int freebsd32_sigaltstack( \
138264790Sbapt				    struct sigaltstack32 *ss, \
139264790Sbapt				    struct sigaltstack32 *oss); }
140264790Sbapt54	AUE_NULL	STD	{ int freebsd32_ioctl(int fd, uint32_t com, \
141264790Sbapt				    struct md_ioctl32 *data); }
142264790Sbapt55	AUE_REBOOT	NOPROTO	{ int reboot(int opt); }
143264790Sbapt56	AUE_REVOKE	NOPROTO	{ int revoke(char *path); }
144264790Sbapt57	AUE_SYMLINK	NOPROTO	{ int symlink(char *path, char *link); }
145264790Sbapt58	AUE_READLINK	NOPROTO	{ ssize_t readlink(char *path, char *buf, \
146264790Sbapt				    size_t count); }
147264790Sbapt59	AUE_EXECVE	STD	{ int freebsd32_execve(char *fname, \
148264790Sbapt				    u_int32_t *argv, u_int32_t *envv); }
149264790Sbapt60	AUE_UMASK	NOPROTO	{ int umask(int newmask); } umask \
150264790Sbapt				    umask_args int
151264790Sbapt61	AUE_CHROOT	NOPROTO	{ int chroot(char *path); }
152264790Sbapt62	AUE_FSTAT	OBSOL	ofstat
153264790Sbapt63	AUE_NULL	OBSOL	ogetkerninfo
154264790Sbapt64	AUE_NULL	OBSOL	ogetpagesize
155264790Sbapt65	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
156264790Sbapt				    int flags); }
157264790Sbapt66	AUE_VFORK	NOPROTO	{ int vfork(void); }
158264790Sbapt67	AUE_NULL	OBSOL	vread
159264790Sbapt68	AUE_NULL	OBSOL	vwrite
160264790Sbapt69	AUE_SBRK	NOPROTO	{ int sbrk(int incr); }
161264790Sbapt70	AUE_SSTK	NOPROTO	{ int sstk(int incr); }
162264790Sbapt71	AUE_MMAP	OBSOL	ommap
163264790Sbapt72	AUE_O_VADVISE	NOPROTO	{ int ovadvise(int anom); } vadvise \
164264790Sbapt				    ovadvise_args int
165264790Sbapt73	AUE_MUNMAP	NOPROTO	{ int munmap(void *addr, size_t len); }
166264790Sbapt74	AUE_MPROTECT	NOPROTO	{ int mprotect(const void *addr, \
167264790Sbapt				    size_t len, int prot); }
168264790Sbapt75	AUE_MADVISE	NOPROTO	{ int madvise(void *addr, size_t len, \
169264790Sbapt				    int behav); }
170264790Sbapt76	AUE_NULL	OBSOL	vhangup
171264790Sbapt77	AUE_NULL	OBSOL	vlimit
172264790Sbapt78	AUE_MINCORE	NOPROTO	{ int mincore(const void *addr, size_t len, \
173264790Sbapt				    char *vec); }
174264790Sbapt79	AUE_GETGROUPS	NOPROTO	{ int getgroups(u_int gidsetsize, \
175264790Sbapt				    gid_t *gidset); }
176264790Sbapt80	AUE_SETGROUPS	NOPROTO	{ int setgroups(u_int gidsetsize, \
177264790Sbapt				    gid_t *gidset); }
178264790Sbapt81	AUE_GETPGRP	NOPROTO	{ int getpgrp(void); }
179264790Sbapt82	AUE_SETPGRP	NOPROTO	{ int setpgid(int pid, int pgid); }
180264790Sbapt83	AUE_SETITIMER	STD	{ int freebsd32_setitimer(u_int which, \
181264790Sbapt				    struct itimerval32 *itv, \
182264790Sbapt				    struct itimerval32 *oitv); }
183264790Sbapt84	AUE_NULL	OBSOL	owait
184264790Sbapt; XXX implement
185264790Sbapt85	AUE_SWAPON	NOPROTO	{ int swapon(char *name); }
186264790Sbapt86	AUE_GETITIMER	STD	{ int freebsd32_getitimer(u_int which, \
187264790Sbapt				    struct itimerval32 *itv); }
188264790Sbapt87	AUE_O_GETHOSTNAME	OBSOL	ogethostname
189264790Sbapt88	AUE_O_SETHOSTNAME	OBSOL	osethostname
190264790Sbapt89	AUE_GETDTABLESIZE	NOPROTO	{ int getdtablesize(void); }
191264790Sbapt90	AUE_DUP2	NOPROTO	{ int dup2(u_int from, u_int to); }
192264790Sbapt91	AUE_NULL	UNIMPL	getdopt
193264790Sbapt92	AUE_FCNTL	NOPROTO	{ int fcntl(int fd, int cmd, long arg); }
194264790Sbapt93	AUE_SELECT	STD	{ int freebsd32_select(int nd, fd_set *in, \
195264790Sbapt				    fd_set *ou, fd_set *ex, \
196264790Sbapt				    struct timeval32 *tv); }
197264790Sbapt; XXX need to override for big-endian - little-endian should work fine.
198264790Sbapt94	AUE_NULL	UNIMPL	setdopt
199264790Sbapt95	AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
200264790Sbapt96	AUE_SETPRIORITY	NOPROTO	{ int setpriority(int which, int who, \
201264790Sbapt				    int prio); }
202264790Sbapt97	AUE_SOCKET	NOPROTO	{ int socket(int domain, int type, \
203264790Sbapt				    int protocol); }
204264790Sbapt98	AUE_CONNECT	NOPROTO	{ int connect(int s, caddr_t name, \
205264790Sbapt				    int namelen); }
206264790Sbapt99	AUE_NULL	OBSOL	oaccept
207264790Sbapt100	AUE_GETPRIORITY	NOPROTO	{ int getpriority(int which, int who); }
208264790Sbapt101	AUE_NULL	OBSOL	osend
209264790Sbapt102	AUE_NULL	OBSOL	orecv
210264790Sbapt103	AUE_NULL	OBSOL	osigreturn
211264790Sbapt104	AUE_BIND	NOPROTO	{ int bind(int s, caddr_t name, \
212264790Sbapt				    int namelen); }
213264790Sbapt105	AUE_SETSOCKOPT	NOPROTO	{ int setsockopt(int s, int level, \
214264790Sbapt				    int name, caddr_t val, int valsize); }
215264790Sbapt106	AUE_LISTEN	NOPROTO	{ int listen(int s, int backlog); }
216264790Sbapt107	AUE_NULL	OBSOL	vtimes
217264790Sbapt108	AUE_O_SIGVEC	COMPAT	{ int freebsd32_sigvec(int signum, \
218264790Sbapt				     struct sigvec32 *nsv, \
219264790Sbapt				     struct sigvec32 *osv); }
220264790Sbapt109	AUE_O_SIGBLOCK	COMPAT	{ int freebsd32_sigblock(int mask); }
221264790Sbapt110	AUE_O_SIGSETMASK	COMPAT	{ int freebsd32_sigsetmask( int mask); }
222264790Sbapt111	AUE_SIGSUSPEND	COMPAT	{ int freebsd32_sigsuspend( int mask); }
223264790Sbapt112	AUE_O_SIGSTACK	COMPAT	{ int freebsd32_sigstack( \
224264790Sbapt				     struct sigstack32 *nss, \
225264790Sbapt				     struct sigstack32 *oss); }
226264790Sbapt113	AUE_NULL	OBSOL	orecvmsg
227264790Sbapt114	AUE_NULL	OBSOL	osendmsg
228264790Sbapt115	AUE_NULL	OBSOL	vtrace
229264790Sbapt116	AUE_GETTIMEOFDAY	STD	{ int freebsd32_gettimeofday( \
230264790Sbapt				    struct timeval32 *tp, \
231264790Sbapt				    struct timezone *tzp); }
232264790Sbapt117	AUE_GETRUSAGE	STD	{ int freebsd32_getrusage(int who, \
233264790Sbapt				    struct rusage32 *rusage); }
234264790Sbapt118	AUE_GETSOCKOPT	NOPROTO	{ int getsockopt(int s, int level, \
235264790Sbapt				    int name, caddr_t val, int *avalsize); }
236264790Sbapt119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
237264790Sbapt120	AUE_READV	STD	{ int freebsd32_readv(int fd, \
238264790Sbapt				    struct iovec32 *iovp, u_int iovcnt); }
239264790Sbapt121	AUE_WRITEV	STD	{ int freebsd32_writev(int fd, \
240264790Sbapt				    struct iovec32 *iovp, u_int iovcnt); }
241264790Sbapt122	AUE_SETTIMEOFDAY	STD	{ int freebsd32_settimeofday( \
242264790Sbapt				    struct timeval32 *tv, \
243264790Sbapt				    struct timezone *tzp); }
244264790Sbapt123	AUE_FCHOWN	NOPROTO	{ int fchown(int fd, int uid, int gid); }
245264790Sbapt124	AUE_FCHMOD	NOPROTO	{ int fchmod(int fd, int mode); }
246264790Sbapt125	AUE_RECVFROM	OBSOL	orecvfrom
247264790Sbapt126	AUE_SETREUID	NOPROTO	{ int setreuid(int ruid, int euid); }
248264790Sbapt127	AUE_SETREGID	NOPROTO	{ int setregid(int rgid, int egid); }
249264790Sbapt128	AUE_RENAME	NOPROTO	{ int rename(char *from, char *to); }
250264790Sbapt129	AUE_TRUNCATE	OBSOL	otruncate
251264790Sbapt130	AUE_FTRUNCATE	OBSOL	ftruncate
252264790Sbapt131	AUE_FLOCK	NOPROTO	{ int flock(int fd, int how); }
253264790Sbapt132	AUE_MKFIFO	NOPROTO	{ int mkfifo(char *path, int mode); }
254264790Sbapt133	AUE_SENDTO	NOPROTO	{ int sendto(int s, caddr_t buf, \
255264790Sbapt				    size_t len, int flags, caddr_t to, \
256264790Sbapt				    int tolen); }
257264790Sbapt134	AUE_SHUTDOWN	NOPROTO	{ int shutdown(int s, int how); }
258264790Sbapt135	AUE_SOCKETPAIR	NOPROTO	{ int socketpair(int domain, int type, \
259264790Sbapt				    int protocol, int *rsv); }
260264790Sbapt136	AUE_MKDIR	NOPROTO	{ int mkdir(char *path, int mode); }
261264790Sbapt137	AUE_RMDIR	NOPROTO	{ int rmdir(char *path); }
262264790Sbapt138	AUE_UTIMES	STD	{ int freebsd32_utimes(char *path, \
263264790Sbapt				    struct timeval32 *tptr); }
264264790Sbapt139	AUE_NULL	OBSOL	4.2 sigreturn
265264790Sbapt140	AUE_ADJTIME	STD	{ int freebsd32_adjtime( \
266264790Sbapt				    struct timeval32 *delta, \
267264790Sbapt				    struct timeval32 *olddelta); }
268264790Sbapt141	AUE_GETPEERNAME	OBSOL	ogetpeername
269264790Sbapt142	AUE_SYSCTL	OBSOL	ogethostid
270264790Sbapt143	AUE_SYSCTL	OBSOL	sethostid
271264790Sbapt144	AUE_GETRLIMIT	OBSOL	getrlimit
272264790Sbapt145	AUE_SETRLIMIT	OBSOL	setrlimit
273264790Sbapt146	AUE_KILLPG	OBSOL	killpg
274264790Sbapt147	AUE_SETSID	NOPROTO	{ int setsid(void); }
275264790Sbapt148	AUE_QUOTACTL	NOPROTO	{ int quotactl(char *path, int cmd, int uid, \
276264790Sbapt				    caddr_t arg); }
277264790Sbapt149	AUE_O_QUOTA	OBSOL oquota
278264790Sbapt150	AUE_GETSOCKNAME	OBSOL ogetsockname
279264790Sbapt
280264790Sbapt; Syscalls 151-180 inclusive are reserved for vendor-specific
281264790Sbapt; system calls.  (This includes various calls added for compatibity
282264790Sbapt; with other Unix variants.)
283264790Sbapt; Some of these calls are now supported by BSD...
284264790Sbapt151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
285264790Sbapt152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
286264790Sbapt153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
287264790Sbapt; 154 is initialised by the NLM code, if present.
288264790Sbapt154	AUE_NULL	UNIMPL	nlm_syscall
289272955Srodrigc; 155 is initialized by the NFS code, if present.
290272955Srodrigc; XXX this is a problem!!!
291272955Srodrigc155	AUE_NFS_SVC	UNIMPL	nfssvc
292272955Srodrigc156	AUE_GETDIRENTRIES	OBSOL	ogetdirentries
293272955Srodrigc157	AUE_STATFS	COMPAT4	{ int freebsd32_statfs(char *path, \
294272955Srodrigc				    struct statfs32 *buf); }
295272955Srodrigc158	AUE_FSTATFS	COMPAT4	{ int freebsd32_fstatfs(int fd, \
296272955Srodrigc				    struct statfs32 *buf); }
297272955Srodrigc159	AUE_NULL	UNIMPL	nosys
298272955Srodrigc160	AUE_LGETFH	UNIMPL	lgetfh
299272955Srodrigc161	AUE_NFS_GETFH	NOPROTO	{ int getfh(char *fname, \
300272955Srodrigc				    struct fhandle *fhp); }
301272955Srodrigc162	AUE_NULL	OBSOL	getdomainname
302272955Srodrigc163	AUE_NULL	OBSOL	setdomainname
303272955Srodrigc164	AUE_NULL	OBSOL	uname
304272955Srodrigc165	AUE_SYSARCH	STD	{ int freebsd32_sysarch(int op, char *parms); }
305272955Srodrigc166	AUE_RTPRIO	NOPROTO	{ int rtprio(int function, pid_t pid, \
306272955Srodrigc				    struct rtprio *rtp); }
307272955Srodrigc167	AUE_NULL	UNIMPL	nosys
308272955Srodrigc168	AUE_NULL	UNIMPL	nosys
309272955Srodrigc169	AUE_SEMSYS	STD	{ int freebsd32_semsys(int which, int a2, \
310272955Srodrigc				    int a3, int a4, int a5); }
311272955Srodrigc170	AUE_MSGSYS	STD	{ int freebsd32_msgsys(int which, int a2, \
312272955Srodrigc				    int a3, int a4, int a5, int a6); }
313272955Srodrigc171	AUE_SHMSYS	STD	{ int freebsd32_shmsys(uint32_t which, uint32_t a2, \
314272955Srodrigc				    uint32_t a3, uint32_t a4); }
315272955Srodrigc172	AUE_NULL	UNIMPL	nosys
316272955Srodrigc173	AUE_PREAD	COMPAT6	{ ssize_t freebsd32_pread(int fd, void *buf, \
317272955Srodrigc				    size_t nbyte, int pad, \
318272955Srodrigc				    u_int32_t offsetlo, u_int32_t offsethi); }
319264790Sbapt; XXX note - bigendian is different
320264790Sbapt174	AUE_PWRITE	COMPAT6	{ ssize_t freebsd32_pwrite(int fd, \
321264790Sbapt				    const void *buf, size_t nbyte, int pad, \
322264790Sbapt				    u_int32_t offsetlo, u_int32_t offsethi); }
323264790Sbapt; XXX note - bigendian is different
324264790Sbapt175	AUE_NULL	UNIMPL	nosys
325264790Sbapt176	AUE_NTP_ADJTIME	NOPROTO	{ int ntp_adjtime(struct timex *tp); }
326264790Sbapt177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
327264790Sbapt178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
328264790Sbapt179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
329264790Sbapt180	AUE_NULL	UNIMPL	nosys
330264790Sbapt
331264790Sbapt; Syscalls 181-199 are used by/reserved for BSD
332264790Sbapt181	AUE_SETGID	NOPROTO	{ int setgid(gid_t gid); }
333264790Sbapt182	AUE_SETEGID	NOPROTO	{ int setegid(gid_t egid); }
334264790Sbapt183	AUE_SETEUID	NOPROTO	{ int seteuid(uid_t euid); }
335264790Sbapt184	AUE_NULL	UNIMPL	lfs_bmapv
336264790Sbapt185	AUE_NULL	UNIMPL	lfs_markv
337264790Sbapt186	AUE_NULL	UNIMPL	lfs_segclean
338264790Sbapt187	AUE_NULL	UNIMPL	lfs_segwait
339264790Sbapt188	AUE_STAT	STD	{ int freebsd32_stat(char *path, \
340264790Sbapt				    struct stat32 *ub); }
341264790Sbapt189	AUE_FSTAT	STD	{ int freebsd32_fstat(int fd, \
342264790Sbapt				    struct stat32 *ub); }
343264790Sbapt190	AUE_LSTAT	STD	{ int freebsd32_lstat(char *path, \
344264790Sbapt				    struct stat32 *ub); }
345264790Sbapt191	AUE_PATHCONF	NOPROTO	{ int pathconf(char *path, int name); }
346264790Sbapt192	AUE_FPATHCONF	NOPROTO	{ int fpathconf(int fd, int name); }
347264790Sbapt193	AUE_NULL	UNIMPL	nosys
348264790Sbapt194	AUE_GETRLIMIT	NOPROTO	{ int getrlimit(u_int which, \
349264790Sbapt				    struct rlimit *rlp); } getrlimit \
350264790Sbapt				    __getrlimit_args int
351264790Sbapt195	AUE_SETRLIMIT	NOPROTO	{ int setrlimit(u_int which, \
352264790Sbapt				    struct rlimit *rlp); } setrlimit \
353264790Sbapt				    __setrlimit_args int
354264790Sbapt196	AUE_GETDIRENTRIES	STD	{ int freebsd32_getdirentries(int fd, \
355264790Sbapt				    char *buf, u_int count, int32_t *basep); }
356264790Sbapt197	AUE_MMAP	COMPAT6	{ caddr_t freebsd32_mmap(caddr_t addr, \
357264790Sbapt				    size_t len, int prot, int flags, int fd, \
358264790Sbapt				    int pad, u_int32_t poslo, \
359264790Sbapt				    u_int32_t poshi); }
360264790Sbapt198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
361264790Sbapt				    __syscall_args int
362264790Sbapt; XXX note - bigendian is different
363264790Sbapt199	AUE_LSEEK	COMPAT6	{ off_t freebsd32_lseek(int fd, int pad, \
364264790Sbapt				    u_int32_t offsetlo, u_int32_t offsethi, \
365264790Sbapt				    int whence); }
366264790Sbapt; XXX note - bigendian is different
367264790Sbapt200	AUE_TRUNCATE	COMPAT6	{ int freebsd32_truncate(char *path, \
368264790Sbapt				    int pad, u_int32_t lengthlo, \
369264790Sbapt				    u_int32_t lengthhi); }
370264790Sbapt; XXX note - bigendian is different
371264790Sbapt201	AUE_FTRUNCATE	COMPAT6	{ int freebsd32_ftruncate(int fd, int pad, \
372264790Sbapt				    u_int32_t lengthlo, u_int32_t lengthhi); }
373264790Sbapt202	AUE_SYSCTL	STD	{ int freebsd32_sysctl(int *name, \
374264790Sbapt				    u_int namelen, void *old, \
375264790Sbapt				    u_int32_t *oldlenp, void *new, \
376264790Sbapt				    u_int32_t newlen); }
377264790Sbapt203	AUE_MLOCK	NOPROTO	{ int mlock(const void *addr, \
378264790Sbapt				    size_t len); }
379264790Sbapt204	AUE_MUNLOCK	NOPROTO	{ int munlock(const void *addr, \
380264790Sbapt				    size_t len); }
381264790Sbapt205	AUE_UNDELETE	NOPROTO	{ int undelete(char *path); }
382264790Sbapt206	AUE_FUTIMES	STD	{ int freebsd32_futimes(int fd, \
383264790Sbapt				    struct timeval32 *tptr); }
384264790Sbapt207	AUE_GETPGID	NOPROTO	{ int getpgid(pid_t pid); }
385264790Sbapt208	AUE_NULL	UNIMPL	newreboot (NetBSD)
386264790Sbapt209	AUE_POLL	NOPROTO	{ int poll(struct pollfd *fds, u_int nfds, \
387264790Sbapt				    int timeout); }
388264790Sbapt
389264790Sbapt;
390264790Sbapt; The following are reserved for loadable syscalls
391264790Sbapt;
392264790Sbapt210	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
393264790Sbapt211	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
394264790Sbapt212	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
395264790Sbapt213	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
396264790Sbapt214	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
397264790Sbapt215	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
398264790Sbapt216	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
399264790Sbapt217	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
400264790Sbapt218	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
401264790Sbapt219	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
402264790Sbapt
403264790Sbapt;
404264790Sbapt; The following were introduced with NetBSD/4.4Lite-2
405264790Sbapt; They are initialized by thier respective modules/sysinits
406264790Sbapt; XXX PROBLEM!!
407264790Sbapt220	AUE_SEMCTL	STD	{ int freebsd32_semctl(int semid, int semnum, \
408264790Sbapt				    int cmd, union semun32 *arg); }
409264790Sbapt221	AUE_SEMGET	NOPROTO	{ int semget(key_t key, int nsems, \
410264790Sbapt				    int semflg); }
411264790Sbapt222	AUE_SEMOP	NOPROTO	{ int semop(int semid, struct sembuf *sops, \
412264790Sbapt				    u_int nsops); }
413264790Sbapt223	AUE_NULL	UNIMPL	semconfig
414264790Sbapt224	AUE_MSGCTL	STD	{ int freebsd32_msgctl(int msqid, int cmd, \
415264790Sbapt				    struct msqid_ds32 *buf); }
416264790Sbapt225	AUE_MSGGET	NOPROTO	{ int msgget(key_t key, int msgflg); }
417264790Sbapt226	AUE_MSGSND	STD	{ int freebsd32_msgsnd(int msqid, void *msgp, \
418264790Sbapt				    size_t msgsz, int msgflg); }
419264790Sbapt227	AUE_MSGRCV	STD	{ int freebsd32_msgrcv(int msqid, void *msgp, \
420264790Sbapt				    size_t msgsz, long msgtyp, int msgflg); }
421264790Sbapt228	AUE_SHMAT	NOPROTO	{ int shmat(int shmid, void *shmaddr, \
422264790Sbapt				    int shmflg); }
423264790Sbapt229	AUE_SHMCTL	STD	{ int freebsd32_shmctl(int shmid, int cmd, \
424264790Sbapt				    struct shmid_ds *buf); }
425264790Sbapt230	AUE_SHMDT	NOPROTO	{ int shmdt(void *shmaddr); }
426264790Sbapt231	AUE_SHMGET	NOPROTO	{ int shmget(key_t key, int size, \
427264790Sbapt				    int shmflg); }
428264790Sbapt;
429264790Sbapt232	AUE_NULL	STD 	{ int freebsd32_clock_gettime(clockid_t clock_id, \
430264790Sbapt				    struct timespec32 *tp); }
431264790Sbapt233	AUE_CLOCK_SETTIME	STD	{ int freebsd32_clock_settime(clockid_t clock_id, \
432264790Sbapt				    const struct timespec32 *tp); }
433264790Sbapt234	AUE_NULL	STD	{ int freebsd32_clock_getres(clockid_t clock_id, \
434264790Sbapt				    struct timespec32 *tp); }
435264790Sbapt235	AUE_NULL	UNIMPL	timer_create
436264790Sbapt236	AUE_NULL	UNIMPL	timer_delete
437264790Sbapt237	AUE_NULL	UNIMPL	timer_settime
438264790Sbapt238	AUE_NULL	UNIMPL	timer_gettime
439264790Sbapt239	AUE_NULL	UNIMPL	timer_getoverrun
440264790Sbapt240	AUE_NULL	STD	{ int freebsd32_nanosleep( \
441264790Sbapt				    const struct timespec32 *rqtp, \
442264790Sbapt				    struct timespec32 *rmtp); }
443264790Sbapt241	AUE_NULL	UNIMPL	nosys
444264790Sbapt242	AUE_NULL	UNIMPL	nosys
445264790Sbapt243	AUE_NULL	UNIMPL	nosys
446264790Sbapt244	AUE_NULL	UNIMPL	nosys
447264790Sbapt245	AUE_NULL	UNIMPL	nosys
448264790Sbapt246	AUE_NULL	UNIMPL	nosys
449264790Sbapt247	AUE_NULL	UNIMPL	nosys
450264790Sbapt248	AUE_NULL	UNIMPL	ntp_gettime
451264790Sbapt249	AUE_NULL	UNIMPL	nosys
452264790Sbapt; syscall numbers initially used in OpenBSD
453264790Sbapt250	AUE_MINHERIT	NOPROTO	{ int minherit(void *addr, size_t len, \
454264790Sbapt				    int inherit); }
455264790Sbapt251	AUE_RFORK	NOPROTO	{ int rfork(int flags); }
456264790Sbapt252	AUE_POLL	NOPROTO	{ int openbsd_poll(struct pollfd *fds, \
457264790Sbapt				    u_int nfds, int timeout); }
458264790Sbapt253	AUE_ISSETUGID	NOPROTO	{ int issetugid(void); }
459264790Sbapt254	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, int uid, int gid); }
460264790Sbapt255	AUE_NULL	NOSTD	{ int freebsd32_aio_read( \
461264790Sbapt				    struct aiocb32 *aiocbp); }
462264790Sbapt256	AUE_NULL	NOSTD	{ int freebsd32_aio_write( \
463264790Sbapt				    struct aiocb32 *aiocbp); }
464264790Sbapt257	AUE_NULL	NOSTD	{ int freebsd32_lio_listio(int mode, \
465264790Sbapt				    struct aiocb32 * const *acb_list, \
466264790Sbapt				    int nent, struct sigevent *sig); }
467264790Sbapt258	AUE_NULL	UNIMPL	nosys
468264790Sbapt259	AUE_NULL	UNIMPL	nosys
469264790Sbapt260	AUE_NULL	UNIMPL	nosys
470264790Sbapt261	AUE_NULL	UNIMPL	nosys
471264790Sbapt262	AUE_NULL	UNIMPL	nosys
472264790Sbapt263	AUE_NULL	UNIMPL	nosys
473264790Sbapt264	AUE_NULL	UNIMPL	nosys
474264790Sbapt265	AUE_NULL	UNIMPL	nosys
475264790Sbapt266	AUE_NULL	UNIMPL	nosys
476264790Sbapt267	AUE_NULL	UNIMPL	nosys
477264790Sbapt268	AUE_NULL	UNIMPL	nosys
478264790Sbapt269	AUE_NULL	UNIMPL	nosys
479264790Sbapt270	AUE_NULL	UNIMPL	nosys
480264790Sbapt271	AUE_NULL	UNIMPL	nosys
481264790Sbapt272	AUE_O_GETDENTS	NOPROTO	{ int getdents(int fd, char *buf, \
482264790Sbapt				    size_t count); }
483264790Sbapt273	AUE_NULL	UNIMPL	nosys
484264790Sbapt274	AUE_LCHMOD	NOPROTO	{ int lchmod(char *path, mode_t mode); }
485264790Sbapt275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
486264790Sbapt				    gid_t gid); } netbsd_lchown \
487264790Sbapt				    lchown_args int
488264790Sbapt276	AUE_LUTIMES	STD	{ int freebsd32_lutimes(char *path, \
489264790Sbapt				    struct timeval32 *tptr); }
490264790Sbapt277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
491264790Sbapt				    int flags); } netbsd_msync msync_args int
492264790Sbapt278	AUE_STAT	NOPROTO	{ int nstat(char *path, struct nstat *ub); }
493264790Sbapt279	AUE_FSTAT	NOPROTO	{ int nfstat(int fd, struct nstat *sb); }
494264790Sbapt280	AUE_LSTAT	NOPROTO	{ int nlstat(char *path, struct nstat *ub); }
495264790Sbapt281	AUE_NULL	UNIMPL	nosys
496264790Sbapt282	AUE_NULL	UNIMPL	nosys
497264790Sbapt283	AUE_NULL	UNIMPL	nosys
498264790Sbapt284	AUE_NULL	UNIMPL	nosys
499264790Sbapt285	AUE_NULL	UNIMPL	nosys
500264790Sbapt286	AUE_NULL	UNIMPL	nosys
501264790Sbapt287	AUE_NULL	UNIMPL	nosys
502264790Sbapt288	AUE_NULL	UNIMPL	nosys
503264790Sbapt; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
504264790Sbapt289	AUE_PREADV	STD	{ ssize_t freebsd32_preadv(int fd, \
505264790Sbapt					struct iovec32 *iovp, \
506264790Sbapt					u_int iovcnt, off_t offset); }
507264790Sbapt; XXX note - bigendian is different
508264790Sbapt290	AUE_PWRITEV	STD	{ ssize_t freebsd32_pwritev(int fd, \
509264790Sbapt					struct iovec32 *iovp, \
510264790Sbapt					u_int iovcnt, off_t offset); }
511264790Sbapt; XXX note - bigendian is different
512264790Sbapt291	AUE_NULL	UNIMPL	nosys
513264790Sbapt292	AUE_NULL	UNIMPL	nosys
514264790Sbapt293	AUE_NULL	UNIMPL	nosys
515264790Sbapt294	AUE_NULL	UNIMPL	nosys
516264790Sbapt295	AUE_NULL	UNIMPL	nosys
517264790Sbapt296	AUE_NULL	UNIMPL	nosys
518264790Sbapt; XXX 297 is 300 in NetBSD 
519264790Sbapt297	AUE_FHSTATFS	COMPAT4	{ int freebsd32_fhstatfs( \
520264790Sbapt				    const struct fhandle *u_fhp, \
521264790Sbapt				    struct statfs32 *buf); }
522264790Sbapt298	AUE_FHOPEN	NOPROTO	{ int fhopen(const struct fhandle *u_fhp, \
523264790Sbapt			 	    int flags); }
524264790Sbapt299	AUE_FHSTAT	NOPROTO	{ int fhstat(const struct fhandle *u_fhp, \
525264790Sbapt				    struct stat *sb); }
526264790Sbapt; syscall numbers for FreeBSD
527264790Sbapt300	AUE_NULL	NOPROTO	{ int modnext(int modid); }
528264790Sbapt301	AUE_NULL	STD	{ int freebsd32_modstat(int modid, \
529272955Srodrigc				    struct module_stat32* stat); }
530264790Sbapt302	AUE_NULL	NOPROTO	{ int modfnext(int modid); }
531264790Sbapt303	AUE_NULL	NOPROTO	{ int modfind(const char *name); }
532264790Sbapt304	AUE_MODLOAD	NOPROTO	{ int kldload(const char *file); }
533264790Sbapt305	AUE_MODUNLOAD	NOPROTO	{ int kldunload(int fileid); }
534264790Sbapt306	AUE_NULL	NOPROTO	{ int kldfind(const char *file); }
535264790Sbapt307	AUE_NULL	NOPROTO	{ int kldnext(int fileid); }
536264790Sbapt308	AUE_NULL	NOPROTO	{ int kldstat(int fileid, \
537264790Sbapt				    struct kld_file_stat* stat); }
538272955Srodrigc309	AUE_NULL	NOPROTO	{ int kldfirstmod(int fileid); }
539264790Sbapt310	AUE_GETSID	NOPROTO	{ int getsid(pid_t pid); }
540264790Sbapt311	AUE_SETRESUID	NOPROTO	{ int setresuid(uid_t ruid, uid_t euid, \
541272955Srodrigc				    uid_t suid); }
542272955Srodrigc312	AUE_SETRESGID	NOPROTO	{ int setresgid(gid_t rgid, gid_t egid, \
543264790Sbapt				    gid_t sgid); }
544264790Sbapt313	AUE_NULL	OBSOL	signanosleep
545264790Sbapt314	AUE_NULL	NOSTD	{ int freebsd32_aio_return( \
546264790Sbapt				    struct aiocb32 *aiocbp); }
547264790Sbapt315	AUE_NULL	NOSTD	{ int freebsd32_aio_suspend( \
548264790Sbapt				    struct aiocb32 * const * aiocbp, int nent, \
549264790Sbapt				    const struct timespec32 *timeout); }
550264790Sbapt316	AUE_NULL	NOSTD	{ int freebsd32_aio_cancel(int fd, \
551264790Sbapt				    struct aiocb32 *aiocbp); }
552264790Sbapt317	AUE_NULL	NOSTD	{ int freebsd32_aio_error( \
553264790Sbapt				    struct aiocb32 *aiocbp); }
554264790Sbapt318	AUE_NULL	NOSTD	{ int freebsd32_oaio_read( \
555264790Sbapt				    struct oaiocb32 *aiocbp); }
556264790Sbapt319	AUE_NULL	NOSTD	{ int freebsd32_oaio_write( \
557264790Sbapt				    struct oaiocb32 *aiocbp); }
558264790Sbapt320	AUE_NULL	NOSTD	{ int freebsd32_olio_listio(int mode, \
559264790Sbapt				    struct oaiocb32 * const *acb_list, \
560264790Sbapt				    int nent, struct osigevent32 *sig); }
561264790Sbapt321	AUE_NULL	NOPROTO	{ int yield(void); }
562264790Sbapt322	AUE_NULL	OBSOL	thr_sleep
563264790Sbapt323	AUE_NULL	OBSOL	thr_wakeup
564264790Sbapt324	AUE_MLOCKALL	NOPROTO	{ int mlockall(int how); }
565264790Sbapt325	AUE_MUNLOCKALL	NOPROTO	{ int munlockall(void); }
566264790Sbapt326	AUE_GETCWD	NOPROTO	{ int __getcwd(u_char *buf, u_int buflen); }
567264790Sbapt
568264790Sbapt327	AUE_NULL	NOPROTO	{ int sched_setparam (pid_t pid, \
569264790Sbapt				    const struct sched_param *param); }
570264790Sbapt328	AUE_NULL	NOPROTO	{ int sched_getparam (pid_t pid, \
571264790Sbapt				    struct sched_param *param); }
572264790Sbapt
573264790Sbapt329	AUE_NULL	NOPROTO	{ int sched_setscheduler (pid_t pid, \
574264790Sbapt				    int policy, \
575264790Sbapt				    const struct sched_param *param); }
576264790Sbapt330	AUE_NULL	NOPROTO	{ int sched_getscheduler (pid_t pid); }
577264790Sbapt
578264790Sbapt331	AUE_NULL	NOPROTO	{ int sched_yield (void); }
579264790Sbapt332	AUE_NULL	NOPROTO	{ int sched_get_priority_max (int policy); }
580264790Sbapt333	AUE_NULL	NOPROTO	{ int sched_get_priority_min (int policy); }
581264790Sbapt334	AUE_NULL	NOPROTO	{ int sched_rr_get_interval (pid_t pid, \
582264790Sbapt				    struct timespec *interval); }
583264790Sbapt335	AUE_NULL	NOPROTO	{ int utrace(const void *addr, size_t len); }
584264790Sbapt; XXX note - bigendian is different
585264790Sbapt336	AUE_SENDFILE	COMPAT4	{ int freebsd32_sendfile(int fd, int s, \
586264790Sbapt				    u_int32_t offsetlo, u_int32_t offsethi, \
587264790Sbapt				    size_t nbytes, struct sf_hdtr32 *hdtr, \
588264790Sbapt				    off_t *sbytes, int flags); }
589264790Sbapt337	AUE_NULL	NOPROTO	{ int kldsym(int fileid, int cmd, \
590264790Sbapt				    void *data); }
591264790Sbapt338	AUE_JAIL	STD	{ int freebsd32_jail(struct jail32 *jail); }
592264790Sbapt339	AUE_NULL	UNIMPL	pioctl
593264790Sbapt340	AUE_SIGPROCMASK	NOPROTO	{ int sigprocmask(int how, \
594264790Sbapt				    const sigset_t *set, sigset_t *oset); }
595264790Sbapt341	AUE_SIGSUSPEND	NOPROTO	{ int sigsuspend(const sigset_t *sigmask); }
596264790Sbapt342	AUE_SIGACTION	COMPAT4	{ int freebsd32_sigaction(int sig, \
597264790Sbapt				    struct sigaction32 *act, \
598264790Sbapt				    struct sigaction32 *oact); }
599264790Sbapt343	AUE_SIGPENDING	NOPROTO	{ int sigpending(sigset_t *set); }
600264790Sbapt344	AUE_SIGRETURN	COMPAT4	{ int freebsd32_sigreturn( \
601264790Sbapt		    const struct freebsd4_freebsd32_ucontext *sigcntxp); }
602264790Sbapt345	AUE_SIGWAIT	STD	{ int freebsd32_sigtimedwait(const sigset_t *set, \
603264790Sbapt				    siginfo_t *info, \
604264790Sbapt				    const struct timespec *timeout); }
605264790Sbapt346	AUE_NULL	STD	{ int freebsd32_sigwaitinfo(const sigset_t *set, \
606264790Sbapt				    siginfo_t *info); }
607264790Sbapt347	AUE_NULL	NOPROTO	{ int __acl_get_file(const char *path, \
608264790Sbapt				    acl_type_t type, struct acl *aclp); }
609264790Sbapt348	AUE_NULL	NOPROTO	{ int __acl_set_file(const char *path, \
610264790Sbapt				    acl_type_t type, struct acl *aclp); }
611264790Sbapt349	AUE_NULL	NOPROTO	{ int __acl_get_fd(int filedes, \
612264790Sbapt				    acl_type_t type, struct acl *aclp); }
613264790Sbapt350	AUE_NULL	NOPROTO	{ int __acl_set_fd(int filedes, \
614264790Sbapt				    acl_type_t type, struct acl *aclp); }
615264790Sbapt351	AUE_NULL	NOPROTO	{ int __acl_delete_file(const char *path, \
616264790Sbapt				    acl_type_t type); }
617264790Sbapt352	AUE_NULL	NOPROTO	{ int __acl_delete_fd(int filedes, \
618264790Sbapt				    acl_type_t type); }
619264790Sbapt353	AUE_NULL	NOPROTO	{ int __acl_aclcheck_file(const char *path, \
620264790Sbapt				    acl_type_t type, struct acl *aclp); }
621264790Sbapt354	AUE_NULL	NOPROTO	{ int __acl_aclcheck_fd(int filedes, \
622264790Sbapt				    acl_type_t type, struct acl *aclp); }
623264790Sbapt355	AUE_EXTATTRCTL	NOPROTO	{ int extattrctl(const char *path, int cmd, \
624264790Sbapt				    const char *filename, int attrnamespace, \
625264790Sbapt				    const char *attrname); }
626264790Sbapt356	AUE_EXTATTR_SET_FILE	NOPROTO	{ int extattr_set_file( \
627264790Sbapt				    const char *path, int attrnamespace, \
628264790Sbapt				    const char *attrname, void *data, \
629264790Sbapt				    size_t nbytes); }
630264790Sbapt357	AUE_EXTATTR_GET_FILE	NOPROTO	{ ssize_t extattr_get_file( \
631264790Sbapt				    const char *path, int attrnamespace, \
632264790Sbapt				    const char *attrname, void *data, \
633264790Sbapt				    size_t nbytes); }
634264790Sbapt358	AUE_EXTATTR_DELETE_FILE	NOPROTO	{ int extattr_delete_file( \
635264790Sbapt				    const char *path, int attrnamespace, \
636264790Sbapt				    const char *attrname); }
637264790Sbapt359	AUE_NULL	NOSTD	{ int freebsd32_aio_waitcomplete( \
638264790Sbapt				    struct aiocb32 **aiocbp, \
639264790Sbapt				    struct timespec32 *timeout); }
640264790Sbapt360	AUE_GETRESUID	NOPROTO	{ int getresuid(uid_t *ruid, uid_t *euid, \
641264790Sbapt				    uid_t *suid); }
642264790Sbapt361	AUE_GETRESGID	NOPROTO	{ int getresgid(gid_t *rgid, gid_t *egid, \
643264790Sbapt				    gid_t *sgid); }
644264790Sbapt362	AUE_KQUEUE	NOPROTO	{ int kqueue(void); }
645264790Sbapt363	AUE_NULL	STD	{ int freebsd32_kevent(int fd, \
646264790Sbapt				    const struct kevent32 *changelist, \
647264790Sbapt				    int nchanges, \
648264790Sbapt				    struct kevent32 *eventlist, int nevents, \
649264790Sbapt				    const struct timespec32 *timeout); }
650264790Sbapt364	AUE_NULL	UNIMPL	__cap_get_proc
651264790Sbapt365	AUE_NULL	UNIMPL	__cap_set_proc
652264790Sbapt366	AUE_NULL	UNIMPL	__cap_get_fd
653264790Sbapt367	AUE_NULL	UNIMPL	__cap_get_file
654264790Sbapt368	AUE_NULL	UNIMPL	__cap_set_fd
655264790Sbapt369	AUE_NULL	UNIMPL	__cap_set_file
656264790Sbapt370	AUE_NULL	UNIMPL	nosys
657264790Sbapt371	AUE_EXTATTR_SET_FD	NOPROTO	{ int extattr_set_fd(int fd, \
658264790Sbapt				    int attrnamespace, const char *attrname, \
659264790Sbapt				    void *data, size_t nbytes); }
660264790Sbapt372	AUE_EXTATTR_GET_FD	NOPROTO	{ ssize_t extattr_get_fd(int fd, \
661264790Sbapt				    int attrnamespace, const char *attrname, \
662264790Sbapt				    void *data, size_t nbytes); }
663264790Sbapt373	AUE_EXTATTR_DELETE_FD	NOPROTO	{ int extattr_delete_fd(int fd, \
664264790Sbapt				    int attrnamespace, \
665264790Sbapt				    const char *attrname); }
666264790Sbapt374	AUE_NULL	NOPROTO	{ int __setugid(int flag); }
667264790Sbapt375	AUE_NULL	UNIMPL	nfsclnt
668264790Sbapt376	AUE_EACCESS	NOPROTO	{ int eaccess(char *path, int flags); }
669264790Sbapt377	AUE_NULL	UNIMPL	afs_syscall
670264790Sbapt378	AUE_NMOUNT	STD	{ int freebsd32_nmount(struct iovec32 *iovp, \
671264790Sbapt				    unsigned int iovcnt, int flags); }
672264790Sbapt379	AUE_NULL	UNIMPL	kse_exit
673264790Sbapt380	AUE_NULL	UNIMPL	kse_wakeup
674264790Sbapt381	AUE_NULL	UNIMPL	kse_create
675264790Sbapt382	AUE_NULL	UNIMPL	kse_thr_interrupt
676264790Sbapt383	AUE_NULL	UNIMPL	kse_release
677264790Sbapt384	AUE_NULL	UNIMPL	__mac_get_proc
678264790Sbapt385	AUE_NULL	UNIMPL	__mac_set_proc
679264790Sbapt386	AUE_NULL	UNIMPL	__mac_get_fd
680264790Sbapt387	AUE_NULL	UNIMPL	__mac_get_file
681264790Sbapt388	AUE_NULL	UNIMPL	__mac_set_fd
682264790Sbapt389	AUE_NULL	UNIMPL	__mac_set_file
683264790Sbapt390	AUE_NULL	NOPROTO	{ int kenv(int what, const char *name, \
684264790Sbapt				    char *value, int len); }
685264790Sbapt391	AUE_LCHFLAGS	NOPROTO	{ int lchflags(const char *path, int flags); }
686264790Sbapt392	AUE_NULL	NOPROTO	{ int uuidgen(struct uuid *store, \
687264790Sbapt				    int count); }
688264790Sbapt393	AUE_SENDFILE	STD	{ int freebsd32_sendfile(int fd, int s, \
689264790Sbapt				    u_int32_t offsetlo, u_int32_t offsethi, \
690264790Sbapt				    size_t nbytes, struct sf_hdtr32 *hdtr, \
691264790Sbapt				    off_t *sbytes, int flags); }
692264790Sbapt394	AUE_NULL	UNIMPL	mac_syscall
693264790Sbapt395	AUE_GETFSSTAT	NOPROTO	{ int getfsstat(struct statfs *buf, \
694264790Sbapt				    long bufsize, int flags); }
695264790Sbapt396	AUE_STATFS	NOPROTO	{ int statfs(char *path, \
696264790Sbapt				    struct statfs *buf); }
697264790Sbapt397	AUE_FSTATFS	NOPROTO	{ int fstatfs(int fd, struct statfs *buf); }
698264790Sbapt398	AUE_FHSTATFS	NOPROTO	{ int fhstatfs(const struct fhandle *u_fhp, \
699264790Sbapt				    struct statfs *buf); }
700264790Sbapt399	AUE_NULL	UNIMPL	nosys
701264790Sbapt; XXX implement these?
702264790Sbapt400	AUE_NULL	UNIMPL	ksem_close
703264790Sbapt401	AUE_NULL	UNIMPL	ksem_post
704264790Sbapt402	AUE_NULL	UNIMPL	ksem_wait
705264790Sbapt403	AUE_NULL	UNIMPL	ksem_trywait
706264790Sbapt404	AUE_NULL	UNIMPL	ksem_init
707264790Sbapt405	AUE_NULL	UNIMPL	ksem_open
708264790Sbapt406	AUE_NULL	UNIMPL	ksem_unlink
709264790Sbapt407	AUE_NULL	UNIMPL	ksem_getvalue
710264790Sbapt408	AUE_NULL	UNIMPL	ksem_destroy
711264790Sbapt409	AUE_NULL	UNIMPL	__mac_get_pid
712264790Sbapt410	AUE_NULL	UNIMPL	__mac_get_link
713264790Sbapt411	AUE_NULL	UNIMPL	__mac_set_link
714264790Sbapt412	AUE_EXTATTR_SET_LINK	NOPROTO	{ int extattr_set_link( \
715264790Sbapt				    const char *path, int attrnamespace, \
716264790Sbapt				    const char *attrname, void *data, \
717264790Sbapt				    size_t nbytes); }
718264790Sbapt413	AUE_EXTATTR_GET_LINK	NOPROTO	{ ssize_t extattr_get_link( \
719264790Sbapt				    const char *path, int attrnamespace, \
720264790Sbapt				    const char *attrname, void *data, \
721264790Sbapt				    size_t nbytes); }
722264790Sbapt414	AUE_EXTATTR_DELETE_LINK	NOPROTO	{ int extattr_delete_link( \
723264790Sbapt				    const char *path, int attrnamespace, \
724264790Sbapt				    const char *attrname); }
725264790Sbapt415	AUE_NULL	UNIMPL	__mac_execve
726272955Srodrigc416	AUE_SIGACTION	STD	{ int freebsd32_sigaction(int sig, \
727272955Srodrigc				    struct sigaction32 *act, \
728264790Sbapt				    struct sigaction32 *oact); }
729264790Sbapt417	AUE_SIGRETURN	STD	{ int freebsd32_sigreturn( \
730264790Sbapt		    const struct freebsd32_ucontext *sigcntxp); }
731264790Sbapt418	AUE_NULL	UNIMPL	__xstat
732264790Sbapt419	AUE_NULL	UNIMPL	__xfstat
733264790Sbapt420	AUE_NULL	UNIMPL	__xlstat
734264790Sbapt421	AUE_NULL	STD	{ int freebsd32_getcontext( \
735264790Sbapt				    struct freebsd32_ucontext *ucp); }
736264790Sbapt422	AUE_NULL	STD	{ int freebsd32_setcontext( \
737264790Sbapt				    const struct freebsd32_ucontext *ucp); }
738264790Sbapt423	AUE_NULL	STD	{ int freebsd32_swapcontext( \
739264790Sbapt				    struct freebsd32_ucontext *oucp, \
740264790Sbapt				    const struct freebsd32_ucontext *ucp); }
741264790Sbapt424	AUE_SWAPOFF	UNIMPL	swapoff
742264790Sbapt425	AUE_NULL	UNIMPL	__acl_get_link
743264790Sbapt426	AUE_NULL	UNIMPL	__acl_set_link
744264790Sbapt427	AUE_NULL	UNIMPL	__acl_delete_link
745264790Sbapt428	AUE_NULL	UNIMPL	__acl_aclcheck_link
746264790Sbapt429	AUE_SIGWAIT	NOPROTO	{ int sigwait(const sigset_t *set, \
747264790Sbapt				    int *sig); }
748264790Sbapt430	AUE_NULL	UNIMPL	thr_create;
749264790Sbapt431	AUE_NULL	NOPROTO	{ void thr_exit(long *state); }
750264790Sbapt432	AUE_NULL	NOPROTO	{ int thr_self(long *id); }
751264790Sbapt433	AUE_NULL	NOPROTO	{ int thr_kill(long id, int sig); }
752264790Sbapt434	AUE_NULL	STD	{ int freebsd32_umtx_lock(struct umtx *umtx); }
753264790Sbapt435	AUE_NULL	STD	{ int freebsd32_umtx_unlock(struct umtx *umtx); }
754264790Sbapt436	AUE_NULL	NOPROTO	{ int jail_attach(int jid); }
755264790Sbapt437	AUE_EXTATTR_LIST_FD	NOPROTO	{ ssize_t extattr_list_fd(int fd, \
756264790Sbapt				    int attrnamespace, void *data, \
757264790Sbapt				    size_t nbytes); }
758264790Sbapt438	AUE_EXTATTR_LIST_FILE	NOPROTO	{ ssize_t extattr_list_file( \
759264790Sbapt				    const char *path, int attrnamespace, \
760264790Sbapt				    void *data, size_t nbytes); }
761264790Sbapt439	AUE_EXTATTR_LIST_LINK	NOPROTO	{ ssize_t extattr_list_link( \
762264790Sbapt				    const char *path, int attrnamespace, \
763264790Sbapt				    void *data, size_t nbytes); }
764264790Sbapt440	AUE_NULL	UNIMPL	kse_switchin
765264790Sbapt441	AUE_NULL	UNIMPL	ksem_timedwait
766264790Sbapt442	AUE_NULL	STD	{ int freebsd32_thr_suspend( \
767264790Sbapt				    const struct timespec32 *timeout); }
768264790Sbapt443	AUE_NULL	NOPROTO	{ int thr_wake(long id); }
769264790Sbapt444	AUE_MODUNLOAD	NOPROTO	{ int kldunloadf(int fileid, int flags); }
770264790Sbapt445	AUE_AUDIT	NOPROTO	{ int audit(const void *record, \
771264790Sbapt				    u_int length); }
772264790Sbapt446	AUE_AUDITON	NOPROTO	{ int auditon(int cmd, void *data, \
773264790Sbapt				    u_int length); }
774264790Sbapt447	AUE_GETAUID	NOPROTO	{ int getauid(uid_t *auid); }
775264790Sbapt448	AUE_SETAUID	NOPROTO	{ int setauid(uid_t *auid); }
776264790Sbapt449	AUE_GETAUDIT	NOPROTO	{ int getaudit(struct auditinfo *auditinfo); }
777264790Sbapt450	AUE_SETAUDIT	NOPROTO	{ int setaudit(struct auditinfo *auditinfo); }
778264790Sbapt451	AUE_GETAUDIT_ADDR	NOPROTO	{ int getaudit_addr( \
779264790Sbapt				    struct auditinfo_addr *auditinfo_addr, \
780264790Sbapt				    u_int length); }
781264790Sbapt452	AUE_SETAUDIT_ADDR	NOPROTO	{ int setaudit_addr( \
782264790Sbapt				    struct auditinfo_addr *auditinfo_addr, \
783264790Sbapt				    u_int length); }
784264790Sbapt453	AUE_AUDITCTL	NOPROTO	{ int auditctl(char *path); }
785264790Sbapt454	AUE_NULL	STD	{ int freebsd32_umtx_op(void *obj, int op,\
786264790Sbapt				    u_long val, void *uaddr, \
787264790Sbapt				    void *uaddr2); }
788264790Sbapt455	AUE_NULL	STD	{ int freebsd32_thr_new(	\
789264790Sbapt				    struct thr_param32 *param,	\
790264790Sbapt				    int param_size); }
791264790Sbapt456	AUE_NULL	NOPROTO	{ int sigqueue(pid_t pid, int signum, \
792264790Sbapt				    void *value); }
793264790Sbapt457	AUE_NULL	UNIMPL	kmq_open
794264790Sbapt458	AUE_NULL	UNIMPL	kmq_setattr
795264790Sbapt459	AUE_NULL	UNIMPL	kmq_timedreceive
796264790Sbapt460	AUE_NULL	UNIMPL  kmq_timedsend
797264790Sbapt461	AUE_NULL	UNIMPL	kmq_notify
798264790Sbapt462	AUE_NULL	UNIMPL	kmq_unlink
799264790Sbapt463	AUE_NULL	NOPROTO	{ int abort2(const char *why, int nargs, void **args); }
800264790Sbapt464	AUE_NULL 	NOPROTO	{ int thr_set_name(long id, const char *name); }
801264790Sbapt465	AUE_NULL	NOSTD	{ int freebsd32_aio_fsync(int op, \
802264790Sbapt				    struct aiocb32 *aiocbp); }
803264790Sbapt466	AUE_RTPRIO	NOPROTO	{ int rtprio_thread(int function, \
804264790Sbapt				    lwpid_t lwpid, struct rtprio *rtp); }
805264790Sbapt467	AUE_NULL	UNIMPL	nosys
806264790Sbapt468	AUE_NULL	UNIMPL	nosys
807264790Sbapt469	AUE_NULL	UNIMPL	__getpath_fromfd
808264790Sbapt470	AUE_NULL	UNIMPL	__getpath_fromaddr
809264790Sbapt471	AUE_NULL	NOPROTO	{ int sctp_peeloff(int sd, uint32_t name); }
810264790Sbapt472	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
811264790Sbapt				    caddr_t to, __socklen_t tolen, \
812264790Sbapt				    struct sctp_sndrcvinfo *sinfo, int flags); }
813264790Sbapt473	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
814264790Sbapt				    caddr_t to, __socklen_t tolen, \
815264790Sbapt				    struct sctp_sndrcvinfo *sinfo, int flags); }
816264790Sbapt474	AUE_NULL	NOPROTO	{ int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
817264790Sbapt				    struct sockaddr * from, __socklen_t *fromlenaddr, \
818264790Sbapt				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
819264790Sbapt475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
820264790Sbapt				    void *buf,size_t nbyte, \
821264790Sbapt				    u_int32_t offsetlo, u_int32_t offsethi); }
822264790Sbapt476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
823272955Srodrigc				    const void *buf, size_t nbyte, \
824264790Sbapt				    u_int32_t offsetlo, u_int32_t offsethi); }
825272955Srodrigc477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
826264790Sbapt				    size_t len, int prot, int flags, int fd, \
827264790Sbapt				    u_int32_t poslo, u_int32_t poshi); }
828272955Srodrigc478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
829264790Sbapt				    u_int32_t offsetlo, u_int32_t offsethi, \
830264790Sbapt				    int whence); }
831264790Sbapt479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
832264790Sbapt				    u_int32_t lengthlo, u_int32_t lengthhi); }
833264790Sbapt480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
834264790Sbapt				    u_int32_t lengthlo, u_int32_t lengthhi); }
835264790Sbapt481	AUE_KILL	NOPROTO	{ int thr_kill2(pid_t pid, long id, int sig); }
836264790Sbapt482	AUE_SHMOPEN	NOPROTO	{ int shm_open(const char *path, int flags, \
837264790Sbapt				    mode_t mode); }
838264790Sbapt483	AUE_SHMUNLINK	NOPROTO	{ int shm_unlink(const char *path); }
839264790Sbapt484	AUE_NULL	NOPROTO	{ int cpuset(cpusetid_t *setid); }
840264790Sbapt485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
841264790Sbapt				    uint32_t idlo, uint32_t idhi, \
842264790Sbapt				    cpusetid_t setid); }
843264790Sbapt486	AUE_NULL	STD	{ int freebsd32_cpuset_getid(cpulevel_t level, \
844264790Sbapt				    cpuwhich_t which, \
845264790Sbapt				    uint32_t idlo, uint32_t idhi, \
846264790Sbapt				    cpusetid_t *setid); }
847264790Sbapt487	AUE_NULL	STD	{ int freebsd32_cpuset_getaffinity( \
848264790Sbapt				    cpulevel_t level, cpuwhich_t which, \
849264790Sbapt				    uint32_t idlo, uint32_t idhi, \
850264790Sbapt				    size_t cpusetsize, \
851264790Sbapt				    cpuset_t *mask); }
852264790Sbapt488	AUE_NULL	STD	{ int freebsd32_cpuset_setaffinity( \
853264790Sbapt				    cpulevel_t level, cpuwhich_t which, \
854264790Sbapt				    uint32_t idlo, uint32_t idhi, \
855264790Sbapt				    size_t cpusetsize, \
856264790Sbapt				    const cpuset_t *mask); }
857264790Sbapt489	AUE_FACCESSAT	NOPROTO	{ int faccessat(int fd, char *path, int mode, \
858264790Sbapt				    int flag); }
859264790Sbapt490	AUE_FCHMODAT	NOPROTO	{ int fchmodat(int fd, const char *path, \
860264790Sbapt				    mode_t mode, int flag); }
861264790Sbapt491	AUE_FCHOWNAT	NOPROTO	{ int fchownat(int fd, char *path, uid_t uid, \
862264790Sbapt				    gid_t gid, int flag); }
863264790Sbapt492	AUE_FEXECVE	STD	{ int freebsd32_fexecve(int fd, \
864264790Sbapt				    u_int32_t *argv, u_int32_t *envv); }
865264790Sbapt493	AUE_FSTATAT	STD	{ int freebsd32_fstatat(int fd, char *path, \
866264790Sbapt				    struct stat *buf, int flag); }
867264790Sbapt494	AUE_FUTIMESAT	STD	{ int freebsd32_futimesat(int fd, char *path, \
868264790Sbapt				    struct timeval *times); }
869264790Sbapt495	AUE_LINKAT	NOPROTO	{ int linkat(int fd1, char *path1, int fd2, \
870264790Sbapt				    char *path2, int flag); }
871264790Sbapt496	AUE_MKDIRAT	NOPROTO	{ int mkdirat(int fd, char *path, \
872264790Sbapt				    mode_t mode); }
873264790Sbapt497	AUE_MKFIFOAT	NOPROTO	{ int mkfifoat(int fd, char *path, \
874264790Sbapt				    mode_t mode); }
875264790Sbapt498	AUE_MKNODAT	NOPROTO	{ int mknodat(int fd, char *path, \
876264790Sbapt				    mode_t mode, dev_t dev); }
877264790Sbapt499	AUE_OPENAT_RWTC	NOPROTO	{ int openat(int fd, char *path, int flag, \
878264790Sbapt				    mode_t mode); }
879264790Sbapt500	AUE_READLINKAT	NOPROTO	{ int readlinkat(int fd, char *path, char *buf, \
880264790Sbapt				    size_t bufsize); }
881264790Sbapt501	AUE_RENAMEAT	NOPROTO	{ int renameat(int oldfd, char *old, int newfd, \
882264790Sbapt				    const char *new); }
883272955Srodrigc502	AUE_SYMLINKAT	NOPROTO	{ int symlinkat(char *path1, int fd, \
884264790Sbapt				    char *path2); }
885264790Sbapt503	AUE_UNLINKAT	NOPROTO	{ int unlinkat(int fd, char *path, \
886264790Sbapt				    int flag); }
887264790Sbapt504	AUE_POSIX_OPENPT	NOPROTO	{ int posix_openpt(int flags); }
888264790Sbapt; 505 is initialised by the kgssapi code, if present.
889264790Sbapt505	AUE_NULL	UNIMPL	gssd_syscall
890264790Sbapt506	AUE_NULL	STD	{ int freebsd32_jail_get(struct iovec32 *iovp, \
891264790Sbapt				    unsigned int iovcnt, int flags); }
892264790Sbapt507	AUE_NULL	STD	{ int freebsd32_jail_set(struct iovec32 *iovp, \
893264790Sbapt				    unsigned int iovcnt, int flags); }
894264790Sbapt508	AUE_NULL	NOPROTO	{ int jail_remove(int jid); }
895264790Sbapt509	AUE_CLOSEFROM	NOPROTO	{ int closefrom(int lowfd); }
896264790Sbapt