syscalls.master revision 181972
1285612Sdelphij $FreeBSD: head/sys/compat/freebsd32/syscalls.master 181972 2008-08-21 22:57:31Z obrien $
2285612Sdelphij;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
3285612Sdelphij;	from: src/sys/kern/syscalls.master 1.107
454359Sroberto;
554359Sroberto; System call name/number master file.
654359Sroberto; Processed to created init_sysent.c, syscalls.c and syscall.h.
754359Sroberto
854359Sroberto; Columns: number audit type nargs name alt{name,tag,rtyp}/comments
982498Sroberto;	number	system call number, must be in order
1082498Sroberto;	audit	the audit event associated with the system call
11285612Sdelphij;		A value of AUE_NULL means no auditing, but it also means that
12285612Sdelphij;		there is no audit event for the call at this time. For the
13285612Sdelphij;		case where the event exists, but we don't want auditing, the
14285612Sdelphij;		event should be #defined to AUE_NULL in audit_kevents.h.
15285612Sdelphij;	type	one of STD, OBSOL, UNIMPL, COMPAT, CPT_NOA, LIBCOMPAT,
16285612Sdelphij;		NODEF, NOARGS, NOPROTO, NOIMPL, NOSTD, COMPAT4
17285612Sdelphij;	name	psuedo-prototype of syscall routine
18285612Sdelphij;		If one of the following alts is different, then all appear:
19285612Sdelphij;	altname	name of system call if different
20285612Sdelphij;	alttag	name of args struct tag if different from [o]`name'"_args"
21285612Sdelphij;	altrtyp	return type if not int (bogus - syscalls always return int)
22285612Sdelphij;		for UNIMPL/OBSOL, name continues with comments
23285612Sdelphij
24285612Sdelphij; types:
25285612Sdelphij;	STD	always included
26285612Sdelphij;	COMPAT	included on COMPAT #ifdef
27285612Sdelphij;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
28285612Sdelphij;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
29285612Sdelphij;	OBSOL	obsolete, not included in system, only specifies name
30285612Sdelphij;	UNIMPL	not implemented, placeholder only
31285612Sdelphij;	NOSTD	implemented but as a lkm that can be statically
32285612Sdelphij;		compiled in; sysent entry will be filled with lkmsys
33285612Sdelphij;		so the SYSCALL_MODULE macro works
34285612Sdelphij;	NOARGS	same as STD except do not create structure in sys/sysproto.h
35285612Sdelphij;	NODEF	same as STD except only have the entry in the syscall table
36285612Sdelphij;		added.  Meaning - do do not create structure or function
37285612Sdelphij;		prototype in sys/sysproto.h
3854359Sroberto;	NOPROTO	same as STD except do not create structure or
39285612Sdelphij;		function prototype in sys/sysproto.h.  Does add a
40285612Sdelphij;		definition to syscall.h besides adding a sysent.
41285612Sdelphij
4254359Sroberto; #ifdef's, etc. may be included, and are copied to the output files.
4354359Sroberto
44285612Sdelphij#include <sys/param.h>
45285612Sdelphij#include <sys/sysent.h>
46285612Sdelphij#include <sys/sysproto.h>
47285612Sdelphij#include <sys/mount.h>
48285612Sdelphij#include <sys/socket.h>
4954359Sroberto#include <compat/freebsd32/freebsd32.h>
5054359Sroberto#include <compat/freebsd32/freebsd32_proto.h>
51285612Sdelphij
52285612Sdelphij; Reserved/unimplemented system calls in the range 0-150 inclusive
5354359Sroberto; are reserved for use in future Berkeley releases.
54182007Sroberto; Additional system calls implemented in vendor and other
55182007Sroberto; redistributions should be placed in the reserved range at the end
56182007Sroberto; of the current calls.
57182007Sroberto
58285612Sdelphij0	AUE_NULL	NOPROTO	{ int nosys(void); } syscall nosys_args int
59285612Sdelphij1	AUE_EXIT	NOPROTO	{ void sys_exit(int rval); } exit \
6054359Sroberto				    sys_exit_args void
6156746Sroberto2	AUE_FORK	NOPROTO	{ int fork(void); }
62285612Sdelphij3	AUE_READ	NOPROTO	{ ssize_t read(int fd, void *buf, \
63285612Sdelphij				    size_t nbyte); }
64285612Sdelphij4	AUE_WRITE	NOPROTO	{ ssize_t write(int fd, const void *buf, \
65285612Sdelphij				    size_t nbyte); }
66285612Sdelphij5	AUE_OPEN_RWTC	NOPROTO	{ int open(char *path, int flags, \
67285612Sdelphij				    int mode); }
68285612Sdelphij6	AUE_CLOSE	NOPROTO	{ int close(int fd); }
69285612Sdelphij7	AUE_WAIT4	STD	{ int freebsd32_wait4(int pid, int *status, \
70285612Sdelphij				    int options, struct rusage32 *rusage); }
71285612Sdelphij8	AUE_CREAT	OBSOL	old creat
72285612Sdelphij9	AUE_LINK	NOPROTO	{ int link(char *path, char *link); }
73285612Sdelphij10	AUE_UNLINK	NOPROTO	{ int unlink(char *path); }
74285612Sdelphij11	AUE_NULL	OBSOL	execv
75285612Sdelphij12	AUE_CHDIR	NOPROTO	{ int chdir(char *path); }
76285612Sdelphij13	AUE_FCHDIR	NOPROTO	{ int fchdir(int fd); }
77285612Sdelphij14	AUE_MKNOD	NOPROTO	{ int mknod(char *path, int mode, int dev); }
78285612Sdelphij15	AUE_CHMOD	NOPROTO	{ int chmod(char *path, int mode); }
79285612Sdelphij16	AUE_CHOWN	NOPROTO	{ int chown(char *path, int uid, int gid); }
80285612Sdelphij17	AUE_NULL	NOPROTO	{ int obreak(char *nsize); } break \
81285612Sdelphij				    obreak_args int
8254359Sroberto18	AUE_GETFSSTAT	COMPAT4	{ int freebsd32_getfsstat( \
83285612Sdelphij				    struct statfs32 *buf, long bufsize, \
84182007Sroberto				    int flags); }
85285612Sdelphij19	AUE_LSEEK	OBSOL	olseek
86285612Sdelphij20	AUE_GETPID	NOPROTO	{ pid_t getpid(void); }
87285612Sdelphij21	AUE_MOUNT	NOPROTO	{ int mount(char *type, char *path, \
8854359Sroberto				    int flags, caddr_t data); }
8954359Sroberto22	AUE_UMOUNT	NOPROTO	{ int unmount(char *path, int flags); }
9054359Sroberto23	AUE_SETUID	NOPROTO	{ int setuid(uid_t uid); }
91285612Sdelphij24	AUE_GETUID	NOPROTO	{ uid_t getuid(void); }
92285612Sdelphij25	AUE_GETEUID	NOPROTO	{ uid_t geteuid(void); }
93285612Sdelphij26	AUE_PTRACE	NOPROTO	{ int ptrace(int req, pid_t pid, \
94285612Sdelphij				    caddr_t addr, int data); }
9554359Sroberto27	AUE_RECVMSG	STD	{ int freebsd32_recvmsg(int s, struct msghdr32 *msg, \
96285612Sdelphij				    int flags); }
97285612Sdelphij28	AUE_SENDMSG	STD	{ int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
98285612Sdelphij				    int flags); }
99285612Sdelphij29	AUE_RECVFROM	STD	{ int freebsd32_recvfrom(int s, u_int32_t buf, \
100285612Sdelphij				    u_int32_t len, int flags, u_int32_t from, \
101285612Sdelphij				    u_int32_t fromlenaddr); }
102182007Sroberto30	AUE_ACCEPT	NOPROTO	{ int accept(int s, caddr_t name, \
103182007Sroberto				    int *anamelen); }
104285612Sdelphij31	AUE_GETPEERNAME	NOPROTO	{ int getpeername(int fdes, caddr_t asa, \
105182007Sroberto				    int *alen); }
106182007Sroberto32	AUE_GETSOCKNAME	NOPROTO	{ int getsockname(int fdes, caddr_t asa, \
107285612Sdelphij				    int *alen); }
108182007Sroberto33	AUE_ACCESS	NOPROTO	{ int access(char *path, int flags); }
109182007Sroberto34	AUE_CHFLAGS	NOPROTO	{ int chflags(char *path, int flags); }
110285612Sdelphij35	AUE_FCHFLAGS	NOPROTO	{ int fchflags(int fd, int flags); }
111182007Sroberto36	AUE_SYNC	NOPROTO	{ int sync(void); }
112182007Sroberto37	AUE_KILL	NOPROTO	{ int kill(int pid, int signum); }
113285612Sdelphij38	AUE_STAT	UNIMPL	ostat
11482498Sroberto39	AUE_GETPPID	NOPROTO	{ pid_t getppid(void); }
11554359Sroberto40	AUE_LSTAT	UNIMPL	olstat
116285612Sdelphij41	AUE_DUP		NOPROTO	{ int dup(u_int fd); }
11782498Sroberto42	AUE_PIPE	NOPROTO	{ int pipe(void); }
11856746Sroberto43	AUE_GETEGID	NOPROTO	{ gid_t getegid(void); }
119285612Sdelphij44	AUE_PROFILE	NOPROTO	{ int profil(caddr_t samples, size_t size, \
12082498Sroberto				    size_t offset, u_int scale); }
12156746Sroberto45	AUE_KTRACE	NOPROTO	{ int ktrace(const char *fname, int ops, \
122285612Sdelphij				    int facs, int pid); }
12382498Sroberto46	AUE_SIGACTION	COMPAT	{ int freebsd32_sigaction( int signum, \
12456746Sroberto				   struct osigaction32 *nsa, \
125285612Sdelphij				   struct osigaction32 *osa); }
12682498Sroberto47	AUE_GETGID	NOPROTO	{ gid_t getgid(void); }
12756746Sroberto48	AUE_SIGPROCMASK	COMPAT	{ int freebsd32_sigprocmask(int how, \
128285612Sdelphij				   osigset_t mask); }
12982498Sroberto49	AUE_GETLOGIN	NOPROTO	{ int getlogin(char *namebuf, \
13056746Sroberto				    u_int namelen); }
131285612Sdelphij50	AUE_SETLOGIN	NOPROTO	{ int setlogin(char *namebuf); }
13282498Sroberto51	AUE_ACCT	NOPROTO	{ int acct(char *path); }
13356746Sroberto52	AUE_SIGPENDING	COMPAT	{ int freebsd32_sigpending(void); }
134285612Sdelphij53	AUE_SIGALTSTACK	STD	{ int freebsd32_sigaltstack( \
13582498Sroberto				    struct sigaltstack32 *ss, \
13682498Sroberto				    struct sigaltstack32 *oss); }
137285612Sdelphij54	AUE_IOCTL	NOPROTO	{ int ioctl(int fd, u_long com, \
13882498Sroberto				    caddr_t data); }
13982498Sroberto55	AUE_REBOOT	NOPROTO	{ int reboot(int opt); }
140285612Sdelphij56	AUE_REVOKE	NOPROTO	{ int revoke(char *path); }
14182498Sroberto57	AUE_SYMLINK	NOPROTO	{ int symlink(char *path, char *link); }
14282498Sroberto58	AUE_READLINK	NOPROTO	{ ssize_t readlink(char *path, char *buf, \
143285612Sdelphij				    size_t count); }
14482498Sroberto59	AUE_EXECVE	STD	{ int freebsd32_execve(char *fname, \
14582498Sroberto				    u_int32_t *argv, u_int32_t *envv); }
146285612Sdelphij60	AUE_UMASK	NOPROTO	{ int umask(int newmask); } umask \
147285612Sdelphij				    umask_args int
14882498Sroberto61	AUE_CHROOT	NOPROTO	{ int chroot(char *path); }
149285612Sdelphij62	AUE_FSTAT	OBSOL	ofstat
15082498Sroberto63	AUE_NULL	OBSOL	ogetkerninfo
15182498Sroberto64	AUE_NULL	OBSOL	ogetpagesize
152285612Sdelphij65	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
15382498Sroberto				    int flags); }
15482498Sroberto66	AUE_VFORK	NOPROTO	{ int vfork(void); }
15554359Sroberto67	AUE_NULL	OBSOL	vread
15654359Sroberto68	AUE_NULL	OBSOL	vwrite
15754359Sroberto69	AUE_SBRK	NOPROTO	{ int sbrk(int incr); }
15854359Sroberto70	AUE_SSTK	NOPROTO	{ int sstk(int incr); }
15954359Sroberto71	AUE_MMAP	OBSOL	ommap
16054359Sroberto72	AUE_O_VADVISE	NOPROTO	{ int ovadvise(int anom); } vadvise \
16154359Sroberto				    ovadvise_args int
16254359Sroberto73	AUE_MUNMAP	NOPROTO	{ int munmap(void *addr, size_t len); }
16354359Sroberto74	AUE_MPROTECT	NOPROTO	{ int mprotect(const void *addr, \
164285612Sdelphij				    size_t len, int prot); }
165200576Sroberto75	AUE_MADVISE	NOPROTO	{ int madvise(void *addr, size_t len, \
166285612Sdelphij				    int behav); }
167285612Sdelphij76	AUE_NULL	OBSOL	vhangup
168285612Sdelphij77	AUE_NULL	OBSOL	vlimit
169285612Sdelphij78	AUE_MINCORE	NOPROTO	{ int mincore(const void *addr, size_t len, \
170285612Sdelphij				    char *vec); }
171285612Sdelphij79	AUE_GETGROUPS	NOPROTO	{ int getgroups(u_int gidsetsize, \
172285612Sdelphij				    gid_t *gidset); }
173285612Sdelphij80	AUE_SETGROUPS	NOPROTO	{ int setgroups(u_int gidsetsize, \
174				    gid_t *gidset); }
17581	AUE_GETPGRP	NOPROTO	{ int getpgrp(void); }
17682	AUE_SETPGRP	NOPROTO	{ int setpgid(int pid, int pgid); }
17783	AUE_SETITIMER	STD	{ int freebsd32_setitimer(u_int which, \
178				    struct itimerval32 *itv, \
179				    struct itimerval32 *oitv); }
18084	AUE_NULL	OBSOL	owait
181; XXX implement
18285	AUE_SWAPON	OBSOL	oswapon
18386	AUE_GETITIMER	STD	{ int freebsd32_getitimer(u_int which, \
184				    struct itimerval32 *itv); }
18587	AUE_O_GETHOSTNAME	OBSOL	ogethostname
18688	AUE_O_SETHOSTNAME	OBSOL	osethostname
18789	AUE_GETDTABLESIZE	NOPROTO	{ int getdtablesize(void); }
18890	AUE_DUP2	NOPROTO	{ int dup2(u_int from, u_int to); }
18991	AUE_NULL	UNIMPL	getdopt
19092	AUE_FCNTL	NOPROTO	{ int fcntl(int fd, int cmd, long arg); }
19193	AUE_SELECT	STD	{ int freebsd32_select(int nd, fd_set *in, \
192				    fd_set *ou, fd_set *ex, \
193				    struct timeval32 *tv); }
194; XXX need to override for big-endian - little-endian should work fine.
19594	AUE_NULL	UNIMPL	setdopt
19695	AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
19796	AUE_SETPRIORITY	NOPROTO	{ int setpriority(int which, int who, \
198				    int prio); }
19997	AUE_SOCKET	NOPROTO	{ int socket(int domain, int type, \
200				    int protocol); }
20198	AUE_CONNECT	NOPROTO	{ int connect(int s, caddr_t name, \
202				    int namelen); }
20399	AUE_NULL	OBSOL	oaccept
204100	AUE_GETPRIORITY	NOPROTO	{ int getpriority(int which, int who); }
205101	AUE_NULL	OBSOL	osend
206102	AUE_NULL	OBSOL	orecv
207103	AUE_NULL	OBSOL	osigreturn
208104	AUE_BIND	NOPROTO	{ int bind(int s, caddr_t name, \
209				    int namelen); }
210105	AUE_SETSOCKOPT	NOPROTO	{ int setsockopt(int s, int level, \
211				    int name, caddr_t val, int valsize); }
212106	AUE_LISTEN	NOPROTO	{ int listen(int s, int backlog); }
213107	AUE_NULL	OBSOL	vtimes
214108	AUE_O_SIGVEC	COMPAT	{ int freebsd32_sigvec(int signum, \
215				     struct sigvec32 *nsv, \
216				     struct sigvec32 *osv); }
217109	AUE_O_SIGBLOCK	COMPAT	{ int freebsd32_sigblock(int mask); }
218110	AUE_O_SIGSETMASK	COMPAT	{ int freebsd32_sigsetmask( int mask); }
219111	AUE_SIGSUSPEND	COMPAT	{ int freebsd32_sigsuspend( int mask); }
220112	AUE_O_SIGSTACK	COMPAT	{ int freebsd32_sigstack( \
221				     struct sigstack32 *nss, \
222				     struct sigstack32 *oss); }
223113	AUE_NULL	OBSOL	orecvmsg
224114	AUE_NULL	OBSOL	osendmsg
225115	AUE_NULL	OBSOL	vtrace
226116	AUE_GETTIMEOFDAY	STD	{ int freebsd32_gettimeofday( \
227				    struct timeval32 *tp, \
228				    struct timezone *tzp); }
229117	AUE_GETRUSAGE	STD	{ int freebsd32_getrusage(int who, \
230				    struct rusage32 *rusage); }
231118	AUE_GETSOCKOPT	NOPROTO	{ int getsockopt(int s, int level, \
232				    int name, caddr_t val, int *avalsize); }
233119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
234120	AUE_READV	STD	{ int freebsd32_readv(int fd, \
235				    struct iovec32 *iovp, u_int iovcnt); }
236121	AUE_WRITEV	STD	{ int freebsd32_writev(int fd, \
237				    struct iovec32 *iovp, u_int iovcnt); }
238122	AUE_SETTIMEOFDAY	STD	{ int freebsd32_settimeofday( \
239				    struct timeval32 *tv, \
240				    struct timezone *tzp); }
241123	AUE_FCHOWN	NOPROTO	{ int fchown(int fd, int uid, int gid); }
242124	AUE_FCHMOD	NOPROTO	{ int fchmod(int fd, int mode); }
243125	AUE_RECVFROM	OBSOL	orecvfrom
244126	AUE_SETREUID	NOPROTO	{ int setreuid(int ruid, int euid); }
245127	AUE_SETREGID	NOPROTO	{ int setregid(int rgid, int egid); }
246128	AUE_RENAME	NOPROTO	{ int rename(char *from, char *to); }
247129	AUE_TRUNCATE	OBSOL	otruncate
248130	AUE_FTRUNCATE	OBSOL	ftruncate
249131	AUE_FLOCK	NOPROTO	{ int flock(int fd, int how); }
250132	AUE_MKFIFO	NOPROTO	{ int mkfifo(char *path, int mode); }
251133	AUE_SENDTO	NOPROTO	{ int sendto(int s, caddr_t buf, \
252				    size_t len, int flags, caddr_t to, \
253				    int tolen); }
254134	AUE_SHUTDOWN	NOPROTO	{ int shutdown(int s, int how); }
255135	AUE_SOCKETPAIR	NOPROTO	{ int socketpair(int domain, int type, \
256				    int protocol, int *rsv); }
257136	AUE_MKDIR	NOPROTO	{ int mkdir(char *path, int mode); }
258137	AUE_RMDIR	NOPROTO	{ int rmdir(char *path); }
259138	AUE_UTIMES	STD	{ int freebsd32_utimes(char *path, \
260				    struct timeval32 *tptr); }
261139	AUE_NULL	OBSOL	4.2 sigreturn
262140	AUE_ADJTIME	STD	{ int freebsd32_adjtime( \
263				    struct timeval32 *delta, \
264				    struct timeval32 *olddelta); }
265141	AUE_GETPEERNAME	OBSOL	ogetpeername
266142	AUE_SYSCTL	OBSOL	ogethostid
267143	AUE_SYSCTL	OBSOL	sethostid
268144	AUE_GETRLIMIT	OBSOL	getrlimit
269145	AUE_SETRLIMIT	OBSOL	setrlimit
270146	AUE_KILLPG	OBSOL	killpg
271147	AUE_SETSID	NOPROTO	{ int setsid(void); }
272148	AUE_QUOTACTL	NOPROTO	{ int quotactl(char *path, int cmd, int uid, \
273				    caddr_t arg); }
274149	AUE_O_QUOTA	OBSOL oquota
275150	AUE_GETSOCKNAME	OBSOL ogetsockname
276
277; Syscalls 151-180 inclusive are reserved for vendor-specific
278; system calls.  (This includes various calls added for compatibity
279; with other Unix variants.)
280; Some of these calls are now supported by BSD...
281151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
282152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
283153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
284; 154 is initialised by the NLM code, if present.
285154	AUE_NULL	UNIMPL	nlm_syscall
286; 155 is initialized by the NFS code, if present.
287; XXX this is a problem!!!
288155	AUE_NFS_SVC	UNIMPL	nfssvc
289156	AUE_GETDIRENTRIES	OBSOL	ogetdirentries
290157	AUE_STATFS	COMPAT4	{ int freebsd32_statfs(char *path, \
291				    struct statfs32 *buf); }
292158	AUE_FSTATFS	COMPAT4	{ int freebsd32_fstatfs(int fd, \
293				    struct statfs32 *buf); }
294159	AUE_NULL	UNIMPL	nosys
295160	AUE_LGETFH	UNIMPL	lgetfh
296161	AUE_NFS_GETFH	NOPROTO	{ int getfh(char *fname, \
297				    struct fhandle *fhp); }
298162	AUE_SYSCTL	NOPROTO	{ int getdomainname(char *domainname, \
299				    int len); }
300163	AUE_SYSCTL	NOPROTO	{ int setdomainname(char *domainname, \
301				    int len); }
302164	AUE_NULL	NOPROTO	{ int uname(struct utsname *name); }
303165	AUE_SYSARCH	NOPROTO	{ int sysarch(int op, char *parms); }
304166	AUE_RTPRIO	NOPROTO	{ int rtprio(int function, pid_t pid, \
305				    struct rtprio *rtp); }
306167	AUE_NULL	UNIMPL	nosys
307168	AUE_NULL	UNIMPL	nosys
308169	AUE_SEMSYS	STD	{ int freebsd32_semsys(int which, int a2, \
309				    int a3, int a4, int a5); }
310170	AUE_MSGSYS	STD	{ int freebsd32_msgsys(int which, int a2, \
311				    int a3, int a4, int a5, int a6); }
312171	AUE_SHMSYS	STD	{ int freebsd32_shmsys(uint32_t which, uint32_t a2, \
313				    uint32_t a3, uint32_t a4); }
314172	AUE_NULL	UNIMPL	nosys
315173	AUE_PREAD	COMPAT6	{ ssize_t freebsd32_pread(int fd, void *buf, \
316				    size_t nbyte, int pad, \
317				    u_int32_t offsetlo, u_int32_t offsethi); }
318; XXX note - bigendian is different
319174	AUE_PWRITE	COMPAT6	{ ssize_t freebsd32_pwrite(int fd, \
320				    const void *buf, size_t nbyte, int pad, \
321				    u_int32_t offsetlo, u_int32_t offsethi); }
322; XXX note - bigendian is different
323175	AUE_NULL	UNIMPL	nosys
324176	AUE_NTP_ADJTIME	NOPROTO	{ int ntp_adjtime(struct timex *tp); }
325177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
326178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
327179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
328180	AUE_NULL	UNIMPL	nosys
329
330; Syscalls 181-199 are used by/reserved for BSD
331181	AUE_SETGID	NOPROTO	{ int setgid(gid_t gid); }
332182	AUE_SETEGID	NOPROTO	{ int setegid(gid_t egid); }
333183	AUE_SETEUID	NOPROTO	{ int seteuid(uid_t euid); }
334184	AUE_NULL	UNIMPL	lfs_bmapv
335185	AUE_NULL	UNIMPL	lfs_markv
336186	AUE_NULL	UNIMPL	lfs_segclean
337187	AUE_NULL	UNIMPL	lfs_segwait
338188	AUE_STAT	STD	{ int freebsd32_stat(char *path, \
339				    struct stat32 *ub); }
340189	AUE_FSTAT	STD	{ int freebsd32_fstat(int fd, \
341				    struct stat32 *ub); }
342190	AUE_LSTAT	STD	{ int freebsd32_lstat(char *path, \
343				    struct stat32 *ub); }
344191	AUE_PATHCONF	NOPROTO	{ int pathconf(char *path, int name); }
345192	AUE_FPATHCONF	NOPROTO	{ int fpathconf(int fd, int name); }
346193	AUE_NULL	UNIMPL	nosys
347194	AUE_GETRLIMIT	NOPROTO	{ int getrlimit(u_int which, \
348				    struct rlimit *rlp); } getrlimit \
349				    __getrlimit_args int
350195	AUE_SETRLIMIT	NOPROTO	{ int setrlimit(u_int which, \
351				    struct rlimit *rlp); } setrlimit \
352				    __setrlimit_args int
353196	AUE_GETDIRENTRIES	NOPROTO	{ int getdirentries(int fd, char *buf, \
354				    u_int count, long *basep); }
355197	AUE_MMAP	COMPAT6	{ caddr_t freebsd32_mmap(caddr_t addr, \
356				    size_t len, int prot, int flags, int fd, \
357				    int pad, u_int32_t poslo, \
358				    u_int32_t poshi); }
359198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
360				    __syscall_args int
361; XXX note - bigendian is different
362199	AUE_LSEEK	COMPAT6	{ off_t freebsd32_lseek(int fd, int pad, \
363				    u_int32_t offsetlo, u_int32_t offsethi, \
364				    int whence); }
365; XXX note - bigendian is different
366200	AUE_TRUNCATE	COMPAT6	{ int freebsd32_truncate(char *path, \
367				    int pad, u_int32_t lengthlo, \
368				    u_int32_t lengthhi); }
369; XXX note - bigendian is different
370201	AUE_FTRUNCATE	COMPAT6	{ int freebsd32_ftruncate(int fd, int pad, \
371				    u_int32_t lengthlo, u_int32_t lengthhi); }
372202	AUE_SYSCTL	STD	{ int freebsd32_sysctl(int *name, \
373				    u_int namelen, void *old, \
374				    u_int32_t *oldlenp, void *new, \
375				    u_int32_t newlen); }
376203	AUE_MLOCK	NOPROTO	{ int mlock(const void *addr, \
377				    size_t len); }
378204	AUE_MUNLOCK	NOPROTO	{ int munlock(const void *addr, \
379				    size_t len); }
380205	AUE_UNDELETE	NOPROTO	{ int undelete(char *path); }
381206	AUE_FUTIMES	STD	{ int freebsd32_futimes(int fd, \
382				    struct timeval32 *tptr); }
383207	AUE_GETPGID	NOPROTO	{ int getpgid(pid_t pid); }
384208	AUE_NULL	UNIMPL	newreboot (NetBSD)
385209	AUE_POLL	NOPROTO	{ int poll(struct pollfd *fds, u_int nfds, \
386				    int timeout); }
387
388;
389; The following are reserved for loadable syscalls
390;
391210	AUE_NULL	UNIMPL
392211	AUE_NULL	UNIMPL
393212	AUE_NULL	UNIMPL
394213	AUE_NULL	UNIMPL
395214	AUE_NULL	UNIMPL
396215	AUE_NULL	UNIMPL
397216	AUE_NULL	UNIMPL
398217	AUE_NULL	UNIMPL
399218	AUE_NULL	UNIMPL
400219	AUE_NULL	UNIMPL
401
402;
403; The following were introduced with NetBSD/4.4Lite-2
404; They are initialized by thier respective modules/sysinits
405; XXX PROBLEM!!
406220	AUE_SEMCTL	STD	{ int freebsd32_semctl(int semid, int semnum, \
407				    int cmd, union semun32 *arg); }
408221	AUE_SEMGET	NOPROTO	{ int semget(key_t key, int nsems, \
409				    int semflg); }
410222	AUE_SEMOP	NOPROTO	{ int semop(int semid, struct sembuf *sops, \
411				    u_int nsops); }
412223	AUE_NULL	UNIMPL	semconfig
413224	AUE_MSGCTL	STD	{ int freebsd32_msgctl(int msqid, int cmd, \
414				    struct msqid_ds32 *buf); }
415225	AUE_MSGGET	NOPROTO	{ int msgget(key_t key, int msgflg); }
416226	AUE_MSGSND	STD	{ int freebsd32_msgsnd(int msqid, void *msgp, \
417				    size_t msgsz, int msgflg); }
418227	AUE_MSGRCV	STD	{ int freebsd32_msgrcv(int msqid, void *msgp, \
419				    size_t msgsz, long msgtyp, int msgflg); }
420228	AUE_SHMAT	NOPROTO	{ int shmat(int shmid, void *shmaddr, \
421				    int shmflg); }
422229	AUE_SHMCTL	STD	{ int freebsd32_shmctl(int shmid, int cmd, \
423				    struct shmid_ds *buf); }
424230	AUE_SHMDT	NOPROTO	{ int shmdt(void *shmaddr); }
425231	AUE_SHMGET	NOPROTO	{ int shmget(key_t key, int size, \
426				    int shmflg); }
427;
428232	AUE_NULL	STD 	{ int freebsd32_clock_gettime(clockid_t clock_id, \
429				    struct timespec32 *tp); }
430233	AUE_CLOCK_SETTIME	STD	{ int freebsd32_clock_settime(clockid_t clock_id, \
431				    const struct timespec32 *tp); }
432234	AUE_NULL	STD	{ int freebsd32_clock_getres(clockid_t clock_id, \
433				    struct timespec32 *tp); }
434235	AUE_NULL	UNIMPL	timer_create
435236	AUE_NULL	UNIMPL	timer_delete
436237	AUE_NULL	UNIMPL	timer_settime
437238	AUE_NULL	UNIMPL	timer_gettime
438239	AUE_NULL	UNIMPL	timer_getoverrun
439240	AUE_NULL	STD	{ int freebsd32_nanosleep( \
440				    const struct timespec32 *rqtp, \
441				    struct timespec32 *rmtp); }
442241	AUE_NULL	UNIMPL	nosys
443242	AUE_NULL	UNIMPL	nosys
444243	AUE_NULL	UNIMPL	nosys
445244	AUE_NULL	UNIMPL	nosys
446245	AUE_NULL	UNIMPL	nosys
447246	AUE_NULL	UNIMPL	nosys
448247	AUE_NULL	UNIMPL	nosys
449248	AUE_NULL	UNIMPL	ntp_gettime
450249	AUE_NULL	UNIMPL	nosys
451; syscall numbers initially used in OpenBSD
452250	AUE_MINHERIT	NOPROTO	{ int minherit(void *addr, size_t len, \
453				    int inherit); }
454251	AUE_RFORK	NOPROTO	{ int rfork(int flags); }
455252	AUE_POLL	NOPROTO	{ int openbsd_poll(struct pollfd *fds, \
456				    u_int nfds, int timeout); }
457253	AUE_ISSETUGID	NOPROTO	{ int issetugid(void); }
458254	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, int uid, int gid); }
459255	AUE_NULL	UNIMPL	nosys
460256	AUE_NULL	UNIMPL	nosys
461257	AUE_NULL	UNIMPL	nosys
462258	AUE_NULL	UNIMPL	nosys
463259	AUE_NULL	UNIMPL	nosys
464260	AUE_NULL	UNIMPL	nosys
465261	AUE_NULL	UNIMPL	nosys
466262	AUE_NULL	UNIMPL	nosys
467263	AUE_NULL	UNIMPL	nosys
468264	AUE_NULL	UNIMPL	nosys
469265	AUE_NULL	UNIMPL	nosys
470266	AUE_NULL	UNIMPL	nosys
471267	AUE_NULL	UNIMPL	nosys
472268	AUE_NULL	UNIMPL	nosys
473269	AUE_NULL	UNIMPL	nosys
474270	AUE_NULL	UNIMPL	nosys
475271	AUE_NULL	UNIMPL	nosys
476272	AUE_O_GETDENTS	NOPROTO	{ int getdents(int fd, char *buf, \
477				    size_t count); }
478273	AUE_NULL	UNIMPL	nosys
479274	AUE_LCHMOD	NOPROTO	{ int lchmod(char *path, mode_t mode); }
480275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
481				    gid_t gid); } netbsd_lchown \
482				    lchown_args int
483276	AUE_LUTIMES	STD	{ int freebsd32_lutimes(char *path, \
484				    struct timeval32 *tptr); }
485277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
486				    int flags); } netbsd_msync msync_args int
487278	AUE_STAT	NOPROTO	{ int nstat(char *path, struct nstat *ub); }
488279	AUE_FSTAT	NOPROTO	{ int nfstat(int fd, struct nstat *sb); }
489280	AUE_LSTAT	NOPROTO	{ int nlstat(char *path, struct nstat *ub); }
490281	AUE_NULL	UNIMPL	nosys
491282	AUE_NULL	UNIMPL	nosys
492283	AUE_NULL	UNIMPL	nosys
493284	AUE_NULL	UNIMPL	nosys
494285	AUE_NULL	UNIMPL	nosys
495286	AUE_NULL	UNIMPL	nosys
496287	AUE_NULL	UNIMPL	nosys
497288	AUE_NULL	UNIMPL	nosys
498; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
499289	AUE_PREADV	STD	{ ssize_t freebsd32_preadv(int fd, \
500					struct iovec32 *iovp, \
501					u_int iovcnt, off_t offset); }
502; XXX note - bigendian is different
503290	AUE_PWRITEV	STD	{ ssize_t freebsd32_pwritev(int fd, \
504					struct iovec32 *iovp, \
505					u_int iovcnt, off_t offset); }
506; XXX note - bigendian is different
507291	AUE_NULL	UNIMPL	nosys
508292	AUE_NULL	UNIMPL	nosys
509293	AUE_NULL	UNIMPL	nosys
510294	AUE_NULL	UNIMPL	nosys
511295	AUE_NULL	UNIMPL	nosys
512296	AUE_NULL	UNIMPL	nosys
513; XXX 297 is 300 in NetBSD 
514297	AUE_FHSTATFS	COMPAT4	{ int freebsd32_fhstatfs( \
515				    const struct fhandle *u_fhp, \
516				    struct statfs32 *buf); }
517298	AUE_FHOPEN	NOPROTO	{ int fhopen(const struct fhandle *u_fhp, \
518			 	    int flags); }
519299	AUE_FHSTAT	NOPROTO	{ int fhstat(const struct fhandle *u_fhp, \
520				    struct stat *sb); }
521; syscall numbers for FreeBSD
522300	AUE_NULL	NOPROTO	{ int modnext(int modid); }
523301	AUE_NULL	STD	{ int freebsd32_modstat(int modid, \
524				    struct module_stat32* stat); }
525302	AUE_NULL	NOPROTO	{ int modfnext(int modid); }
526303	AUE_NULL	NOPROTO	{ int modfind(const char *name); }
527304	AUE_MODLOAD	NOPROTO	{ int kldload(const char *file); }
528305	AUE_MODUNLOAD	NOPROTO	{ int kldunload(int fileid); }
529306	AUE_NULL	NOPROTO	{ int kldfind(const char *file); }
530307	AUE_NULL	NOPROTO	{ int kldnext(int fileid); }
531308	AUE_NULL	NOPROTO	{ int kldstat(int fileid, \
532				    struct kld_file_stat* stat); }
533309	AUE_NULL	NOPROTO	{ int kldfirstmod(int fileid); }
534310	AUE_GETSID	NOPROTO	{ int getsid(pid_t pid); }
535311	AUE_SETRESUID	NOPROTO	{ int setresuid(uid_t ruid, uid_t euid, \
536				    uid_t suid); }
537312	AUE_SETRESGID	NOPROTO	{ int setresgid(gid_t rgid, gid_t egid, \
538				    gid_t sgid); }
539313	AUE_NULL	OBSOL	signanosleep
540314	AUE_NULL	UNIMPL	aio_return
541315	AUE_NULL	UNIMPL	aio_suspend
542316	AUE_NULL	UNIMPL	aio_cancel
543317	AUE_NULL	UNIMPL	aio_error
544318	AUE_NULL	UNIMPL	aio_read
545319	AUE_NULL	UNIMPL	aio_write
546320	AUE_NULL	UNIMPL	lio_listio
547321	AUE_NULL	NOPROTO	{ int yield(void); }
548322	AUE_NULL	OBSOL	thr_sleep
549323	AUE_NULL	OBSOL	thr_wakeup
550324	AUE_MLOCKALL	NOPROTO	{ int mlockall(int how); }
551325	AUE_MUNLOCKALL	NOPROTO	{ int munlockall(void); }
552326	AUE_GETCWD	NOPROTO	{ int __getcwd(u_char *buf, u_int buflen); }
553
554327	AUE_NULL	NOPROTO	{ int sched_setparam (pid_t pid, \
555				    const struct sched_param *param); }
556328	AUE_NULL	NOPROTO	{ int sched_getparam (pid_t pid, \
557				    struct sched_param *param); }
558
559329	AUE_NULL	NOPROTO	{ int sched_setscheduler (pid_t pid, \
560				    int policy, \
561				    const struct sched_param *param); }
562330	AUE_NULL	NOPROTO	{ int sched_getscheduler (pid_t pid); }
563
564331	AUE_NULL	NOPROTO	{ int sched_yield (void); }
565332	AUE_NULL	NOPROTO	{ int sched_get_priority_max (int policy); }
566333	AUE_NULL	NOPROTO	{ int sched_get_priority_min (int policy); }
567334	AUE_NULL	NOPROTO	{ int sched_rr_get_interval (pid_t pid, \
568				    struct timespec *interval); }
569335	AUE_NULL	NOPROTO	{ int utrace(const void *addr, size_t len); }
570; XXX note - bigendian is different
571336	AUE_SENDFILE	COMPAT4	{ int freebsd32_sendfile(int fd, int s, \
572				    u_int32_t offsetlo, u_int32_t offsethi, \
573				    size_t nbytes, struct sf_hdtr32 *hdtr, \
574				    off_t *sbytes, int flags); }
575337	AUE_NULL	NOPROTO	{ int kldsym(int fileid, int cmd, \
576				    void *data); }
577338	AUE_JAIL	NOPROTO	{ int jail(struct jail *jail); }
578339	AUE_NULL	UNIMPL	pioctl
579340	AUE_SIGPROCMASK	NOPROTO	{ int sigprocmask(int how, \
580				    const sigset_t *set, sigset_t *oset); }
581341	AUE_SIGSUSPEND	NOPROTO	{ int sigsuspend(const sigset_t *sigmask); }
582342	AUE_SIGACTION	COMPAT4	{ int freebsd32_sigaction(int sig, \
583				    struct sigaction32 *act, \
584				    struct sigaction32 *oact); }
585343	AUE_SIGPENDING	NOPROTO	{ int sigpending(sigset_t *set); }
586344	AUE_SIGRETURN	COMPAT4	{ int freebsd32_sigreturn( \
587		    const struct freebsd4_freebsd32_ucontext *sigcntxp); }
588345	AUE_SIGWAIT	STD	{ int freebsd32_sigtimedwait(const sigset_t *set, \
589				    siginfo_t *info, \
590				    const struct timespec *timeout); }
591346	AUE_NULL	STD	{ int freebsd32_sigwaitinfo(const sigset_t *set, \
592				    siginfo_t *info); }
593347	AUE_NULL	NOPROTO	{ int __acl_get_file(const char *path, \
594				    acl_type_t type, struct acl *aclp); }
595348	AUE_NULL	NOPROTO	{ int __acl_set_file(const char *path, \
596				    acl_type_t type, struct acl *aclp); }
597349	AUE_NULL	NOPROTO	{ int __acl_get_fd(int filedes, \
598				    acl_type_t type, struct acl *aclp); }
599350	AUE_NULL	NOPROTO	{ int __acl_set_fd(int filedes, \
600				    acl_type_t type, struct acl *aclp); }
601351	AUE_NULL	NOPROTO	{ int __acl_delete_file(const char *path, \
602				    acl_type_t type); }
603352	AUE_NULL	NOPROTO	{ int __acl_delete_fd(int filedes, \
604				    acl_type_t type); }
605353	AUE_NULL	NOPROTO	{ int __acl_aclcheck_file(const char *path, \
606				    acl_type_t type, struct acl *aclp); }
607354	AUE_NULL	NOPROTO	{ int __acl_aclcheck_fd(int filedes, \
608				    acl_type_t type, struct acl *aclp); }
609355	AUE_EXTATTRCTL	NOPROTO	{ int extattrctl(const char *path, int cmd, \
610				    const char *filename, int attrnamespace, \
611				    const char *attrname); }
612356	AUE_EXTATTR_SET_FILE	NOPROTO	{ int extattr_set_file( \
613				    const char *path, int attrnamespace, \
614				    const char *attrname, void *data, \
615				    size_t nbytes); }
616357	AUE_EXTATTR_GET_FILE	NOPROTO	{ ssize_t extattr_get_file( \
617				    const char *path, int attrnamespace, \
618				    const char *attrname, void *data, \
619				    size_t nbytes); }
620358	AUE_EXTATTR_DELETE_FILE	NOPROTO	{ int extattr_delete_file( \
621				    const char *path, int attrnamespace, \
622				    const char *attrname); }
623359	AUE_NULL	UNIMPL	aio_waitcomplete
624360	AUE_GETRESUID	NOPROTO	{ int getresuid(uid_t *ruid, uid_t *euid, \
625				    uid_t *suid); }
626361	AUE_GETRESGID	NOPROTO	{ int getresgid(gid_t *rgid, gid_t *egid, \
627				    gid_t *sgid); }
628362	AUE_KQUEUE	NOPROTO	{ int kqueue(void); }
629363	AUE_NULL	STD	{ int freebsd32_kevent(int fd, \
630				    const struct kevent32 *changelist, \
631				    int nchanges, \
632				    struct kevent32 *eventlist, int nevents, \
633				    const struct timespec32 *timeout); }
634364	AUE_NULL	UNIMPL	__cap_get_proc
635365	AUE_NULL	UNIMPL	__cap_set_proc
636366	AUE_NULL	UNIMPL	__cap_get_fd
637367	AUE_NULL	UNIMPL	__cap_get_file
638368	AUE_NULL	UNIMPL	__cap_set_fd
639369	AUE_NULL	UNIMPL	__cap_set_file
640370	AUE_NULL	UNIMPL	lkmressys
641371	AUE_EXTATTR_SET_FD	NOPROTO	{ int extattr_set_fd(int fd, \
642				    int attrnamespace, const char *attrname, \
643				    void *data, size_t nbytes); }
644372	AUE_EXTATTR_GET_FD	NOPROTO	{ ssize_t extattr_get_fd(int fd, \
645				    int attrnamespace, const char *attrname, \
646				    void *data, size_t nbytes); }
647373	AUE_EXTATTR_DELETE_FD	NOPROTO	{ int extattr_delete_fd(int fd, \
648				    int attrnamespace, \
649				    const char *attrname); }
650374	AUE_NULL	NOPROTO	{ int __setugid(int flag); }
651375	AUE_NULL	UNIMPL	nfsclnt
652376	AUE_EACCESS	NOPROTO	{ int eaccess(char *path, int flags); }
653377	AUE_NULL	UNIMPL	afs_syscall
654378	AUE_NMOUNT	NOPROTO	{ int nmount(struct iovec *iovp, \
655				    unsigned int iovcnt, int flags); }
656379	AUE_NULL	UNIMPL	kse_exit
657380	AUE_NULL	UNIMPL	kse_wakeup
658381	AUE_NULL	UNIMPL	kse_create
659382	AUE_NULL	UNIMPL	kse_thr_interrupt
660383	AUE_NULL	UNIMPL	kse_release
661384	AUE_NULL	UNIMPL	__mac_get_proc
662385	AUE_NULL	UNIMPL	__mac_set_proc
663386	AUE_NULL	UNIMPL	__mac_get_fd
664387	AUE_NULL	UNIMPL	__mac_get_file
665388	AUE_NULL	UNIMPL	__mac_set_fd
666389	AUE_NULL	UNIMPL	__mac_set_file
667390	AUE_NULL	NOPROTO	{ int kenv(int what, const char *name, \
668				    char *value, int len); }
669391	AUE_LCHFLAGS	NOPROTO	{ int lchflags(const char *path, int flags); }
670392	AUE_NULL	NOPROTO	{ int uuidgen(struct uuid *store, \
671				    int count); }
672393	AUE_SENDFILE	STD	{ int freebsd32_sendfile(int fd, int s, \
673				    u_int32_t offsetlo, u_int32_t offsethi, \
674				    size_t nbytes, struct sf_hdtr32 *hdtr, \
675				    off_t *sbytes, int flags); }
676394	AUE_NULL	UNIMPL	mac_syscall
677395	AUE_GETFSSTAT	NOPROTO	{ int getfsstat(struct statfs *buf, \
678				    long bufsize, int flags); }
679396	AUE_STATFS	NOPROTO	{ int statfs(char *path, \
680				    struct statfs *buf); }
681397	AUE_FSTATFS	NOPROTO	{ int fstatfs(int fd, struct statfs *buf); }
682398	AUE_FHSTATFS	NOPROTO	{ int fhstatfs(const struct fhandle *u_fhp, \
683				    struct statfs *buf); }
684399	AUE_NULL	UNIMPL	nosys
685; XXX implement these?
686400	AUE_NULL	UNIMPL	ksem_close
687401	AUE_NULL	UNIMPL	ksem_post
688402	AUE_NULL	UNIMPL	ksem_wait
689403	AUE_NULL	UNIMPL	ksem_trywait
690404	AUE_NULL	UNIMPL	ksem_init
691405	AUE_NULL	UNIMPL	ksem_open
692406	AUE_NULL	UNIMPL	ksem_unlink
693407	AUE_NULL	UNIMPL	ksem_getvalue
694408	AUE_NULL	UNIMPL	ksem_destroy
695409	AUE_NULL	UNIMPL	__mac_get_pid
696410	AUE_NULL	UNIMPL	__mac_get_link
697411	AUE_NULL	UNIMPL	__mac_set_link
698412	AUE_EXTATTR_SET_LINK	UNIMPL	extattr_set_link
699413	AUE_EXTATTR_GET_LINK	UNIMPL	extattr_get_link
700414	AUE_EXTATTR_DELETE_LINK	UNIMPL	extattr_delete_link
701415	AUE_NULL	UNIMPL	__mac_execve
702416	AUE_SIGACTION	STD	{ int freebsd32_sigaction(int sig, \
703				    struct sigaction32 *act, \
704				    struct sigaction32 *oact); }
705417	AUE_SIGRETURN	STD	{ int freebsd32_sigreturn( \
706		    const struct freebsd32_ucontext *sigcntxp); }
707418	AUE_NULL	UNIMPL	__xstat
708419	AUE_NULL	UNIMPL	__xfstat
709420	AUE_NULL	UNIMPL	__xlstat
710421	AUE_NULL	STD	{ int freebsd32_getcontext( \
711				    struct freebsd32_ucontext *ucp); }
712422	AUE_NULL	STD	{ int freebsd32_setcontext( \
713				    const struct freebsd32_ucontext *ucp); }
714423	AUE_NULL	STD	{ int freebsd32_swapcontext( \
715				    struct freebsd32_ucontext *oucp, \
716				    const struct freebsd32_ucontext *ucp); }
717424	AUE_SWAPOFF	UNIMPL	swapoff
718425	AUE_NULL	UNIMPL	__acl_get_link
719426	AUE_NULL	UNIMPL	__acl_set_link
720427	AUE_NULL	UNIMPL	__acl_delete_link
721428	AUE_NULL	UNIMPL	__acl_aclcheck_link
722429	AUE_SIGWAIT	NOPROTO	{ int sigwait(const sigset_t *set, \
723				    int *sig); }
724430	AUE_NULL	UNIMPL	thr_create;
725431	AUE_NULL	NOPROTO	{ void thr_exit(long *state); }
726432	AUE_NULL	NOPROTO	{ int thr_self(long *id); }
727433	AUE_NULL	NOPROTO	{ int thr_kill(long id, int sig); }
728434	AUE_NULL	STD	{ int freebsd32_umtx_lock(struct umtx *umtx); }
729435	AUE_NULL	STD	{ int freebsd32_umtx_unlock(struct umtx *umtx); }
730436	AUE_NULL	NOPROTO	{ int jail_attach(int jid); }
731437	AUE_EXTATTR_LIST_FD	UNIMPL	extattr_list_fd
732438	AUE_EXTATTR_LIST_FILE	UNIMPL	extattr_list_file
733439	AUE_EXTATTR_LIST_LINK	UNIMPL	extattr_list_link
734440	AUE_NULL	UNIMPL	kse_switchin
735441	AUE_NULL	UNIMPL	ksem_timedwait
736442	AUE_NULL	STD	{ int freebsd32_thr_suspend( \
737				    const struct timespec32 *timeout); }
738443	AUE_NULL	NOPROTO	{ int thr_wake(long id); }
739444	AUE_MODUNLOAD	NOPROTO	{ int kldunloadf(int fileid, int flags); }
740445	AUE_AUDIT	NOPROTO	{ int audit(const void *record, \
741				    u_int length); }
742446	AUE_AUDITON	NOPROTO	{ int auditon(int cmd, void *data, \
743				    u_int length); }
744447	AUE_GETAUID	NOPROTO	{ int getauid(uid_t *auid); }
745448	AUE_SETAUID	NOPROTO	{ int setauid(uid_t *auid); }
746449	AUE_GETAUDIT	NOPROTO	{ int getaudit(struct auditinfo *auditinfo); }
747450	AUE_SETAUDIT	NOPROTO	{ int setaudit(struct auditinfo *auditinfo); }
748451	AUE_GETAUDIT_ADDR	NOPROTO	{ int getaudit_addr( \
749				    struct auditinfo_addr *auditinfo_addr, \
750				    u_int length); }
751452	AUE_SETAUDIT_ADDR	NOPROTO	{ int setaudit_addr( \
752				    struct auditinfo_addr *auditinfo_addr, \
753				    u_int length); }
754453	AUE_AUDITCTL	NOPROTO	{ int auditctl(char *path); }
755454	AUE_NULL	STD	{ int freebsd32_umtx_op(void *obj, int op,\
756				    u_long val, void *uaddr, \
757				    void *uaddr2); }
758455	AUE_NULL	STD	{ int freebsd32_thr_new(	\
759				    struct thr_param32 *param,	\
760				    int param_size); }
761456	AUE_NULL	NOPROTO	{ int sigqueue(pid_t pid, int signum, \
762				    void *value); }
763457	AUE_NULL	UNIMPL	kmq_open
764458	AUE_NULL	UNIMPL	kmq_setattr
765459	AUE_NULL	UNIMPL	kmq_timedreceive
766460	AUE_NULL	UNIMPL  kmq_timedsend
767461	AUE_NULL	UNIMPL	kmq_notify
768462	AUE_NULL	UNIMPL	kmq_unlink
769463	AUE_NULL	NOPROTO	{ int abort2(const char *why, int nargs, void **args); }
770464	AUE_NULL 	NOPROTO	{ int thr_set_name(long id, const char *name); }
771465	AUE_NULL	UNIMPL	aio_fsync
772466	AUE_RTPRIO	NOPROTO	{ int rtprio_thread(int function, \
773				    lwpid_t lwpid, struct rtprio *rtp); }
774467	AUE_NULL	UNIMPL	nosys
775468	AUE_NULL	UNIMPL	nosys
776469	AUE_NULL	UNIMPL	__getpath_fromfd
777470	AUE_NULL	UNIMPL	__getpath_fromaddr
778471	AUE_NULL	NOPROTO	{ int sctp_peeloff(int sd, uint32_t name); }
779472	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
780				    caddr_t to, __socklen_t tolen, \
781				    struct sctp_sndrcvinfo *sinfo, int flags); }
782473	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
783				    caddr_t to, __socklen_t tolen, \
784				    struct sctp_sndrcvinfo *sinfo, int flags); }
785474	AUE_NULL	NOPROTO	{ int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
786				    struct sockaddr * from, __socklen_t *fromlenaddr, \
787				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
788475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
789				    void *buf,size_t nbyte, \
790				    u_int32_t offsetlo, u_int32_t offsethi); }
791476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
792				    const void *buf, size_t nbyte, \
793				    u_int32_t offsetlo, u_int32_t offsethi); }
794477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
795				    size_t len, int prot, int flags, int fd, \
796				    u_int32_t poslo, u_int32_t poshi); }
797478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
798				    u_int32_t offsetlo, u_int32_t offsethi, \
799				    int whence); }
800479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
801				    u_int32_t lengthlo, u_int32_t lengthhi); }
802480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
803				    u_int32_t lengthlo, u_int32_t lengthhi); }
804481	AUE_KILL	NOPROTO	{ int thr_kill2(pid_t pid, long id, int sig); }
805482	AUE_SHMOPEN	NOPROTO	{ int shm_open(const char *path, int flags, \
806				    mode_t mode); }
807483	AUE_SHMUNLINK	NOPROTO	{ int shm_unlink(const char *path); }
808484	AUE_NULL	NOPROTO	{ int cpuset(cpusetid_t *setid); }
809485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
810				    uint32_t idlo, uint32_t idhi, \
811				    cpusetid_t setid); }
812486	AUE_NULL	STD	{ int freebsd32_cpuset_getid(cpulevel_t level, \
813				    cpuwhich_t which, \
814				    uint32_t idlo, uint32_t idhi, \
815				    cpusetid_t *setid); }
816487	AUE_NULL	STD	{ int freebsd32_cpuset_getaffinity( \
817				    cpulevel_t level, cpuwhich_t which, \
818				    uint32_t idlo, uint32_t idhi, \
819				    size_t cpusetsize, \
820				    cpuset_t *mask); }
821488	AUE_NULL	STD	{ int freebsd32_cpuset_setaffinity( \
822				    cpulevel_t level, cpuwhich_t which, \
823				    uint32_t idlo, uint32_t idhi, \
824				    size_t cpusetsize, \
825				    const cpuset_t *mask); }
826489	AUE_FACCESSAT	NOPROTO	{ int faccessat(int fd, char *path, int mode, \
827				    int flag); }
828490	AUE_FCHMODAT	NOPROTO	{ int fchmodat(int fd, const char *path, \
829				    mode_t mode, int flag); }
830491	AUE_FCHOWNAT	NOPROTO	{ int fchownat(int fd, char *path, uid_t uid, \
831				    gid_t gid, int flag); }
832492	AUE_FEXECVE	STD	{ int freebsd32_fexecve(int fd, \
833				    u_int32_t *argv, u_int32_t *envv); }
834493	AUE_FSTATAT	STD	{ int freebsd32_fstatat(int fd, char *path, \
835				    struct stat *buf, int flag); }
836494	AUE_FUTIMESAT	STD	{ int freebsd32_futimesat(int fd, char *path, \
837				    struct timeval *times); }
838495	AUE_LINKAT	NOPROTO	{ int linkat(int fd1, char *path1, int fd2, \
839				    char *path2, int flag); }
840496	AUE_MKDIRAT	NOPROTO	{ int mkdirat(int fd, char *path, \
841				    mode_t mode); }
842497	AUE_MKFIFOAT	NOPROTO	{ int mkfifoat(int fd, char *path, \
843				    mode_t mode); }
844498	AUE_MKNODAT	NOPROTO	{ int mknodat(int fd, char *path, \
845				    mode_t mode, dev_t dev); }
846499	AUE_OPENAT_RWTC	NOPROTO	{ int openat(int fd, char *path, int flag, \
847				    mode_t mode); }
848500	AUE_READLINKAT	NOPROTO	{ int readlinkat(int fd, char *path, char *buf, \
849				    size_t bufsize); }
850501	AUE_RENAMEAT	NOPROTO	{ int renameat(int oldfd, char *old, int newfd, \
851				    const char *new); }
852502	AUE_SYMLINKAT	NOPROTO	{ int symlinkat(char *path1, int fd, \
853				    char *path2); }
854503	AUE_UNLINKAT	NOPROTO	{ int unlinkat(int fd, char *path, \
855				    int flag); }
856504	AUE_POSIXOPENPT	NOPROTO	{ int posix_openpt(int flags); }
857