syscalls.master revision 203660
1 $FreeBSD: head/sys/compat/freebsd32/syscalls.master 203660 2010-02-08 10:02:01Z ed $
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; Reserved/unimplemented system calls in the range 0-150 inclusive
56; are reserved for use in future Berkeley releases.
57; Additional system calls implemented in vendor and other
58; redistributions should be placed in the reserved range at the end
59; of the current calls.
60
610	AUE_NULL	NOPROTO	{ int nosys(void); } syscall nosys_args int
621	AUE_EXIT	NOPROTO	{ void sys_exit(int rval); } exit \
63				    sys_exit_args void
642	AUE_FORK	NOPROTO	{ int fork(void); }
653	AUE_READ	NOPROTO	{ ssize_t read(int fd, void *buf, \
66				    size_t nbyte); }
674	AUE_WRITE	NOPROTO	{ ssize_t write(int fd, const void *buf, \
68				    size_t nbyte); }
695	AUE_OPEN_RWTC	NOPROTO	{ int open(char *path, int flags, \
70				    int mode); }
716	AUE_CLOSE	NOPROTO	{ int close(int fd); }
727	AUE_WAIT4	STD	{ int freebsd32_wait4(int pid, int *status, \
73				    int options, struct rusage32 *rusage); }
748	AUE_CREAT	OBSOL	old creat
759	AUE_LINK	NOPROTO	{ int link(char *path, char *link); }
7610	AUE_UNLINK	NOPROTO	{ int unlink(char *path); }
7711	AUE_NULL	OBSOL	execv
7812	AUE_CHDIR	NOPROTO	{ int chdir(char *path); }
7913	AUE_FCHDIR	NOPROTO	{ int fchdir(int fd); }
8014	AUE_MKNOD	NOPROTO	{ int mknod(char *path, int mode, int dev); }
8115	AUE_CHMOD	NOPROTO	{ int chmod(char *path, int mode); }
8216	AUE_CHOWN	NOPROTO	{ int chown(char *path, int uid, int gid); }
8317	AUE_NULL	NOPROTO	{ int obreak(char *nsize); } break \
84				    obreak_args int
8518	AUE_GETFSSTAT	COMPAT4	{ int freebsd32_getfsstat( \
86				    struct statfs32 *buf, long bufsize, \
87				    int flags); }
8819	AUE_LSEEK	OBSOL	olseek
8920	AUE_GETPID	NOPROTO	{ pid_t getpid(void); }
9021	AUE_MOUNT	NOPROTO	{ int mount(char *type, char *path, \
91				    int flags, caddr_t data); }
9222	AUE_UMOUNT	NOPROTO	{ int unmount(char *path, int flags); }
9323	AUE_SETUID	NOPROTO	{ int setuid(uid_t uid); }
9424	AUE_GETUID	NOPROTO	{ uid_t getuid(void); }
9525	AUE_GETEUID	NOPROTO	{ uid_t geteuid(void); }
9626	AUE_PTRACE	NOPROTO	{ int ptrace(int req, pid_t pid, \
97				    caddr_t addr, int data); }
9827	AUE_RECVMSG	STD	{ int freebsd32_recvmsg(int s, struct msghdr32 *msg, \
99				    int flags); }
10028	AUE_SENDMSG	STD	{ int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
101				    int flags); }
10229	AUE_RECVFROM	STD	{ int freebsd32_recvfrom(int s, u_int32_t buf, \
103				    u_int32_t len, int flags, u_int32_t from, \
104				    u_int32_t fromlenaddr); }
10530	AUE_ACCEPT	NOPROTO	{ int accept(int s, caddr_t name, \
106				    int *anamelen); }
10731	AUE_GETPEERNAME	NOPROTO	{ int getpeername(int fdes, caddr_t asa, \
108				    int *alen); }
10932	AUE_GETSOCKNAME	NOPROTO	{ int getsockname(int fdes, caddr_t asa, \
110				    int *alen); }
11133	AUE_ACCESS	NOPROTO	{ int access(char *path, int flags); }
11234	AUE_CHFLAGS	NOPROTO	{ int chflags(char *path, int flags); }
11335	AUE_FCHFLAGS	NOPROTO	{ int fchflags(int fd, int flags); }
11436	AUE_SYNC	NOPROTO	{ int sync(void); }
11537	AUE_KILL	NOPROTO	{ int kill(int pid, int signum); }
11638	AUE_STAT	UNIMPL	ostat
11739	AUE_GETPPID	NOPROTO	{ pid_t getppid(void); }
11840	AUE_LSTAT	UNIMPL	olstat
11941	AUE_DUP		NOPROTO	{ int dup(u_int fd); }
12042	AUE_PIPE	NOPROTO	{ int pipe(void); }
12143	AUE_GETEGID	NOPROTO	{ gid_t getegid(void); }
12244	AUE_PROFILE	NOPROTO	{ int profil(caddr_t samples, size_t size, \
123				    size_t offset, u_int scale); }
12445	AUE_KTRACE	NOPROTO	{ int ktrace(const char *fname, int ops, \
125				    int facs, int pid); }
12646	AUE_SIGACTION	COMPAT	{ int freebsd32_sigaction( int signum, \
127				   struct osigaction32 *nsa, \
128				   struct osigaction32 *osa); }
12947	AUE_GETGID	NOPROTO	{ gid_t getgid(void); }
13048	AUE_SIGPROCMASK	COMPAT	{ int freebsd32_sigprocmask(int how, \
131				   osigset_t mask); }
13249	AUE_GETLOGIN	NOPROTO	{ int getlogin(char *namebuf, \
133				    u_int namelen); }
13450	AUE_SETLOGIN	NOPROTO	{ int setlogin(char *namebuf); }
13551	AUE_ACCT	NOPROTO	{ int acct(char *path); }
13652	AUE_SIGPENDING	COMPAT	{ int freebsd32_sigpending(void); }
13753	AUE_SIGALTSTACK	STD	{ int freebsd32_sigaltstack( \
138				    struct sigaltstack32 *ss, \
139				    struct sigaltstack32 *oss); }
14054	AUE_NULL	STD	{ int freebsd32_ioctl(int fd, uint32_t com, \
141				    struct md_ioctl32 *data); }
14255	AUE_REBOOT	NOPROTO	{ int reboot(int opt); }
14356	AUE_REVOKE	NOPROTO	{ int revoke(char *path); }
14457	AUE_SYMLINK	NOPROTO	{ int symlink(char *path, char *link); }
14558	AUE_READLINK	NOPROTO	{ ssize_t readlink(char *path, char *buf, \
146				    size_t count); }
14759	AUE_EXECVE	STD	{ int freebsd32_execve(char *fname, \
148				    u_int32_t *argv, u_int32_t *envv); }
14960	AUE_UMASK	NOPROTO	{ int umask(int newmask); } umask \
150				    umask_args int
15161	AUE_CHROOT	NOPROTO	{ int chroot(char *path); }
15262	AUE_FSTAT	OBSOL	ofstat
15363	AUE_NULL	OBSOL	ogetkerninfo
15464	AUE_NULL	OBSOL	ogetpagesize
15565	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
156				    int flags); }
15766	AUE_VFORK	NOPROTO	{ int vfork(void); }
15867	AUE_NULL	OBSOL	vread
15968	AUE_NULL	OBSOL	vwrite
16069	AUE_SBRK	NOPROTO	{ int sbrk(int incr); }
16170	AUE_SSTK	NOPROTO	{ int sstk(int incr); }
16271	AUE_MMAP	OBSOL	ommap
16372	AUE_O_VADVISE	NOPROTO	{ int ovadvise(int anom); } vadvise \
164				    ovadvise_args int
16573	AUE_MUNMAP	NOPROTO	{ int munmap(void *addr, size_t len); }
16674	AUE_MPROTECT	NOPROTO	{ int mprotect(const void *addr, \
167				    size_t len, int prot); }
16875	AUE_MADVISE	NOPROTO	{ int madvise(void *addr, size_t len, \
169				    int behav); }
17076	AUE_NULL	OBSOL	vhangup
17177	AUE_NULL	OBSOL	vlimit
17278	AUE_MINCORE	NOPROTO	{ int mincore(const void *addr, size_t len, \
173				    char *vec); }
17479	AUE_GETGROUPS	NOPROTO	{ int getgroups(u_int gidsetsize, \
175				    gid_t *gidset); }
17680	AUE_SETGROUPS	NOPROTO	{ int setgroups(u_int gidsetsize, \
177				    gid_t *gidset); }
17881	AUE_GETPGRP	NOPROTO	{ int getpgrp(void); }
17982	AUE_SETPGRP	NOPROTO	{ int setpgid(int pid, int pgid); }
18083	AUE_SETITIMER	STD	{ int freebsd32_setitimer(u_int which, \
181				    struct itimerval32 *itv, \
182				    struct itimerval32 *oitv); }
18384	AUE_NULL	OBSOL	owait
184; XXX implement
18585	AUE_SWAPON	NOPROTO	{ int swapon(char *name); }
18686	AUE_GETITIMER	STD	{ int freebsd32_getitimer(u_int which, \
187				    struct itimerval32 *itv); }
18887	AUE_O_GETHOSTNAME	OBSOL	ogethostname
18988	AUE_O_SETHOSTNAME	OBSOL	osethostname
19089	AUE_GETDTABLESIZE	NOPROTO	{ int getdtablesize(void); }
19190	AUE_DUP2	NOPROTO	{ int dup2(u_int from, u_int to); }
19291	AUE_NULL	UNIMPL	getdopt
19392	AUE_FCNTL	NOPROTO	{ int fcntl(int fd, int cmd, long arg); }
19493	AUE_SELECT	STD	{ int freebsd32_select(int nd, fd_set *in, \
195				    fd_set *ou, fd_set *ex, \
196				    struct timeval32 *tv); }
197; XXX need to override for big-endian - little-endian should work fine.
19894	AUE_NULL	UNIMPL	setdopt
19995	AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
20096	AUE_SETPRIORITY	NOPROTO	{ int setpriority(int which, int who, \
201				    int prio); }
20297	AUE_SOCKET	NOPROTO	{ int socket(int domain, int type, \
203				    int protocol); }
20498	AUE_CONNECT	NOPROTO	{ int connect(int s, caddr_t name, \
205				    int namelen); }
20699	AUE_NULL	OBSOL	oaccept
207100	AUE_GETPRIORITY	NOPROTO	{ int getpriority(int which, int who); }
208101	AUE_NULL	OBSOL	osend
209102	AUE_NULL	OBSOL	orecv
210103	AUE_NULL	OBSOL	osigreturn
211104	AUE_BIND	NOPROTO	{ int bind(int s, caddr_t name, \
212				    int namelen); }
213105	AUE_SETSOCKOPT	NOPROTO	{ int setsockopt(int s, int level, \
214				    int name, caddr_t val, int valsize); }
215106	AUE_LISTEN	NOPROTO	{ int listen(int s, int backlog); }
216107	AUE_NULL	OBSOL	vtimes
217108	AUE_O_SIGVEC	COMPAT	{ int freebsd32_sigvec(int signum, \
218				     struct sigvec32 *nsv, \
219				     struct sigvec32 *osv); }
220109	AUE_O_SIGBLOCK	COMPAT	{ int freebsd32_sigblock(int mask); }
221110	AUE_O_SIGSETMASK	COMPAT	{ int freebsd32_sigsetmask( int mask); }
222111	AUE_SIGSUSPEND	COMPAT	{ int freebsd32_sigsuspend( int mask); }
223112	AUE_O_SIGSTACK	COMPAT	{ int freebsd32_sigstack( \
224				     struct sigstack32 *nss, \
225				     struct sigstack32 *oss); }
226113	AUE_NULL	OBSOL	orecvmsg
227114	AUE_NULL	OBSOL	osendmsg
228115	AUE_NULL	OBSOL	vtrace
229116	AUE_GETTIMEOFDAY	STD	{ int freebsd32_gettimeofday( \
230				    struct timeval32 *tp, \
231				    struct timezone *tzp); }
232117	AUE_GETRUSAGE	STD	{ int freebsd32_getrusage(int who, \
233				    struct rusage32 *rusage); }
234118	AUE_GETSOCKOPT	NOPROTO	{ int getsockopt(int s, int level, \
235				    int name, caddr_t val, int *avalsize); }
236119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
237120	AUE_READV	STD	{ int freebsd32_readv(int fd, \
238				    struct iovec32 *iovp, u_int iovcnt); }
239121	AUE_WRITEV	STD	{ int freebsd32_writev(int fd, \
240				    struct iovec32 *iovp, u_int iovcnt); }
241122	AUE_SETTIMEOFDAY	STD	{ int freebsd32_settimeofday( \
242				    struct timeval32 *tv, \
243				    struct timezone *tzp); }
244123	AUE_FCHOWN	NOPROTO	{ int fchown(int fd, int uid, int gid); }
245124	AUE_FCHMOD	NOPROTO	{ int fchmod(int fd, int mode); }
246125	AUE_RECVFROM	OBSOL	orecvfrom
247126	AUE_SETREUID	NOPROTO	{ int setreuid(int ruid, int euid); }
248127	AUE_SETREGID	NOPROTO	{ int setregid(int rgid, int egid); }
249128	AUE_RENAME	NOPROTO	{ int rename(char *from, char *to); }
250129	AUE_TRUNCATE	OBSOL	otruncate
251130	AUE_FTRUNCATE	OBSOL	ftruncate
252131	AUE_FLOCK	NOPROTO	{ int flock(int fd, int how); }
253132	AUE_MKFIFO	NOPROTO	{ int mkfifo(char *path, int mode); }
254133	AUE_SENDTO	NOPROTO	{ int sendto(int s, caddr_t buf, \
255				    size_t len, int flags, caddr_t to, \
256				    int tolen); }
257134	AUE_SHUTDOWN	NOPROTO	{ int shutdown(int s, int how); }
258135	AUE_SOCKETPAIR	NOPROTO	{ int socketpair(int domain, int type, \
259				    int protocol, int *rsv); }
260136	AUE_MKDIR	NOPROTO	{ int mkdir(char *path, int mode); }
261137	AUE_RMDIR	NOPROTO	{ int rmdir(char *path); }
262138	AUE_UTIMES	STD	{ int freebsd32_utimes(char *path, \
263				    struct timeval32 *tptr); }
264139	AUE_NULL	OBSOL	4.2 sigreturn
265140	AUE_ADJTIME	STD	{ int freebsd32_adjtime( \
266				    struct timeval32 *delta, \
267				    struct timeval32 *olddelta); }
268141	AUE_GETPEERNAME	OBSOL	ogetpeername
269142	AUE_SYSCTL	OBSOL	ogethostid
270143	AUE_SYSCTL	OBSOL	sethostid
271144	AUE_GETRLIMIT	OBSOL	getrlimit
272145	AUE_SETRLIMIT	OBSOL	setrlimit
273146	AUE_KILLPG	OBSOL	killpg
274147	AUE_SETSID	NOPROTO	{ int setsid(void); }
275148	AUE_QUOTACTL	NOPROTO	{ int quotactl(char *path, int cmd, int uid, \
276				    caddr_t arg); }
277149	AUE_O_QUOTA	OBSOL oquota
278150	AUE_GETSOCKNAME	OBSOL ogetsockname
279
280; Syscalls 151-180 inclusive are reserved for vendor-specific
281; system calls.  (This includes various calls added for compatibity
282; with other Unix variants.)
283; Some of these calls are now supported by BSD...
284151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
285152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
286153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
287; 154 is initialised by the NLM code, if present.
288154	AUE_NULL	UNIMPL	nlm_syscall
289; 155 is initialized by the NFS code, if present.
290; XXX this is a problem!!!
291155	AUE_NFS_SVC	UNIMPL	nfssvc
292156	AUE_GETDIRENTRIES	OBSOL	ogetdirentries
293157	AUE_STATFS	COMPAT4	{ int freebsd32_statfs(char *path, \
294				    struct statfs32 *buf); }
295158	AUE_FSTATFS	COMPAT4	{ int freebsd32_fstatfs(int fd, \
296				    struct statfs32 *buf); }
297159	AUE_NULL	UNIMPL	nosys
298160	AUE_LGETFH	UNIMPL	lgetfh
299161	AUE_NFS_GETFH	NOPROTO	{ int getfh(char *fname, \
300				    struct fhandle *fhp); }
301162	AUE_NULL	OBSOL	getdomainname
302163	AUE_NULL	OBSOL	setdomainname
303164	AUE_NULL	OBSOL	uname
304165	AUE_SYSARCH	STD	{ int freebsd32_sysarch(int op, char *parms); }
305166	AUE_RTPRIO	NOPROTO	{ int rtprio(int function, pid_t pid, \
306				    struct rtprio *rtp); }
307167	AUE_NULL	UNIMPL	nosys
308168	AUE_NULL	UNIMPL	nosys
309169	AUE_SEMSYS	STD	{ int freebsd32_semsys(int which, int a2, \
310				    int a3, int a4, int a5); }
311170	AUE_MSGSYS	STD	{ int freebsd32_msgsys(int which, int a2, \
312				    int a3, int a4, int a5, int a6); }
313171	AUE_SHMSYS	STD	{ int freebsd32_shmsys(uint32_t which, uint32_t a2, \
314				    uint32_t a3, uint32_t a4); }
315172	AUE_NULL	UNIMPL	nosys
316173	AUE_PREAD	COMPAT6	{ ssize_t freebsd32_pread(int fd, void *buf, \
317				    size_t nbyte, int pad, \
318				    u_int32_t offsetlo, u_int32_t offsethi); }
319; XXX note - bigendian is different
320174	AUE_PWRITE	COMPAT6	{ ssize_t freebsd32_pwrite(int fd, \
321				    const void *buf, size_t nbyte, int pad, \
322				    u_int32_t offsetlo, u_int32_t offsethi); }
323; XXX note - bigendian is different
324175	AUE_NULL	UNIMPL	nosys
325176	AUE_NTP_ADJTIME	NOPROTO	{ int ntp_adjtime(struct timex *tp); }
326177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
327178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
328179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
329180	AUE_NULL	UNIMPL	nosys
330
331; Syscalls 181-199 are used by/reserved for BSD
332181	AUE_SETGID	NOPROTO	{ int setgid(gid_t gid); }
333182	AUE_SETEGID	NOPROTO	{ int setegid(gid_t egid); }
334183	AUE_SETEUID	NOPROTO	{ int seteuid(uid_t euid); }
335184	AUE_NULL	UNIMPL	lfs_bmapv
336185	AUE_NULL	UNIMPL	lfs_markv
337186	AUE_NULL	UNIMPL	lfs_segclean
338187	AUE_NULL	UNIMPL	lfs_segwait
339188	AUE_STAT	STD	{ int freebsd32_stat(char *path, \
340				    struct stat32 *ub); }
341189	AUE_FSTAT	STD	{ int freebsd32_fstat(int fd, \
342				    struct stat32 *ub); }
343190	AUE_LSTAT	STD	{ int freebsd32_lstat(char *path, \
344				    struct stat32 *ub); }
345191	AUE_PATHCONF	NOPROTO	{ int pathconf(char *path, int name); }
346192	AUE_FPATHCONF	NOPROTO	{ int fpathconf(int fd, int name); }
347193	AUE_NULL	UNIMPL	nosys
348194	AUE_GETRLIMIT	NOPROTO	{ int getrlimit(u_int which, \
349				    struct rlimit *rlp); } getrlimit \
350				    __getrlimit_args int
351195	AUE_SETRLIMIT	NOPROTO	{ int setrlimit(u_int which, \
352				    struct rlimit *rlp); } setrlimit \
353				    __setrlimit_args int
354196	AUE_GETDIRENTRIES	STD	{ int freebsd32_getdirentries(int fd, \
355				    char *buf, u_int count, int32_t *basep); }
356197	AUE_MMAP	COMPAT6	{ caddr_t freebsd32_mmap(caddr_t addr, \
357				    size_t len, int prot, int flags, int fd, \
358				    int pad, u_int32_t poslo, \
359				    u_int32_t poshi); }
360198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
361				    __syscall_args int
362; XXX note - bigendian is different
363199	AUE_LSEEK	COMPAT6	{ off_t freebsd32_lseek(int fd, int pad, \
364				    u_int32_t offsetlo, u_int32_t offsethi, \
365				    int whence); }
366; XXX note - bigendian is different
367200	AUE_TRUNCATE	COMPAT6	{ int freebsd32_truncate(char *path, \
368				    int pad, u_int32_t lengthlo, \
369				    u_int32_t lengthhi); }
370; XXX note - bigendian is different
371201	AUE_FTRUNCATE	COMPAT6	{ int freebsd32_ftruncate(int fd, int pad, \
372				    u_int32_t lengthlo, u_int32_t lengthhi); }
373202	AUE_SYSCTL	STD	{ int freebsd32_sysctl(int *name, \
374				    u_int namelen, void *old, \
375				    u_int32_t *oldlenp, void *new, \
376				    u_int32_t newlen); }
377203	AUE_MLOCK	NOPROTO	{ int mlock(const void *addr, \
378				    size_t len); }
379204	AUE_MUNLOCK	NOPROTO	{ int munlock(const void *addr, \
380				    size_t len); }
381205	AUE_UNDELETE	NOPROTO	{ int undelete(char *path); }
382206	AUE_FUTIMES	STD	{ int freebsd32_futimes(int fd, \
383				    struct timeval32 *tptr); }
384207	AUE_GETPGID	NOPROTO	{ int getpgid(pid_t pid); }
385208	AUE_NULL	UNIMPL	newreboot (NetBSD)
386209	AUE_POLL	NOPROTO	{ int poll(struct pollfd *fds, u_int nfds, \
387				    int timeout); }
388
389;
390; The following are reserved for loadable syscalls
391;
392210	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
393211	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
394212	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
395213	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
396214	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
397215	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
398216	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
399217	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
400218	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
401219	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
402
403;
404; The following were introduced with NetBSD/4.4Lite-2
405; They are initialized by thier respective modules/sysinits
406; XXX PROBLEM!!
407220	AUE_SEMCTL	COMPAT7	{ int freebsd32_semctl(int semid, int semnum, \
408				    int cmd, union semun32 *arg); }
409221	AUE_SEMGET	NOPROTO	{ int semget(key_t key, int nsems, \
410				    int semflg); }
411222	AUE_SEMOP	NOPROTO	{ int semop(int semid, struct sembuf *sops, \
412				    u_int nsops); }
413223	AUE_NULL	UNIMPL	semconfig
414224	AUE_MSGCTL	COMPAT7	{ int freebsd32_msgctl(int msqid, int cmd, \
415				    struct msqid_ds32_old *buf); }
416225	AUE_MSGGET	NOPROTO	{ int msgget(key_t key, int msgflg); }
417226	AUE_MSGSND	STD	{ int freebsd32_msgsnd(int msqid, void *msgp, \
418				    size_t msgsz, int msgflg); }
419227	AUE_MSGRCV	STD	{ int freebsd32_msgrcv(int msqid, void *msgp, \
420				    size_t msgsz, long msgtyp, int msgflg); }
421228	AUE_SHMAT	NOPROTO	{ int shmat(int shmid, void *shmaddr, \
422				    int shmflg); }
423229	AUE_SHMCTL	COMPAT7	{ int freebsd32_shmctl(int shmid, int cmd, \
424				    struct shmid_ds32_old *buf); }
425230	AUE_SHMDT	NOPROTO	{ int shmdt(void *shmaddr); }
426231	AUE_SHMGET	NOPROTO	{ int shmget(key_t key, int size, \
427				    int shmflg); }
428;
429232	AUE_NULL	STD 	{ int freebsd32_clock_gettime(clockid_t clock_id, \
430				    struct timespec32 *tp); }
431233	AUE_CLOCK_SETTIME	STD	{ int freebsd32_clock_settime(clockid_t clock_id, \
432				    const struct timespec32 *tp); }
433234	AUE_NULL	STD	{ int freebsd32_clock_getres(clockid_t clock_id, \
434				    struct timespec32 *tp); }
435235	AUE_NULL	UNIMPL	timer_create
436236	AUE_NULL	UNIMPL	timer_delete
437237	AUE_NULL	UNIMPL	timer_settime
438238	AUE_NULL	UNIMPL	timer_gettime
439239	AUE_NULL	UNIMPL	timer_getoverrun
440240	AUE_NULL	STD	{ int freebsd32_nanosleep( \
441				    const struct timespec32 *rqtp, \
442				    struct timespec32 *rmtp); }
443241	AUE_NULL	UNIMPL	nosys
444242	AUE_NULL	UNIMPL	nosys
445243	AUE_NULL	UNIMPL	nosys
446244	AUE_NULL	UNIMPL	nosys
447245	AUE_NULL	UNIMPL	nosys
448246	AUE_NULL	UNIMPL	nosys
449247	AUE_NULL	UNIMPL	nosys
450248	AUE_NULL	UNIMPL	ntp_gettime
451249	AUE_NULL	UNIMPL	nosys
452; syscall numbers initially used in OpenBSD
453250	AUE_MINHERIT	NOPROTO	{ int minherit(void *addr, size_t len, \
454				    int inherit); }
455251	AUE_RFORK	NOPROTO	{ int rfork(int flags); }
456252	AUE_POLL	NOPROTO	{ int openbsd_poll(struct pollfd *fds, \
457				    u_int nfds, int timeout); }
458253	AUE_ISSETUGID	NOPROTO	{ int issetugid(void); }
459254	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, int uid, int gid); }
460255	AUE_NULL	NOSTD	{ int freebsd32_aio_read( \
461				    struct aiocb32 *aiocbp); }
462256	AUE_NULL	NOSTD	{ int freebsd32_aio_write( \
463				    struct aiocb32 *aiocbp); }
464257	AUE_NULL	NOSTD	{ int freebsd32_lio_listio(int mode, \
465				    struct aiocb32 * const *acb_list, \
466				    int nent, struct sigevent *sig); }
467258	AUE_NULL	UNIMPL	nosys
468259	AUE_NULL	UNIMPL	nosys
469260	AUE_NULL	UNIMPL	nosys
470261	AUE_NULL	UNIMPL	nosys
471262	AUE_NULL	UNIMPL	nosys
472263	AUE_NULL	UNIMPL	nosys
473264	AUE_NULL	UNIMPL	nosys
474265	AUE_NULL	UNIMPL	nosys
475266	AUE_NULL	UNIMPL	nosys
476267	AUE_NULL	UNIMPL	nosys
477268	AUE_NULL	UNIMPL	nosys
478269	AUE_NULL	UNIMPL	nosys
479270	AUE_NULL	UNIMPL	nosys
480271	AUE_NULL	UNIMPL	nosys
481272	AUE_O_GETDENTS	NOPROTO	{ int getdents(int fd, char *buf, \
482				    size_t count); }
483273	AUE_NULL	UNIMPL	nosys
484274	AUE_LCHMOD	NOPROTO	{ int lchmod(char *path, mode_t mode); }
485275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
486				    gid_t gid); } netbsd_lchown \
487				    lchown_args int
488276	AUE_LUTIMES	STD	{ int freebsd32_lutimes(char *path, \
489				    struct timeval32 *tptr); }
490277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
491				    int flags); } netbsd_msync msync_args int
492278	AUE_STAT	NOPROTO	{ int nstat(char *path, struct nstat *ub); }
493279	AUE_FSTAT	NOPROTO	{ int nfstat(int fd, struct nstat *sb); }
494280	AUE_LSTAT	NOPROTO	{ int nlstat(char *path, struct nstat *ub); }
495281	AUE_NULL	UNIMPL	nosys
496282	AUE_NULL	UNIMPL	nosys
497283	AUE_NULL	UNIMPL	nosys
498284	AUE_NULL	UNIMPL	nosys
499285	AUE_NULL	UNIMPL	nosys
500286	AUE_NULL	UNIMPL	nosys
501287	AUE_NULL	UNIMPL	nosys
502288	AUE_NULL	UNIMPL	nosys
503; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
504289	AUE_PREADV	STD	{ ssize_t freebsd32_preadv(int fd, \
505					struct iovec32 *iovp, \
506					u_int iovcnt, off_t offset); }
507; XXX note - bigendian is different
508290	AUE_PWRITEV	STD	{ ssize_t freebsd32_pwritev(int fd, \
509					struct iovec32 *iovp, \
510					u_int iovcnt, off_t offset); }
511; XXX note - bigendian is different
512291	AUE_NULL	UNIMPL	nosys
513292	AUE_NULL	UNIMPL	nosys
514293	AUE_NULL	UNIMPL	nosys
515294	AUE_NULL	UNIMPL	nosys
516295	AUE_NULL	UNIMPL	nosys
517296	AUE_NULL	UNIMPL	nosys
518; XXX 297 is 300 in NetBSD 
519297	AUE_FHSTATFS	COMPAT4	{ int freebsd32_fhstatfs( \
520				    const struct fhandle *u_fhp, \
521				    struct statfs32 *buf); }
522298	AUE_FHOPEN	NOPROTO	{ int fhopen(const struct fhandle *u_fhp, \
523			 	    int flags); }
524299	AUE_FHSTAT	NOPROTO	{ int fhstat(const struct fhandle *u_fhp, \
525				    struct stat *sb); }
526; syscall numbers for FreeBSD
527300	AUE_NULL	NOPROTO	{ int modnext(int modid); }
528301	AUE_NULL	STD	{ int freebsd32_modstat(int modid, \
529				    struct module_stat32* stat); }
530302	AUE_NULL	NOPROTO	{ int modfnext(int modid); }
531303	AUE_NULL	NOPROTO	{ int modfind(const char *name); }
532304	AUE_MODLOAD	NOPROTO	{ int kldload(const char *file); }
533305	AUE_MODUNLOAD	NOPROTO	{ int kldunload(int fileid); }
534306	AUE_NULL	NOPROTO	{ int kldfind(const char *file); }
535307	AUE_NULL	NOPROTO	{ int kldnext(int fileid); }
536308	AUE_NULL	NOPROTO	{ int kldstat(int fileid, \
537				    struct kld_file_stat* stat); }
538309	AUE_NULL	NOPROTO	{ int kldfirstmod(int fileid); }
539310	AUE_GETSID	NOPROTO	{ int getsid(pid_t pid); }
540311	AUE_SETRESUID	NOPROTO	{ int setresuid(uid_t ruid, uid_t euid, \
541				    uid_t suid); }
542312	AUE_SETRESGID	NOPROTO	{ int setresgid(gid_t rgid, gid_t egid, \
543				    gid_t sgid); }
544313	AUE_NULL	OBSOL	signanosleep
545314	AUE_NULL	NOSTD	{ int freebsd32_aio_return( \
546				    struct aiocb32 *aiocbp); }
547315	AUE_NULL	NOSTD	{ int freebsd32_aio_suspend( \
548				    struct aiocb32 * const * aiocbp, int nent, \
549				    const struct timespec32 *timeout); }
550316	AUE_NULL	NOSTD	{ int freebsd32_aio_cancel(int fd, \
551				    struct aiocb32 *aiocbp); }
552317	AUE_NULL	NOSTD	{ int freebsd32_aio_error( \
553				    struct aiocb32 *aiocbp); }
554318	AUE_NULL	NOSTD	{ int freebsd32_oaio_read( \
555				    struct oaiocb32 *aiocbp); }
556319	AUE_NULL	NOSTD	{ int freebsd32_oaio_write( \
557				    struct oaiocb32 *aiocbp); }
558320	AUE_NULL	NOSTD	{ int freebsd32_olio_listio(int mode, \
559				    struct oaiocb32 * const *acb_list, \
560				    int nent, struct osigevent32 *sig); }
561321	AUE_NULL	NOPROTO	{ int yield(void); }
562322	AUE_NULL	OBSOL	thr_sleep
563323	AUE_NULL	OBSOL	thr_wakeup
564324	AUE_MLOCKALL	NOPROTO	{ int mlockall(int how); }
565325	AUE_MUNLOCKALL	NOPROTO	{ int munlockall(void); }
566326	AUE_GETCWD	NOPROTO	{ int __getcwd(u_char *buf, u_int buflen); }
567
568327	AUE_NULL	NOPROTO	{ int sched_setparam (pid_t pid, \
569				    const struct sched_param *param); }
570328	AUE_NULL	NOPROTO	{ int sched_getparam (pid_t pid, \
571				    struct sched_param *param); }
572
573329	AUE_NULL	NOPROTO	{ int sched_setscheduler (pid_t pid, \
574				    int policy, \
575				    const struct sched_param *param); }
576330	AUE_NULL	NOPROTO	{ int sched_getscheduler (pid_t pid); }
577
578331	AUE_NULL	NOPROTO	{ int sched_yield (void); }
579332	AUE_NULL	NOPROTO	{ int sched_get_priority_max (int policy); }
580333	AUE_NULL	NOPROTO	{ int sched_get_priority_min (int policy); }
581334	AUE_NULL	NOPROTO	{ int sched_rr_get_interval (pid_t pid, \
582				    struct timespec *interval); }
583335	AUE_NULL	NOPROTO	{ int utrace(const void *addr, size_t len); }
584; XXX note - bigendian is different
585336	AUE_SENDFILE	COMPAT4	{ int freebsd32_sendfile(int fd, int s, \
586				    u_int32_t offsetlo, u_int32_t offsethi, \
587				    size_t nbytes, struct sf_hdtr32 *hdtr, \
588				    off_t *sbytes, int flags); }
589337	AUE_NULL	NOPROTO	{ int kldsym(int fileid, int cmd, \
590				    void *data); }
591338	AUE_JAIL	STD	{ int freebsd32_jail(struct jail32 *jail); }
592339	AUE_NULL	UNIMPL	pioctl
593340	AUE_SIGPROCMASK	NOPROTO	{ int sigprocmask(int how, \
594				    const sigset_t *set, sigset_t *oset); }
595341	AUE_SIGSUSPEND	NOPROTO	{ int sigsuspend(const sigset_t *sigmask); }
596342	AUE_SIGACTION	COMPAT4	{ int freebsd32_sigaction(int sig, \
597				    struct sigaction32 *act, \
598				    struct sigaction32 *oact); }
599343	AUE_SIGPENDING	NOPROTO	{ int sigpending(sigset_t *set); }
600344	AUE_SIGRETURN	COMPAT4	{ int freebsd32_sigreturn( \
601		    const struct freebsd4_freebsd32_ucontext *sigcntxp); }
602345	AUE_SIGWAIT	STD	{ int freebsd32_sigtimedwait(const sigset_t *set, \
603				    siginfo_t *info, \
604				    const struct timespec *timeout); }
605346	AUE_NULL	STD	{ int freebsd32_sigwaitinfo(const sigset_t *set, \
606				    siginfo_t *info); }
607347	AUE_NULL	NOPROTO	{ int __acl_get_file(const char *path, \
608				    acl_type_t type, struct acl *aclp); }
609348	AUE_NULL	NOPROTO	{ int __acl_set_file(const char *path, \
610				    acl_type_t type, struct acl *aclp); }
611349	AUE_NULL	NOPROTO	{ int __acl_get_fd(int filedes, \
612				    acl_type_t type, struct acl *aclp); }
613350	AUE_NULL	NOPROTO	{ int __acl_set_fd(int filedes, \
614				    acl_type_t type, struct acl *aclp); }
615351	AUE_NULL	NOPROTO	{ int __acl_delete_file(const char *path, \
616				    acl_type_t type); }
617352	AUE_NULL	NOPROTO	{ int __acl_delete_fd(int filedes, \
618				    acl_type_t type); }
619353	AUE_NULL	NOPROTO	{ int __acl_aclcheck_file(const char *path, \
620				    acl_type_t type, struct acl *aclp); }
621354	AUE_NULL	NOPROTO	{ int __acl_aclcheck_fd(int filedes, \
622				    acl_type_t type, struct acl *aclp); }
623355	AUE_EXTATTRCTL	NOPROTO	{ int extattrctl(const char *path, int cmd, \
624				    const char *filename, int attrnamespace, \
625				    const char *attrname); }
626356	AUE_EXTATTR_SET_FILE	NOPROTO	{ int extattr_set_file( \
627				    const char *path, int attrnamespace, \
628				    const char *attrname, void *data, \
629				    size_t nbytes); }
630357	AUE_EXTATTR_GET_FILE	NOPROTO	{ ssize_t extattr_get_file( \
631				    const char *path, int attrnamespace, \
632				    const char *attrname, void *data, \
633				    size_t nbytes); }
634358	AUE_EXTATTR_DELETE_FILE	NOPROTO	{ int extattr_delete_file( \
635				    const char *path, int attrnamespace, \
636				    const char *attrname); }
637359	AUE_NULL	NOSTD	{ int freebsd32_aio_waitcomplete( \
638				    struct aiocb32 **aiocbp, \
639				    struct timespec32 *timeout); }
640360	AUE_GETRESUID	NOPROTO	{ int getresuid(uid_t *ruid, uid_t *euid, \
641				    uid_t *suid); }
642361	AUE_GETRESGID	NOPROTO	{ int getresgid(gid_t *rgid, gid_t *egid, \
643				    gid_t *sgid); }
644362	AUE_KQUEUE	NOPROTO	{ int kqueue(void); }
645363	AUE_NULL	STD	{ int freebsd32_kevent(int fd, \
646				    const struct kevent32 *changelist, \
647				    int nchanges, \
648				    struct kevent32 *eventlist, int nevents, \
649				    const struct timespec32 *timeout); }
650364	AUE_NULL	UNIMPL	__cap_get_proc
651365	AUE_NULL	UNIMPL	__cap_set_proc
652366	AUE_NULL	UNIMPL	__cap_get_fd
653367	AUE_NULL	UNIMPL	__cap_get_file
654368	AUE_NULL	UNIMPL	__cap_set_fd
655369	AUE_NULL	UNIMPL	__cap_set_file
656370	AUE_NULL	UNIMPL	nosys
657371	AUE_EXTATTR_SET_FD	NOPROTO	{ int extattr_set_fd(int fd, \
658				    int attrnamespace, const char *attrname, \
659				    void *data, size_t nbytes); }
660372	AUE_EXTATTR_GET_FD	NOPROTO	{ ssize_t extattr_get_fd(int fd, \
661				    int attrnamespace, const char *attrname, \
662				    void *data, size_t nbytes); }
663373	AUE_EXTATTR_DELETE_FD	NOPROTO	{ int extattr_delete_fd(int fd, \
664				    int attrnamespace, \
665				    const char *attrname); }
666374	AUE_NULL	NOPROTO	{ int __setugid(int flag); }
667375	AUE_NULL	UNIMPL	nfsclnt
668376	AUE_EACCESS	NOPROTO	{ int eaccess(char *path, int flags); }
669377	AUE_NULL	UNIMPL	afs_syscall
670378	AUE_NMOUNT	STD	{ int freebsd32_nmount(struct iovec32 *iovp, \
671				    unsigned int iovcnt, int flags); }
672379	AUE_NULL	UNIMPL	kse_exit
673380	AUE_NULL	UNIMPL	kse_wakeup
674381	AUE_NULL	UNIMPL	kse_create
675382	AUE_NULL	UNIMPL	kse_thr_interrupt
676383	AUE_NULL	UNIMPL	kse_release
677384	AUE_NULL	UNIMPL	__mac_get_proc
678385	AUE_NULL	UNIMPL	__mac_set_proc
679386	AUE_NULL	UNIMPL	__mac_get_fd
680387	AUE_NULL	UNIMPL	__mac_get_file
681388	AUE_NULL	UNIMPL	__mac_set_fd
682389	AUE_NULL	UNIMPL	__mac_set_file
683390	AUE_NULL	NOPROTO	{ int kenv(int what, const char *name, \
684				    char *value, int len); }
685391	AUE_LCHFLAGS	NOPROTO	{ int lchflags(const char *path, int flags); }
686392	AUE_NULL	NOPROTO	{ int uuidgen(struct uuid *store, \
687				    int count); }
688393	AUE_SENDFILE	STD	{ int freebsd32_sendfile(int fd, int s, \
689				    u_int32_t offsetlo, u_int32_t offsethi, \
690				    size_t nbytes, struct sf_hdtr32 *hdtr, \
691				    off_t *sbytes, int flags); }
692394	AUE_NULL	UNIMPL	mac_syscall
693395	AUE_GETFSSTAT	NOPROTO	{ int getfsstat(struct statfs *buf, \
694				    long bufsize, int flags); }
695396	AUE_STATFS	NOPROTO	{ int statfs(char *path, \
696				    struct statfs *buf); }
697397	AUE_FSTATFS	NOPROTO	{ int fstatfs(int fd, struct statfs *buf); }
698398	AUE_FHSTATFS	NOPROTO	{ int fhstatfs(const struct fhandle *u_fhp, \
699				    struct statfs *buf); }
700399	AUE_NULL	UNIMPL	nosys
701; XXX implement these?
702400	AUE_NULL	UNIMPL	ksem_close
703401	AUE_NULL	UNIMPL	ksem_post
704402	AUE_NULL	UNIMPL	ksem_wait
705403	AUE_NULL	UNIMPL	ksem_trywait
706404	AUE_NULL	UNIMPL	ksem_init
707405	AUE_NULL	UNIMPL	ksem_open
708406	AUE_NULL	UNIMPL	ksem_unlink
709407	AUE_NULL	UNIMPL	ksem_getvalue
710408	AUE_NULL	UNIMPL	ksem_destroy
711409	AUE_NULL	UNIMPL	__mac_get_pid
712410	AUE_NULL	UNIMPL	__mac_get_link
713411	AUE_NULL	UNIMPL	__mac_set_link
714412	AUE_EXTATTR_SET_LINK	NOPROTO	{ int extattr_set_link( \
715				    const char *path, int attrnamespace, \
716				    const char *attrname, void *data, \
717				    size_t nbytes); }
718413	AUE_EXTATTR_GET_LINK	NOPROTO	{ ssize_t extattr_get_link( \
719				    const char *path, int attrnamespace, \
720				    const char *attrname, void *data, \
721				    size_t nbytes); }
722414	AUE_EXTATTR_DELETE_LINK	NOPROTO	{ int extattr_delete_link( \
723				    const char *path, int attrnamespace, \
724				    const char *attrname); }
725415	AUE_NULL	UNIMPL	__mac_execve
726416	AUE_SIGACTION	STD	{ int freebsd32_sigaction(int sig, \
727				    struct sigaction32 *act, \
728				    struct sigaction32 *oact); }
729417	AUE_SIGRETURN	STD	{ int freebsd32_sigreturn( \
730		    const struct freebsd32_ucontext *sigcntxp); }
731418	AUE_NULL	UNIMPL	__xstat
732419	AUE_NULL	UNIMPL	__xfstat
733420	AUE_NULL	UNIMPL	__xlstat
734421	AUE_NULL	STD	{ int freebsd32_getcontext( \
735				    struct freebsd32_ucontext *ucp); }
736422	AUE_NULL	STD	{ int freebsd32_setcontext( \
737				    const struct freebsd32_ucontext *ucp); }
738423	AUE_NULL	STD	{ int freebsd32_swapcontext( \
739				    struct freebsd32_ucontext *oucp, \
740				    const struct freebsd32_ucontext *ucp); }
741424	AUE_SWAPOFF	UNIMPL	swapoff
742425	AUE_NULL	NOPROTO	{ int __acl_get_link(const char *path, \
743				    acl_type_t type, struct acl *aclp); }
744426	AUE_NULL	NOPROTO	{ int __acl_set_link(const char *path, \
745				    acl_type_t type, struct acl *aclp); }
746427	AUE_NULL	NOPROTO	{ int __acl_delete_link(const char *path, \
747				    acl_type_t type); }
748428	AUE_NULL	NOPROTO	{ int __acl_aclcheck_link(const char *path, \
749				    acl_type_t type, struct acl *aclp); }
750429	AUE_SIGWAIT	NOPROTO	{ int sigwait(const sigset_t *set, \
751				    int *sig); }
752430	AUE_NULL	UNIMPL	thr_create;
753431	AUE_NULL	NOPROTO	{ void thr_exit(long *state); }
754432	AUE_NULL	NOPROTO	{ int thr_self(long *id); }
755433	AUE_NULL	NOPROTO	{ int thr_kill(long id, int sig); }
756434	AUE_NULL	STD	{ int freebsd32_umtx_lock(struct umtx *umtx); }
757435	AUE_NULL	STD	{ int freebsd32_umtx_unlock(struct umtx *umtx); }
758436	AUE_NULL	NOPROTO	{ int jail_attach(int jid); }
759437	AUE_EXTATTR_LIST_FD	NOPROTO	{ ssize_t extattr_list_fd(int fd, \
760				    int attrnamespace, void *data, \
761				    size_t nbytes); }
762438	AUE_EXTATTR_LIST_FILE	NOPROTO	{ ssize_t extattr_list_file( \
763				    const char *path, int attrnamespace, \
764				    void *data, size_t nbytes); }
765439	AUE_EXTATTR_LIST_LINK	NOPROTO	{ ssize_t extattr_list_link( \
766				    const char *path, int attrnamespace, \
767				    void *data, size_t nbytes); }
768440	AUE_NULL	UNIMPL	kse_switchin
769441	AUE_NULL	UNIMPL	ksem_timedwait
770442	AUE_NULL	STD	{ int freebsd32_thr_suspend( \
771				    const struct timespec32 *timeout); }
772443	AUE_NULL	NOPROTO	{ int thr_wake(long id); }
773444	AUE_MODUNLOAD	NOPROTO	{ int kldunloadf(int fileid, int flags); }
774445	AUE_AUDIT	NOPROTO	{ int audit(const void *record, \
775				    u_int length); }
776446	AUE_AUDITON	NOPROTO	{ int auditon(int cmd, void *data, \
777				    u_int length); }
778447	AUE_GETAUID	NOPROTO	{ int getauid(uid_t *auid); }
779448	AUE_SETAUID	NOPROTO	{ int setauid(uid_t *auid); }
780449	AUE_GETAUDIT	NOPROTO	{ int getaudit(struct auditinfo *auditinfo); }
781450	AUE_SETAUDIT	NOPROTO	{ int setaudit(struct auditinfo *auditinfo); }
782451	AUE_GETAUDIT_ADDR	NOPROTO	{ int getaudit_addr( \
783				    struct auditinfo_addr *auditinfo_addr, \
784				    u_int length); }
785452	AUE_SETAUDIT_ADDR	NOPROTO	{ int setaudit_addr( \
786				    struct auditinfo_addr *auditinfo_addr, \
787				    u_int length); }
788453	AUE_AUDITCTL	NOPROTO	{ int auditctl(char *path); }
789454	AUE_NULL	STD	{ int freebsd32_umtx_op(void *obj, int op,\
790				    u_long val, void *uaddr, \
791				    void *uaddr2); }
792455	AUE_NULL	STD	{ int freebsd32_thr_new(	\
793				    struct thr_param32 *param,	\
794				    int param_size); }
795456	AUE_NULL	NOPROTO	{ int sigqueue(pid_t pid, int signum, \
796				    void *value); }
797457	AUE_NULL	UNIMPL	kmq_open
798458	AUE_NULL	UNIMPL	kmq_setattr
799459	AUE_NULL	UNIMPL	kmq_timedreceive
800460	AUE_NULL	UNIMPL  kmq_timedsend
801461	AUE_NULL	UNIMPL	kmq_notify
802462	AUE_NULL	UNIMPL	kmq_unlink
803463	AUE_NULL	NOPROTO	{ int abort2(const char *why, int nargs, void **args); }
804464	AUE_NULL 	NOPROTO	{ int thr_set_name(long id, const char *name); }
805465	AUE_NULL	NOSTD	{ int freebsd32_aio_fsync(int op, \
806				    struct aiocb32 *aiocbp); }
807466	AUE_RTPRIO	NOPROTO	{ int rtprio_thread(int function, \
808				    lwpid_t lwpid, struct rtprio *rtp); }
809467	AUE_NULL	UNIMPL	nosys
810468	AUE_NULL	UNIMPL	nosys
811469	AUE_NULL	UNIMPL	__getpath_fromfd
812470	AUE_NULL	UNIMPL	__getpath_fromaddr
813471	AUE_NULL	NOPROTO	{ int sctp_peeloff(int sd, uint32_t name); }
814472	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
815				    caddr_t to, __socklen_t tolen, \
816				    struct sctp_sndrcvinfo *sinfo, int flags); }
817473	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
818				    caddr_t to, __socklen_t tolen, \
819				    struct sctp_sndrcvinfo *sinfo, int flags); }
820474	AUE_NULL	NOPROTO	{ int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
821				    struct sockaddr * from, __socklen_t *fromlenaddr, \
822				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
823475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
824				    void *buf,size_t nbyte, \
825				    u_int32_t offsetlo, u_int32_t offsethi); }
826476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
827				    const void *buf, size_t nbyte, \
828				    u_int32_t offsetlo, u_int32_t offsethi); }
829477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
830				    size_t len, int prot, int flags, int fd, \
831				    u_int32_t poslo, u_int32_t poshi); }
832478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
833				    u_int32_t offsetlo, u_int32_t offsethi, \
834				    int whence); }
835479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
836				    u_int32_t lengthlo, u_int32_t lengthhi); }
837480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
838				    u_int32_t lengthlo, u_int32_t lengthhi); }
839481	AUE_KILL	NOPROTO	{ int thr_kill2(pid_t pid, long id, int sig); }
840482	AUE_SHMOPEN	NOPROTO	{ int shm_open(const char *path, int flags, \
841				    mode_t mode); }
842483	AUE_SHMUNLINK	NOPROTO	{ int shm_unlink(const char *path); }
843484	AUE_NULL	NOPROTO	{ int cpuset(cpusetid_t *setid); }
844485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
845				    uint32_t idlo, uint32_t idhi, \
846				    cpusetid_t setid); }
847486	AUE_NULL	STD	{ int freebsd32_cpuset_getid(cpulevel_t level, \
848				    cpuwhich_t which, \
849				    uint32_t idlo, uint32_t idhi, \
850				    cpusetid_t *setid); }
851487	AUE_NULL	STD	{ int freebsd32_cpuset_getaffinity( \
852				    cpulevel_t level, cpuwhich_t which, \
853				    uint32_t idlo, uint32_t idhi, \
854				    size_t cpusetsize, \
855				    cpuset_t *mask); }
856488	AUE_NULL	STD	{ int freebsd32_cpuset_setaffinity( \
857				    cpulevel_t level, cpuwhich_t which, \
858				    uint32_t idlo, uint32_t idhi, \
859				    size_t cpusetsize, \
860				    const cpuset_t *mask); }
861489	AUE_FACCESSAT	NOPROTO	{ int faccessat(int fd, char *path, int mode, \
862				    int flag); }
863490	AUE_FCHMODAT	NOPROTO	{ int fchmodat(int fd, const char *path, \
864				    mode_t mode, int flag); }
865491	AUE_FCHOWNAT	NOPROTO	{ int fchownat(int fd, char *path, uid_t uid, \
866				    gid_t gid, int flag); }
867492	AUE_FEXECVE	STD	{ int freebsd32_fexecve(int fd, \
868				    u_int32_t *argv, u_int32_t *envv); }
869493	AUE_FSTATAT	STD	{ int freebsd32_fstatat(int fd, char *path, \
870				    struct stat *buf, int flag); }
871494	AUE_FUTIMESAT	STD	{ int freebsd32_futimesat(int fd, char *path, \
872				    struct timeval *times); }
873495	AUE_LINKAT	NOPROTO	{ int linkat(int fd1, char *path1, int fd2, \
874				    char *path2, int flag); }
875496	AUE_MKDIRAT	NOPROTO	{ int mkdirat(int fd, char *path, \
876				    mode_t mode); }
877497	AUE_MKFIFOAT	NOPROTO	{ int mkfifoat(int fd, char *path, \
878				    mode_t mode); }
879498	AUE_MKNODAT	NOPROTO	{ int mknodat(int fd, char *path, \
880				    mode_t mode, dev_t dev); }
881499	AUE_OPENAT_RWTC	NOPROTO	{ int openat(int fd, char *path, int flag, \
882				    mode_t mode); }
883500	AUE_READLINKAT	NOPROTO	{ int readlinkat(int fd, char *path, char *buf, \
884				    size_t bufsize); }
885501	AUE_RENAMEAT	NOPROTO	{ int renameat(int oldfd, char *old, int newfd, \
886				    const char *new); }
887502	AUE_SYMLINKAT	NOPROTO	{ int symlinkat(char *path1, int fd, \
888				    char *path2); }
889503	AUE_UNLINKAT	NOPROTO	{ int unlinkat(int fd, char *path, \
890				    int flag); }
891504	AUE_POSIX_OPENPT	NOPROTO	{ int posix_openpt(int flags); }
892; 505 is initialised by the kgssapi code, if present.
893505	AUE_NULL	UNIMPL	gssd_syscall
894506	AUE_NULL	STD	{ int freebsd32_jail_get(struct iovec32 *iovp, \
895				    unsigned int iovcnt, int flags); }
896507	AUE_NULL	STD	{ int freebsd32_jail_set(struct iovec32 *iovp, \
897				    unsigned int iovcnt, int flags); }
898508	AUE_NULL	NOPROTO	{ int jail_remove(int jid); }
899509	AUE_CLOSEFROM	NOPROTO	{ int closefrom(int lowfd); }
900510	AUE_SEMCTL	STD { int freebsd32_semctl(int semid, int semnum, \
901				    int cmd, union semun32 *arg); }
902511	AUE_MSGCTL	STD	{ int freebsd32_msgctl(int msqid, int cmd, \
903				    struct msqid_ds32 *buf); }
904512	AUE_SHMCTL	STD	{ int freebsd32_shmctl(int shmid, int cmd, \
905				    struct shmid_ds32 *buf); }
906513	AUE_LPATHCONF	NOPROTO	{ int lpathconf(char *path, int name); }
907514	AUE_CAP_NEW	UNIMPL	cap_new
908515	AUE_CAP_GETRIGHTS	UNIMPL	cap_getrights
909516	AUE_CAP_ENTER	UNIMPL	cap_enter
910517	AUE_CAP_GETMODE	UNIMPL	cap_getmode
911518	AUE_PDFORK	UNIMPL	pdfork
912519	AUE_PDKILL	UNIMPL	pdkill
913520	AUE_PDGETPID	UNIMPL	pdgetpid
914521	AUE_PDWAIT	UNIMPL	pdwait
915522	AUE_SELECT	STD	{ int freebsd32_pselect(int nd, fd_set *in, \
916				    fd_set *ou, fd_set *ex, \
917				    const struct timespec32 *ts, \
918				    const sigset_t *sm); }
919