syscalls.master revision 239248
1 $FreeBSD: head/sys/compat/freebsd32/syscalls.master 239248 2012-08-14 12:09:09Z 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__) || defined(__mips__))
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, uint32_t buf, \
108				    uint32_t len, int flags, uint32_t from, \
109				    uint32_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 amode); }
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				    uint32_t *argv, uint32_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	COMPAT|NOPROTO	{ int mmap(void *addr, int len, \
172				    int prot, int flags, int fd, int pos); }
17372	AUE_O_VADVISE	NOPROTO	{ int ovadvise(int anom); } vadvise \
174				    ovadvise_args int
17573	AUE_MUNMAP	NOPROTO	{ int munmap(void *addr, size_t len); }
17674	AUE_MPROTECT	STD	{ int freebsd32_mprotect(const void *addr, \
177				    size_t len, int prot); }
17875	AUE_MADVISE	NOPROTO	{ int madvise(void *addr, size_t len, \
179				    int behav); }
18076	AUE_NULL	OBSOL	vhangup
18177	AUE_NULL	OBSOL	vlimit
18278	AUE_MINCORE	NOPROTO	{ int mincore(const void *addr, size_t len, \
183				    char *vec); }
18479	AUE_GETGROUPS	NOPROTO	{ int getgroups(u_int gidsetsize, \
185				    gid_t *gidset); }
18680	AUE_SETGROUPS	NOPROTO	{ int setgroups(u_int gidsetsize, \
187				    gid_t *gidset); }
18881	AUE_GETPGRP	NOPROTO	{ int getpgrp(void); }
18982	AUE_SETPGRP	NOPROTO	{ int setpgid(int pid, int pgid); }
19083	AUE_SETITIMER	STD	{ int freebsd32_setitimer(u_int which, \
191				    struct itimerval32 *itv, \
192				    struct itimerval32 *oitv); }
19384	AUE_NULL	OBSOL	owait
194; XXX implement
19585	AUE_SWAPON	NOPROTO	{ int swapon(char *name); }
19686	AUE_GETITIMER	STD	{ int freebsd32_getitimer(u_int which, \
197				    struct itimerval32 *itv); }
19887	AUE_O_GETHOSTNAME	OBSOL	ogethostname
19988	AUE_O_SETHOSTNAME	OBSOL	osethostname
20089	AUE_GETDTABLESIZE	NOPROTO	{ int getdtablesize(void); }
20190	AUE_DUP2	NOPROTO	{ int dup2(u_int from, u_int to); }
20291	AUE_NULL	UNIMPL	getdopt
20392	AUE_FCNTL	NOPROTO	{ int fcntl(int fd, int cmd, long arg); }
20493	AUE_SELECT	STD	{ int freebsd32_select(int nd, fd_set *in, \
205				    fd_set *ou, fd_set *ex, \
206				    struct timeval32 *tv); }
20794	AUE_NULL	UNIMPL	setdopt
20895	AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
20996	AUE_SETPRIORITY	NOPROTO	{ int setpriority(int which, int who, \
210				    int prio); }
21197	AUE_SOCKET	NOPROTO	{ int socket(int domain, int type, \
212				    int protocol); }
21398	AUE_CONNECT	NOPROTO	{ int connect(int s, caddr_t name, \
214				    int namelen); }
21599	AUE_NULL	OBSOL	oaccept
216100	AUE_GETPRIORITY	NOPROTO	{ int getpriority(int which, int who); }
217101	AUE_NULL	OBSOL	osend
218102	AUE_NULL	OBSOL	orecv
219103	AUE_NULL	COMPAT	{ int freebsd32_sigreturn( \
220				    struct ia32_sigcontext3 *sigcntxp); }
221104	AUE_BIND	NOPROTO	{ int bind(int s, caddr_t name, \
222				    int namelen); }
223105	AUE_SETSOCKOPT	NOPROTO	{ int setsockopt(int s, int level, \
224				    int name, caddr_t val, int valsize); }
225106	AUE_LISTEN	NOPROTO	{ int listen(int s, int backlog); }
226107	AUE_NULL	OBSOL	vtimes
227108	AUE_O_SIGVEC	COMPAT	{ int freebsd32_sigvec(int signum, \
228				     struct sigvec32 *nsv, \
229				     struct sigvec32 *osv); }
230109	AUE_O_SIGBLOCK	COMPAT	{ int freebsd32_sigblock(int mask); }
231110	AUE_O_SIGSETMASK	COMPAT	{ int freebsd32_sigsetmask( int mask); }
232111	AUE_SIGSUSPEND	COMPAT	{ int freebsd32_sigsuspend( int mask); }
233112	AUE_O_SIGSTACK	COMPAT	{ int freebsd32_sigstack( \
234				     struct sigstack32 *nss, \
235				     struct sigstack32 *oss); }
236113	AUE_NULL	OBSOL	orecvmsg
237114	AUE_NULL	OBSOL	osendmsg
238115	AUE_NULL	OBSOL	vtrace
239116	AUE_GETTIMEOFDAY	STD	{ int freebsd32_gettimeofday( \
240				    struct timeval32 *tp, \
241				    struct timezone *tzp); }
242117	AUE_GETRUSAGE	STD	{ int freebsd32_getrusage(int who, \
243				    struct rusage32 *rusage); }
244118	AUE_GETSOCKOPT	NOPROTO	{ int getsockopt(int s, int level, \
245				    int name, caddr_t val, int *avalsize); }
246119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
247120	AUE_READV	STD	{ int freebsd32_readv(int fd, \
248				    struct iovec32 *iovp, u_int iovcnt); }
249121	AUE_WRITEV	STD	{ int freebsd32_writev(int fd, \
250				    struct iovec32 *iovp, u_int iovcnt); }
251122	AUE_SETTIMEOFDAY	STD	{ int freebsd32_settimeofday( \
252				    struct timeval32 *tv, \
253				    struct timezone *tzp); }
254123	AUE_FCHOWN	NOPROTO	{ int fchown(int fd, int uid, int gid); }
255124	AUE_FCHMOD	NOPROTO	{ int fchmod(int fd, int mode); }
256125	AUE_RECVFROM	OBSOL	orecvfrom
257126	AUE_SETREUID	NOPROTO	{ int setreuid(int ruid, int euid); }
258127	AUE_SETREGID	NOPROTO	{ int setregid(int rgid, int egid); }
259128	AUE_RENAME	NOPROTO	{ int rename(char *from, char *to); }
260129	AUE_TRUNCATE	OBSOL	otruncate
261130	AUE_FTRUNCATE	OBSOL	ftruncate
262131	AUE_FLOCK	NOPROTO	{ int flock(int fd, int how); }
263132	AUE_MKFIFO	NOPROTO	{ int mkfifo(char *path, int mode); }
264133	AUE_SENDTO	NOPROTO	{ int sendto(int s, caddr_t buf, \
265				    size_t len, int flags, caddr_t to, \
266				    int tolen); }
267134	AUE_SHUTDOWN	NOPROTO	{ int shutdown(int s, int how); }
268135	AUE_SOCKETPAIR	NOPROTO	{ int socketpair(int domain, int type, \
269				    int protocol, int *rsv); }
270136	AUE_MKDIR	NOPROTO	{ int mkdir(char *path, int mode); }
271137	AUE_RMDIR	NOPROTO	{ int rmdir(char *path); }
272138	AUE_UTIMES	STD	{ int freebsd32_utimes(char *path, \
273				    struct timeval32 *tptr); }
274139	AUE_NULL	OBSOL	4.2 sigreturn
275140	AUE_ADJTIME	STD	{ int freebsd32_adjtime( \
276				    struct timeval32 *delta, \
277				    struct timeval32 *olddelta); }
278141	AUE_GETPEERNAME	OBSOL	ogetpeername
279142	AUE_SYSCTL	OBSOL	ogethostid
280143	AUE_SYSCTL	OBSOL	sethostid
281144	AUE_GETRLIMIT	OBSOL	getrlimit
282145	AUE_SETRLIMIT	OBSOL	setrlimit
283146	AUE_KILLPG	OBSOL	killpg
284147	AUE_SETSID	NOPROTO	{ int setsid(void); }
285148	AUE_QUOTACTL	NOPROTO	{ int quotactl(char *path, int cmd, int uid, \
286				    caddr_t arg); }
287149	AUE_O_QUOTA	OBSOL oquota
288150	AUE_GETSOCKNAME	OBSOL ogetsockname
289
290; Syscalls 151-180 inclusive are reserved for vendor-specific
291; system calls.  (This includes various calls added for compatibity
292; with other Unix variants.)
293; Some of these calls are now supported by BSD...
294151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
295152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
296153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
297; 154 is initialised by the NLM code, if present.
298154	AUE_NULL	UNIMPL	nlm_syscall
299; 155 is initialized by the NFS code, if present.
300; XXX this is a problem!!!
301155	AUE_NFS_SVC	UNIMPL	nfssvc
302156	AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \
303				    char *buf, u_int count, uint32_t *basep); }
304157	AUE_STATFS	COMPAT4	{ int freebsd32_statfs(char *path, \
305				    struct statfs32 *buf); }
306158	AUE_FSTATFS	COMPAT4	{ int freebsd32_fstatfs(int fd, \
307				    struct statfs32 *buf); }
308159	AUE_NULL	UNIMPL	nosys
309160	AUE_LGETFH	UNIMPL	lgetfh
310161	AUE_NFS_GETFH	NOPROTO	{ int getfh(char *fname, \
311				    struct fhandle *fhp); }
312162	AUE_NULL	OBSOL	getdomainname
313163	AUE_NULL	OBSOL	setdomainname
314164	AUE_NULL	OBSOL	uname
315165	AUE_SYSARCH	STD	{ int freebsd32_sysarch(int op, char *parms); }
316166	AUE_RTPRIO	NOPROTO	{ int rtprio(int function, pid_t pid, \
317				    struct rtprio *rtp); }
318167	AUE_NULL	UNIMPL	nosys
319168	AUE_NULL	UNIMPL	nosys
320169	AUE_SEMSYS	NOSTD	{ int freebsd32_semsys(int which, int a2, \
321				    int a3, int a4, int a5); }
322170	AUE_MSGSYS	NOSTD	{ int freebsd32_msgsys(int which, int a2, \
323				    int a3, int a4, int a5, int a6); }
324171	AUE_SHMSYS	NOSTD	{ int freebsd32_shmsys(uint32_t which, uint32_t a2, \
325				    uint32_t a3, uint32_t a4); }
326172	AUE_NULL	UNIMPL	nosys
327173	AUE_PREAD	COMPAT6	{ ssize_t freebsd32_pread(int fd, void *buf, \
328				    size_t nbyte, int pad, \
329				    uint32_t offset1, uint32_t offset2); }
330174	AUE_PWRITE	COMPAT6	{ ssize_t freebsd32_pwrite(int fd, \
331				    const void *buf, size_t nbyte, int pad, \
332				    uint32_t offset1, uint32_t offset2); }
333175	AUE_NULL	UNIMPL	nosys
334176	AUE_NTP_ADJTIME	NOPROTO	{ int ntp_adjtime(struct timex *tp); }
335177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
336178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
337179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
338180	AUE_NULL	UNIMPL	nosys
339
340; Syscalls 181-199 are used by/reserved for BSD
341181	AUE_SETGID	NOPROTO	{ int setgid(gid_t gid); }
342182	AUE_SETEGID	NOPROTO	{ int setegid(gid_t egid); }
343183	AUE_SETEUID	NOPROTO	{ int seteuid(uid_t euid); }
344184	AUE_NULL	UNIMPL	lfs_bmapv
345185	AUE_NULL	UNIMPL	lfs_markv
346186	AUE_NULL	UNIMPL	lfs_segclean
347187	AUE_NULL	UNIMPL	lfs_segwait
348188	AUE_STAT	STD	{ int freebsd32_stat(char *path, \
349				    struct stat32 *ub); }
350189	AUE_FSTAT	STD	{ int freebsd32_fstat(int fd, \
351				    struct stat32 *ub); }
352190	AUE_LSTAT	STD	{ int freebsd32_lstat(char *path, \
353				    struct stat32 *ub); }
354191	AUE_PATHCONF	NOPROTO	{ int pathconf(char *path, int name); }
355192	AUE_FPATHCONF	NOPROTO	{ int fpathconf(int fd, int name); }
356193	AUE_NULL	UNIMPL	nosys
357194	AUE_GETRLIMIT	NOPROTO	{ int getrlimit(u_int which, \
358				    struct rlimit *rlp); } getrlimit \
359				    __getrlimit_args int
360195	AUE_SETRLIMIT	NOPROTO	{ int setrlimit(u_int which, \
361				    struct rlimit *rlp); } setrlimit \
362				    __setrlimit_args int
363196	AUE_GETDIRENTRIES	STD	{ int freebsd32_getdirentries(int fd, \
364				    char *buf, u_int count, int32_t *basep); }
365197	AUE_MMAP	COMPAT6	{ caddr_t freebsd32_mmap(caddr_t addr, \
366				    size_t len, int prot, int flags, int fd, \
367				    int pad, uint32_t pos1, uint32_t pos2); }
368198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
369				    __syscall_args int
370199	AUE_LSEEK	COMPAT6	{ off_t freebsd32_lseek(int fd, int pad, \
371				    uint32_t offset1, uint32_t offset2, \
372				    int whence); }
373200	AUE_TRUNCATE	COMPAT6	{ int freebsd32_truncate(char *path, \
374				    int pad, uint32_t length1, \
375				    uint32_t length2); }
376201	AUE_FTRUNCATE	COMPAT6	{ int freebsd32_ftruncate(int fd, int pad, \
377				    uint32_t length1, uint32_t length2); }
378202	AUE_SYSCTL	STD	{ int freebsd32_sysctl(int *name, \
379				    u_int namelen, void *old, \
380				    uint32_t *oldlenp, void *new, \
381				    uint32_t newlen); }
382203	AUE_MLOCK	NOPROTO	{ int mlock(const void *addr, \
383				    size_t len); }
384204	AUE_MUNLOCK	NOPROTO	{ int munlock(const void *addr, \
385				    size_t len); }
386205	AUE_UNDELETE	NOPROTO	{ int undelete(char *path); }
387206	AUE_FUTIMES	STD	{ int freebsd32_futimes(int fd, \
388				    struct timeval32 *tptr); }
389207	AUE_GETPGID	NOPROTO	{ int getpgid(pid_t pid); }
390208	AUE_NULL	UNIMPL	newreboot (NetBSD)
391209	AUE_POLL	NOPROTO	{ int poll(struct pollfd *fds, u_int nfds, \
392				    int timeout); }
393
394;
395; The following are reserved for loadable syscalls
396;
397210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
398211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
399212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
400213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
401214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
402215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
403216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
404217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
405218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
406219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
407
408;
409; The following were introduced with NetBSD/4.4Lite-2
410; They are initialized by their respective modules/sysinits
411; XXX PROBLEM!!
412220	AUE_SEMCTL	COMPAT7|NOSTD	{ int freebsd32_semctl( \
413				    int semid, int semnum, \
414				    int cmd, union semun32 *arg); }
415221	AUE_SEMGET	NOSTD|NOPROTO	{ int semget(key_t key, int nsems, \
416				    int semflg); }
417222	AUE_SEMOP	NOSTD|NOPROTO	{ int semop(int semid, \
418				    struct sembuf *sops, u_int nsops); }
419223	AUE_NULL	UNIMPL	semconfig
420224	AUE_MSGCTL	COMPAT7|NOSTD	{ int freebsd32_msgctl( \
421				    int msqid, int cmd, \
422				    struct msqid_ds32_old *buf); }
423225	AUE_MSGGET	NOSTD|NOPROTO	{ int msgget(key_t key, int msgflg); }
424226	AUE_MSGSND	NOSTD	{ int freebsd32_msgsnd(int msqid, void *msgp, \
425				    size_t msgsz, int msgflg); }
426227	AUE_MSGRCV	NOSTD	{ int freebsd32_msgrcv(int msqid, void *msgp, \
427				    size_t msgsz, long msgtyp, int msgflg); }
428228	AUE_SHMAT	NOSTD|NOPROTO	{ int shmat(int shmid, void *shmaddr, \
429				    int shmflg); }
430229	AUE_SHMCTL	COMPAT7|NOSTD	{ int freebsd32_shmctl( \
431				    int shmid, int cmd, \
432				    struct shmid_ds32_old *buf); }
433230	AUE_SHMDT	NOSTD|NOPROTO	{ int shmdt(void *shmaddr); }
434231	AUE_SHMGET	NOSTD|NOPROTO	{ int shmget(key_t key, int size, \
435				    int shmflg); }
436;
437232	AUE_NULL	STD 	{ int freebsd32_clock_gettime(clockid_t clock_id, \
438				    struct timespec32 *tp); }
439233	AUE_CLOCK_SETTIME	STD	{ int freebsd32_clock_settime(clockid_t clock_id, \
440				    const struct timespec32 *tp); }
441234	AUE_NULL	STD	{ int freebsd32_clock_getres(clockid_t clock_id, \
442				    struct timespec32 *tp); }
443235	AUE_NULL	UNIMPL	timer_create
444236	AUE_NULL	UNIMPL	timer_delete
445237	AUE_NULL	UNIMPL	timer_settime
446238	AUE_NULL	UNIMPL	timer_gettime
447239	AUE_NULL	UNIMPL	timer_getoverrun
448240	AUE_NULL	STD	{ int freebsd32_nanosleep( \
449				    const struct timespec32 *rqtp, \
450				    struct timespec32 *rmtp); }
451241	AUE_NULL	NOPROTO	{ int ffclock_getcounter(ffcounter *ffcount); }
452242	AUE_NULL	NOPROTO	{ int ffclock_setestimate( \
453				    struct ffclock_estimate *cest); }
454243	AUE_NULL	NOPROTO	{ int ffclock_getestimate( \
455				    struct ffclock_estimate *cest); }
456244	AUE_NULL	UNIMPL	nosys
457245	AUE_NULL	UNIMPL	nosys
458246	AUE_NULL	UNIMPL	nosys
459247	AUE_NULL	UNIMPL	nosys
460248	AUE_NULL	UNIMPL	ntp_gettime
461249	AUE_NULL	UNIMPL	nosys
462; syscall numbers initially used in OpenBSD
463250	AUE_MINHERIT	NOPROTO	{ int minherit(void *addr, size_t len, \
464				    int inherit); }
465251	AUE_RFORK	NOPROTO	{ int rfork(int flags); }
466252	AUE_POLL	NOPROTO	{ int openbsd_poll(struct pollfd *fds, \
467				    u_int nfds, int timeout); }
468253	AUE_ISSETUGID	NOPROTO	{ int issetugid(void); }
469254	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, int uid, int gid); }
470255	AUE_NULL	NOSTD	{ int freebsd32_aio_read( \
471				    struct aiocb32 *aiocbp); }
472256	AUE_NULL	NOSTD	{ int freebsd32_aio_write( \
473				    struct aiocb32 *aiocbp); }
474257	AUE_NULL	NOSTD	{ int freebsd32_lio_listio(int mode, \
475				    struct aiocb32 * const *acb_list, \
476				    int nent, struct sigevent *sig); }
477258	AUE_NULL	UNIMPL	nosys
478259	AUE_NULL	UNIMPL	nosys
479260	AUE_NULL	UNIMPL	nosys
480261	AUE_NULL	UNIMPL	nosys
481262	AUE_NULL	UNIMPL	nosys
482263	AUE_NULL	UNIMPL	nosys
483264	AUE_NULL	UNIMPL	nosys
484265	AUE_NULL	UNIMPL	nosys
485266	AUE_NULL	UNIMPL	nosys
486267	AUE_NULL	UNIMPL	nosys
487268	AUE_NULL	UNIMPL	nosys
488269	AUE_NULL	UNIMPL	nosys
489270	AUE_NULL	UNIMPL	nosys
490271	AUE_NULL	UNIMPL	nosys
491272	AUE_O_GETDENTS	NOPROTO	{ int getdents(int fd, char *buf, \
492				    size_t count); }
493273	AUE_NULL	UNIMPL	nosys
494274	AUE_LCHMOD	NOPROTO	{ int lchmod(char *path, mode_t mode); }
495275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
496				    gid_t gid); } netbsd_lchown \
497				    lchown_args int
498276	AUE_LUTIMES	STD	{ int freebsd32_lutimes(char *path, \
499				    struct timeval32 *tptr); }
500277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
501				    int flags); } netbsd_msync msync_args int
502278	AUE_STAT	NOPROTO	{ int nstat(char *path, struct nstat *ub); }
503279	AUE_FSTAT	NOPROTO	{ int nfstat(int fd, struct nstat *sb); }
504280	AUE_LSTAT	NOPROTO	{ int nlstat(char *path, struct nstat *ub); }
505281	AUE_NULL	UNIMPL	nosys
506282	AUE_NULL	UNIMPL	nosys
507283	AUE_NULL	UNIMPL	nosys
508284	AUE_NULL	UNIMPL	nosys
509285	AUE_NULL	UNIMPL	nosys
510286	AUE_NULL	UNIMPL	nosys
511287	AUE_NULL	UNIMPL	nosys
512288	AUE_NULL	UNIMPL	nosys
513; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
514289	AUE_PREADV	STD	{ ssize_t freebsd32_preadv(int fd, \
515					struct iovec32 *iovp, \
516					u_int iovcnt, \
517					uint32_t offset1, uint32_t offset2); }
518290	AUE_PWRITEV	STD	{ ssize_t freebsd32_pwritev(int fd, \
519					struct iovec32 *iovp, \
520					u_int iovcnt, \
521					uint32_t offset1, uint32_t offset2); }
522291	AUE_NULL	UNIMPL	nosys
523292	AUE_NULL	UNIMPL	nosys
524293	AUE_NULL	UNIMPL	nosys
525294	AUE_NULL	UNIMPL	nosys
526295	AUE_NULL	UNIMPL	nosys
527296	AUE_NULL	UNIMPL	nosys
528; XXX 297 is 300 in NetBSD 
529297	AUE_FHSTATFS	COMPAT4	{ int freebsd32_fhstatfs( \
530				    const struct fhandle *u_fhp, \
531				    struct statfs32 *buf); }
532298	AUE_FHOPEN	NOPROTO	{ int fhopen(const struct fhandle *u_fhp, \
533			 	    int flags); }
534299	AUE_FHSTAT	NOPROTO	{ int fhstat(const struct fhandle *u_fhp, \
535				    struct stat *sb); }
536; syscall numbers for FreeBSD
537300	AUE_NULL	NOPROTO	{ int modnext(int modid); }
538301	AUE_NULL	STD	{ int freebsd32_modstat(int modid, \
539				    struct module_stat32* stat); }
540302	AUE_NULL	NOPROTO	{ int modfnext(int modid); }
541303	AUE_NULL	NOPROTO	{ int modfind(const char *name); }
542304	AUE_MODLOAD	NOPROTO	{ int kldload(const char *file); }
543305	AUE_MODUNLOAD	NOPROTO	{ int kldunload(int fileid); }
544306	AUE_NULL	NOPROTO	{ int kldfind(const char *file); }
545307	AUE_NULL	NOPROTO	{ int kldnext(int fileid); }
546308	AUE_NULL	STD	{ int freebsd32_kldstat(int fileid, \
547				    struct kld32_file_stat* stat); }
548309	AUE_NULL	NOPROTO	{ int kldfirstmod(int fileid); }
549310	AUE_GETSID	NOPROTO	{ int getsid(pid_t pid); }
550311	AUE_SETRESUID	NOPROTO	{ int setresuid(uid_t ruid, uid_t euid, \
551				    uid_t suid); }
552312	AUE_SETRESGID	NOPROTO	{ int setresgid(gid_t rgid, gid_t egid, \
553				    gid_t sgid); }
554313	AUE_NULL	OBSOL	signanosleep
555314	AUE_NULL	NOSTD	{ int freebsd32_aio_return( \
556				    struct aiocb32 *aiocbp); }
557315	AUE_NULL	NOSTD	{ int freebsd32_aio_suspend( \
558				    struct aiocb32 * const * aiocbp, int nent, \
559				    const struct timespec32 *timeout); }
560316	AUE_NULL	NOSTD	{ int freebsd32_aio_cancel(int fd, \
561				    struct aiocb32 *aiocbp); }
562317	AUE_NULL	NOSTD	{ int freebsd32_aio_error( \
563				    struct aiocb32 *aiocbp); }
564318	AUE_NULL	NOSTD	{ int freebsd32_oaio_read( \
565				    struct oaiocb32 *aiocbp); }
566319	AUE_NULL	NOSTD	{ int freebsd32_oaio_write( \
567				    struct oaiocb32 *aiocbp); }
568320	AUE_NULL	NOSTD	{ int freebsd32_olio_listio(int mode, \
569				    struct oaiocb32 * const *acb_list, \
570				    int nent, struct osigevent32 *sig); }
571321	AUE_NULL	NOPROTO	{ int yield(void); }
572322	AUE_NULL	OBSOL	thr_sleep
573323	AUE_NULL	OBSOL	thr_wakeup
574324	AUE_MLOCKALL	NOPROTO	{ int mlockall(int how); }
575325	AUE_MUNLOCKALL	NOPROTO	{ int munlockall(void); }
576326	AUE_GETCWD	NOPROTO	{ int __getcwd(u_char *buf, u_int buflen); }
577
578327	AUE_NULL	NOPROTO	{ int sched_setparam (pid_t pid, \
579				    const struct sched_param *param); }
580328	AUE_NULL	NOPROTO	{ int sched_getparam (pid_t pid, \
581				    struct sched_param *param); }
582
583329	AUE_NULL	NOPROTO	{ int sched_setscheduler (pid_t pid, \
584				    int policy, \
585				    const struct sched_param *param); }
586330	AUE_NULL	NOPROTO	{ int sched_getscheduler (pid_t pid); }
587
588331	AUE_NULL	NOPROTO	{ int sched_yield (void); }
589332	AUE_NULL	NOPROTO	{ int sched_get_priority_max (int policy); }
590333	AUE_NULL	NOPROTO	{ int sched_get_priority_min (int policy); }
591334	AUE_NULL	NOPROTO	{ int sched_rr_get_interval (pid_t pid, \
592				    struct timespec *interval); }
593335	AUE_NULL	NOPROTO	{ int utrace(const void *addr, size_t len); }
594336	AUE_SENDFILE	COMPAT4	{ int freebsd32_sendfile(int fd, int s, \
595				    uint32_t offset1, uint32_t offset2, \
596				    size_t nbytes, struct sf_hdtr32 *hdtr, \
597				    off_t *sbytes, int flags); }
598337	AUE_NULL	NOPROTO	{ int kldsym(int fileid, int cmd, \
599				    void *data); }
600338	AUE_JAIL	STD	{ int freebsd32_jail(struct jail32 *jail); }
601339	AUE_NULL	UNIMPL	pioctl
602340	AUE_SIGPROCMASK	NOPROTO	{ int sigprocmask(int how, \
603				    const sigset_t *set, sigset_t *oset); }
604341	AUE_SIGSUSPEND	NOPROTO	{ int sigsuspend(const sigset_t *sigmask); }
605342	AUE_SIGACTION	COMPAT4	{ int freebsd32_sigaction(int sig, \
606				    struct sigaction32 *act, \
607				    struct sigaction32 *oact); }
608343	AUE_SIGPENDING	NOPROTO	{ int sigpending(sigset_t *set); }
609344	AUE_SIGRETURN	COMPAT4	{ int freebsd32_sigreturn( \
610		    const struct freebsd4_freebsd32_ucontext *sigcntxp); }
611345	AUE_SIGWAIT	STD	{ int freebsd32_sigtimedwait(const sigset_t *set, \
612				    siginfo_t *info, \
613				    const struct timespec *timeout); }
614346	AUE_NULL	STD	{ int freebsd32_sigwaitinfo(const sigset_t *set, \
615				    siginfo_t *info); }
616347	AUE_NULL	NOPROTO	{ int __acl_get_file(const char *path, \
617				    acl_type_t type, struct acl *aclp); }
618348	AUE_NULL	NOPROTO	{ int __acl_set_file(const char *path, \
619				    acl_type_t type, struct acl *aclp); }
620349	AUE_NULL	NOPROTO	{ int __acl_get_fd(int filedes, \
621				    acl_type_t type, struct acl *aclp); }
622350	AUE_NULL	NOPROTO	{ int __acl_set_fd(int filedes, \
623				    acl_type_t type, struct acl *aclp); }
624351	AUE_NULL	NOPROTO	{ int __acl_delete_file(const char *path, \
625				    acl_type_t type); }
626352	AUE_NULL	NOPROTO	{ int __acl_delete_fd(int filedes, \
627				    acl_type_t type); }
628353	AUE_NULL	NOPROTO	{ int __acl_aclcheck_file(const char *path, \
629				    acl_type_t type, struct acl *aclp); }
630354	AUE_NULL	NOPROTO	{ int __acl_aclcheck_fd(int filedes, \
631				    acl_type_t type, struct acl *aclp); }
632355	AUE_EXTATTRCTL	NOPROTO	{ int extattrctl(const char *path, int cmd, \
633				    const char *filename, int attrnamespace, \
634				    const char *attrname); }
635356	AUE_EXTATTR_SET_FILE	NOPROTO	{ int extattr_set_file( \
636				    const char *path, int attrnamespace, \
637				    const char *attrname, void *data, \
638				    size_t nbytes); }
639357	AUE_EXTATTR_GET_FILE	NOPROTO	{ ssize_t extattr_get_file( \
640				    const char *path, int attrnamespace, \
641				    const char *attrname, void *data, \
642				    size_t nbytes); }
643358	AUE_EXTATTR_DELETE_FILE	NOPROTO	{ int extattr_delete_file( \
644				    const char *path, int attrnamespace, \
645				    const char *attrname); }
646359	AUE_NULL	NOSTD	{ int freebsd32_aio_waitcomplete( \
647				    struct aiocb32 **aiocbp, \
648				    struct timespec32 *timeout); }
649360	AUE_GETRESUID	NOPROTO	{ int getresuid(uid_t *ruid, uid_t *euid, \
650				    uid_t *suid); }
651361	AUE_GETRESGID	NOPROTO	{ int getresgid(gid_t *rgid, gid_t *egid, \
652				    gid_t *sgid); }
653362	AUE_KQUEUE	NOPROTO	{ int kqueue(void); }
654363	AUE_NULL	STD	{ int freebsd32_kevent(int fd, \
655				    const struct kevent32 *changelist, \
656				    int nchanges, \
657				    struct kevent32 *eventlist, int nevents, \
658				    const struct timespec32 *timeout); }
659364	AUE_NULL	UNIMPL	__cap_get_proc
660365	AUE_NULL	UNIMPL	__cap_set_proc
661366	AUE_NULL	UNIMPL	__cap_get_fd
662367	AUE_NULL	UNIMPL	__cap_get_file
663368	AUE_NULL	UNIMPL	__cap_set_fd
664369	AUE_NULL	UNIMPL	__cap_set_file
665370	AUE_NULL	UNIMPL	nosys
666371	AUE_EXTATTR_SET_FD	NOPROTO	{ int extattr_set_fd(int fd, \
667				    int attrnamespace, const char *attrname, \
668				    void *data, size_t nbytes); }
669372	AUE_EXTATTR_GET_FD	NOPROTO	{ ssize_t extattr_get_fd(int fd, \
670				    int attrnamespace, const char *attrname, \
671				    void *data, size_t nbytes); }
672373	AUE_EXTATTR_DELETE_FD	NOPROTO	{ int extattr_delete_fd(int fd, \
673				    int attrnamespace, \
674				    const char *attrname); }
675374	AUE_NULL	NOPROTO	{ int __setugid(int flag); }
676375	AUE_NULL	UNIMPL	nfsclnt
677376	AUE_EACCESS	NOPROTO	{ int eaccess(char *path, int amode); }
678377	AUE_NULL	UNIMPL	afs_syscall
679378	AUE_NMOUNT	STD	{ int freebsd32_nmount(struct iovec32 *iovp, \
680				    unsigned int iovcnt, int flags); }
681379	AUE_NULL	UNIMPL	kse_exit
682380	AUE_NULL	UNIMPL	kse_wakeup
683381	AUE_NULL	UNIMPL	kse_create
684382	AUE_NULL	UNIMPL	kse_thr_interrupt
685383	AUE_NULL	UNIMPL	kse_release
686384	AUE_NULL	UNIMPL	__mac_get_proc
687385	AUE_NULL	UNIMPL	__mac_set_proc
688386	AUE_NULL	UNIMPL	__mac_get_fd
689387	AUE_NULL	UNIMPL	__mac_get_file
690388	AUE_NULL	UNIMPL	__mac_set_fd
691389	AUE_NULL	UNIMPL	__mac_set_file
692390	AUE_NULL	NOPROTO	{ int kenv(int what, const char *name, \
693				    char *value, int len); }
694391	AUE_LCHFLAGS	NOPROTO	{ int lchflags(const char *path, int flags); }
695392	AUE_NULL	NOPROTO	{ int uuidgen(struct uuid *store, \
696				    int count); }
697393	AUE_SENDFILE	STD	{ int freebsd32_sendfile(int fd, int s, \
698				    uint32_t offset1, uint32_t offset2, \
699				    size_t nbytes, struct sf_hdtr32 *hdtr, \
700				    off_t *sbytes, int flags); }
701394	AUE_NULL	UNIMPL	mac_syscall
702395	AUE_GETFSSTAT	NOPROTO	{ int getfsstat(struct statfs *buf, \
703				    long bufsize, int flags); }
704396	AUE_STATFS	NOPROTO	{ int statfs(char *path, \
705				    struct statfs *buf); }
706397	AUE_FSTATFS	NOPROTO	{ int fstatfs(int fd, struct statfs *buf); }
707398	AUE_FHSTATFS	NOPROTO	{ int fhstatfs(const struct fhandle *u_fhp, \
708				    struct statfs *buf); }
709399	AUE_NULL	UNIMPL	nosys
710400	AUE_NULL	NOSTD|NOPROTO	{ int ksem_close(semid_t id); }
711401	AUE_NULL	NOSTD|NOPROTO	{ int ksem_post(semid_t id); }
712402	AUE_NULL	NOSTD|NOPROTO	{ int ksem_wait(semid_t id); }
713403	AUE_NULL	NOSTD|NOPROTO	{ int ksem_trywait(semid_t id); }
714404	AUE_NULL	NOSTD	{ int freebsd32_ksem_init(semid_t *idp, \
715				    unsigned int value); }
716405	AUE_NULL	NOSTD	{ int freebsd32_ksem_open(semid_t *idp, \
717				    const char *name, int oflag, \
718				    mode_t mode, unsigned int value); }
719406	AUE_NULL	NOSTD|NOPROTO	{ int ksem_unlink(const char *name); }
720407	AUE_NULL	NOSTD|NOPROTO	{ int ksem_getvalue(semid_t id, \
721				    int *val); }
722408	AUE_NULL	NOSTD|NOPROTO	{ int ksem_destroy(semid_t id); }
723409	AUE_NULL	UNIMPL	__mac_get_pid
724410	AUE_NULL	UNIMPL	__mac_get_link
725411	AUE_NULL	UNIMPL	__mac_set_link
726412	AUE_EXTATTR_SET_LINK	NOPROTO	{ int extattr_set_link( \
727				    const char *path, int attrnamespace, \
728				    const char *attrname, void *data, \
729				    size_t nbytes); }
730413	AUE_EXTATTR_GET_LINK	NOPROTO	{ ssize_t extattr_get_link( \
731				    const char *path, int attrnamespace, \
732				    const char *attrname, void *data, \
733				    size_t nbytes); }
734414	AUE_EXTATTR_DELETE_LINK	NOPROTO	{ int extattr_delete_link( \
735				    const char *path, int attrnamespace, \
736				    const char *attrname); }
737415	AUE_NULL	UNIMPL	__mac_execve
738416	AUE_SIGACTION	STD	{ int freebsd32_sigaction(int sig, \
739				    struct sigaction32 *act, \
740				    struct sigaction32 *oact); }
741417	AUE_SIGRETURN	STD	{ int freebsd32_sigreturn( \
742		    const struct freebsd32_ucontext *sigcntxp); }
743418	AUE_NULL	UNIMPL	__xstat
744419	AUE_NULL	UNIMPL	__xfstat
745420	AUE_NULL	UNIMPL	__xlstat
746421	AUE_NULL	STD	{ int freebsd32_getcontext( \
747				    struct freebsd32_ucontext *ucp); }
748422	AUE_NULL	STD	{ int freebsd32_setcontext( \
749				    const struct freebsd32_ucontext *ucp); }
750423	AUE_NULL	STD	{ int freebsd32_swapcontext( \
751				    struct freebsd32_ucontext *oucp, \
752				    const struct freebsd32_ucontext *ucp); }
753424	AUE_SWAPOFF	UNIMPL	swapoff
754425	AUE_NULL	NOPROTO	{ int __acl_get_link(const char *path, \
755				    acl_type_t type, struct acl *aclp); }
756426	AUE_NULL	NOPROTO	{ int __acl_set_link(const char *path, \
757				    acl_type_t type, struct acl *aclp); }
758427	AUE_NULL	NOPROTO	{ int __acl_delete_link(const char *path, \
759				    acl_type_t type); }
760428	AUE_NULL	NOPROTO	{ int __acl_aclcheck_link(const char *path, \
761				    acl_type_t type, struct acl *aclp); }
762429	AUE_SIGWAIT	NOPROTO	{ int sigwait(const sigset_t *set, \
763				    int *sig); }
764430	AUE_NULL	UNIMPL	thr_create;
765431	AUE_NULL	NOPROTO	{ void thr_exit(long *state); }
766432	AUE_NULL	NOPROTO	{ int thr_self(long *id); }
767433	AUE_NULL	NOPROTO	{ int thr_kill(long id, int sig); }
768434	AUE_NULL	STD	{ int freebsd32_umtx_lock(struct umtx *umtx); }
769435	AUE_NULL	STD	{ int freebsd32_umtx_unlock(struct umtx *umtx); }
770436	AUE_NULL	NOPROTO	{ int jail_attach(int jid); }
771437	AUE_EXTATTR_LIST_FD	NOPROTO	{ ssize_t extattr_list_fd(int fd, \
772				    int attrnamespace, void *data, \
773				    size_t nbytes); }
774438	AUE_EXTATTR_LIST_FILE	NOPROTO	{ ssize_t extattr_list_file( \
775				    const char *path, int attrnamespace, \
776				    void *data, size_t nbytes); }
777439	AUE_EXTATTR_LIST_LINK	NOPROTO	{ ssize_t extattr_list_link( \
778				    const char *path, int attrnamespace, \
779				    void *data, size_t nbytes); }
780440	AUE_NULL	UNIMPL	kse_switchin
781441	AUE_NULL	NOSTD	{ int freebsd32_ksem_timedwait(semid_t id, \
782				    const struct timespec32 *abstime); }
783442	AUE_NULL	STD	{ int freebsd32_thr_suspend( \
784				    const struct timespec32 *timeout); }
785443	AUE_NULL	NOPROTO	{ int thr_wake(long id); }
786444	AUE_MODUNLOAD	NOPROTO	{ int kldunloadf(int fileid, int flags); }
787445	AUE_AUDIT	NOPROTO	{ int audit(const void *record, \
788				    u_int length); }
789446	AUE_AUDITON	NOPROTO	{ int auditon(int cmd, void *data, \
790				    u_int length); }
791447	AUE_GETAUID	NOPROTO	{ int getauid(uid_t *auid); }
792448	AUE_SETAUID	NOPROTO	{ int setauid(uid_t *auid); }
793449	AUE_GETAUDIT	NOPROTO	{ int getaudit(struct auditinfo *auditinfo); }
794450	AUE_SETAUDIT	NOPROTO	{ int setaudit(struct auditinfo *auditinfo); }
795451	AUE_GETAUDIT_ADDR	NOPROTO	{ int getaudit_addr( \
796				    struct auditinfo_addr *auditinfo_addr, \
797				    u_int length); }
798452	AUE_SETAUDIT_ADDR	NOPROTO	{ int setaudit_addr( \
799				    struct auditinfo_addr *auditinfo_addr, \
800				    u_int length); }
801453	AUE_AUDITCTL	NOPROTO	{ int auditctl(char *path); }
802454	AUE_NULL	STD	{ int freebsd32_umtx_op(void *obj, int op,\
803				    u_long val, void *uaddr, \
804				    void *uaddr2); }
805455	AUE_NULL	STD	{ int freebsd32_thr_new(	\
806				    struct thr_param32 *param,	\
807				    int param_size); }
808456	AUE_NULL	NOPROTO	{ int sigqueue(pid_t pid, int signum, \
809				    void *value); }
810457	AUE_NULL	NOSTD	{ int freebsd32_kmq_open( \
811				    const char *path, int flags, mode_t mode, \
812				    const struct mq_attr32 *attr); }
813458	AUE_NULL	NOSTD	{ int freebsd32_kmq_setattr(int mqd, \
814				    const struct mq_attr32 *attr,	\
815				    struct mq_attr32 *oattr); }
816459	AUE_NULL	NOSTD	{ int freebsd32_kmq_timedreceive(int mqd, \
817				    char *msg_ptr, size_t msg_len,	\
818				    unsigned *msg_prio,			\
819				    const struct timespec32 *abs_timeout); }
820460	AUE_NULL	NOSTD	{ int freebsd32_kmq_timedsend(int mqd,	\
821				    const char *msg_ptr, size_t msg_len,\
822				    unsigned msg_prio,			\
823				    const struct timespec32 *abs_timeout);}
824461	AUE_NULL	NOPROTO|NOSTD	{ int kmq_notify(int mqd,	\
825				    const struct sigevent *sigev); }
826462	AUE_NULL	NOPROTO|NOSTD	{ int kmq_unlink(const char *path); }
827463	AUE_NULL	NOPROTO	{ int abort2(const char *why, int nargs, void **args); }
828464	AUE_NULL 	NOPROTO	{ int thr_set_name(long id, const char *name); }
829465	AUE_NULL	NOSTD	{ int freebsd32_aio_fsync(int op, \
830				    struct aiocb32 *aiocbp); }
831466	AUE_RTPRIO	NOPROTO	{ int rtprio_thread(int function, \
832				    lwpid_t lwpid, struct rtprio *rtp); }
833467	AUE_NULL	UNIMPL	nosys
834468	AUE_NULL	UNIMPL	nosys
835469	AUE_NULL	UNIMPL	__getpath_fromfd
836470	AUE_NULL	UNIMPL	__getpath_fromaddr
837471	AUE_NULL	NOPROTO	{ int sctp_peeloff(int sd, uint32_t name); }
838472	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
839				    caddr_t to, __socklen_t tolen, \
840				    struct sctp_sndrcvinfo *sinfo, int flags); }
841473	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
842				    caddr_t to, __socklen_t tolen, \
843				    struct sctp_sndrcvinfo *sinfo, int flags); }
844474	AUE_NULL	NOPROTO	{ int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
845				    struct sockaddr * from, __socklen_t *fromlenaddr, \
846				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
847#ifdef PAD64_REQUIRED
848475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
849				    void *buf,size_t nbyte, \
850				    int pad, \
851				    uint32_t offset1, uint32_t offset2); }
852476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
853				    const void *buf, size_t nbyte, \
854				    int pad, \
855				    uint32_t offset1, uint32_t offset2); }
856477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
857				    size_t len, int prot, int flags, int fd, \
858				    int pad, \
859				    uint32_t pos1, uint32_t pos2); }
860478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
861				    int pad, \
862				    uint32_t offset1, uint32_t offset2, \
863				    int whence); }
864479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
865				    int pad, \
866				    uint32_t length1, uint32_t length2); }
867480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
868				    int pad, \
869				    uint32_t length1, uint32_t length2); }
870#else
871475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
872				    void *buf,size_t nbyte, \
873				    uint32_t offset1, uint32_t offset2); }
874476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
875				    const void *buf, size_t nbyte, \
876				    uint32_t offset1, uint32_t offset2); }
877477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
878				    size_t len, int prot, int flags, int fd, \
879				    uint32_t pos1, uint32_t pos2); }
880478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
881				    uint32_t offset1, uint32_t offset2, \
882				    int whence); }
883479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
884				    uint32_t length1, uint32_t length2); }
885480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
886				    uint32_t length1, uint32_t length2); }
887#endif
888481	AUE_KILL	NOPROTO	{ int thr_kill2(pid_t pid, long id, int sig); }
889482	AUE_SHMOPEN	NOPROTO	{ int shm_open(const char *path, int flags, \
890				    mode_t mode); }
891483	AUE_SHMUNLINK	NOPROTO	{ int shm_unlink(const char *path); }
892484	AUE_NULL	NOPROTO	{ int cpuset(cpusetid_t *setid); }
893#ifdef PAD64_REQUIRED
894485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
895				    int pad, \
896				    uint32_t id1, uint32_t id2, \
897				    cpusetid_t setid); }
898#else
899485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
900				    uint32_t id1, uint32_t id2, \
901				    cpusetid_t setid); }
902#endif
903486	AUE_NULL	STD	{ int freebsd32_cpuset_getid(cpulevel_t level, \
904				    cpuwhich_t which, \
905				    uint32_t id1, uint32_t id2, \
906				    cpusetid_t *setid); }
907487	AUE_NULL	STD	{ int freebsd32_cpuset_getaffinity( \
908				    cpulevel_t level, cpuwhich_t which, \
909				    uint32_t id1, uint32_t id2, \
910				    size_t cpusetsize, \
911				    cpuset_t *mask); }
912488	AUE_NULL	STD	{ int freebsd32_cpuset_setaffinity( \
913				    cpulevel_t level, cpuwhich_t which, \
914				    uint32_t id1, uint32_t id2, \
915				    size_t cpusetsize, \
916				    const cpuset_t *mask); }
917489	AUE_FACCESSAT	NOPROTO	{ int faccessat(int fd, char *path, int amode, \
918				    int flag); }
919490	AUE_FCHMODAT	NOPROTO	{ int fchmodat(int fd, const char *path, \
920				    mode_t mode, int flag); }
921491	AUE_FCHOWNAT	NOPROTO	{ int fchownat(int fd, char *path, uid_t uid, \
922				    gid_t gid, int flag); }
923492	AUE_FEXECVE	STD	{ int freebsd32_fexecve(int fd, \
924				    uint32_t *argv, uint32_t *envv); }
925493	AUE_FSTATAT	STD	{ int freebsd32_fstatat(int fd, char *path, \
926				    struct stat *buf, int flag); }
927494	AUE_FUTIMESAT	STD	{ int freebsd32_futimesat(int fd, char *path, \
928				    struct timeval *times); }
929495	AUE_LINKAT	NOPROTO	{ int linkat(int fd1, char *path1, int fd2, \
930				    char *path2, int flag); }
931496	AUE_MKDIRAT	NOPROTO	{ int mkdirat(int fd, char *path, \
932				    mode_t mode); }
933497	AUE_MKFIFOAT	NOPROTO	{ int mkfifoat(int fd, char *path, \
934				    mode_t mode); }
935498	AUE_MKNODAT	NOPROTO	{ int mknodat(int fd, char *path, \
936				    mode_t mode, dev_t dev); }
937499	AUE_OPENAT_RWTC	NOPROTO	{ int openat(int fd, char *path, int flag, \
938				    mode_t mode); }
939500	AUE_READLINKAT	NOPROTO	{ int readlinkat(int fd, char *path, char *buf, \
940				    size_t bufsize); }
941501	AUE_RENAMEAT	NOPROTO	{ int renameat(int oldfd, char *old, int newfd, \
942				    const char *new); }
943502	AUE_SYMLINKAT	NOPROTO	{ int symlinkat(char *path1, int fd, \
944				    char *path2); }
945503	AUE_UNLINKAT	NOPROTO	{ int unlinkat(int fd, char *path, \
946				    int flag); }
947504	AUE_POSIX_OPENPT	NOPROTO	{ int posix_openpt(int flags); }
948; 505 is initialised by the kgssapi code, if present.
949505	AUE_NULL	UNIMPL	gssd_syscall
950506	AUE_NULL	STD	{ int freebsd32_jail_get(struct iovec32 *iovp, \
951				    unsigned int iovcnt, int flags); }
952507	AUE_NULL	STD	{ int freebsd32_jail_set(struct iovec32 *iovp, \
953				    unsigned int iovcnt, int flags); }
954508	AUE_NULL	NOPROTO	{ int jail_remove(int jid); }
955509	AUE_CLOSEFROM	NOPROTO	{ int closefrom(int lowfd); }
956510	AUE_SEMCTL	NOSTD { int freebsd32_semctl(int semid, int semnum, \
957				    int cmd, union semun32 *arg); }
958511	AUE_MSGCTL	NOSTD	{ int freebsd32_msgctl(int msqid, int cmd, \
959				    struct msqid_ds32 *buf); }
960512	AUE_SHMCTL	NOSTD	{ int freebsd32_shmctl(int shmid, int cmd, \
961				    struct shmid_ds32 *buf); }
962513	AUE_LPATHCONF	NOPROTO	{ int lpathconf(char *path, int name); }
963514	AUE_CAP_NEW	NOPROTO	{ int cap_new(int fd, uint64_t rights); }
964515	AUE_CAP_GETRIGHTS	NOPROTO	{ int cap_getrights(int fd, \
965				    uint64_t *rightsp); }
966516	AUE_CAP_ENTER	NOPROTO	{ int cap_enter(void); }
967517	AUE_CAP_GETMODE	NOPROTO	{ int cap_getmode(u_int *modep); }
968518	AUE_PDFORK	UNIMPL	pdfork
969519	AUE_PDKILL	UNIMPL	pdkill
970520	AUE_PDGETPID	UNIMPL	pdgetpid
971521	AUE_PDWAIT	UNIMPL	pdwait
972522	AUE_SELECT	STD	{ int freebsd32_pselect(int nd, fd_set *in, \
973				    fd_set *ou, fd_set *ex, \
974				    const struct timespec32 *ts, \
975				    const sigset_t *sm); }
976523	AUE_NULL	NOPROTO	{ int getloginclass(char *namebuf, \
977				    size_t namelen); }
978524	AUE_NULL	NOPROTO	{ int setloginclass(const char *namebuf); }
979525	AUE_NULL	NOPROTO	{ int rctl_get_racct(const void *inbufp, \
980				    size_t inbuflen, void *outbufp, \
981				    size_t outbuflen); }
982526	AUE_NULL	NOPROTO	{ int rctl_get_rules(const void *inbufp, \
983				    size_t inbuflen, void *outbufp, \
984				    size_t outbuflen); }
985527	AUE_NULL	NOPROTO	{ int rctl_get_limits(const void *inbufp, \
986				    size_t inbuflen, void *outbufp, \
987				    size_t outbuflen); }
988528	AUE_NULL	NOPROTO	{ int rctl_add_rule(const void *inbufp, \
989				    size_t inbuflen, void *outbufp, \
990				    size_t outbuflen); }
991529	AUE_NULL	NOPROTO	{ int rctl_remove_rule(const void *inbufp, \
992				    size_t inbuflen, void *outbufp, \
993				    size_t outbuflen); }
994530	AUE_NULL	STD	{ int freebsd32_posix_fallocate(int fd,\
995				    uint32_t offset1, uint32_t offset2,\
996				    uint32_t len1, uint32_t len2); }
997531	AUE_NULL	STD	{ int freebsd32_posix_fadvise(int fd, \
998				    uint32_t offset1, uint32_t offset2,\
999				    uint32_t len1, uint32_t len2, \
1000				    int advice); }
1001