syscalls.master revision 223166
1 $FreeBSD: head/sys/compat/freebsd32/syscalls.master 223166 2011-06-16 22:05:56Z kib $
2;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
3;	from: src/sys/kern/syscalls.master 1.107
4;
5; System call name/number master file.
6; Processed to created init_sysent.c, syscalls.c and syscall.h.
7
8; Columns: number audit type name alt{name,tag,rtyp}/comments
9;	number	system call number, must be in order
10;	audit	the audit event associated with the system call
11;		A value of AUE_NULL means no auditing, but it also means that
12;		there is no audit event for the call at this time. For the
13;		case where the event exists, but we don't want auditing, the
14;		event should be #defined to AUE_NULL in audit_kevents.h.
15;	type	one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
16;		COMPAT7, NODEF, NOARGS, NOPROTO, NOSTD
17;		The COMPAT* options may be combined with one or more NO*
18;		options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
19;	name	psuedo-prototype of syscall routine
20;		If one of the following alts is different, then all appear:
21;	altname	name of system call if different
22;	alttag	name of args struct tag if different from [o]`name'"_args"
23;	altrtyp	return type if not int (bogus - syscalls always return int)
24;		for UNIMPL/OBSOL, name continues with comments
25
26; types:
27;	STD	always included
28;	COMPAT	included on COMPAT #ifdef
29;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
30;	COMPAT6	included on COMPAT6 #ifdef (FreeBSD 6 compat)
31;	COMPAT7	included on COMPAT7 #ifdef (FreeBSD 7 compat)
32;	OBSOL	obsolete, not included in system, only specifies name
33;	UNIMPL	not implemented, placeholder only
34;	NOSTD	implemented but as a lkm that can be statically
35;		compiled in; sysent entry will be filled with lkmressys
36;		so the SYSCALL_MODULE macro works
37;	NOARGS	same as STD except do not create structure in sys/sysproto.h
38;	NODEF	same as STD except only have the entry in the syscall table
39;		added.  Meaning - do not create structure or function
40;		prototype in sys/sysproto.h
41;	NOPROTO	same as STD except do not create structure or
42;		function prototype in sys/sysproto.h.  Does add a
43;		definition to syscall.h besides adding a sysent.
44
45; #ifdef's, etc. may be included, and are copied to the output files.
46
47#include <sys/param.h>
48#include <sys/sysent.h>
49#include <sys/sysproto.h>
50#include <sys/mount.h>
51#include <sys/socket.h>
52#include <compat/freebsd32/freebsd32.h>
53#include <compat/freebsd32/freebsd32_proto.h>
54
55#if !defined(PAD64_REQUIRED) && defined(__powerpc__)
56#define PAD64_REQUIRED
57#endif
58
59; Reserved/unimplemented system calls in the range 0-150 inclusive
60; are reserved for use in future Berkeley releases.
61; Additional system calls implemented in vendor and other
62; redistributions should be placed in the reserved range at the end
63; of the current calls.
64
650	AUE_NULL	NOPROTO	{ int nosys(void); } syscall nosys_args int
661	AUE_EXIT	NOPROTO	{ void sys_exit(int rval); } exit \
67				    sys_exit_args void
682	AUE_FORK	NOPROTO	{ int fork(void); }
693	AUE_READ	NOPROTO	{ ssize_t read(int fd, void *buf, \
70				    size_t nbyte); }
714	AUE_WRITE	NOPROTO	{ ssize_t write(int fd, const void *buf, \
72				    size_t nbyte); }
735	AUE_OPEN_RWTC	NOPROTO	{ int open(char *path, int flags, \
74				    int mode); }
756	AUE_CLOSE	NOPROTO	{ int close(int fd); }
767	AUE_WAIT4	STD	{ int freebsd32_wait4(int pid, int *status, \
77				    int options, struct rusage32 *rusage); }
788	AUE_CREAT	OBSOL	old creat
799	AUE_LINK	NOPROTO	{ int link(char *path, char *link); }
8010	AUE_UNLINK	NOPROTO	{ int unlink(char *path); }
8111	AUE_NULL	OBSOL	execv
8212	AUE_CHDIR	NOPROTO	{ int chdir(char *path); }
8313	AUE_FCHDIR	NOPROTO	{ int fchdir(int fd); }
8414	AUE_MKNOD	NOPROTO	{ int mknod(char *path, int mode, int dev); }
8515	AUE_CHMOD	NOPROTO	{ int chmod(char *path, int mode); }
8616	AUE_CHOWN	NOPROTO	{ int chown(char *path, int uid, int gid); }
8717	AUE_NULL	NOPROTO	{ int obreak(char *nsize); } break \
88				    obreak_args int
8918	AUE_GETFSSTAT	COMPAT4	{ int freebsd32_getfsstat( \
90				    struct statfs32 *buf, long bufsize, \
91				    int flags); }
9219	AUE_LSEEK	COMPAT	{ int freebsd32_lseek(int fd, int offset, \
93				    int whence); }
9420	AUE_GETPID	NOPROTO	{ pid_t getpid(void); }
9521	AUE_MOUNT	NOPROTO	{ int mount(char *type, char *path, \
96				    int flags, caddr_t data); }
9722	AUE_UMOUNT	NOPROTO	{ int unmount(char *path, int flags); }
9823	AUE_SETUID	NOPROTO	{ int setuid(uid_t uid); }
9924	AUE_GETUID	NOPROTO	{ uid_t getuid(void); }
10025	AUE_GETEUID	NOPROTO	{ uid_t geteuid(void); }
10126	AUE_PTRACE	NOPROTO	{ int ptrace(int req, pid_t pid, \
102				    caddr_t addr, int data); }
10327	AUE_RECVMSG	STD	{ int freebsd32_recvmsg(int s, struct msghdr32 *msg, \
104				    int flags); }
10528	AUE_SENDMSG	STD	{ int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
106				    int flags); }
10729	AUE_RECVFROM	STD	{ int freebsd32_recvfrom(int s, u_int32_t buf, \
108				    u_int32_t len, int flags, u_int32_t from, \
109				    u_int32_t fromlenaddr); }
11030	AUE_ACCEPT	NOPROTO	{ int accept(int s, caddr_t name, \
111				    int *anamelen); }
11231	AUE_GETPEERNAME	NOPROTO	{ int getpeername(int fdes, caddr_t asa, \
113				    int *alen); }
11432	AUE_GETSOCKNAME	NOPROTO	{ int getsockname(int fdes, caddr_t asa, \
115				    int *alen); }
11633	AUE_ACCESS	NOPROTO	{ int access(char *path, int flags); }
11734	AUE_CHFLAGS	NOPROTO	{ int chflags(char *path, int flags); }
11835	AUE_FCHFLAGS	NOPROTO	{ int fchflags(int fd, int flags); }
11936	AUE_SYNC	NOPROTO	{ int sync(void); }
12037	AUE_KILL	NOPROTO	{ int kill(int pid, int signum); }
12138	AUE_STAT	COMPAT	{ int freebsd32_stat(char *path, \
122				    struct ostat32 *ub); }
12339	AUE_GETPPID	NOPROTO	{ pid_t getppid(void); }
12440	AUE_LSTAT	COMPAT	{ int freebsd32_lstat(char *path, \
125				    struct ostat *ub); }
12641	AUE_DUP		NOPROTO	{ int dup(u_int fd); }
12742	AUE_PIPE	NOPROTO	{ int pipe(void); }
12843	AUE_GETEGID	NOPROTO	{ gid_t getegid(void); }
12944	AUE_PROFILE	NOPROTO	{ int profil(caddr_t samples, size_t size, \
130				    size_t offset, u_int scale); }
13145	AUE_KTRACE	NOPROTO	{ int ktrace(const char *fname, int ops, \
132				    int facs, int pid); }
13346	AUE_SIGACTION	COMPAT	{ int freebsd32_sigaction( int signum, \
134				   struct osigaction32 *nsa, \
135				   struct osigaction32 *osa); }
13647	AUE_GETGID	NOPROTO	{ gid_t getgid(void); }
13748	AUE_SIGPROCMASK	COMPAT	{ int freebsd32_sigprocmask(int how, \
138				   osigset_t mask); }
13949	AUE_GETLOGIN	NOPROTO	{ int getlogin(char *namebuf, \
140				    u_int namelen); }
14150	AUE_SETLOGIN	NOPROTO	{ int setlogin(char *namebuf); }
14251	AUE_ACCT	NOPROTO	{ int acct(char *path); }
14352	AUE_SIGPENDING	COMPAT	{ int freebsd32_sigpending(void); }
14453	AUE_SIGALTSTACK	STD	{ int freebsd32_sigaltstack( \
145				    struct sigaltstack32 *ss, \
146				    struct sigaltstack32 *oss); }
14754	AUE_NULL	STD	{ int freebsd32_ioctl(int fd, uint32_t com, \
148				    struct md_ioctl32 *data); }
14955	AUE_REBOOT	NOPROTO	{ int reboot(int opt); }
15056	AUE_REVOKE	NOPROTO	{ int revoke(char *path); }
15157	AUE_SYMLINK	NOPROTO	{ int symlink(char *path, char *link); }
15258	AUE_READLINK	NOPROTO	{ ssize_t readlink(char *path, char *buf, \
153				    size_t count); }
15459	AUE_EXECVE	STD	{ int freebsd32_execve(char *fname, \
155				    u_int32_t *argv, u_int32_t *envv); }
15660	AUE_UMASK	NOPROTO	{ int umask(int newmask); } umask \
157				    umask_args int
15861	AUE_CHROOT	NOPROTO	{ int chroot(char *path); }
15962	AUE_FSTAT	COMPAT	{ int freebsd32_fstat(int fd, \
160				    struct ostat32 *ub); }
16163	AUE_NULL	OBSOL	ogetkerninfo
16264	AUE_NULL	COMPAT	{ int freebsd32_getpagesize( \
163				    int32_t dummy); }
16465	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
165				    int flags); }
16666	AUE_VFORK	NOPROTO	{ int vfork(void); }
16767	AUE_NULL	OBSOL	vread
16868	AUE_NULL	OBSOL	vwrite
16969	AUE_SBRK	NOPROTO	{ int sbrk(int incr); }
17070	AUE_SSTK	NOPROTO	{ int sstk(int incr); }
17171	AUE_MMAP	OBSOL	ommap
17272	AUE_O_VADVISE	NOPROTO	{ int ovadvise(int anom); } vadvise \
173				    ovadvise_args int
17473	AUE_MUNMAP	NOPROTO	{ int munmap(void *addr, size_t len); }
17574	AUE_MPROTECT	NOPROTO	{ int mprotect(const void *addr, \
176				    size_t len, int prot); }
17775	AUE_MADVISE	NOPROTO	{ int madvise(void *addr, size_t len, \
178				    int behav); }
17976	AUE_NULL	OBSOL	vhangup
18077	AUE_NULL	OBSOL	vlimit
18178	AUE_MINCORE	NOPROTO	{ int mincore(const void *addr, size_t len, \
182				    char *vec); }
18379	AUE_GETGROUPS	NOPROTO	{ int getgroups(u_int gidsetsize, \
184				    gid_t *gidset); }
18580	AUE_SETGROUPS	NOPROTO	{ int setgroups(u_int gidsetsize, \
186				    gid_t *gidset); }
18781	AUE_GETPGRP	NOPROTO	{ int getpgrp(void); }
18882	AUE_SETPGRP	NOPROTO	{ int setpgid(int pid, int pgid); }
18983	AUE_SETITIMER	STD	{ int freebsd32_setitimer(u_int which, \
190				    struct itimerval32 *itv, \
191				    struct itimerval32 *oitv); }
19284	AUE_NULL	OBSOL	owait
193; XXX implement
19485	AUE_SWAPON	NOPROTO	{ int swapon(char *name); }
19586	AUE_GETITIMER	STD	{ int freebsd32_getitimer(u_int which, \
196				    struct itimerval32 *itv); }
19787	AUE_O_GETHOSTNAME	OBSOL	ogethostname
19888	AUE_O_SETHOSTNAME	OBSOL	osethostname
19989	AUE_GETDTABLESIZE	NOPROTO	{ int getdtablesize(void); }
20090	AUE_DUP2	NOPROTO	{ int dup2(u_int from, u_int to); }
20191	AUE_NULL	UNIMPL	getdopt
20292	AUE_FCNTL	NOPROTO	{ int fcntl(int fd, int cmd, long arg); }
20393	AUE_SELECT	STD	{ int freebsd32_select(int nd, fd_set *in, \
204				    fd_set *ou, fd_set *ex, \
205				    struct timeval32 *tv); }
20694	AUE_NULL	UNIMPL	setdopt
20795	AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
20896	AUE_SETPRIORITY	NOPROTO	{ int setpriority(int which, int who, \
209				    int prio); }
21097	AUE_SOCKET	NOPROTO	{ int socket(int domain, int type, \
211				    int protocol); }
21298	AUE_CONNECT	NOPROTO	{ int connect(int s, caddr_t name, \
213				    int namelen); }
21499	AUE_NULL	OBSOL	oaccept
215100	AUE_GETPRIORITY	NOPROTO	{ int getpriority(int which, int who); }
216101	AUE_NULL	OBSOL	osend
217102	AUE_NULL	OBSOL	orecv
218103	AUE_NULL	COMPAT	{ int freebsd32_sigreturn( \
219				    struct ia32_sigcontext3 *sigcntxp); }
220104	AUE_BIND	NOPROTO	{ int bind(int s, caddr_t name, \
221				    int namelen); }
222105	AUE_SETSOCKOPT	NOPROTO	{ int setsockopt(int s, int level, \
223				    int name, caddr_t val, int valsize); }
224106	AUE_LISTEN	NOPROTO	{ int listen(int s, int backlog); }
225107	AUE_NULL	OBSOL	vtimes
226108	AUE_O_SIGVEC	COMPAT	{ int freebsd32_sigvec(int signum, \
227				     struct sigvec32 *nsv, \
228				     struct sigvec32 *osv); }
229109	AUE_O_SIGBLOCK	COMPAT	{ int freebsd32_sigblock(int mask); }
230110	AUE_O_SIGSETMASK	COMPAT	{ int freebsd32_sigsetmask( int mask); }
231111	AUE_SIGSUSPEND	COMPAT	{ int freebsd32_sigsuspend( int mask); }
232112	AUE_O_SIGSTACK	COMPAT	{ int freebsd32_sigstack( \
233				     struct sigstack32 *nss, \
234				     struct sigstack32 *oss); }
235113	AUE_NULL	OBSOL	orecvmsg
236114	AUE_NULL	OBSOL	osendmsg
237115	AUE_NULL	OBSOL	vtrace
238116	AUE_GETTIMEOFDAY	STD	{ int freebsd32_gettimeofday( \
239				    struct timeval32 *tp, \
240				    struct timezone *tzp); }
241117	AUE_GETRUSAGE	STD	{ int freebsd32_getrusage(int who, \
242				    struct rusage32 *rusage); }
243118	AUE_GETSOCKOPT	NOPROTO	{ int getsockopt(int s, int level, \
244				    int name, caddr_t val, int *avalsize); }
245119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
246120	AUE_READV	STD	{ int freebsd32_readv(int fd, \
247				    struct iovec32 *iovp, u_int iovcnt); }
248121	AUE_WRITEV	STD	{ int freebsd32_writev(int fd, \
249				    struct iovec32 *iovp, u_int iovcnt); }
250122	AUE_SETTIMEOFDAY	STD	{ int freebsd32_settimeofday( \
251				    struct timeval32 *tv, \
252				    struct timezone *tzp); }
253123	AUE_FCHOWN	NOPROTO	{ int fchown(int fd, int uid, int gid); }
254124	AUE_FCHMOD	NOPROTO	{ int fchmod(int fd, int mode); }
255125	AUE_RECVFROM	OBSOL	orecvfrom
256126	AUE_SETREUID	NOPROTO	{ int setreuid(int ruid, int euid); }
257127	AUE_SETREGID	NOPROTO	{ int setregid(int rgid, int egid); }
258128	AUE_RENAME	NOPROTO	{ int rename(char *from, char *to); }
259129	AUE_TRUNCATE	OBSOL	otruncate
260130	AUE_FTRUNCATE	OBSOL	ftruncate
261131	AUE_FLOCK	NOPROTO	{ int flock(int fd, int how); }
262132	AUE_MKFIFO	NOPROTO	{ int mkfifo(char *path, int mode); }
263133	AUE_SENDTO	NOPROTO	{ int sendto(int s, caddr_t buf, \
264				    size_t len, int flags, caddr_t to, \
265				    int tolen); }
266134	AUE_SHUTDOWN	NOPROTO	{ int shutdown(int s, int how); }
267135	AUE_SOCKETPAIR	NOPROTO	{ int socketpair(int domain, int type, \
268				    int protocol, int *rsv); }
269136	AUE_MKDIR	NOPROTO	{ int mkdir(char *path, int mode); }
270137	AUE_RMDIR	NOPROTO	{ int rmdir(char *path); }
271138	AUE_UTIMES	STD	{ int freebsd32_utimes(char *path, \
272				    struct timeval32 *tptr); }
273139	AUE_NULL	OBSOL	4.2 sigreturn
274140	AUE_ADJTIME	STD	{ int freebsd32_adjtime( \
275				    struct timeval32 *delta, \
276				    struct timeval32 *olddelta); }
277141	AUE_GETPEERNAME	OBSOL	ogetpeername
278142	AUE_SYSCTL	OBSOL	ogethostid
279143	AUE_SYSCTL	OBSOL	sethostid
280144	AUE_GETRLIMIT	OBSOL	getrlimit
281145	AUE_SETRLIMIT	OBSOL	setrlimit
282146	AUE_KILLPG	OBSOL	killpg
283147	AUE_SETSID	NOPROTO	{ int setsid(void); }
284148	AUE_QUOTACTL	NOPROTO	{ int quotactl(char *path, int cmd, int uid, \
285				    caddr_t arg); }
286149	AUE_O_QUOTA	OBSOL oquota
287150	AUE_GETSOCKNAME	OBSOL ogetsockname
288
289; Syscalls 151-180 inclusive are reserved for vendor-specific
290; system calls.  (This includes various calls added for compatibity
291; with other Unix variants.)
292; Some of these calls are now supported by BSD...
293151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
294152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
295153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
296; 154 is initialised by the NLM code, if present.
297154	AUE_NULL	UNIMPL	nlm_syscall
298; 155 is initialized by the NFS code, if present.
299; XXX this is a problem!!!
300155	AUE_NFS_SVC	UNIMPL	nfssvc
301156	AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \
302				    char *buf, u_int count, uint32_t *basep); }
303157	AUE_STATFS	COMPAT4	{ int freebsd32_statfs(char *path, \
304				    struct statfs32 *buf); }
305158	AUE_FSTATFS	COMPAT4	{ int freebsd32_fstatfs(int fd, \
306				    struct statfs32 *buf); }
307159	AUE_NULL	UNIMPL	nosys
308160	AUE_LGETFH	UNIMPL	lgetfh
309161	AUE_NFS_GETFH	NOPROTO	{ int getfh(char *fname, \
310				    struct fhandle *fhp); }
311162	AUE_NULL	OBSOL	getdomainname
312163	AUE_NULL	OBSOL	setdomainname
313164	AUE_NULL	OBSOL	uname
314165	AUE_SYSARCH	STD	{ int freebsd32_sysarch(int op, char *parms); }
315166	AUE_RTPRIO	NOPROTO	{ int rtprio(int function, pid_t pid, \
316				    struct rtprio *rtp); }
317167	AUE_NULL	UNIMPL	nosys
318168	AUE_NULL	UNIMPL	nosys
319169	AUE_SEMSYS	NOSTD	{ int freebsd32_semsys(int which, int a2, \
320				    int a3, int a4, int a5); }
321170	AUE_MSGSYS	NOSTD	{ int freebsd32_msgsys(int which, int a2, \
322				    int a3, int a4, int a5, int a6); }
323171	AUE_SHMSYS	NOSTD	{ int freebsd32_shmsys(uint32_t which, uint32_t a2, \
324				    uint32_t a3, uint32_t a4); }
325172	AUE_NULL	UNIMPL	nosys
326173	AUE_PREAD	COMPAT6	{ ssize_t freebsd32_pread(int fd, void *buf, \
327				    size_t nbyte, int pad, \
328				    u_int32_t offset1, u_int32_t offset2); }
329174	AUE_PWRITE	COMPAT6	{ ssize_t freebsd32_pwrite(int fd, \
330				    const void *buf, size_t nbyte, int pad, \
331				    u_int32_t offset1, u_int32_t offset2); }
332175	AUE_NULL	UNIMPL	nosys
333176	AUE_NTP_ADJTIME	NOPROTO	{ int ntp_adjtime(struct timex *tp); }
334177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
335178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
336179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
337180	AUE_NULL	UNIMPL	nosys
338
339; Syscalls 181-199 are used by/reserved for BSD
340181	AUE_SETGID	NOPROTO	{ int setgid(gid_t gid); }
341182	AUE_SETEGID	NOPROTO	{ int setegid(gid_t egid); }
342183	AUE_SETEUID	NOPROTO	{ int seteuid(uid_t euid); }
343184	AUE_NULL	UNIMPL	lfs_bmapv
344185	AUE_NULL	UNIMPL	lfs_markv
345186	AUE_NULL	UNIMPL	lfs_segclean
346187	AUE_NULL	UNIMPL	lfs_segwait
347188	AUE_STAT	STD	{ int freebsd32_stat(char *path, \
348				    struct stat32 *ub); }
349189	AUE_FSTAT	STD	{ int freebsd32_fstat(int fd, \
350				    struct stat32 *ub); }
351190	AUE_LSTAT	STD	{ int freebsd32_lstat(char *path, \
352				    struct stat32 *ub); }
353191	AUE_PATHCONF	NOPROTO	{ int pathconf(char *path, int name); }
354192	AUE_FPATHCONF	NOPROTO	{ int fpathconf(int fd, int name); }
355193	AUE_NULL	UNIMPL	nosys
356194	AUE_GETRLIMIT	NOPROTO	{ int getrlimit(u_int which, \
357				    struct rlimit *rlp); } getrlimit \
358				    __getrlimit_args int
359195	AUE_SETRLIMIT	NOPROTO	{ int setrlimit(u_int which, \
360				    struct rlimit *rlp); } setrlimit \
361				    __setrlimit_args int
362196	AUE_GETDIRENTRIES	STD	{ int freebsd32_getdirentries(int fd, \
363				    char *buf, u_int count, int32_t *basep); }
364197	AUE_MMAP	COMPAT6	{ caddr_t freebsd32_mmap(caddr_t addr, \
365				    size_t len, int prot, int flags, int fd, \
366				    int pad, u_int32_t pos1, u_int32_t pos2); }
367198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
368				    __syscall_args int
369199	AUE_LSEEK	COMPAT6	{ off_t freebsd32_lseek(int fd, int pad, \
370				    u_int32_t offset1, u_int32_t offset2, \
371				    int whence); }
372200	AUE_TRUNCATE	COMPAT6	{ int freebsd32_truncate(char *path, \
373				    int pad, u_int32_t length1, \
374				    u_int32_t length2); }
375201	AUE_FTRUNCATE	COMPAT6	{ int freebsd32_ftruncate(int fd, int pad, \
376				    u_int32_t length1, u_int32_t length2); }
377202	AUE_SYSCTL	STD	{ int freebsd32_sysctl(int *name, \
378				    u_int namelen, void *old, \
379				    u_int32_t *oldlenp, void *new, \
380				    u_int32_t newlen); }
381203	AUE_MLOCK	NOPROTO	{ int mlock(const void *addr, \
382				    size_t len); }
383204	AUE_MUNLOCK	NOPROTO	{ int munlock(const void *addr, \
384				    size_t len); }
385205	AUE_UNDELETE	NOPROTO	{ int undelete(char *path); }
386206	AUE_FUTIMES	STD	{ int freebsd32_futimes(int fd, \
387				    struct timeval32 *tptr); }
388207	AUE_GETPGID	NOPROTO	{ int getpgid(pid_t pid); }
389208	AUE_NULL	UNIMPL	newreboot (NetBSD)
390209	AUE_POLL	NOPROTO	{ int poll(struct pollfd *fds, u_int nfds, \
391				    int timeout); }
392
393;
394; The following are reserved for loadable syscalls
395;
396210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
397211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
398212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
399213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
400214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
401215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
402216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
403217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
404218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
405219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
406
407;
408; The following were introduced with NetBSD/4.4Lite-2
409; They are initialized by their respective modules/sysinits
410; XXX PROBLEM!!
411220	AUE_SEMCTL	COMPAT7|NOSTD	{ int freebsd32_semctl( \
412				    int semid, int semnum, \
413				    int cmd, union semun32 *arg); }
414221	AUE_SEMGET	NOSTD|NOPROTO	{ int semget(key_t key, int nsems, \
415				    int semflg); }
416222	AUE_SEMOP	NOSTD|NOPROTO	{ int semop(int semid, \
417				    struct sembuf *sops, u_int nsops); }
418223	AUE_NULL	UNIMPL	semconfig
419224	AUE_MSGCTL	COMPAT7|NOSTD	{ int freebsd32_msgctl( \
420				    int msqid, int cmd, \
421				    struct msqid_ds32_old *buf); }
422225	AUE_MSGGET	NOSTD|NOPROTO	{ int msgget(key_t key, int msgflg); }
423226	AUE_MSGSND	NOSTD	{ int freebsd32_msgsnd(int msqid, void *msgp, \
424				    size_t msgsz, int msgflg); }
425227	AUE_MSGRCV	NOSTD	{ int freebsd32_msgrcv(int msqid, void *msgp, \
426				    size_t msgsz, long msgtyp, int msgflg); }
427228	AUE_SHMAT	NOSTD|NOPROTO	{ int shmat(int shmid, void *shmaddr, \
428				    int shmflg); }
429229	AUE_SHMCTL	COMPAT7|NOSTD	{ int freebsd32_shmctl( \
430				    int shmid, int cmd, \
431				    struct shmid_ds32_old *buf); }
432230	AUE_SHMDT	NOSTD|NOPROTO	{ int shmdt(void *shmaddr); }
433231	AUE_SHMGET	NOSTD|NOPROTO	{ int shmget(key_t key, int size, \
434				    int shmflg); }
435;
436232	AUE_NULL	STD 	{ int freebsd32_clock_gettime(clockid_t clock_id, \
437				    struct timespec32 *tp); }
438233	AUE_CLOCK_SETTIME	STD	{ int freebsd32_clock_settime(clockid_t clock_id, \
439				    const struct timespec32 *tp); }
440234	AUE_NULL	STD	{ int freebsd32_clock_getres(clockid_t clock_id, \
441				    struct timespec32 *tp); }
442235	AUE_NULL	UNIMPL	timer_create
443236	AUE_NULL	UNIMPL	timer_delete
444237	AUE_NULL	UNIMPL	timer_settime
445238	AUE_NULL	UNIMPL	timer_gettime
446239	AUE_NULL	UNIMPL	timer_getoverrun
447240	AUE_NULL	STD	{ int freebsd32_nanosleep( \
448				    const struct timespec32 *rqtp, \
449				    struct timespec32 *rmtp); }
450241	AUE_NULL	UNIMPL	nosys
451242	AUE_NULL	UNIMPL	nosys
452243	AUE_NULL	UNIMPL	nosys
453244	AUE_NULL	UNIMPL	nosys
454245	AUE_NULL	UNIMPL	nosys
455246	AUE_NULL	UNIMPL	nosys
456247	AUE_NULL	UNIMPL	nosys
457248	AUE_NULL	UNIMPL	ntp_gettime
458249	AUE_NULL	UNIMPL	nosys
459; syscall numbers initially used in OpenBSD
460250	AUE_MINHERIT	NOPROTO	{ int minherit(void *addr, size_t len, \
461				    int inherit); }
462251	AUE_RFORK	NOPROTO	{ int rfork(int flags); }
463252	AUE_POLL	NOPROTO	{ int openbsd_poll(struct pollfd *fds, \
464				    u_int nfds, int timeout); }
465253	AUE_ISSETUGID	NOPROTO	{ int issetugid(void); }
466254	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, int uid, int gid); }
467255	AUE_NULL	NOSTD	{ int freebsd32_aio_read( \
468				    struct aiocb32 *aiocbp); }
469256	AUE_NULL	NOSTD	{ int freebsd32_aio_write( \
470				    struct aiocb32 *aiocbp); }
471257	AUE_NULL	NOSTD	{ int freebsd32_lio_listio(int mode, \
472				    struct aiocb32 * const *acb_list, \
473				    int nent, struct sigevent *sig); }
474258	AUE_NULL	UNIMPL	nosys
475259	AUE_NULL	UNIMPL	nosys
476260	AUE_NULL	UNIMPL	nosys
477261	AUE_NULL	UNIMPL	nosys
478262	AUE_NULL	UNIMPL	nosys
479263	AUE_NULL	UNIMPL	nosys
480264	AUE_NULL	UNIMPL	nosys
481265	AUE_NULL	UNIMPL	nosys
482266	AUE_NULL	UNIMPL	nosys
483267	AUE_NULL	UNIMPL	nosys
484268	AUE_NULL	UNIMPL	nosys
485269	AUE_NULL	UNIMPL	nosys
486270	AUE_NULL	UNIMPL	nosys
487271	AUE_NULL	UNIMPL	nosys
488272	AUE_O_GETDENTS	NOPROTO	{ int getdents(int fd, char *buf, \
489				    size_t count); }
490273	AUE_NULL	UNIMPL	nosys
491274	AUE_LCHMOD	NOPROTO	{ int lchmod(char *path, mode_t mode); }
492275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
493				    gid_t gid); } netbsd_lchown \
494				    lchown_args int
495276	AUE_LUTIMES	STD	{ int freebsd32_lutimes(char *path, \
496				    struct timeval32 *tptr); }
497277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
498				    int flags); } netbsd_msync msync_args int
499278	AUE_STAT	NOPROTO	{ int nstat(char *path, struct nstat *ub); }
500279	AUE_FSTAT	NOPROTO	{ int nfstat(int fd, struct nstat *sb); }
501280	AUE_LSTAT	NOPROTO	{ int nlstat(char *path, struct nstat *ub); }
502281	AUE_NULL	UNIMPL	nosys
503282	AUE_NULL	UNIMPL	nosys
504283	AUE_NULL	UNIMPL	nosys
505284	AUE_NULL	UNIMPL	nosys
506285	AUE_NULL	UNIMPL	nosys
507286	AUE_NULL	UNIMPL	nosys
508287	AUE_NULL	UNIMPL	nosys
509288	AUE_NULL	UNIMPL	nosys
510; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
511289	AUE_PREADV	STD	{ ssize_t freebsd32_preadv(int fd, \
512					struct iovec32 *iovp, \
513					u_int iovcnt, \
514					u_int32_t offset1, u_int32_t offset2); }
515290	AUE_PWRITEV	STD	{ ssize_t freebsd32_pwritev(int fd, \
516					struct iovec32 *iovp, \
517					u_int iovcnt, \
518					u_int32_t offset1, u_int32_t offset2); }
519291	AUE_NULL	UNIMPL	nosys
520292	AUE_NULL	UNIMPL	nosys
521293	AUE_NULL	UNIMPL	nosys
522294	AUE_NULL	UNIMPL	nosys
523295	AUE_NULL	UNIMPL	nosys
524296	AUE_NULL	UNIMPL	nosys
525; XXX 297 is 300 in NetBSD 
526297	AUE_FHSTATFS	COMPAT4	{ int freebsd32_fhstatfs( \
527				    const struct fhandle *u_fhp, \
528				    struct statfs32 *buf); }
529298	AUE_FHOPEN	NOPROTO	{ int fhopen(const struct fhandle *u_fhp, \
530			 	    int flags); }
531299	AUE_FHSTAT	NOPROTO	{ int fhstat(const struct fhandle *u_fhp, \
532				    struct stat *sb); }
533; syscall numbers for FreeBSD
534300	AUE_NULL	NOPROTO	{ int modnext(int modid); }
535301	AUE_NULL	STD	{ int freebsd32_modstat(int modid, \
536				    struct module_stat32* stat); }
537302	AUE_NULL	NOPROTO	{ int modfnext(int modid); }
538303	AUE_NULL	NOPROTO	{ int modfind(const char *name); }
539304	AUE_MODLOAD	NOPROTO	{ int kldload(const char *file); }
540305	AUE_MODUNLOAD	NOPROTO	{ int kldunload(int fileid); }
541306	AUE_NULL	NOPROTO	{ int kldfind(const char *file); }
542307	AUE_NULL	NOPROTO	{ int kldnext(int fileid); }
543308	AUE_NULL	STD	{ int freebsd32_kldstat(int fileid, \
544				    struct kld32_file_stat* stat); }
545309	AUE_NULL	NOPROTO	{ int kldfirstmod(int fileid); }
546310	AUE_GETSID	NOPROTO	{ int getsid(pid_t pid); }
547311	AUE_SETRESUID	NOPROTO	{ int setresuid(uid_t ruid, uid_t euid, \
548				    uid_t suid); }
549312	AUE_SETRESGID	NOPROTO	{ int setresgid(gid_t rgid, gid_t egid, \
550				    gid_t sgid); }
551313	AUE_NULL	OBSOL	signanosleep
552314	AUE_NULL	NOSTD	{ int freebsd32_aio_return( \
553				    struct aiocb32 *aiocbp); }
554315	AUE_NULL	NOSTD	{ int freebsd32_aio_suspend( \
555				    struct aiocb32 * const * aiocbp, int nent, \
556				    const struct timespec32 *timeout); }
557316	AUE_NULL	NOSTD	{ int freebsd32_aio_cancel(int fd, \
558				    struct aiocb32 *aiocbp); }
559317	AUE_NULL	NOSTD	{ int freebsd32_aio_error( \
560				    struct aiocb32 *aiocbp); }
561318	AUE_NULL	NOSTD	{ int freebsd32_oaio_read( \
562				    struct oaiocb32 *aiocbp); }
563319	AUE_NULL	NOSTD	{ int freebsd32_oaio_write( \
564				    struct oaiocb32 *aiocbp); }
565320	AUE_NULL	NOSTD	{ int freebsd32_olio_listio(int mode, \
566				    struct oaiocb32 * const *acb_list, \
567				    int nent, struct osigevent32 *sig); }
568321	AUE_NULL	NOPROTO	{ int yield(void); }
569322	AUE_NULL	OBSOL	thr_sleep
570323	AUE_NULL	OBSOL	thr_wakeup
571324	AUE_MLOCKALL	NOPROTO	{ int mlockall(int how); }
572325	AUE_MUNLOCKALL	NOPROTO	{ int munlockall(void); }
573326	AUE_GETCWD	NOPROTO	{ int __getcwd(u_char *buf, u_int buflen); }
574
575327	AUE_NULL	NOPROTO	{ int sched_setparam (pid_t pid, \
576				    const struct sched_param *param); }
577328	AUE_NULL	NOPROTO	{ int sched_getparam (pid_t pid, \
578				    struct sched_param *param); }
579
580329	AUE_NULL	NOPROTO	{ int sched_setscheduler (pid_t pid, \
581				    int policy, \
582				    const struct sched_param *param); }
583330	AUE_NULL	NOPROTO	{ int sched_getscheduler (pid_t pid); }
584
585331	AUE_NULL	NOPROTO	{ int sched_yield (void); }
586332	AUE_NULL	NOPROTO	{ int sched_get_priority_max (int policy); }
587333	AUE_NULL	NOPROTO	{ int sched_get_priority_min (int policy); }
588334	AUE_NULL	NOPROTO	{ int sched_rr_get_interval (pid_t pid, \
589				    struct timespec *interval); }
590335	AUE_NULL	NOPROTO	{ int utrace(const void *addr, size_t len); }
591336	AUE_SENDFILE	COMPAT4	{ int freebsd32_sendfile(int fd, int s, \
592				    u_int32_t offset1, u_int32_t offset2, \
593				    size_t nbytes, struct sf_hdtr32 *hdtr, \
594				    off_t *sbytes, int flags); }
595337	AUE_NULL	NOPROTO	{ int kldsym(int fileid, int cmd, \
596				    void *data); }
597338	AUE_JAIL	STD	{ int freebsd32_jail(struct jail32 *jail); }
598339	AUE_NULL	UNIMPL	pioctl
599340	AUE_SIGPROCMASK	NOPROTO	{ int sigprocmask(int how, \
600				    const sigset_t *set, sigset_t *oset); }
601341	AUE_SIGSUSPEND	NOPROTO	{ int sigsuspend(const sigset_t *sigmask); }
602342	AUE_SIGACTION	COMPAT4	{ int freebsd32_sigaction(int sig, \
603				    struct sigaction32 *act, \
604				    struct sigaction32 *oact); }
605343	AUE_SIGPENDING	NOPROTO	{ int sigpending(sigset_t *set); }
606344	AUE_SIGRETURN	COMPAT4	{ int freebsd32_sigreturn( \
607		    const struct freebsd4_freebsd32_ucontext *sigcntxp); }
608345	AUE_SIGWAIT	STD	{ int freebsd32_sigtimedwait(const sigset_t *set, \
609				    siginfo_t *info, \
610				    const struct timespec *timeout); }
611346	AUE_NULL	STD	{ int freebsd32_sigwaitinfo(const sigset_t *set, \
612				    siginfo_t *info); }
613347	AUE_NULL	NOPROTO	{ int __acl_get_file(const char *path, \
614				    acl_type_t type, struct acl *aclp); }
615348	AUE_NULL	NOPROTO	{ int __acl_set_file(const char *path, \
616				    acl_type_t type, struct acl *aclp); }
617349	AUE_NULL	NOPROTO	{ int __acl_get_fd(int filedes, \
618				    acl_type_t type, struct acl *aclp); }
619350	AUE_NULL	NOPROTO	{ int __acl_set_fd(int filedes, \
620				    acl_type_t type, struct acl *aclp); }
621351	AUE_NULL	NOPROTO	{ int __acl_delete_file(const char *path, \
622				    acl_type_t type); }
623352	AUE_NULL	NOPROTO	{ int __acl_delete_fd(int filedes, \
624				    acl_type_t type); }
625353	AUE_NULL	NOPROTO	{ int __acl_aclcheck_file(const char *path, \
626				    acl_type_t type, struct acl *aclp); }
627354	AUE_NULL	NOPROTO	{ int __acl_aclcheck_fd(int filedes, \
628				    acl_type_t type, struct acl *aclp); }
629355	AUE_EXTATTRCTL	NOPROTO	{ int extattrctl(const char *path, int cmd, \
630				    const char *filename, int attrnamespace, \
631				    const char *attrname); }
632356	AUE_EXTATTR_SET_FILE	NOPROTO	{ int extattr_set_file( \
633				    const char *path, int attrnamespace, \
634				    const char *attrname, void *data, \
635				    size_t nbytes); }
636357	AUE_EXTATTR_GET_FILE	NOPROTO	{ ssize_t extattr_get_file( \
637				    const char *path, int attrnamespace, \
638				    const char *attrname, void *data, \
639				    size_t nbytes); }
640358	AUE_EXTATTR_DELETE_FILE	NOPROTO	{ int extattr_delete_file( \
641				    const char *path, int attrnamespace, \
642				    const char *attrname); }
643359	AUE_NULL	NOSTD	{ int freebsd32_aio_waitcomplete( \
644				    struct aiocb32 **aiocbp, \
645				    struct timespec32 *timeout); }
646360	AUE_GETRESUID	NOPROTO	{ int getresuid(uid_t *ruid, uid_t *euid, \
647				    uid_t *suid); }
648361	AUE_GETRESGID	NOPROTO	{ int getresgid(gid_t *rgid, gid_t *egid, \
649				    gid_t *sgid); }
650362	AUE_KQUEUE	NOPROTO	{ int kqueue(void); }
651363	AUE_NULL	STD	{ int freebsd32_kevent(int fd, \
652				    const struct kevent32 *changelist, \
653				    int nchanges, \
654				    struct kevent32 *eventlist, int nevents, \
655				    const struct timespec32 *timeout); }
656364	AUE_NULL	UNIMPL	__cap_get_proc
657365	AUE_NULL	UNIMPL	__cap_set_proc
658366	AUE_NULL	UNIMPL	__cap_get_fd
659367	AUE_NULL	UNIMPL	__cap_get_file
660368	AUE_NULL	UNIMPL	__cap_set_fd
661369	AUE_NULL	UNIMPL	__cap_set_file
662370	AUE_NULL	UNIMPL	nosys
663371	AUE_EXTATTR_SET_FD	NOPROTO	{ int extattr_set_fd(int fd, \
664				    int attrnamespace, const char *attrname, \
665				    void *data, size_t nbytes); }
666372	AUE_EXTATTR_GET_FD	NOPROTO	{ ssize_t extattr_get_fd(int fd, \
667				    int attrnamespace, const char *attrname, \
668				    void *data, size_t nbytes); }
669373	AUE_EXTATTR_DELETE_FD	NOPROTO	{ int extattr_delete_fd(int fd, \
670				    int attrnamespace, \
671				    const char *attrname); }
672374	AUE_NULL	NOPROTO	{ int __setugid(int flag); }
673375	AUE_NULL	UNIMPL	nfsclnt
674376	AUE_EACCESS	NOPROTO	{ int eaccess(char *path, int flags); }
675377	AUE_NULL	UNIMPL	afs_syscall
676378	AUE_NMOUNT	STD	{ int freebsd32_nmount(struct iovec32 *iovp, \
677				    unsigned int iovcnt, int flags); }
678379	AUE_NULL	UNIMPL	kse_exit
679380	AUE_NULL	UNIMPL	kse_wakeup
680381	AUE_NULL	UNIMPL	kse_create
681382	AUE_NULL	UNIMPL	kse_thr_interrupt
682383	AUE_NULL	UNIMPL	kse_release
683384	AUE_NULL	UNIMPL	__mac_get_proc
684385	AUE_NULL	UNIMPL	__mac_set_proc
685386	AUE_NULL	UNIMPL	__mac_get_fd
686387	AUE_NULL	UNIMPL	__mac_get_file
687388	AUE_NULL	UNIMPL	__mac_set_fd
688389	AUE_NULL	UNIMPL	__mac_set_file
689390	AUE_NULL	NOPROTO	{ int kenv(int what, const char *name, \
690				    char *value, int len); }
691391	AUE_LCHFLAGS	NOPROTO	{ int lchflags(const char *path, int flags); }
692392	AUE_NULL	NOPROTO	{ int uuidgen(struct uuid *store, \
693				    int count); }
694393	AUE_SENDFILE	STD	{ int freebsd32_sendfile(int fd, int s, \
695				    u_int32_t offset1, u_int32_t offset2, \
696				    size_t nbytes, struct sf_hdtr32 *hdtr, \
697				    off_t *sbytes, int flags); }
698394	AUE_NULL	UNIMPL	mac_syscall
699395	AUE_GETFSSTAT	NOPROTO	{ int getfsstat(struct statfs *buf, \
700				    long bufsize, int flags); }
701396	AUE_STATFS	NOPROTO	{ int statfs(char *path, \
702				    struct statfs *buf); }
703397	AUE_FSTATFS	NOPROTO	{ int fstatfs(int fd, struct statfs *buf); }
704398	AUE_FHSTATFS	NOPROTO	{ int fhstatfs(const struct fhandle *u_fhp, \
705				    struct statfs *buf); }
706399	AUE_NULL	UNIMPL	nosys
707400	AUE_NULL	NOSTD|NOPROTO	{ int ksem_close(semid_t id); }
708401	AUE_NULL	NOSTD|NOPROTO	{ int ksem_post(semid_t id); }
709402	AUE_NULL	NOSTD|NOPROTO	{ int ksem_wait(semid_t id); }
710403	AUE_NULL	NOSTD|NOPROTO	{ int ksem_trywait(semid_t id); }
711404	AUE_NULL	NOSTD	{ int freebsd32_ksem_init(semid_t *idp, \
712				    unsigned int value); }
713405	AUE_NULL	NOSTD	{ int freebsd32_ksem_open(semid_t *idp, \
714				    const char *name, int oflag, \
715				    mode_t mode, unsigned int value); }
716406	AUE_NULL	NOSTD|NOPROTO	{ int ksem_unlink(const char *name); }
717407	AUE_NULL	NOSTD|NOPROTO	{ int ksem_getvalue(semid_t id, \
718				    int *val); }
719408	AUE_NULL	NOSTD|NOPROTO	{ int ksem_destroy(semid_t id); }
720409	AUE_NULL	UNIMPL	__mac_get_pid
721410	AUE_NULL	UNIMPL	__mac_get_link
722411	AUE_NULL	UNIMPL	__mac_set_link
723412	AUE_EXTATTR_SET_LINK	NOPROTO	{ int extattr_set_link( \
724				    const char *path, int attrnamespace, \
725				    const char *attrname, void *data, \
726				    size_t nbytes); }
727413	AUE_EXTATTR_GET_LINK	NOPROTO	{ ssize_t extattr_get_link( \
728				    const char *path, int attrnamespace, \
729				    const char *attrname, void *data, \
730				    size_t nbytes); }
731414	AUE_EXTATTR_DELETE_LINK	NOPROTO	{ int extattr_delete_link( \
732				    const char *path, int attrnamespace, \
733				    const char *attrname); }
734415	AUE_NULL	UNIMPL	__mac_execve
735416	AUE_SIGACTION	STD	{ int freebsd32_sigaction(int sig, \
736				    struct sigaction32 *act, \
737				    struct sigaction32 *oact); }
738417	AUE_SIGRETURN	STD	{ int freebsd32_sigreturn( \
739		    const struct freebsd32_ucontext *sigcntxp); }
740418	AUE_NULL	UNIMPL	__xstat
741419	AUE_NULL	UNIMPL	__xfstat
742420	AUE_NULL	UNIMPL	__xlstat
743421	AUE_NULL	STD	{ int freebsd32_getcontext( \
744				    struct freebsd32_ucontext *ucp); }
745422	AUE_NULL	STD	{ int freebsd32_setcontext( \
746				    const struct freebsd32_ucontext *ucp); }
747423	AUE_NULL	STD	{ int freebsd32_swapcontext( \
748				    struct freebsd32_ucontext *oucp, \
749				    const struct freebsd32_ucontext *ucp); }
750424	AUE_SWAPOFF	UNIMPL	swapoff
751425	AUE_NULL	NOPROTO	{ int __acl_get_link(const char *path, \
752				    acl_type_t type, struct acl *aclp); }
753426	AUE_NULL	NOPROTO	{ int __acl_set_link(const char *path, \
754				    acl_type_t type, struct acl *aclp); }
755427	AUE_NULL	NOPROTO	{ int __acl_delete_link(const char *path, \
756				    acl_type_t type); }
757428	AUE_NULL	NOPROTO	{ int __acl_aclcheck_link(const char *path, \
758				    acl_type_t type, struct acl *aclp); }
759429	AUE_SIGWAIT	NOPROTO	{ int sigwait(const sigset_t *set, \
760				    int *sig); }
761430	AUE_NULL	UNIMPL	thr_create;
762431	AUE_NULL	NOPROTO	{ void thr_exit(long *state); }
763432	AUE_NULL	NOPROTO	{ int thr_self(long *id); }
764433	AUE_NULL	NOPROTO	{ int thr_kill(long id, int sig); }
765434	AUE_NULL	STD	{ int freebsd32_umtx_lock(struct umtx *umtx); }
766435	AUE_NULL	STD	{ int freebsd32_umtx_unlock(struct umtx *umtx); }
767436	AUE_NULL	NOPROTO	{ int jail_attach(int jid); }
768437	AUE_EXTATTR_LIST_FD	NOPROTO	{ ssize_t extattr_list_fd(int fd, \
769				    int attrnamespace, void *data, \
770				    size_t nbytes); }
771438	AUE_EXTATTR_LIST_FILE	NOPROTO	{ ssize_t extattr_list_file( \
772				    const char *path, int attrnamespace, \
773				    void *data, size_t nbytes); }
774439	AUE_EXTATTR_LIST_LINK	NOPROTO	{ ssize_t extattr_list_link( \
775				    const char *path, int attrnamespace, \
776				    void *data, size_t nbytes); }
777440	AUE_NULL	UNIMPL	kse_switchin
778441	AUE_NULL	NOSTD	{ int freebsd32_ksem_timedwait(semid_t id, \
779				    const struct timespec32 *abstime); }
780442	AUE_NULL	STD	{ int freebsd32_thr_suspend( \
781				    const struct timespec32 *timeout); }
782443	AUE_NULL	NOPROTO	{ int thr_wake(long id); }
783444	AUE_MODUNLOAD	NOPROTO	{ int kldunloadf(int fileid, int flags); }
784445	AUE_AUDIT	NOPROTO	{ int audit(const void *record, \
785				    u_int length); }
786446	AUE_AUDITON	NOPROTO	{ int auditon(int cmd, void *data, \
787				    u_int length); }
788447	AUE_GETAUID	NOPROTO	{ int getauid(uid_t *auid); }
789448	AUE_SETAUID	NOPROTO	{ int setauid(uid_t *auid); }
790449	AUE_GETAUDIT	NOPROTO	{ int getaudit(struct auditinfo *auditinfo); }
791450	AUE_SETAUDIT	NOPROTO	{ int setaudit(struct auditinfo *auditinfo); }
792451	AUE_GETAUDIT_ADDR	NOPROTO	{ int getaudit_addr( \
793				    struct auditinfo_addr *auditinfo_addr, \
794				    u_int length); }
795452	AUE_SETAUDIT_ADDR	NOPROTO	{ int setaudit_addr( \
796				    struct auditinfo_addr *auditinfo_addr, \
797				    u_int length); }
798453	AUE_AUDITCTL	NOPROTO	{ int auditctl(char *path); }
799454	AUE_NULL	STD	{ int freebsd32_umtx_op(void *obj, int op,\
800				    u_long val, void *uaddr, \
801				    void *uaddr2); }
802455	AUE_NULL	STD	{ int freebsd32_thr_new(	\
803				    struct thr_param32 *param,	\
804				    int param_size); }
805456	AUE_NULL	NOPROTO	{ int sigqueue(pid_t pid, int signum, \
806				    void *value); }
807457	AUE_NULL	NOSTD	{ int freebsd32_kmq_open( \
808				    const char *path, int flags, mode_t mode, \
809				    const struct mq_attr32 *attr); }
810458	AUE_NULL	NOSTD	{ int freebsd32_kmq_setattr(int mqd, \
811				    const struct mq_attr32 *attr,	\
812				    struct mq_attr32 *oattr); }
813459	AUE_NULL	NOSTD	{ int freebsd32_kmq_timedreceive(int mqd, \
814				    char *msg_ptr, size_t msg_len,	\
815				    unsigned *msg_prio,			\
816				    const struct timespec32 *abs_timeout); }
817460	AUE_NULL	NOSTD	{ int freebsd32_kmq_timedsend(int mqd,	\
818				    const char *msg_ptr, size_t msg_len,\
819				    unsigned msg_prio,			\
820				    const struct timespec32 *abs_timeout);}
821461	AUE_NULL	NOPROTO|NOSTD	{ int kmq_notify(int mqd,	\
822				    const struct sigevent *sigev); }
823462	AUE_NULL	NOPROTO|NOSTD	{ int kmq_unlink(const char *path); }
824463	AUE_NULL	NOPROTO	{ int abort2(const char *why, int nargs, void **args); }
825464	AUE_NULL 	NOPROTO	{ int thr_set_name(long id, const char *name); }
826465	AUE_NULL	NOSTD	{ int freebsd32_aio_fsync(int op, \
827				    struct aiocb32 *aiocbp); }
828466	AUE_RTPRIO	NOPROTO	{ int rtprio_thread(int function, \
829				    lwpid_t lwpid, struct rtprio *rtp); }
830467	AUE_NULL	UNIMPL	nosys
831468	AUE_NULL	UNIMPL	nosys
832469	AUE_NULL	UNIMPL	__getpath_fromfd
833470	AUE_NULL	UNIMPL	__getpath_fromaddr
834471	AUE_NULL	NOPROTO	{ int sctp_peeloff(int sd, uint32_t name); }
835472	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
836				    caddr_t to, __socklen_t tolen, \
837				    struct sctp_sndrcvinfo *sinfo, int flags); }
838473	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
839				    caddr_t to, __socklen_t tolen, \
840				    struct sctp_sndrcvinfo *sinfo, int flags); }
841474	AUE_NULL	NOPROTO	{ int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
842				    struct sockaddr * from, __socklen_t *fromlenaddr, \
843				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
844#ifdef PAD64_REQUIRED
845475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
846				    void *buf,size_t nbyte, \
847				    int pad, \
848				    u_int32_t offset1, u_int32_t offset2); }
849476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
850				    const void *buf, size_t nbyte, \
851				    int pad, \
852				    u_int32_t offset1, u_int32_t offset2); }
853477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
854				    size_t len, int prot, int flags, int fd, \
855				    int pad, \
856				    u_int32_t pos1, u_int32_t pos2); }
857478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
858				    int pad, \
859				    u_int32_t offset1, u_int32_t offset2, \
860				    int whence); }
861479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
862				    int pad, \
863				    u_int32_t length1, u_int32_t length2); }
864480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
865				    int pad, \
866				    u_int32_t length1, u_int32_t length2); }
867#else
868475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
869				    void *buf,size_t nbyte, \
870				    u_int32_t offset1, u_int32_t offset2); }
871476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
872				    const void *buf, size_t nbyte, \
873				    u_int32_t offset1, u_int32_t offset2); }
874477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
875				    size_t len, int prot, int flags, int fd, \
876				    u_int32_t pos1, u_int32_t pos2); }
877478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
878				    u_int32_t offset1, u_int32_t offset2, \
879				    int whence); }
880479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
881				    u_int32_t length1, u_int32_t length2); }
882480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
883				    u_int32_t length1, u_int32_t length2); }
884#endif
885481	AUE_KILL	NOPROTO	{ int thr_kill2(pid_t pid, long id, int sig); }
886482	AUE_SHMOPEN	NOPROTO	{ int shm_open(const char *path, int flags, \
887				    mode_t mode); }
888483	AUE_SHMUNLINK	NOPROTO	{ int shm_unlink(const char *path); }
889484	AUE_NULL	NOPROTO	{ int cpuset(cpusetid_t *setid); }
890#ifdef PAD64_REQUIRED
891485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
892				    int pad, \
893				    u_int32_t id1, u_int32_t id2, \
894				    cpusetid_t setid); }
895#else
896485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
897				    u_int32_t id1, u_int32_t id2, \
898				    cpusetid_t setid); }
899#endif
900486	AUE_NULL	STD	{ int freebsd32_cpuset_getid(cpulevel_t level, \
901				    cpuwhich_t which, \
902				    u_int32_t id1, u_int32_t id2, \
903				    cpusetid_t *setid); }
904487	AUE_NULL	STD	{ int freebsd32_cpuset_getaffinity( \
905				    cpulevel_t level, cpuwhich_t which, \
906				    u_int32_t id1, u_int32_t id2, \
907				    size_t cpusetsize, \
908				    cpuset_t *mask); }
909488	AUE_NULL	STD	{ int freebsd32_cpuset_setaffinity( \
910				    cpulevel_t level, cpuwhich_t which, \
911				    u_int32_t id1, u_int32_t id2, \
912				    size_t cpusetsize, \
913				    const cpuset_t *mask); }
914489	AUE_FACCESSAT	NOPROTO	{ int faccessat(int fd, char *path, int mode, \
915				    int flag); }
916490	AUE_FCHMODAT	NOPROTO	{ int fchmodat(int fd, const char *path, \
917				    mode_t mode, int flag); }
918491	AUE_FCHOWNAT	NOPROTO	{ int fchownat(int fd, char *path, uid_t uid, \
919				    gid_t gid, int flag); }
920492	AUE_FEXECVE	STD	{ int freebsd32_fexecve(int fd, \
921				    u_int32_t *argv, u_int32_t *envv); }
922493	AUE_FSTATAT	STD	{ int freebsd32_fstatat(int fd, char *path, \
923				    struct stat *buf, int flag); }
924494	AUE_FUTIMESAT	STD	{ int freebsd32_futimesat(int fd, char *path, \
925				    struct timeval *times); }
926495	AUE_LINKAT	NOPROTO	{ int linkat(int fd1, char *path1, int fd2, \
927				    char *path2, int flag); }
928496	AUE_MKDIRAT	NOPROTO	{ int mkdirat(int fd, char *path, \
929				    mode_t mode); }
930497	AUE_MKFIFOAT	NOPROTO	{ int mkfifoat(int fd, char *path, \
931				    mode_t mode); }
932498	AUE_MKNODAT	NOPROTO	{ int mknodat(int fd, char *path, \
933				    mode_t mode, dev_t dev); }
934499	AUE_OPENAT_RWTC	NOPROTO	{ int openat(int fd, char *path, int flag, \
935				    mode_t mode); }
936500	AUE_READLINKAT	NOPROTO	{ int readlinkat(int fd, char *path, char *buf, \
937				    size_t bufsize); }
938501	AUE_RENAMEAT	NOPROTO	{ int renameat(int oldfd, char *old, int newfd, \
939				    const char *new); }
940502	AUE_SYMLINKAT	NOPROTO	{ int symlinkat(char *path1, int fd, \
941				    char *path2); }
942503	AUE_UNLINKAT	NOPROTO	{ int unlinkat(int fd, char *path, \
943				    int flag); }
944504	AUE_POSIX_OPENPT	NOPROTO	{ int posix_openpt(int flags); }
945; 505 is initialised by the kgssapi code, if present.
946505	AUE_NULL	UNIMPL	gssd_syscall
947506	AUE_NULL	STD	{ int freebsd32_jail_get(struct iovec32 *iovp, \
948				    unsigned int iovcnt, int flags); }
949507	AUE_NULL	STD	{ int freebsd32_jail_set(struct iovec32 *iovp, \
950				    unsigned int iovcnt, int flags); }
951508	AUE_NULL	NOPROTO	{ int jail_remove(int jid); }
952509	AUE_CLOSEFROM	NOPROTO	{ int closefrom(int lowfd); }
953510	AUE_SEMCTL	NOSTD { int freebsd32_semctl(int semid, int semnum, \
954				    int cmd, union semun32 *arg); }
955511	AUE_MSGCTL	NOSTD	{ int freebsd32_msgctl(int msqid, int cmd, \
956				    struct msqid_ds32 *buf); }
957512	AUE_SHMCTL	NOSTD	{ int freebsd32_shmctl(int shmid, int cmd, \
958				    struct shmid_ds32 *buf); }
959513	AUE_LPATHCONF	NOPROTO	{ int lpathconf(char *path, int name); }
960514	AUE_CAP_NEW	UNIMPL	cap_new
961515	AUE_CAP_GETRIGHTS	UNIMPL	cap_getrights
962516	AUE_CAP_ENTER	NOPROTO	{ int cap_enter(void); }
963517	AUE_CAP_GETMODE	NOPROTO	{ int cap_getmode(u_int *modep); }
964518	AUE_PDFORK	UNIMPL	pdfork
965519	AUE_PDKILL	UNIMPL	pdkill
966520	AUE_PDGETPID	UNIMPL	pdgetpid
967521	AUE_PDWAIT	UNIMPL	pdwait
968522	AUE_SELECT	STD	{ int freebsd32_pselect(int nd, fd_set *in, \
969				    fd_set *ou, fd_set *ex, \
970				    const struct timespec32 *ts, \
971				    const sigset_t *sm); }
972523	AUE_NULL	NOPROTO	{ int getloginclass(char *namebuf, \
973				    size_t namelen); }
974524	AUE_NULL	NOPROTO	{ int setloginclass(const char *namebuf); }
975525	AUE_NULL	NOPROTO	{ int rctl_get_racct(const void *inbufp, \
976				    size_t inbuflen, void *outbufp, \
977				    size_t outbuflen); }
978526	AUE_NULL	NOPROTO	{ int rctl_get_rules(const void *inbufp, \
979				    size_t inbuflen, void *outbufp, \
980				    size_t outbuflen); }
981527	AUE_NULL	NOPROTO	{ int rctl_get_limits(const void *inbufp, \
982				    size_t inbuflen, void *outbufp, \
983				    size_t outbuflen); }
984528	AUE_NULL	NOPROTO	{ int rctl_add_rule(const void *inbufp, \
985				    size_t inbuflen, void *outbufp, \
986				    size_t outbuflen); }
987529	AUE_NULL	NOPROTO	{ int rctl_remove_rule(const void *inbufp, \
988				    size_t inbuflen, void *outbufp, \
989				    size_t outbuflen); }
990530	AUE_NULL	STD	{ int freebsd32_posix_fallocate(int fd,\
991				     uint32_t offsetlo, uint32_t offsethi,\
992				     uint32_t lenlo, uint32_t lenhi); }
993531	AUE_NULL	UNIMPL	posix_fadvise
994