xref: /freebsd-11-stable/sys/compat/freebsd32/syscalls.master (revision 53d1ff7e3d33361ad87e77ae060c8a6084678b8a)
1 $FreeBSD$
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	pseudo-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;	COMPAT10 included on COMPAT10 #ifdef (FreeBSD 10 compat)
33;	OBSOL	obsolete, not included in system, only specifies name
34;	UNIMPL	not implemented, placeholder only
35;	NOSTD	implemented but as a lkm that can be statically
36;		compiled in; sysent entry will be filled with lkmressys
37;		so the SYSCALL_MODULE macro works
38;	NOARGS	same as STD except do not create structure in sys/sysproto.h
39;	NODEF	same as STD except only have the entry in the syscall table
40;		added.  Meaning - do not create structure or function
41;		prototype in sys/sysproto.h
42;	NOPROTO	same as STD except do not create structure or
43;		function prototype in sys/sysproto.h.  Does add a
44;		definition to syscall.h besides adding a sysent.
45
46; #ifdef's, etc. may be included, and are copied to the output files.
47
48#include <sys/param.h>
49#include <sys/sysent.h>
50#include <sys/sysproto.h>
51#include <sys/mount.h>
52#include <sys/socket.h>
53#include <compat/freebsd32/freebsd32.h>
54#include <compat/freebsd32/freebsd32_proto.h>
55
56#if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
57#define PAD64_REQUIRED
58#endif
59
60; Reserved/unimplemented system calls in the range 0-150 inclusive
61; are reserved for use in future Berkeley releases.
62; Additional system calls implemented in vendor and other
63; redistributions should be placed in the reserved range at the end
64; of the current calls.
65
660	AUE_NULL	NOPROTO	{ int nosys(void); } syscall nosys_args int
671	AUE_EXIT	NOPROTO	{ void sys_exit(int rval); } exit \
68				    sys_exit_args void
692	AUE_FORK	NOPROTO	{ int fork(void); }
703	AUE_READ	NOPROTO	{ ssize_t read(int fd, void *buf, \
71				    size_t nbyte); }
724	AUE_WRITE	NOPROTO	{ ssize_t write(int fd, const void *buf, \
73				    size_t nbyte); }
745	AUE_OPEN_RWTC	NOPROTO	{ int open(char *path, int flags, \
75				    int mode); }
766	AUE_CLOSE	NOPROTO	{ int close(int fd); }
777	AUE_WAIT4	STD	{ int freebsd32_wait4(int pid, int *status, \
78				    int options, struct rusage32 *rusage); }
798	AUE_CREAT	OBSOL	old creat
809	AUE_LINK	NOPROTO	{ int link(char *path, char *link); }
8110	AUE_UNLINK	NOPROTO	{ int unlink(char *path); }
8211	AUE_NULL	OBSOL	execv
8312	AUE_CHDIR	NOPROTO	{ int chdir(char *path); }
8413	AUE_FCHDIR	NOPROTO	{ int fchdir(int fd); }
8514	AUE_MKNOD	NOPROTO	{ int mknod(char *path, int mode, int dev); }
8615	AUE_CHMOD	NOPROTO	{ int chmod(char *path, int mode); }
8716	AUE_CHOWN	NOPROTO	{ int chown(char *path, int uid, int gid); }
8817	AUE_NULL	NOPROTO	{ int obreak(char *nsize); } break \
89				    obreak_args int
9018	AUE_GETFSSTAT	COMPAT4	{ int freebsd32_getfsstat( \
91				    struct statfs32 *buf, long bufsize, \
92				    int mode); }
9319	AUE_LSEEK	COMPAT	{ int freebsd32_lseek(int fd, int offset, \
94				    int whence); }
9520	AUE_GETPID	NOPROTO	{ pid_t getpid(void); }
9621	AUE_MOUNT	NOPROTO	{ int mount(char *type, char *path, \
97				    int flags, caddr_t data); }
9822	AUE_UMOUNT	NOPROTO	{ int unmount(char *path, int flags); }
9923	AUE_SETUID	NOPROTO	{ int setuid(uid_t uid); }
10024	AUE_GETUID	NOPROTO	{ uid_t getuid(void); }
10125	AUE_GETEUID	NOPROTO	{ uid_t geteuid(void); }
10226	AUE_PTRACE	NOPROTO	{ int ptrace(int req, pid_t pid, \
103				    caddr_t addr, int data); }
10427	AUE_RECVMSG	STD	{ int freebsd32_recvmsg(int s, struct msghdr32 *msg, \
105				    int flags); }
10628	AUE_SENDMSG	STD	{ int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
107				    int flags); }
10829	AUE_RECVFROM	STD	{ int freebsd32_recvfrom(int s, uint32_t buf, \
109				    uint32_t len, int flags, uint32_t from, \
110				    uint32_t fromlenaddr); }
11130	AUE_ACCEPT	NOPROTO	{ int accept(int s, caddr_t name, \
112				    int *anamelen); }
11331	AUE_GETPEERNAME	NOPROTO	{ int getpeername(int fdes, caddr_t asa, \
114				    int *alen); }
11532	AUE_GETSOCKNAME	NOPROTO	{ int getsockname(int fdes, caddr_t asa, \
116				    int *alen); }
11733	AUE_ACCESS	NOPROTO	{ int access(char *path, int amode); }
11834	AUE_CHFLAGS	NOPROTO	{ int chflags(const char *path, u_long flags); }
11935	AUE_FCHFLAGS	NOPROTO	{ int fchflags(int fd, u_long flags); }
12036	AUE_SYNC	NOPROTO	{ int sync(void); }
12137	AUE_KILL	NOPROTO	{ int kill(int pid, int signum); }
12238	AUE_STAT	COMPAT	{ int freebsd32_stat(char *path, \
123				    struct ostat32 *ub); }
12439	AUE_GETPPID	NOPROTO	{ pid_t getppid(void); }
12540	AUE_LSTAT	COMPAT	{ int freebsd32_lstat(char *path, \
126				    struct ostat *ub); }
12741	AUE_DUP		NOPROTO	{ int dup(u_int fd); }
12842	AUE_PIPE	COMPAT10	{ int freebsd32_pipe(void); }
12943	AUE_GETEGID	NOPROTO	{ gid_t getegid(void); }
13044	AUE_PROFILE	NOPROTO	{ int profil(caddr_t samples, size_t size, \
131				    size_t offset, u_int scale); }
13245	AUE_KTRACE	NOPROTO	{ int ktrace(const char *fname, int ops, \
133				    int facs, int pid); }
13446	AUE_SIGACTION	COMPAT	{ int freebsd32_sigaction( int signum, \
135				   struct osigaction32 *nsa, \
136				   struct osigaction32 *osa); }
13747	AUE_GETGID	NOPROTO	{ gid_t getgid(void); }
13848	AUE_SIGPROCMASK	COMPAT	{ int freebsd32_sigprocmask(int how, \
139				   osigset_t mask); }
14049	AUE_GETLOGIN	NOPROTO	{ int getlogin(char *namebuf, \
141				    u_int namelen); }
14250	AUE_SETLOGIN	NOPROTO	{ int setlogin(char *namebuf); }
14351	AUE_ACCT	NOPROTO	{ int acct(char *path); }
14452	AUE_SIGPENDING	COMPAT	{ int freebsd32_sigpending(void); }
14553	AUE_SIGALTSTACK	STD	{ int freebsd32_sigaltstack( \
146				    struct sigaltstack32 *ss, \
147				    struct sigaltstack32 *oss); }
14854	AUE_NULL	STD	{ int freebsd32_ioctl(int fd, uint32_t com, \
149				    struct md_ioctl32 *data); }
15055	AUE_REBOOT	NOPROTO	{ int reboot(int opt); }
15156	AUE_REVOKE	NOPROTO	{ int revoke(char *path); }
15257	AUE_SYMLINK	NOPROTO	{ int symlink(char *path, char *link); }
15358	AUE_READLINK	NOPROTO	{ ssize_t readlink(char *path, char *buf, \
154				    size_t count); }
15559	AUE_EXECVE	STD	{ int freebsd32_execve(char *fname, \
156				    uint32_t *argv, uint32_t *envv); }
15760	AUE_UMASK	NOPROTO	{ int umask(int newmask); } umask \
158				    umask_args int
15961	AUE_CHROOT	NOPROTO	{ int chroot(char *path); }
16062	AUE_FSTAT	COMPAT	{ int freebsd32_fstat(int fd, \
161				    struct ostat32 *ub); }
16263	AUE_NULL	OBSOL	ogetkerninfo
16364	AUE_NULL	COMPAT	{ int freebsd32_getpagesize( \
164				    int32_t dummy); }
16565	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
166				    int flags); }
16766	AUE_VFORK	NOPROTO	{ int vfork(void); }
16867	AUE_NULL	OBSOL	vread
16968	AUE_NULL	OBSOL	vwrite
17069	AUE_SBRK	NOPROTO	{ int sbrk(int incr); }
17170	AUE_SSTK	NOPROTO	{ int sstk(int incr); }
17271	AUE_MMAP	COMPAT|NOPROTO	{ int mmap(void *addr, int len, \
173				    int prot, int flags, int fd, int pos); }
17472	AUE_O_VADVISE	NOPROTO	{ int ovadvise(int anom); } vadvise \
175				    ovadvise_args int
17673	AUE_MUNMAP	NOPROTO	{ int munmap(void *addr, size_t len); }
17774	AUE_MPROTECT	STD	{ int freebsd32_mprotect(const void *addr, \
178				    size_t len, int prot); }
17975	AUE_MADVISE	NOPROTO	{ int madvise(void *addr, size_t len, \
180				    int behav); }
18176	AUE_NULL	OBSOL	vhangup
18277	AUE_NULL	OBSOL	vlimit
18378	AUE_MINCORE	NOPROTO	{ int mincore(const void *addr, size_t len, \
184				    char *vec); }
18579	AUE_GETGROUPS	NOPROTO	{ int getgroups(u_int gidsetsize, \
186				    gid_t *gidset); }
18780	AUE_SETGROUPS	NOPROTO	{ int setgroups(u_int gidsetsize, \
188				    gid_t *gidset); }
18981	AUE_GETPGRP	NOPROTO	{ int getpgrp(void); }
19082	AUE_SETPGRP	NOPROTO	{ int setpgid(int pid, int pgid); }
19183	AUE_SETITIMER	STD	{ int freebsd32_setitimer(u_int which, \
192				    struct itimerval32 *itv, \
193				    struct itimerval32 *oitv); }
19484	AUE_NULL	OBSOL	owait
195; XXX implement
19685	AUE_SWAPON	NOPROTO	{ int swapon(char *name); }
19786	AUE_GETITIMER	STD	{ int freebsd32_getitimer(u_int which, \
198				    struct itimerval32 *itv); }
19987	AUE_O_GETHOSTNAME	OBSOL	ogethostname
20088	AUE_O_SETHOSTNAME	OBSOL	osethostname
20189	AUE_GETDTABLESIZE	NOPROTO	{ int getdtablesize(void); }
20290	AUE_DUP2	NOPROTO	{ int dup2(u_int from, u_int to); }
20391	AUE_NULL	UNIMPL	getdopt
20492	AUE_FCNTL	STD	{ int freebsd32_fcntl(int fd, int cmd, \
205				    int arg); }
20693	AUE_SELECT	STD	{ int freebsd32_select(int nd, fd_set *in, \
207				    fd_set *ou, fd_set *ex, \
208				    struct timeval32 *tv); }
20994	AUE_NULL	UNIMPL	setdopt
21095	AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
21196	AUE_SETPRIORITY	NOPROTO	{ int setpriority(int which, int who, \
212				    int prio); }
21397	AUE_SOCKET	NOPROTO	{ int socket(int domain, int type, \
214				    int protocol); }
21598	AUE_CONNECT	NOPROTO	{ int connect(int s, caddr_t name, \
216				    int namelen); }
21799	AUE_NULL	OBSOL	oaccept
218100	AUE_GETPRIORITY	NOPROTO	{ int getpriority(int which, int who); }
219101	AUE_NULL	OBSOL	osend
220102	AUE_NULL	OBSOL	orecv
221103	AUE_NULL	COMPAT	{ int freebsd32_sigreturn( \
222				    struct ia32_sigcontext3 *sigcntxp); }
223104	AUE_BIND	NOPROTO	{ int bind(int s, caddr_t name, \
224				    int namelen); }
225105	AUE_SETSOCKOPT	NOPROTO	{ int setsockopt(int s, int level, \
226				    int name, caddr_t val, int valsize); }
227106	AUE_LISTEN	NOPROTO	{ int listen(int s, int backlog); }
228107	AUE_NULL	OBSOL	vtimes
229108	AUE_O_SIGVEC	COMPAT	{ int freebsd32_sigvec(int signum, \
230				     struct sigvec32 *nsv, \
231				     struct sigvec32 *osv); }
232109	AUE_O_SIGBLOCK	COMPAT	{ int freebsd32_sigblock(int mask); }
233110	AUE_O_SIGSETMASK	COMPAT	{ int freebsd32_sigsetmask( int mask); }
234111	AUE_SIGSUSPEND	COMPAT	{ int freebsd32_sigsuspend( int mask); }
235112	AUE_O_SIGSTACK	COMPAT	{ int freebsd32_sigstack( \
236				     struct sigstack32 *nss, \
237				     struct sigstack32 *oss); }
238113	AUE_NULL	OBSOL	orecvmsg
239114	AUE_NULL	OBSOL	osendmsg
240115	AUE_NULL	OBSOL	vtrace
241116	AUE_GETTIMEOFDAY	STD	{ int freebsd32_gettimeofday( \
242				    struct timeval32 *tp, \
243				    struct timezone *tzp); }
244117	AUE_GETRUSAGE	STD	{ int freebsd32_getrusage(int who, \
245				    struct rusage32 *rusage); }
246118	AUE_GETSOCKOPT	NOPROTO	{ int getsockopt(int s, int level, \
247				    int name, caddr_t val, int *avalsize); }
248119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
249120	AUE_READV	STD	{ int freebsd32_readv(int fd, \
250				    struct iovec32 *iovp, u_int iovcnt); }
251121	AUE_WRITEV	STD	{ int freebsd32_writev(int fd, \
252				    struct iovec32 *iovp, u_int iovcnt); }
253122	AUE_SETTIMEOFDAY	STD	{ int freebsd32_settimeofday( \
254				    struct timeval32 *tv, \
255				    struct timezone *tzp); }
256123	AUE_FCHOWN	NOPROTO	{ int fchown(int fd, int uid, int gid); }
257124	AUE_FCHMOD	NOPROTO	{ int fchmod(int fd, int mode); }
258125	AUE_RECVFROM	OBSOL	orecvfrom
259126	AUE_SETREUID	NOPROTO	{ int setreuid(int ruid, int euid); }
260127	AUE_SETREGID	NOPROTO	{ int setregid(int rgid, int egid); }
261128	AUE_RENAME	NOPROTO	{ int rename(char *from, char *to); }
262129	AUE_TRUNCATE	COMPAT|NOPROTO	{ int truncate(char *path, \
263					    int length); }
264130	AUE_FTRUNCATE	COMPAT|NOPROTO	{ int ftruncate(int fd, int length); }
265131	AUE_FLOCK	NOPROTO	{ int flock(int fd, int how); }
266132	AUE_MKFIFO	NOPROTO	{ int mkfifo(char *path, int mode); }
267133	AUE_SENDTO	NOPROTO	{ int sendto(int s, caddr_t buf, \
268				    size_t len, int flags, caddr_t to, \
269				    int tolen); }
270134	AUE_SHUTDOWN	NOPROTO	{ int shutdown(int s, int how); }
271135	AUE_SOCKETPAIR	NOPROTO	{ int socketpair(int domain, int type, \
272				    int protocol, int *rsv); }
273136	AUE_MKDIR	NOPROTO	{ int mkdir(char *path, int mode); }
274137	AUE_RMDIR	NOPROTO	{ int rmdir(char *path); }
275138	AUE_UTIMES	STD	{ int freebsd32_utimes(char *path, \
276				    struct timeval32 *tptr); }
277139	AUE_NULL	OBSOL	4.2 sigreturn
278140	AUE_ADJTIME	STD	{ int freebsd32_adjtime( \
279				    struct timeval32 *delta, \
280				    struct timeval32 *olddelta); }
281141	AUE_GETPEERNAME	OBSOL	ogetpeername
282142	AUE_SYSCTL	OBSOL	ogethostid
283143	AUE_SYSCTL	OBSOL	sethostid
284144	AUE_GETRLIMIT	OBSOL	getrlimit
285145	AUE_SETRLIMIT	OBSOL	setrlimit
286146	AUE_KILLPG	OBSOL	killpg
287147	AUE_SETSID	NOPROTO	{ int setsid(void); }
288148	AUE_QUOTACTL	NOPROTO	{ int quotactl(char *path, int cmd, int uid, \
289				    caddr_t arg); }
290149	AUE_O_QUOTA	OBSOL oquota
291150	AUE_GETSOCKNAME	OBSOL ogetsockname
292
293; Syscalls 151-180 inclusive are reserved for vendor-specific
294; system calls.  (This includes various calls added for compatibity
295; with other Unix variants.)
296; Some of these calls are now supported by BSD...
297151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
298152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
299153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
300; 154 is initialised by the NLM code, if present.
301154	AUE_NULL	UNIMPL	nlm_syscall
302; 155 is initialized by the NFS code, if present.
303; XXX this is a problem!!!
304155	AUE_NFS_SVC	UNIMPL	nfssvc
305156	AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \
306				    char *buf, u_int count, uint32_t *basep); }
307157	AUE_STATFS	COMPAT4	{ int freebsd32_statfs(char *path, \
308				    struct statfs32 *buf); }
309158	AUE_FSTATFS	COMPAT4	{ int freebsd32_fstatfs(int fd, \
310				    struct statfs32 *buf); }
311159	AUE_NULL	UNIMPL	nosys
312160	AUE_LGETFH	UNIMPL	lgetfh
313161	AUE_NFS_GETFH	NOPROTO	{ int getfh(char *fname, \
314				    struct fhandle *fhp); }
315162	AUE_NULL	OBSOL	getdomainname
316163	AUE_NULL	OBSOL	setdomainname
317164	AUE_NULL	OBSOL	uname
318165	AUE_SYSARCH	STD	{ int freebsd32_sysarch(int op, char *parms); }
319166	AUE_RTPRIO	NOPROTO	{ int rtprio(int function, pid_t pid, \
320				    struct rtprio *rtp); }
321167	AUE_NULL	UNIMPL	nosys
322168	AUE_NULL	UNIMPL	nosys
323169	AUE_SEMSYS	NOSTD	{ int freebsd32_semsys(int which, int a2, \
324				    int a3, int a4, int a5); }
325170	AUE_MSGSYS	NOSTD	{ int freebsd32_msgsys(int which, int a2, \
326				    int a3, int a4, int a5, int a6); }
327171	AUE_SHMSYS	NOSTD	{ int freebsd32_shmsys(uint32_t which, uint32_t a2, \
328				    uint32_t a3, uint32_t a4); }
329172	AUE_NULL	UNIMPL	nosys
330173	AUE_PREAD	COMPAT6	{ ssize_t freebsd32_pread(int fd, void *buf, \
331				    size_t nbyte, int pad, \
332				    uint32_t offset1, uint32_t offset2); }
333174	AUE_PWRITE	COMPAT6	{ ssize_t freebsd32_pwrite(int fd, \
334				    const void *buf, size_t nbyte, int pad, \
335				    uint32_t offset1, uint32_t offset2); }
336175	AUE_NULL	UNIMPL	nosys
337176	AUE_NTP_ADJTIME	NOPROTO	{ int ntp_adjtime(struct timex *tp); }
338177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
339178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
340179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
341180	AUE_NULL	UNIMPL	nosys
342
343; Syscalls 181-199 are used by/reserved for BSD
344181	AUE_SETGID	NOPROTO	{ int setgid(gid_t gid); }
345182	AUE_SETEGID	NOPROTO	{ int setegid(gid_t egid); }
346183	AUE_SETEUID	NOPROTO	{ int seteuid(uid_t euid); }
347184	AUE_NULL	UNIMPL	lfs_bmapv
348185	AUE_NULL	UNIMPL	lfs_markv
349186	AUE_NULL	UNIMPL	lfs_segclean
350187	AUE_NULL	UNIMPL	lfs_segwait
351188	AUE_STAT	STD	{ int freebsd32_stat(char *path, \
352				    struct stat32 *ub); }
353189	AUE_FSTAT	STD	{ int freebsd32_fstat(int fd, \
354				    struct stat32 *ub); }
355190	AUE_LSTAT	STD	{ int freebsd32_lstat(char *path, \
356				    struct stat32 *ub); }
357191	AUE_PATHCONF	NOPROTO	{ int pathconf(char *path, int name); }
358192	AUE_FPATHCONF	NOPROTO	{ int fpathconf(int fd, int name); }
359193	AUE_NULL	UNIMPL	nosys
360194	AUE_GETRLIMIT	NOPROTO	{ int getrlimit(u_int which, \
361				    struct rlimit *rlp); } getrlimit \
362				    __getrlimit_args int
363195	AUE_SETRLIMIT	NOPROTO	{ int setrlimit(u_int which, \
364				    struct rlimit *rlp); } setrlimit \
365				    __setrlimit_args int
366196	AUE_GETDIRENTRIES	STD	{ int freebsd32_getdirentries(int fd, \
367				    char *buf, u_int count, int32_t *basep); }
368197	AUE_MMAP	COMPAT6	{ caddr_t freebsd32_mmap(caddr_t addr, \
369				    size_t len, int prot, int flags, int fd, \
370				    int pad, uint32_t pos1, uint32_t pos2); }
371198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
372				    __syscall_args int
373199	AUE_LSEEK	COMPAT6	{ off_t freebsd32_lseek(int fd, int pad, \
374				    uint32_t offset1, uint32_t offset2, \
375				    int whence); }
376200	AUE_TRUNCATE	COMPAT6	{ int freebsd32_truncate(char *path, \
377				    int pad, uint32_t length1, \
378				    uint32_t length2); }
379201	AUE_FTRUNCATE	COMPAT6	{ int freebsd32_ftruncate(int fd, int pad, \
380				    uint32_t length1, uint32_t length2); }
381202	AUE_SYSCTL	STD	{ int freebsd32_sysctl(int *name, \
382				    u_int namelen, void *old, \
383				    uint32_t *oldlenp, void *new, \
384				    uint32_t newlen); }
385203	AUE_MLOCK	NOPROTO	{ int mlock(const void *addr, \
386				    size_t len); }
387204	AUE_MUNLOCK	NOPROTO	{ int munlock(const void *addr, \
388				    size_t len); }
389205	AUE_UNDELETE	NOPROTO	{ int undelete(char *path); }
390206	AUE_FUTIMES	STD	{ int freebsd32_futimes(int fd, \
391				    struct timeval32 *tptr); }
392207	AUE_GETPGID	NOPROTO	{ int getpgid(pid_t pid); }
393208	AUE_NULL	UNIMPL	newreboot (NetBSD)
394209	AUE_POLL	NOPROTO	{ int poll(struct pollfd *fds, u_int nfds, \
395				    int timeout); }
396
397;
398; The following are reserved for loadable syscalls
399;
400210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
401211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
402212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
403213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
404214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
405215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
406216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
407217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
408218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
409219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
410
411;
412; The following were introduced with NetBSD/4.4Lite-2
413; They are initialized by their respective modules/sysinits
414; XXX PROBLEM!!
415220	AUE_SEMCTL	COMPAT7|NOSTD	{ int freebsd32_semctl( \
416				    int semid, int semnum, \
417				    int cmd, union semun32 *arg); }
418221	AUE_SEMGET	NOSTD|NOPROTO	{ int semget(key_t key, int nsems, \
419				    int semflg); }
420222	AUE_SEMOP	NOSTD|NOPROTO	{ int semop(int semid, \
421				    struct sembuf *sops, u_int nsops); }
422223	AUE_NULL	UNIMPL	semconfig
423224	AUE_MSGCTL	COMPAT7|NOSTD	{ int freebsd32_msgctl( \
424				    int msqid, int cmd, \
425				    struct msqid_ds32_old *buf); }
426225	AUE_MSGGET	NOSTD|NOPROTO	{ int msgget(key_t key, int msgflg); }
427226	AUE_MSGSND	NOSTD	{ int freebsd32_msgsnd(int msqid, void *msgp, \
428				    size_t msgsz, int msgflg); }
429227	AUE_MSGRCV	NOSTD	{ int freebsd32_msgrcv(int msqid, void *msgp, \
430				    size_t msgsz, long msgtyp, int msgflg); }
431228	AUE_SHMAT	NOSTD|NOPROTO	{ int shmat(int shmid, void *shmaddr, \
432				    int shmflg); }
433229	AUE_SHMCTL	COMPAT7|NOSTD	{ int freebsd32_shmctl( \
434				    int shmid, int cmd, \
435				    struct shmid_ds32_old *buf); }
436230	AUE_SHMDT	NOSTD|NOPROTO	{ int shmdt(void *shmaddr); }
437231	AUE_SHMGET	NOSTD|NOPROTO	{ int shmget(key_t key, int size, \
438				    int shmflg); }
439;
440232	AUE_NULL	STD 	{ int freebsd32_clock_gettime(clockid_t clock_id, \
441				    struct timespec32 *tp); }
442233	AUE_CLOCK_SETTIME	STD	{ int freebsd32_clock_settime(clockid_t clock_id, \
443				    const struct timespec32 *tp); }
444234	AUE_NULL	STD	{ int freebsd32_clock_getres(clockid_t clock_id, \
445				    struct timespec32 *tp); }
446235	AUE_NULL	STD	{ int freebsd32_ktimer_create(\
447				    clockid_t clock_id, \
448				    struct sigevent32 *evp, int *timerid); }
449236	AUE_NULL	NOPROTO	{ int ktimer_delete(int timerid); }
450237	AUE_NULL	STD	{ int freebsd32_ktimer_settime(int timerid,\
451				    int flags, \
452				    const struct itimerspec32 *value, \
453				    struct itimerspec32 *ovalue); }
454238	AUE_NULL	STD	{ int freebsd32_ktimer_gettime(int timerid,\
455				    struct itimerspec32 *value); }
456239	AUE_NULL	NOPROTO	{ int ktimer_getoverrun(int timerid); }
457240	AUE_NULL	STD	{ int freebsd32_nanosleep( \
458				    const struct timespec32 *rqtp, \
459				    struct timespec32 *rmtp); }
460241	AUE_NULL	NOPROTO	{ int ffclock_getcounter(ffcounter *ffcount); }
461242	AUE_NULL	NOPROTO	{ int ffclock_setestimate( \
462				    struct ffclock_estimate *cest); }
463243	AUE_NULL	NOPROTO	{ int ffclock_getestimate( \
464				    struct ffclock_estimate *cest); }
465244	AUE_NULL	STD	{ int freebsd32_clock_nanosleep( \
466				    clockid_t clock_id, int flags, \
467				    const struct timespec32 *rqtp, \
468				    struct timespec32 *rmtp); }
469245	AUE_NULL	UNIMPL	nosys
470246	AUE_NULL	UNIMPL	nosys
471247	AUE_NULL	STD	{ int freebsd32_clock_getcpuclockid2(\
472				    uint32_t id1, uint32_t id2,\
473				    int which, clockid_t *clock_id); }
474248	AUE_NULL	UNIMPL	ntp_gettime
475249	AUE_NULL	UNIMPL	nosys
476; syscall numbers initially used in OpenBSD
477250	AUE_MINHERIT	NOPROTO	{ int minherit(void *addr, size_t len, \
478				    int inherit); }
479251	AUE_RFORK	NOPROTO	{ int rfork(int flags); }
480252	AUE_POLL	NOPROTO	{ int openbsd_poll(struct pollfd *fds, \
481				    u_int nfds, int timeout); }
482253	AUE_ISSETUGID	NOPROTO	{ int issetugid(void); }
483254	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, int uid, int gid); }
484255	AUE_NULL	STD	{ int freebsd32_aio_read( \
485				    struct aiocb32 *aiocbp); }
486256	AUE_NULL	STD	{ int freebsd32_aio_write( \
487				    struct aiocb32 *aiocbp); }
488257	AUE_NULL	STD	{ int freebsd32_lio_listio(int mode, \
489				    struct aiocb32 * const *acb_list, \
490				    int nent, struct sigevent32 *sig); }
491258	AUE_NULL	UNIMPL	nosys
492259	AUE_NULL	UNIMPL	nosys
493260	AUE_NULL	UNIMPL	nosys
494261	AUE_NULL	UNIMPL	nosys
495262	AUE_NULL	UNIMPL	nosys
496263	AUE_NULL	UNIMPL	nosys
497264	AUE_NULL	UNIMPL	nosys
498265	AUE_NULL	UNIMPL	nosys
499266	AUE_NULL	UNIMPL	nosys
500267	AUE_NULL	UNIMPL	nosys
501268	AUE_NULL	UNIMPL	nosys
502269	AUE_NULL	UNIMPL	nosys
503270	AUE_NULL	UNIMPL	nosys
504271	AUE_NULL	UNIMPL	nosys
505272	AUE_O_GETDENTS	NOPROTO	{ int getdents(int fd, char *buf, \
506				    size_t count); }
507273	AUE_NULL	UNIMPL	nosys
508274	AUE_LCHMOD	NOPROTO	{ int lchmod(char *path, mode_t mode); }
509275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
510				    gid_t gid); } netbsd_lchown \
511				    lchown_args int
512276	AUE_LUTIMES	STD	{ int freebsd32_lutimes(char *path, \
513				    struct timeval32 *tptr); }
514277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
515				    int flags); } netbsd_msync msync_args int
516278	AUE_STAT	NOPROTO	{ int nstat(char *path, struct nstat *ub); }
517279	AUE_FSTAT	NOPROTO	{ int nfstat(int fd, struct nstat *sb); }
518280	AUE_LSTAT	NOPROTO	{ int nlstat(char *path, struct nstat *ub); }
519281	AUE_NULL	UNIMPL	nosys
520282	AUE_NULL	UNIMPL	nosys
521283	AUE_NULL	UNIMPL	nosys
522284	AUE_NULL	UNIMPL	nosys
523285	AUE_NULL	UNIMPL	nosys
524286	AUE_NULL	UNIMPL	nosys
525287	AUE_NULL	UNIMPL	nosys
526288	AUE_NULL	UNIMPL	nosys
527; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
528289	AUE_PREADV	STD	{ ssize_t freebsd32_preadv(int fd, \
529					struct iovec32 *iovp, \
530					u_int iovcnt, \
531					uint32_t offset1, uint32_t offset2); }
532290	AUE_PWRITEV	STD	{ ssize_t freebsd32_pwritev(int fd, \
533					struct iovec32 *iovp, \
534					u_int iovcnt, \
535					uint32_t offset1, uint32_t offset2); }
536291	AUE_NULL	UNIMPL	nosys
537292	AUE_NULL	UNIMPL	nosys
538293	AUE_NULL	UNIMPL	nosys
539294	AUE_NULL	UNIMPL	nosys
540295	AUE_NULL	UNIMPL	nosys
541296	AUE_NULL	UNIMPL	nosys
542; XXX 297 is 300 in NetBSD
543297	AUE_FHSTATFS	COMPAT4	{ int freebsd32_fhstatfs( \
544				    const struct fhandle *u_fhp, \
545				    struct statfs32 *buf); }
546298	AUE_FHOPEN	NOPROTO	{ int fhopen(const struct fhandle *u_fhp, \
547			 	    int flags); }
548299	AUE_FHSTAT	NOPROTO	{ int fhstat(const struct fhandle *u_fhp, \
549				    struct stat *sb); }
550; syscall numbers for FreeBSD
551300	AUE_NULL	NOPROTO	{ int modnext(int modid); }
552301	AUE_NULL	STD	{ int freebsd32_modstat(int modid, \
553				    struct module_stat32* stat); }
554302	AUE_NULL	NOPROTO	{ int modfnext(int modid); }
555303	AUE_NULL	NOPROTO	{ int modfind(const char *name); }
556304	AUE_MODLOAD	NOPROTO	{ int kldload(const char *file); }
557305	AUE_MODUNLOAD	NOPROTO	{ int kldunload(int fileid); }
558306	AUE_NULL	NOPROTO	{ int kldfind(const char *file); }
559307	AUE_NULL	NOPROTO	{ int kldnext(int fileid); }
560308	AUE_NULL	STD	{ int freebsd32_kldstat(int fileid, \
561				    struct kld32_file_stat* stat); }
562309	AUE_NULL	NOPROTO	{ int kldfirstmod(int fileid); }
563310	AUE_GETSID	NOPROTO	{ int getsid(pid_t pid); }
564311	AUE_SETRESUID	NOPROTO	{ int setresuid(uid_t ruid, uid_t euid, \
565				    uid_t suid); }
566312	AUE_SETRESGID	NOPROTO	{ int setresgid(gid_t rgid, gid_t egid, \
567				    gid_t sgid); }
568313	AUE_NULL	OBSOL	signanosleep
569314	AUE_NULL	STD	{ int freebsd32_aio_return( \
570				    struct aiocb32 *aiocbp); }
571315	AUE_NULL	STD	{ int freebsd32_aio_suspend( \
572				    struct aiocb32 * const * aiocbp, int nent, \
573				    const struct timespec32 *timeout); }
574316	AUE_NULL	NOPROTO	{ int aio_cancel(int fd, \
575				    struct aiocb *aiocbp); }
576317	AUE_NULL	STD	{ int freebsd32_aio_error( \
577				    struct aiocb32 *aiocbp); }
578318	AUE_NULL	COMPAT6	{ int freebsd32_aio_read( \
579				    struct oaiocb32 *aiocbp); }
580319	AUE_NULL	COMPAT6	{ int freebsd32_aio_write( \
581				    struct oaiocb32 *aiocbp); }
582320	AUE_NULL	COMPAT6	{ int freebsd32_lio_listio(int mode, \
583				    struct oaiocb32 * const *acb_list, \
584				    int nent, struct osigevent32 *sig); }
585321	AUE_NULL	NOPROTO	{ int yield(void); }
586322	AUE_NULL	OBSOL	thr_sleep
587323	AUE_NULL	OBSOL	thr_wakeup
588324	AUE_MLOCKALL	NOPROTO	{ int mlockall(int how); }
589325	AUE_MUNLOCKALL	NOPROTO	{ int munlockall(void); }
590326	AUE_GETCWD	NOPROTO	{ int __getcwd(char *buf, u_int buflen); }
591
592327	AUE_NULL	NOPROTO	{ int sched_setparam (pid_t pid, \
593				    const struct sched_param *param); }
594328	AUE_NULL	NOPROTO	{ int sched_getparam (pid_t pid, \
595				    struct sched_param *param); }
596
597329	AUE_NULL	NOPROTO	{ int sched_setscheduler (pid_t pid, \
598				    int policy, \
599				    const struct sched_param *param); }
600330	AUE_NULL	NOPROTO	{ int sched_getscheduler (pid_t pid); }
601
602331	AUE_NULL	NOPROTO	{ int sched_yield (void); }
603332	AUE_NULL	NOPROTO	{ int sched_get_priority_max (int policy); }
604333	AUE_NULL	NOPROTO	{ int sched_get_priority_min (int policy); }
605334	AUE_NULL	STD	{ int freebsd32_sched_rr_get_interval ( \
606				    pid_t pid, \
607				    struct timespec32 *interval); }
608335	AUE_NULL	NOPROTO	{ int utrace(const void *addr, size_t len); }
609336	AUE_SENDFILE	COMPAT4	{ int freebsd32_sendfile(int fd, int s, \
610				    uint32_t offset1, uint32_t offset2, \
611				    size_t nbytes, struct sf_hdtr32 *hdtr, \
612				    off_t *sbytes, int flags); }
613337	AUE_NULL	NOPROTO	{ int kldsym(int fileid, int cmd, \
614				    void *data); }
615338	AUE_JAIL	STD	{ int freebsd32_jail(struct jail32 *jail); }
616339	AUE_NULL	UNIMPL	pioctl
617340	AUE_SIGPROCMASK	NOPROTO	{ int sigprocmask(int how, \
618				    const sigset_t *set, sigset_t *oset); }
619341	AUE_SIGSUSPEND	NOPROTO	{ int sigsuspend(const sigset_t *sigmask); }
620342	AUE_SIGACTION	COMPAT4	{ int freebsd32_sigaction(int sig, \
621				    struct sigaction32 *act, \
622				    struct sigaction32 *oact); }
623343	AUE_SIGPENDING	NOPROTO	{ int sigpending(sigset_t *set); }
624344	AUE_SIGRETURN	COMPAT4	{ int freebsd32_sigreturn( \
625		    const struct freebsd4_freebsd32_ucontext *sigcntxp); }
626345	AUE_SIGWAIT	STD	{ int freebsd32_sigtimedwait(const sigset_t *set, \
627				    siginfo_t *info, \
628				    const struct timespec *timeout); }
629346	AUE_NULL	STD	{ int freebsd32_sigwaitinfo(const sigset_t *set, \
630				    siginfo_t *info); }
631347	AUE_NULL	NOPROTO	{ int __acl_get_file(const char *path, \
632				    acl_type_t type, struct acl *aclp); }
633348	AUE_NULL	NOPROTO	{ int __acl_set_file(const char *path, \
634				    acl_type_t type, struct acl *aclp); }
635349	AUE_NULL	NOPROTO	{ int __acl_get_fd(int filedes, \
636				    acl_type_t type, struct acl *aclp); }
637350	AUE_NULL	NOPROTO	{ int __acl_set_fd(int filedes, \
638				    acl_type_t type, struct acl *aclp); }
639351	AUE_NULL	NOPROTO	{ int __acl_delete_file(const char *path, \
640				    acl_type_t type); }
641352	AUE_NULL	NOPROTO	{ int __acl_delete_fd(int filedes, \
642				    acl_type_t type); }
643353	AUE_NULL	NOPROTO	{ int __acl_aclcheck_file(const char *path, \
644				    acl_type_t type, struct acl *aclp); }
645354	AUE_NULL	NOPROTO	{ int __acl_aclcheck_fd(int filedes, \
646				    acl_type_t type, struct acl *aclp); }
647355	AUE_EXTATTRCTL	NOPROTO	{ int extattrctl(const char *path, int cmd, \
648				    const char *filename, int attrnamespace, \
649				    const char *attrname); }
650356	AUE_EXTATTR_SET_FILE	NOPROTO	{ ssize_t extattr_set_file( \
651				    const char *path, int attrnamespace, \
652				    const char *attrname, void *data, \
653				    size_t nbytes); }
654357	AUE_EXTATTR_GET_FILE	NOPROTO	{ ssize_t extattr_get_file( \
655				    const char *path, int attrnamespace, \
656				    const char *attrname, void *data, \
657				    size_t nbytes); }
658358	AUE_EXTATTR_DELETE_FILE	NOPROTO	{ int extattr_delete_file( \
659				    const char *path, int attrnamespace, \
660				    const char *attrname); }
661359	AUE_NULL	STD	{ int freebsd32_aio_waitcomplete( \
662				    struct aiocb32 **aiocbp, \
663				    struct timespec32 *timeout); }
664360	AUE_GETRESUID	NOPROTO	{ int getresuid(uid_t *ruid, uid_t *euid, \
665				    uid_t *suid); }
666361	AUE_GETRESGID	NOPROTO	{ int getresgid(gid_t *rgid, gid_t *egid, \
667				    gid_t *sgid); }
668362	AUE_KQUEUE	NOPROTO	{ int kqueue(void); }
669363	AUE_NULL	STD	{ int freebsd32_kevent(int fd, \
670				    const struct kevent32 *changelist, \
671				    int nchanges, \
672				    struct kevent32 *eventlist, int nevents, \
673				    const struct timespec32 *timeout); }
674364	AUE_NULL	UNIMPL	__cap_get_proc
675365	AUE_NULL	UNIMPL	__cap_set_proc
676366	AUE_NULL	UNIMPL	__cap_get_fd
677367	AUE_NULL	UNIMPL	__cap_get_file
678368	AUE_NULL	UNIMPL	__cap_set_fd
679369	AUE_NULL	UNIMPL	__cap_set_file
680370	AUE_NULL	UNIMPL	nosys
681371	AUE_EXTATTR_SET_FD	NOPROTO	{ ssize_t extattr_set_fd(int fd, \
682				    int attrnamespace, const char *attrname, \
683				    void *data, size_t nbytes); }
684372	AUE_EXTATTR_GET_FD	NOPROTO	{ ssize_t extattr_get_fd(int fd, \
685				    int attrnamespace, const char *attrname, \
686				    void *data, size_t nbytes); }
687373	AUE_EXTATTR_DELETE_FD	NOPROTO	{ int extattr_delete_fd(int fd, \
688				    int attrnamespace, \
689				    const char *attrname); }
690374	AUE_NULL	NOPROTO	{ int __setugid(int flag); }
691375	AUE_NULL	UNIMPL	nfsclnt
692376	AUE_EACCESS	NOPROTO	{ int eaccess(char *path, int amode); }
693377	AUE_NULL	UNIMPL	afs_syscall
694378	AUE_NMOUNT	STD	{ int freebsd32_nmount(struct iovec32 *iovp, \
695				    unsigned int iovcnt, int flags); }
696379	AUE_NULL	UNIMPL	kse_exit
697380	AUE_NULL	UNIMPL	kse_wakeup
698381	AUE_NULL	UNIMPL	kse_create
699382	AUE_NULL	UNIMPL	kse_thr_interrupt
700383	AUE_NULL	UNIMPL	kse_release
701384	AUE_NULL	UNIMPL	__mac_get_proc
702385	AUE_NULL	UNIMPL	__mac_set_proc
703386	AUE_NULL	UNIMPL	__mac_get_fd
704387	AUE_NULL	UNIMPL	__mac_get_file
705388	AUE_NULL	UNIMPL	__mac_set_fd
706389	AUE_NULL	UNIMPL	__mac_set_file
707390	AUE_NULL	NOPROTO	{ int kenv(int what, const char *name, \
708				    char *value, int len); }
709391	AUE_LCHFLAGS	NOPROTO	{ int lchflags(const char *path, \
710				    u_long flags); }
711392	AUE_NULL	NOPROTO	{ int uuidgen(struct uuid *store, \
712				    int count); }
713393	AUE_SENDFILE	STD	{ int freebsd32_sendfile(int fd, int s, \
714				    uint32_t offset1, uint32_t offset2, \
715				    size_t nbytes, struct sf_hdtr32 *hdtr, \
716				    off_t *sbytes, int flags); }
717394	AUE_NULL	UNIMPL	mac_syscall
718395	AUE_GETFSSTAT	NOPROTO	{ int getfsstat(struct statfs *buf, \
719				    long bufsize, int mode); }
720396	AUE_STATFS	NOPROTO	{ int statfs(char *path, \
721				    struct statfs *buf); }
722397	AUE_FSTATFS	NOPROTO	{ int fstatfs(int fd, struct statfs *buf); }
723398	AUE_FHSTATFS	NOPROTO	{ int fhstatfs(const struct fhandle *u_fhp, \
724				    struct statfs *buf); }
725399	AUE_NULL	UNIMPL	nosys
726400	AUE_NULL	NOSTD|NOPROTO	{ int ksem_close(semid_t id); }
727401	AUE_NULL	NOSTD|NOPROTO	{ int ksem_post(semid_t id); }
728402	AUE_NULL	NOSTD|NOPROTO	{ int ksem_wait(semid_t id); }
729403	AUE_NULL	NOSTD|NOPROTO	{ int ksem_trywait(semid_t id); }
730404	AUE_NULL	NOSTD	{ int freebsd32_ksem_init(semid_t *idp, \
731				    unsigned int value); }
732405	AUE_NULL	NOSTD	{ int freebsd32_ksem_open(semid_t *idp, \
733				    const char *name, int oflag, \
734				    mode_t mode, unsigned int value); }
735406	AUE_NULL	NOSTD|NOPROTO	{ int ksem_unlink(const char *name); }
736407	AUE_NULL	NOSTD|NOPROTO	{ int ksem_getvalue(semid_t id, \
737				    int *val); }
738408	AUE_NULL	NOSTD|NOPROTO	{ int ksem_destroy(semid_t id); }
739409	AUE_NULL	UNIMPL	__mac_get_pid
740410	AUE_NULL	UNIMPL	__mac_get_link
741411	AUE_NULL	UNIMPL	__mac_set_link
742412	AUE_EXTATTR_SET_LINK	NOPROTO	{ ssize_t extattr_set_link( \
743				    const char *path, int attrnamespace, \
744				    const char *attrname, void *data, \
745				    size_t nbytes); }
746413	AUE_EXTATTR_GET_LINK	NOPROTO	{ ssize_t extattr_get_link( \
747				    const char *path, int attrnamespace, \
748				    const char *attrname, void *data, \
749				    size_t nbytes); }
750414	AUE_EXTATTR_DELETE_LINK	NOPROTO	{ int extattr_delete_link( \
751				    const char *path, int attrnamespace, \
752				    const char *attrname); }
753415	AUE_NULL	UNIMPL	__mac_execve
754416	AUE_SIGACTION	STD	{ int freebsd32_sigaction(int sig, \
755				    struct sigaction32 *act, \
756				    struct sigaction32 *oact); }
757417	AUE_SIGRETURN	STD	{ int freebsd32_sigreturn( \
758		    const struct freebsd32_ucontext *sigcntxp); }
759418	AUE_NULL	UNIMPL	__xstat
760419	AUE_NULL	UNIMPL	__xfstat
761420	AUE_NULL	UNIMPL	__xlstat
762421	AUE_NULL	STD	{ int freebsd32_getcontext( \
763				    struct freebsd32_ucontext *ucp); }
764422	AUE_NULL	STD	{ int freebsd32_setcontext( \
765				    const struct freebsd32_ucontext *ucp); }
766423	AUE_NULL	STD	{ int freebsd32_swapcontext( \
767				    struct freebsd32_ucontext *oucp, \
768				    const struct freebsd32_ucontext *ucp); }
769424	AUE_SWAPOFF	UNIMPL	swapoff
770425	AUE_NULL	NOPROTO	{ int __acl_get_link(const char *path, \
771				    acl_type_t type, struct acl *aclp); }
772426	AUE_NULL	NOPROTO	{ int __acl_set_link(const char *path, \
773				    acl_type_t type, struct acl *aclp); }
774427	AUE_NULL	NOPROTO	{ int __acl_delete_link(const char *path, \
775				    acl_type_t type); }
776428	AUE_NULL	NOPROTO	{ int __acl_aclcheck_link(const char *path, \
777				    acl_type_t type, struct acl *aclp); }
778429	AUE_SIGWAIT	NOPROTO	{ int sigwait(const sigset_t *set, \
779				    int *sig); }
780430	AUE_NULL	UNIMPL	thr_create;
781431	AUE_NULL	NOPROTO	{ void thr_exit(long *state); }
782432	AUE_NULL	NOPROTO	{ int thr_self(long *id); }
783433	AUE_NULL	NOPROTO	{ int thr_kill(long id, int sig); }
784434	AUE_NULL	UNIMPL	nosys
785435	AUE_NULL	UNIMPL	nosys
786436	AUE_NULL	NOPROTO	{ int jail_attach(int jid); }
787437	AUE_EXTATTR_LIST_FD	NOPROTO	{ ssize_t extattr_list_fd(int fd, \
788				    int attrnamespace, void *data, \
789				    size_t nbytes); }
790438	AUE_EXTATTR_LIST_FILE	NOPROTO	{ ssize_t extattr_list_file( \
791				    const char *path, int attrnamespace, \
792				    void *data, size_t nbytes); }
793439	AUE_EXTATTR_LIST_LINK	NOPROTO	{ ssize_t extattr_list_link( \
794				    const char *path, int attrnamespace, \
795				    void *data, size_t nbytes); }
796440	AUE_NULL	UNIMPL	kse_switchin
797441	AUE_NULL	NOSTD	{ int freebsd32_ksem_timedwait(semid_t id, \
798				    const struct timespec32 *abstime); }
799442	AUE_NULL	STD	{ int freebsd32_thr_suspend( \
800				    const struct timespec32 *timeout); }
801443	AUE_NULL	NOPROTO	{ int thr_wake(long id); }
802444	AUE_MODUNLOAD	NOPROTO	{ int kldunloadf(int fileid, int flags); }
803445	AUE_AUDIT	NOPROTO	{ int audit(const void *record, \
804				    u_int length); }
805446	AUE_AUDITON	NOPROTO	{ int auditon(int cmd, void *data, \
806				    u_int length); }
807447	AUE_GETAUID	NOPROTO	{ int getauid(uid_t *auid); }
808448	AUE_SETAUID	NOPROTO	{ int setauid(uid_t *auid); }
809449	AUE_GETAUDIT	NOPROTO	{ int getaudit(struct auditinfo *auditinfo); }
810450	AUE_SETAUDIT	NOPROTO	{ int setaudit(struct auditinfo *auditinfo); }
811451	AUE_GETAUDIT_ADDR	NOPROTO	{ int getaudit_addr( \
812				    struct auditinfo_addr *auditinfo_addr, \
813				    u_int length); }
814452	AUE_SETAUDIT_ADDR	NOPROTO	{ int setaudit_addr( \
815				    struct auditinfo_addr *auditinfo_addr, \
816				    u_int length); }
817453	AUE_AUDITCTL	NOPROTO	{ int auditctl(char *path); }
818454	AUE_NULL	STD	{ int freebsd32_umtx_op(void *obj, int op,\
819				    u_long val, void *uaddr, \
820				    void *uaddr2); }
821455	AUE_NULL	STD	{ int freebsd32_thr_new(	\
822				    struct thr_param32 *param,	\
823				    int param_size); }
824456	AUE_NULL	STD	{ int freebsd32_sigqueue(pid_t pid, \
825				    int signum, int value); }
826457	AUE_NULL	NOSTD	{ int freebsd32_kmq_open( \
827				    const char *path, int flags, mode_t mode, \
828				    const struct mq_attr32 *attr); }
829458	AUE_NULL	NOSTD	{ int freebsd32_kmq_setattr(int mqd, \
830				    const struct mq_attr32 *attr,	\
831				    struct mq_attr32 *oattr); }
832459	AUE_NULL	NOSTD	{ int freebsd32_kmq_timedreceive(int mqd, \
833				    char *msg_ptr, size_t msg_len,	\
834				    unsigned *msg_prio,			\
835				    const struct timespec32 *abs_timeout); }
836460	AUE_NULL	NOSTD	{ int freebsd32_kmq_timedsend(int mqd,	\
837				    const char *msg_ptr, size_t msg_len,\
838				    unsigned msg_prio,			\
839				    const struct timespec32 *abs_timeout);}
840461	AUE_NULL	NOSTD	{ int freebsd32_kmq_notify(int mqd,	\
841				    const struct sigevent32 *sigev); }
842462	AUE_NULL	NOPROTO|NOSTD	{ int kmq_unlink(const char *path); }
843463	AUE_NULL	NOPROTO	{ int abort2(const char *why, int nargs, void **args); }
844464	AUE_NULL 	NOPROTO	{ int thr_set_name(long id, const char *name); }
845465	AUE_NULL	STD	{ int freebsd32_aio_fsync(int op, \
846				    struct aiocb32 *aiocbp); }
847466	AUE_RTPRIO	NOPROTO	{ int rtprio_thread(int function, \
848				    lwpid_t lwpid, struct rtprio *rtp); }
849467	AUE_NULL	UNIMPL	nosys
850468	AUE_NULL	UNIMPL	nosys
851469	AUE_NULL	UNIMPL	__getpath_fromfd
852470	AUE_NULL	UNIMPL	__getpath_fromaddr
853471	AUE_NULL	NOPROTO|NOSTD	{ int sctp_peeloff(int sd, uint32_t name); }
854472	AUE_NULL	NOPROTO|NOSTD	{ int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
855				    caddr_t to, __socklen_t tolen, \
856				    struct sctp_sndrcvinfo *sinfo, int flags); }
857473	AUE_NULL	NOPROTO|NOSTD	{ int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
858				    caddr_t to, __socklen_t tolen, \
859				    struct sctp_sndrcvinfo *sinfo, int flags); }
860474	AUE_NULL	NOPROTO|NOSTD	{ int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
861				    struct sockaddr * from, __socklen_t *fromlenaddr, \
862				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
863#ifdef PAD64_REQUIRED
864475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
865				    void *buf,size_t nbyte, \
866				    int pad, \
867				    uint32_t offset1, uint32_t offset2); }
868476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
869				    const void *buf, size_t nbyte, \
870				    int pad, \
871				    uint32_t offset1, uint32_t offset2); }
872477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
873				    size_t len, int prot, int flags, int fd, \
874				    int pad, \
875				    uint32_t pos1, uint32_t pos2); }
876478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
877				    int pad, \
878				    uint32_t offset1, uint32_t offset2, \
879				    int whence); }
880479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
881				    int pad, \
882				    uint32_t length1, uint32_t length2); }
883480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
884				    int pad, \
885				    uint32_t length1, uint32_t length2); }
886#else
887475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
888				    void *buf,size_t nbyte, \
889				    uint32_t offset1, uint32_t offset2); }
890476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
891				    const void *buf, size_t nbyte, \
892				    uint32_t offset1, uint32_t offset2); }
893477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
894				    size_t len, int prot, int flags, int fd, \
895				    uint32_t pos1, uint32_t pos2); }
896478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
897				    uint32_t offset1, uint32_t offset2, \
898				    int whence); }
899479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
900				    uint32_t length1, uint32_t length2); }
901480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
902				    uint32_t length1, uint32_t length2); }
903#endif
904481	AUE_KILL	NOPROTO	{ int thr_kill2(pid_t pid, long id, int sig); }
905482	AUE_SHMOPEN	NOPROTO	{ int shm_open(const char *path, int flags, \
906				    mode_t mode); }
907483	AUE_SHMUNLINK	NOPROTO	{ int shm_unlink(const char *path); }
908484	AUE_NULL	NOPROTO	{ int cpuset(cpusetid_t *setid); }
909#ifdef PAD64_REQUIRED
910485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
911				    int pad, \
912				    uint32_t id1, uint32_t id2, \
913				    cpusetid_t setid); }
914#else
915485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
916				    uint32_t id1, uint32_t id2, \
917				    cpusetid_t setid); }
918#endif
919486	AUE_NULL	STD	{ int freebsd32_cpuset_getid(cpulevel_t level, \
920				    cpuwhich_t which, \
921				    uint32_t id1, uint32_t id2, \
922				    cpusetid_t *setid); }
923487	AUE_NULL	STD	{ int freebsd32_cpuset_getaffinity( \
924				    cpulevel_t level, cpuwhich_t which, \
925				    uint32_t id1, uint32_t id2, \
926				    size_t cpusetsize, \
927				    cpuset_t *mask); }
928488	AUE_NULL	STD	{ int freebsd32_cpuset_setaffinity( \
929				    cpulevel_t level, cpuwhich_t which, \
930				    uint32_t id1, uint32_t id2, \
931				    size_t cpusetsize, \
932				    const cpuset_t *mask); }
933489	AUE_FACCESSAT	NOPROTO	{ int faccessat(int fd, char *path, int amode, \
934				    int flag); }
935490	AUE_FCHMODAT	NOPROTO	{ int fchmodat(int fd, const char *path, \
936				    mode_t mode, int flag); }
937491	AUE_FCHOWNAT	NOPROTO	{ int fchownat(int fd, char *path, uid_t uid, \
938				    gid_t gid, int flag); }
939492	AUE_FEXECVE	STD	{ int freebsd32_fexecve(int fd, \
940				    uint32_t *argv, uint32_t *envv); }
941493	AUE_FSTATAT	STD	{ int freebsd32_fstatat(int fd, char *path, \
942				    struct stat *buf, int flag); }
943494	AUE_FUTIMESAT	STD	{ int freebsd32_futimesat(int fd, char *path, \
944				    struct timeval *times); }
945495	AUE_LINKAT	NOPROTO	{ int linkat(int fd1, char *path1, int fd2, \
946				    char *path2, int flag); }
947496	AUE_MKDIRAT	NOPROTO	{ int mkdirat(int fd, char *path, \
948				    mode_t mode); }
949497	AUE_MKFIFOAT	NOPROTO	{ int mkfifoat(int fd, char *path, \
950				    mode_t mode); }
951498	AUE_MKNODAT	NOPROTO	{ int mknodat(int fd, char *path, \
952				    mode_t mode, dev_t dev); }
953499	AUE_OPENAT_RWTC	NOPROTO	{ int openat(int fd, char *path, int flag, \
954				    mode_t mode); }
955500	AUE_READLINKAT	NOPROTO	{ int readlinkat(int fd, char *path, char *buf, \
956				    size_t bufsize); }
957501	AUE_RENAMEAT	NOPROTO	{ int renameat(int oldfd, char *old, int newfd, \
958				    const char *new); }
959502	AUE_SYMLINKAT	NOPROTO	{ int symlinkat(char *path1, int fd, \
960				    char *path2); }
961503	AUE_UNLINKAT	NOPROTO	{ int unlinkat(int fd, char *path, \
962				    int flag); }
963504	AUE_POSIX_OPENPT	NOPROTO	{ int posix_openpt(int flags); }
964; 505 is initialised by the kgssapi code, if present.
965505	AUE_NULL	UNIMPL	gssd_syscall
966506	AUE_NULL	STD	{ int freebsd32_jail_get(struct iovec32 *iovp, \
967				    unsigned int iovcnt, int flags); }
968507	AUE_NULL	STD	{ int freebsd32_jail_set(struct iovec32 *iovp, \
969				    unsigned int iovcnt, int flags); }
970508	AUE_NULL	NOPROTO	{ int jail_remove(int jid); }
971509	AUE_CLOSEFROM	NOPROTO	{ int closefrom(int lowfd); }
972510	AUE_SEMCTL	NOSTD { int freebsd32_semctl(int semid, int semnum, \
973				    int cmd, union semun32 *arg); }
974511	AUE_MSGCTL	NOSTD	{ int freebsd32_msgctl(int msqid, int cmd, \
975				    struct msqid_ds32 *buf); }
976512	AUE_SHMCTL	NOSTD	{ int freebsd32_shmctl(int shmid, int cmd, \
977				    struct shmid_ds32 *buf); }
978513	AUE_LPATHCONF	NOPROTO	{ int lpathconf(char *path, int name); }
979514	AUE_NULL	OBSOL	cap_new
980515	AUE_CAP_RIGHTS_GET	NOPROTO	{ int __cap_rights_get(int version, \
981				    int fd, cap_rights_t *rightsp); }
982516	AUE_CAP_ENTER	NOPROTO	{ int cap_enter(void); }
983517	AUE_CAP_GETMODE	NOPROTO	{ int cap_getmode(u_int *modep); }
984518	AUE_PDFORK	NOPROTO	{ int pdfork(int *fdp, int flags); }
985519	AUE_PDKILL	NOPROTO	{ int pdkill(int fd, int signum); }
986520	AUE_PDGETPID	NOPROTO	{ int pdgetpid(int fd, pid_t *pidp); }
987521	AUE_PDWAIT	UNIMPL	pdwait4
988522	AUE_SELECT	STD	{ int freebsd32_pselect(int nd, fd_set *in, \
989				    fd_set *ou, fd_set *ex, \
990				    const struct timespec32 *ts, \
991				    const sigset_t *sm); }
992523	AUE_NULL	NOPROTO	{ int getloginclass(char *namebuf, \
993				    size_t namelen); }
994524	AUE_NULL	NOPROTO	{ int setloginclass(const char *namebuf); }
995525	AUE_NULL	NOPROTO	{ int rctl_get_racct(const void *inbufp, \
996				    size_t inbuflen, void *outbufp, \
997				    size_t outbuflen); }
998526	AUE_NULL	NOPROTO	{ int rctl_get_rules(const void *inbufp, \
999				    size_t inbuflen, void *outbufp, \
1000				    size_t outbuflen); }
1001527	AUE_NULL	NOPROTO	{ int rctl_get_limits(const void *inbufp, \
1002				    size_t inbuflen, void *outbufp, \
1003				    size_t outbuflen); }
1004528	AUE_NULL	NOPROTO	{ int rctl_add_rule(const void *inbufp, \
1005				    size_t inbuflen, void *outbufp, \
1006				    size_t outbuflen); }
1007529	AUE_NULL	NOPROTO	{ int rctl_remove_rule(const void *inbufp, \
1008				    size_t inbuflen, void *outbufp, \
1009				    size_t outbuflen); }
1010#ifdef PAD64_REQUIRED
1011530	AUE_NULL	STD	{ int freebsd32_posix_fallocate(int fd, \
1012				    int pad, \
1013				    uint32_t offset1, uint32_t offset2,\
1014				    uint32_t len1, uint32_t len2); }
1015531	AUE_NULL	STD	{ int freebsd32_posix_fadvise(int fd, \
1016				    int pad, \
1017				    uint32_t offset1, uint32_t offset2,\
1018				    uint32_t len1, uint32_t len2, \
1019				    int advice); }
1020532	AUE_WAIT6	STD	{ int freebsd32_wait6(int idtype, int pad, \
1021				    uint32_t id1, uint32_t id2, \
1022				    int *status, int options, \
1023				    struct wrusage32 *wrusage, \
1024				    siginfo_t *info); }
1025#else
1026530	AUE_NULL	STD	{ int freebsd32_posix_fallocate(int fd,\
1027				    uint32_t offset1, uint32_t offset2,\
1028				    uint32_t len1, uint32_t len2); }
1029531	AUE_NULL	STD	{ int freebsd32_posix_fadvise(int fd, \
1030				    uint32_t offset1, uint32_t offset2,\
1031				    uint32_t len1, uint32_t len2, \
1032				    int advice); }
1033532	AUE_WAIT6	STD	{ int freebsd32_wait6(int idtype, \
1034				    uint32_t id1, uint32_t id2, \
1035				    int *status, int options, \
1036				    struct wrusage32 *wrusage, \
1037				    siginfo_t *info); }
1038#endif
1039533	AUE_CAP_RIGHTS_LIMIT	NOPROTO	{ \
1040				    int cap_rights_limit(int fd, \
1041				    cap_rights_t *rightsp); }
1042534	AUE_CAP_IOCTLS_LIMIT	STD	{ \
1043				    int freebsd32_cap_ioctls_limit(int fd, \
1044				    const uint32_t *cmds, size_t ncmds); }
1045535	AUE_CAP_IOCTLS_GET	STD	{ \
1046				    ssize_t freebsd32_cap_ioctls_get(int fd, \
1047				    uint32_t *cmds, size_t maxcmds); }
1048536	AUE_CAP_FCNTLS_LIMIT	NOPROTO	{ int cap_fcntls_limit(int fd, \
1049				    uint32_t fcntlrights); }
1050537	AUE_CAP_FCNTLS_GET	NOPROTO	{ int cap_fcntls_get(int fd, \
1051				    uint32_t *fcntlrightsp); }
1052538	AUE_BINDAT	NOPROTO	{ int bindat(int fd, int s, caddr_t name, \
1053				    int namelen); }
1054539	AUE_CONNECTAT	NOPROTO	{ int connectat(int fd, int s, caddr_t name, \
1055				    int namelen); }
1056540	AUE_CHFLAGSAT	NOPROTO	{ int chflagsat(int fd, const char *path, \
1057				    u_long flags, int atflag); }
1058541	AUE_ACCEPT	NOPROTO	{ int accept4(int s, \
1059				    struct sockaddr * __restrict name, \
1060				    __socklen_t * __restrict anamelen, \
1061				    int flags); }
1062542	AUE_PIPE	NOPROTO	{ int pipe2(int *fildes, int flags); }
1063543	AUE_NULL	STD	{ int freebsd32_aio_mlock( \
1064				    struct aiocb32 *aiocbp); }
1065#ifdef PAD64_REQUIRED
1066544	AUE_NULL	STD	{ int freebsd32_procctl(int idtype, int pad, \
1067				    uint32_t id1, uint32_t id2, int com, \
1068				    void *data); }
1069#else
1070544	AUE_NULL	STD	{ int freebsd32_procctl(int idtype, \
1071				    uint32_t id1, uint32_t id2, int com, \
1072				    void *data); }
1073#endif
1074545	AUE_POLL	STD	{ int freebsd32_ppoll(struct pollfd *fds, \
1075				    u_int nfds, const struct timespec32 *ts, \
1076				    const sigset_t *set); }
1077546	AUE_FUTIMES	STD	{ int freebsd32_futimens(int fd, \
1078				    struct timespec *times); }
1079547	AUE_FUTIMESAT	STD	{ int freebsd32_utimensat(int fd, \
1080				    char *path, \
1081				    struct timespec *times, int flag); }
1082548	AUE_NULL	NOPROTO	{ int numa_getaffinity(cpuwhich_t which, \
1083				    id_t id, \
1084				    struct vm_domain_policy *policy); }
1085549	AUE_NULL	NOPROTO	{ int numa_setaffinity(cpuwhich_t which, \
1086				    id_t id, \
1087				    const struct vm_domain_policy *policy); }
1088550	AUE_FSYNC	NOPROTO	{ int fdatasync(int fd); }
1089