syscalls.master revision 239296
1 $FreeBSD: head/sys/compat/freebsd32/syscalls.master 239296 2012-08-15 15:17:56Z kib $
2;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
3;	from: src/sys/kern/syscalls.master 1.107
4;
5; System call name/number master file.
6; Processed to created init_sysent.c, syscalls.c and syscall.h.
7
8; Columns: number audit type name alt{name,tag,rtyp}/comments
9;	number	system call number, must be in order
10;	audit	the audit event associated with the system call
11;		A value of AUE_NULL means no auditing, but it also means that
12;		there is no audit event for the call at this time. For the
13;		case where the event exists, but we don't want auditing, the
14;		event should be #defined to AUE_NULL in audit_kevents.h.
15;	type	one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
16;		COMPAT7, NODEF, NOARGS, NOPROTO, NOSTD
17;		The COMPAT* options may be combined with one or more NO*
18;		options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
19;	name	psuedo-prototype of syscall routine
20;		If one of the following alts is different, then all appear:
21;	altname	name of system call if different
22;	alttag	name of args struct tag if different from [o]`name'"_args"
23;	altrtyp	return type if not int (bogus - syscalls always return int)
24;		for UNIMPL/OBSOL, name continues with comments
25
26; types:
27;	STD	always included
28;	COMPAT	included on COMPAT #ifdef
29;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
30;	COMPAT6	included on COMPAT6 #ifdef (FreeBSD 6 compat)
31;	COMPAT7	included on COMPAT7 #ifdef (FreeBSD 7 compat)
32;	OBSOL	obsolete, not included in system, only specifies name
33;	UNIMPL	not implemented, placeholder only
34;	NOSTD	implemented but as a lkm that can be statically
35;		compiled in; sysent entry will be filled with lkmressys
36;		so the SYSCALL_MODULE macro works
37;	NOARGS	same as STD except do not create structure in sys/sysproto.h
38;	NODEF	same as STD except only have the entry in the syscall table
39;		added.  Meaning - do not create structure or function
40;		prototype in sys/sysproto.h
41;	NOPROTO	same as STD except do not create structure or
42;		function prototype in sys/sysproto.h.  Does add a
43;		definition to syscall.h besides adding a sysent.
44
45; #ifdef's, etc. may be included, and are copied to the output files.
46
47#include <sys/param.h>
48#include <sys/sysent.h>
49#include <sys/sysproto.h>
50#include <sys/mount.h>
51#include <sys/socket.h>
52#include <compat/freebsd32/freebsd32.h>
53#include <compat/freebsd32/freebsd32_proto.h>
54
55#if !defined(PAD64_REQUIRED) && (defined(__powerpc__) || defined(__mips__))
56#define PAD64_REQUIRED
57#endif
58
59; Reserved/unimplemented system calls in the range 0-150 inclusive
60; are reserved for use in future Berkeley releases.
61; Additional system calls implemented in vendor and other
62; redistributions should be placed in the reserved range at the end
63; of the current calls.
64
650	AUE_NULL	NOPROTO	{ int nosys(void); } syscall nosys_args int
661	AUE_EXIT	NOPROTO	{ void sys_exit(int rval); } exit \
67				    sys_exit_args void
682	AUE_FORK	NOPROTO	{ int fork(void); }
693	AUE_READ	NOPROTO	{ ssize_t read(int fd, void *buf, \
70				    size_t nbyte); }
714	AUE_WRITE	NOPROTO	{ ssize_t write(int fd, const void *buf, \
72				    size_t nbyte); }
735	AUE_OPEN_RWTC	NOPROTO	{ int open(char *path, int flags, \
74				    int mode); }
756	AUE_CLOSE	NOPROTO	{ int close(int fd); }
767	AUE_WAIT4	STD	{ int freebsd32_wait4(int pid, int *status, \
77				    int options, struct rusage32 *rusage); }
788	AUE_CREAT	OBSOL	old creat
799	AUE_LINK	NOPROTO	{ int link(char *path, char *link); }
8010	AUE_UNLINK	NOPROTO	{ int unlink(char *path); }
8111	AUE_NULL	OBSOL	execv
8212	AUE_CHDIR	NOPROTO	{ int chdir(char *path); }
8313	AUE_FCHDIR	NOPROTO	{ int fchdir(int fd); }
8414	AUE_MKNOD	NOPROTO	{ int mknod(char *path, int mode, int dev); }
8515	AUE_CHMOD	NOPROTO	{ int chmod(char *path, int mode); }
8616	AUE_CHOWN	NOPROTO	{ int chown(char *path, int uid, int gid); }
8717	AUE_NULL	NOPROTO	{ int obreak(char *nsize); } break \
88				    obreak_args int
8918	AUE_GETFSSTAT	COMPAT4	{ int freebsd32_getfsstat( \
90				    struct statfs32 *buf, long bufsize, \
91				    int flags); }
9219	AUE_LSEEK	COMPAT	{ int freebsd32_lseek(int fd, int offset, \
93				    int whence); }
9420	AUE_GETPID	NOPROTO	{ pid_t getpid(void); }
9521	AUE_MOUNT	NOPROTO	{ int mount(char *type, char *path, \
96				    int flags, caddr_t data); }
9722	AUE_UMOUNT	NOPROTO	{ int unmount(char *path, int flags); }
9823	AUE_SETUID	NOPROTO	{ int setuid(uid_t uid); }
9924	AUE_GETUID	NOPROTO	{ uid_t getuid(void); }
10025	AUE_GETEUID	NOPROTO	{ uid_t geteuid(void); }
10126	AUE_PTRACE	NOPROTO	{ int ptrace(int req, pid_t pid, \
102				    caddr_t addr, int data); }
10327	AUE_RECVMSG	STD	{ int freebsd32_recvmsg(int s, struct msghdr32 *msg, \
104				    int flags); }
10528	AUE_SENDMSG	STD	{ int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
106				    int flags); }
10729	AUE_RECVFROM	STD	{ int freebsd32_recvfrom(int s, uint32_t buf, \
108				    uint32_t len, int flags, uint32_t from, \
109				    uint32_t fromlenaddr); }
11030	AUE_ACCEPT	NOPROTO	{ int accept(int s, caddr_t name, \
111				    int *anamelen); }
11231	AUE_GETPEERNAME	NOPROTO	{ int getpeername(int fdes, caddr_t asa, \
113				    int *alen); }
11432	AUE_GETSOCKNAME	NOPROTO	{ int getsockname(int fdes, caddr_t asa, \
115				    int *alen); }
11633	AUE_ACCESS	NOPROTO	{ int access(char *path, int amode); }
11734	AUE_CHFLAGS	NOPROTO	{ int chflags(char *path, int flags); }
11835	AUE_FCHFLAGS	NOPROTO	{ int fchflags(int fd, int flags); }
11936	AUE_SYNC	NOPROTO	{ int sync(void); }
12037	AUE_KILL	NOPROTO	{ int kill(int pid, int signum); }
12138	AUE_STAT	COMPAT	{ int freebsd32_stat(char *path, \
122				    struct ostat32 *ub); }
12339	AUE_GETPPID	NOPROTO	{ pid_t getppid(void); }
12440	AUE_LSTAT	COMPAT	{ int freebsd32_lstat(char *path, \
125				    struct ostat *ub); }
12641	AUE_DUP		NOPROTO	{ int dup(u_int fd); }
12742	AUE_PIPE	NOPROTO	{ int pipe(void); }
12843	AUE_GETEGID	NOPROTO	{ gid_t getegid(void); }
12944	AUE_PROFILE	NOPROTO	{ int profil(caddr_t samples, size_t size, \
130				    size_t offset, u_int scale); }
13145	AUE_KTRACE	NOPROTO	{ int ktrace(const char *fname, int ops, \
132				    int facs, int pid); }
13346	AUE_SIGACTION	COMPAT	{ int freebsd32_sigaction( int signum, \
134				   struct osigaction32 *nsa, \
135				   struct osigaction32 *osa); }
13647	AUE_GETGID	NOPROTO	{ gid_t getgid(void); }
13748	AUE_SIGPROCMASK	COMPAT	{ int freebsd32_sigprocmask(int how, \
138				   osigset_t mask); }
13949	AUE_GETLOGIN	NOPROTO	{ int getlogin(char *namebuf, \
140				    u_int namelen); }
14150	AUE_SETLOGIN	NOPROTO	{ int setlogin(char *namebuf); }
14251	AUE_ACCT	NOPROTO	{ int acct(char *path); }
14352	AUE_SIGPENDING	COMPAT	{ int freebsd32_sigpending(void); }
14453	AUE_SIGALTSTACK	STD	{ int freebsd32_sigaltstack( \
145				    struct sigaltstack32 *ss, \
146				    struct sigaltstack32 *oss); }
14754	AUE_NULL	STD	{ int freebsd32_ioctl(int fd, uint32_t com, \
148				    struct md_ioctl32 *data); }
14955	AUE_REBOOT	NOPROTO	{ int reboot(int opt); }
15056	AUE_REVOKE	NOPROTO	{ int revoke(char *path); }
15157	AUE_SYMLINK	NOPROTO	{ int symlink(char *path, char *link); }
15258	AUE_READLINK	NOPROTO	{ ssize_t readlink(char *path, char *buf, \
153				    size_t count); }
15459	AUE_EXECVE	STD	{ int freebsd32_execve(char *fname, \
155				    uint32_t *argv, uint32_t *envv); }
15660	AUE_UMASK	NOPROTO	{ int umask(int newmask); } umask \
157				    umask_args int
15861	AUE_CHROOT	NOPROTO	{ int chroot(char *path); }
15962	AUE_FSTAT	COMPAT	{ int freebsd32_fstat(int fd, \
160				    struct ostat32 *ub); }
16163	AUE_NULL	OBSOL	ogetkerninfo
16264	AUE_NULL	COMPAT	{ int freebsd32_getpagesize( \
163				    int32_t dummy); }
16465	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
165				    int flags); }
16666	AUE_VFORK	NOPROTO	{ int vfork(void); }
16767	AUE_NULL	OBSOL	vread
16868	AUE_NULL	OBSOL	vwrite
16969	AUE_SBRK	NOPROTO	{ int sbrk(int incr); }
17070	AUE_SSTK	NOPROTO	{ int sstk(int incr); }
17171	AUE_MMAP	COMPAT|NOPROTO	{ int mmap(void *addr, int len, \
172				    int prot, int flags, int fd, int pos); }
17372	AUE_O_VADVISE	NOPROTO	{ int ovadvise(int anom); } vadvise \
174				    ovadvise_args int
17573	AUE_MUNMAP	NOPROTO	{ int munmap(void *addr, size_t len); }
17674	AUE_MPROTECT	STD	{ int freebsd32_mprotect(const void *addr, \
177				    size_t len, int prot); }
17875	AUE_MADVISE	NOPROTO	{ int madvise(void *addr, size_t len, \
179				    int behav); }
18076	AUE_NULL	OBSOL	vhangup
18177	AUE_NULL	OBSOL	vlimit
18278	AUE_MINCORE	NOPROTO	{ int mincore(const void *addr, size_t len, \
183				    char *vec); }
18479	AUE_GETGROUPS	NOPROTO	{ int getgroups(u_int gidsetsize, \
185				    gid_t *gidset); }
18680	AUE_SETGROUPS	NOPROTO	{ int setgroups(u_int gidsetsize, \
187				    gid_t *gidset); }
18881	AUE_GETPGRP	NOPROTO	{ int getpgrp(void); }
18982	AUE_SETPGRP	NOPROTO	{ int setpgid(int pid, int pgid); }
19083	AUE_SETITIMER	STD	{ int freebsd32_setitimer(u_int which, \
191				    struct itimerval32 *itv, \
192				    struct itimerval32 *oitv); }
19384	AUE_NULL	OBSOL	owait
194; XXX implement
19585	AUE_SWAPON	NOPROTO	{ int swapon(char *name); }
19686	AUE_GETITIMER	STD	{ int freebsd32_getitimer(u_int which, \
197				    struct itimerval32 *itv); }
19887	AUE_O_GETHOSTNAME	OBSOL	ogethostname
19988	AUE_O_SETHOSTNAME	OBSOL	osethostname
20089	AUE_GETDTABLESIZE	NOPROTO	{ int getdtablesize(void); }
20190	AUE_DUP2	NOPROTO	{ int dup2(u_int from, u_int to); }
20291	AUE_NULL	UNIMPL	getdopt
20392	AUE_FCNTL	NOPROTO	{ int fcntl(int fd, int cmd, long arg); }
20493	AUE_SELECT	STD	{ int freebsd32_select(int nd, fd_set *in, \
205				    fd_set *ou, fd_set *ex, \
206				    struct timeval32 *tv); }
20794	AUE_NULL	UNIMPL	setdopt
20895	AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
20996	AUE_SETPRIORITY	NOPROTO	{ int setpriority(int which, int who, \
210				    int prio); }
21197	AUE_SOCKET	NOPROTO	{ int socket(int domain, int type, \
212				    int protocol); }
21398	AUE_CONNECT	NOPROTO	{ int connect(int s, caddr_t name, \
214				    int namelen); }
21599	AUE_NULL	OBSOL	oaccept
216100	AUE_GETPRIORITY	NOPROTO	{ int getpriority(int which, int who); }
217101	AUE_NULL	OBSOL	osend
218102	AUE_NULL	OBSOL	orecv
219103	AUE_NULL	COMPAT	{ int freebsd32_sigreturn( \
220				    struct ia32_sigcontext3 *sigcntxp); }
221104	AUE_BIND	NOPROTO	{ int bind(int s, caddr_t name, \
222				    int namelen); }
223105	AUE_SETSOCKOPT	NOPROTO	{ int setsockopt(int s, int level, \
224				    int name, caddr_t val, int valsize); }
225106	AUE_LISTEN	NOPROTO	{ int listen(int s, int backlog); }
226107	AUE_NULL	OBSOL	vtimes
227108	AUE_O_SIGVEC	COMPAT	{ int freebsd32_sigvec(int signum, \
228				     struct sigvec32 *nsv, \
229				     struct sigvec32 *osv); }
230109	AUE_O_SIGBLOCK	COMPAT	{ int freebsd32_sigblock(int mask); }
231110	AUE_O_SIGSETMASK	COMPAT	{ int freebsd32_sigsetmask( int mask); }
232111	AUE_SIGSUSPEND	COMPAT	{ int freebsd32_sigsuspend( int mask); }
233112	AUE_O_SIGSTACK	COMPAT	{ int freebsd32_sigstack( \
234				     struct sigstack32 *nss, \
235				     struct sigstack32 *oss); }
236113	AUE_NULL	OBSOL	orecvmsg
237114	AUE_NULL	OBSOL	osendmsg
238115	AUE_NULL	OBSOL	vtrace
239116	AUE_GETTIMEOFDAY	STD	{ int freebsd32_gettimeofday( \
240				    struct timeval32 *tp, \
241				    struct timezone *tzp); }
242117	AUE_GETRUSAGE	STD	{ int freebsd32_getrusage(int who, \
243				    struct rusage32 *rusage); }
244118	AUE_GETSOCKOPT	NOPROTO	{ int getsockopt(int s, int level, \
245				    int name, caddr_t val, int *avalsize); }
246119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
247120	AUE_READV	STD	{ int freebsd32_readv(int fd, \
248				    struct iovec32 *iovp, u_int iovcnt); }
249121	AUE_WRITEV	STD	{ int freebsd32_writev(int fd, \
250				    struct iovec32 *iovp, u_int iovcnt); }
251122	AUE_SETTIMEOFDAY	STD	{ int freebsd32_settimeofday( \
252				    struct timeval32 *tv, \
253				    struct timezone *tzp); }
254123	AUE_FCHOWN	NOPROTO	{ int fchown(int fd, int uid, int gid); }
255124	AUE_FCHMOD	NOPROTO	{ int fchmod(int fd, int mode); }
256125	AUE_RECVFROM	OBSOL	orecvfrom
257126	AUE_SETREUID	NOPROTO	{ int setreuid(int ruid, int euid); }
258127	AUE_SETREGID	NOPROTO	{ int setregid(int rgid, int egid); }
259128	AUE_RENAME	NOPROTO	{ int rename(char *from, char *to); }
260129	AUE_TRUNCATE	COMPAT|NOPROTO	{ int truncate(char *path, \
261					    int length); }
262130	AUE_FTRUNCATE	COMPAT|NOPROTO	{ int ftruncate(int fd, int length); }
263131	AUE_FLOCK	NOPROTO	{ int flock(int fd, int how); }
264132	AUE_MKFIFO	NOPROTO	{ int mkfifo(char *path, int mode); }
265133	AUE_SENDTO	NOPROTO	{ int sendto(int s, caddr_t buf, \
266				    size_t len, int flags, caddr_t to, \
267				    int tolen); }
268134	AUE_SHUTDOWN	NOPROTO	{ int shutdown(int s, int how); }
269135	AUE_SOCKETPAIR	NOPROTO	{ int socketpair(int domain, int type, \
270				    int protocol, int *rsv); }
271136	AUE_MKDIR	NOPROTO	{ int mkdir(char *path, int mode); }
272137	AUE_RMDIR	NOPROTO	{ int rmdir(char *path); }
273138	AUE_UTIMES	STD	{ int freebsd32_utimes(char *path, \
274				    struct timeval32 *tptr); }
275139	AUE_NULL	OBSOL	4.2 sigreturn
276140	AUE_ADJTIME	STD	{ int freebsd32_adjtime( \
277				    struct timeval32 *delta, \
278				    struct timeval32 *olddelta); }
279141	AUE_GETPEERNAME	OBSOL	ogetpeername
280142	AUE_SYSCTL	OBSOL	ogethostid
281143	AUE_SYSCTL	OBSOL	sethostid
282144	AUE_GETRLIMIT	OBSOL	getrlimit
283145	AUE_SETRLIMIT	OBSOL	setrlimit
284146	AUE_KILLPG	OBSOL	killpg
285147	AUE_SETSID	NOPROTO	{ int setsid(void); }
286148	AUE_QUOTACTL	NOPROTO	{ int quotactl(char *path, int cmd, int uid, \
287				    caddr_t arg); }
288149	AUE_O_QUOTA	OBSOL oquota
289150	AUE_GETSOCKNAME	OBSOL ogetsockname
290
291; Syscalls 151-180 inclusive are reserved for vendor-specific
292; system calls.  (This includes various calls added for compatibity
293; with other Unix variants.)
294; Some of these calls are now supported by BSD...
295151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
296152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
297153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
298; 154 is initialised by the NLM code, if present.
299154	AUE_NULL	UNIMPL	nlm_syscall
300; 155 is initialized by the NFS code, if present.
301; XXX this is a problem!!!
302155	AUE_NFS_SVC	UNIMPL	nfssvc
303156	AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \
304				    char *buf, u_int count, uint32_t *basep); }
305157	AUE_STATFS	COMPAT4	{ int freebsd32_statfs(char *path, \
306				    struct statfs32 *buf); }
307158	AUE_FSTATFS	COMPAT4	{ int freebsd32_fstatfs(int fd, \
308				    struct statfs32 *buf); }
309159	AUE_NULL	UNIMPL	nosys
310160	AUE_LGETFH	UNIMPL	lgetfh
311161	AUE_NFS_GETFH	NOPROTO	{ int getfh(char *fname, \
312				    struct fhandle *fhp); }
313162	AUE_NULL	OBSOL	getdomainname
314163	AUE_NULL	OBSOL	setdomainname
315164	AUE_NULL	OBSOL	uname
316165	AUE_SYSARCH	STD	{ int freebsd32_sysarch(int op, char *parms); }
317166	AUE_RTPRIO	NOPROTO	{ int rtprio(int function, pid_t pid, \
318				    struct rtprio *rtp); }
319167	AUE_NULL	UNIMPL	nosys
320168	AUE_NULL	UNIMPL	nosys
321169	AUE_SEMSYS	NOSTD	{ int freebsd32_semsys(int which, int a2, \
322				    int a3, int a4, int a5); }
323170	AUE_MSGSYS	NOSTD	{ int freebsd32_msgsys(int which, int a2, \
324				    int a3, int a4, int a5, int a6); }
325171	AUE_SHMSYS	NOSTD	{ int freebsd32_shmsys(uint32_t which, uint32_t a2, \
326				    uint32_t a3, uint32_t a4); }
327172	AUE_NULL	UNIMPL	nosys
328173	AUE_PREAD	COMPAT6	{ ssize_t freebsd32_pread(int fd, void *buf, \
329				    size_t nbyte, int pad, \
330				    uint32_t offset1, uint32_t offset2); }
331174	AUE_PWRITE	COMPAT6	{ ssize_t freebsd32_pwrite(int fd, \
332				    const void *buf, size_t nbyte, int pad, \
333				    uint32_t offset1, uint32_t offset2); }
334175	AUE_NULL	UNIMPL	nosys
335176	AUE_NTP_ADJTIME	NOPROTO	{ int ntp_adjtime(struct timex *tp); }
336177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
337178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
338179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
339180	AUE_NULL	UNIMPL	nosys
340
341; Syscalls 181-199 are used by/reserved for BSD
342181	AUE_SETGID	NOPROTO	{ int setgid(gid_t gid); }
343182	AUE_SETEGID	NOPROTO	{ int setegid(gid_t egid); }
344183	AUE_SETEUID	NOPROTO	{ int seteuid(uid_t euid); }
345184	AUE_NULL	UNIMPL	lfs_bmapv
346185	AUE_NULL	UNIMPL	lfs_markv
347186	AUE_NULL	UNIMPL	lfs_segclean
348187	AUE_NULL	UNIMPL	lfs_segwait
349188	AUE_STAT	STD	{ int freebsd32_stat(char *path, \
350				    struct stat32 *ub); }
351189	AUE_FSTAT	STD	{ int freebsd32_fstat(int fd, \
352				    struct stat32 *ub); }
353190	AUE_LSTAT	STD	{ int freebsd32_lstat(char *path, \
354				    struct stat32 *ub); }
355191	AUE_PATHCONF	NOPROTO	{ int pathconf(char *path, int name); }
356192	AUE_FPATHCONF	NOPROTO	{ int fpathconf(int fd, int name); }
357193	AUE_NULL	UNIMPL	nosys
358194	AUE_GETRLIMIT	NOPROTO	{ int getrlimit(u_int which, \
359				    struct rlimit *rlp); } getrlimit \
360				    __getrlimit_args int
361195	AUE_SETRLIMIT	NOPROTO	{ int setrlimit(u_int which, \
362				    struct rlimit *rlp); } setrlimit \
363				    __setrlimit_args int
364196	AUE_GETDIRENTRIES	STD	{ int freebsd32_getdirentries(int fd, \
365				    char *buf, u_int count, int32_t *basep); }
366197	AUE_MMAP	COMPAT6	{ caddr_t freebsd32_mmap(caddr_t addr, \
367				    size_t len, int prot, int flags, int fd, \
368				    int pad, uint32_t pos1, uint32_t pos2); }
369198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
370				    __syscall_args int
371199	AUE_LSEEK	COMPAT6	{ off_t freebsd32_lseek(int fd, int pad, \
372				    uint32_t offset1, uint32_t offset2, \
373				    int whence); }
374200	AUE_TRUNCATE	COMPAT6	{ int freebsd32_truncate(char *path, \
375				    int pad, uint32_t length1, \
376				    uint32_t length2); }
377201	AUE_FTRUNCATE	COMPAT6	{ int freebsd32_ftruncate(int fd, int pad, \
378				    uint32_t length1, uint32_t length2); }
379202	AUE_SYSCTL	STD	{ int freebsd32_sysctl(int *name, \
380				    u_int namelen, void *old, \
381				    uint32_t *oldlenp, void *new, \
382				    uint32_t newlen); }
383203	AUE_MLOCK	NOPROTO	{ int mlock(const void *addr, \
384				    size_t len); }
385204	AUE_MUNLOCK	NOPROTO	{ int munlock(const void *addr, \
386				    size_t len); }
387205	AUE_UNDELETE	NOPROTO	{ int undelete(char *path); }
388206	AUE_FUTIMES	STD	{ int freebsd32_futimes(int fd, \
389				    struct timeval32 *tptr); }
390207	AUE_GETPGID	NOPROTO	{ int getpgid(pid_t pid); }
391208	AUE_NULL	UNIMPL	newreboot (NetBSD)
392209	AUE_POLL	NOPROTO	{ int poll(struct pollfd *fds, u_int nfds, \
393				    int timeout); }
394
395;
396; The following are reserved for loadable syscalls
397;
398210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
399211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
400212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
401213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
402214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
403215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
404216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
405217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
406218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
407219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
408
409;
410; The following were introduced with NetBSD/4.4Lite-2
411; They are initialized by their respective modules/sysinits
412; XXX PROBLEM!!
413220	AUE_SEMCTL	COMPAT7|NOSTD	{ int freebsd32_semctl( \
414				    int semid, int semnum, \
415				    int cmd, union semun32 *arg); }
416221	AUE_SEMGET	NOSTD|NOPROTO	{ int semget(key_t key, int nsems, \
417				    int semflg); }
418222	AUE_SEMOP	NOSTD|NOPROTO	{ int semop(int semid, \
419				    struct sembuf *sops, u_int nsops); }
420223	AUE_NULL	UNIMPL	semconfig
421224	AUE_MSGCTL	COMPAT7|NOSTD	{ int freebsd32_msgctl( \
422				    int msqid, int cmd, \
423				    struct msqid_ds32_old *buf); }
424225	AUE_MSGGET	NOSTD|NOPROTO	{ int msgget(key_t key, int msgflg); }
425226	AUE_MSGSND	NOSTD	{ int freebsd32_msgsnd(int msqid, void *msgp, \
426				    size_t msgsz, int msgflg); }
427227	AUE_MSGRCV	NOSTD	{ int freebsd32_msgrcv(int msqid, void *msgp, \
428				    size_t msgsz, long msgtyp, int msgflg); }
429228	AUE_SHMAT	NOSTD|NOPROTO	{ int shmat(int shmid, void *shmaddr, \
430				    int shmflg); }
431229	AUE_SHMCTL	COMPAT7|NOSTD	{ int freebsd32_shmctl( \
432				    int shmid, int cmd, \
433				    struct shmid_ds32_old *buf); }
434230	AUE_SHMDT	NOSTD|NOPROTO	{ int shmdt(void *shmaddr); }
435231	AUE_SHMGET	NOSTD|NOPROTO	{ int shmget(key_t key, int size, \
436				    int shmflg); }
437;
438232	AUE_NULL	STD 	{ int freebsd32_clock_gettime(clockid_t clock_id, \
439				    struct timespec32 *tp); }
440233	AUE_CLOCK_SETTIME	STD	{ int freebsd32_clock_settime(clockid_t clock_id, \
441				    const struct timespec32 *tp); }
442234	AUE_NULL	STD	{ int freebsd32_clock_getres(clockid_t clock_id, \
443				    struct timespec32 *tp); }
444235	AUE_NULL	UNIMPL	timer_create
445236	AUE_NULL	UNIMPL	timer_delete
446237	AUE_NULL	UNIMPL	timer_settime
447238	AUE_NULL	UNIMPL	timer_gettime
448239	AUE_NULL	UNIMPL	timer_getoverrun
449240	AUE_NULL	STD	{ int freebsd32_nanosleep( \
450				    const struct timespec32 *rqtp, \
451				    struct timespec32 *rmtp); }
452241	AUE_NULL	NOPROTO	{ int ffclock_getcounter(ffcounter *ffcount); }
453242	AUE_NULL	NOPROTO	{ int ffclock_setestimate( \
454				    struct ffclock_estimate *cest); }
455243	AUE_NULL	NOPROTO	{ int ffclock_getestimate( \
456				    struct ffclock_estimate *cest); }
457244	AUE_NULL	UNIMPL	nosys
458245	AUE_NULL	UNIMPL	nosys
459246	AUE_NULL	UNIMPL	nosys
460247	AUE_NULL	UNIMPL	nosys
461248	AUE_NULL	UNIMPL	ntp_gettime
462249	AUE_NULL	UNIMPL	nosys
463; syscall numbers initially used in OpenBSD
464250	AUE_MINHERIT	NOPROTO	{ int minherit(void *addr, size_t len, \
465				    int inherit); }
466251	AUE_RFORK	NOPROTO	{ int rfork(int flags); }
467252	AUE_POLL	NOPROTO	{ int openbsd_poll(struct pollfd *fds, \
468				    u_int nfds, int timeout); }
469253	AUE_ISSETUGID	NOPROTO	{ int issetugid(void); }
470254	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, int uid, int gid); }
471255	AUE_NULL	NOSTD	{ int freebsd32_aio_read( \
472				    struct aiocb32 *aiocbp); }
473256	AUE_NULL	NOSTD	{ int freebsd32_aio_write( \
474				    struct aiocb32 *aiocbp); }
475257	AUE_NULL	NOSTD	{ int freebsd32_lio_listio(int mode, \
476				    struct aiocb32 * const *acb_list, \
477				    int nent, struct sigevent *sig); }
478258	AUE_NULL	UNIMPL	nosys
479259	AUE_NULL	UNIMPL	nosys
480260	AUE_NULL	UNIMPL	nosys
481261	AUE_NULL	UNIMPL	nosys
482262	AUE_NULL	UNIMPL	nosys
483263	AUE_NULL	UNIMPL	nosys
484264	AUE_NULL	UNIMPL	nosys
485265	AUE_NULL	UNIMPL	nosys
486266	AUE_NULL	UNIMPL	nosys
487267	AUE_NULL	UNIMPL	nosys
488268	AUE_NULL	UNIMPL	nosys
489269	AUE_NULL	UNIMPL	nosys
490270	AUE_NULL	UNIMPL	nosys
491271	AUE_NULL	UNIMPL	nosys
492272	AUE_O_GETDENTS	NOPROTO	{ int getdents(int fd, char *buf, \
493				    size_t count); }
494273	AUE_NULL	UNIMPL	nosys
495274	AUE_LCHMOD	NOPROTO	{ int lchmod(char *path, mode_t mode); }
496275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
497				    gid_t gid); } netbsd_lchown \
498				    lchown_args int
499276	AUE_LUTIMES	STD	{ int freebsd32_lutimes(char *path, \
500				    struct timeval32 *tptr); }
501277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
502				    int flags); } netbsd_msync msync_args int
503278	AUE_STAT	NOPROTO	{ int nstat(char *path, struct nstat *ub); }
504279	AUE_FSTAT	NOPROTO	{ int nfstat(int fd, struct nstat *sb); }
505280	AUE_LSTAT	NOPROTO	{ int nlstat(char *path, struct nstat *ub); }
506281	AUE_NULL	UNIMPL	nosys
507282	AUE_NULL	UNIMPL	nosys
508283	AUE_NULL	UNIMPL	nosys
509284	AUE_NULL	UNIMPL	nosys
510285	AUE_NULL	UNIMPL	nosys
511286	AUE_NULL	UNIMPL	nosys
512287	AUE_NULL	UNIMPL	nosys
513288	AUE_NULL	UNIMPL	nosys
514; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
515289	AUE_PREADV	STD	{ ssize_t freebsd32_preadv(int fd, \
516					struct iovec32 *iovp, \
517					u_int iovcnt, \
518					uint32_t offset1, uint32_t offset2); }
519290	AUE_PWRITEV	STD	{ ssize_t freebsd32_pwritev(int fd, \
520					struct iovec32 *iovp, \
521					u_int iovcnt, \
522					uint32_t offset1, uint32_t offset2); }
523291	AUE_NULL	UNIMPL	nosys
524292	AUE_NULL	UNIMPL	nosys
525293	AUE_NULL	UNIMPL	nosys
526294	AUE_NULL	UNIMPL	nosys
527295	AUE_NULL	UNIMPL	nosys
528296	AUE_NULL	UNIMPL	nosys
529; XXX 297 is 300 in NetBSD 
530297	AUE_FHSTATFS	COMPAT4	{ int freebsd32_fhstatfs( \
531				    const struct fhandle *u_fhp, \
532				    struct statfs32 *buf); }
533298	AUE_FHOPEN	NOPROTO	{ int fhopen(const struct fhandle *u_fhp, \
534			 	    int flags); }
535299	AUE_FHSTAT	NOPROTO	{ int fhstat(const struct fhandle *u_fhp, \
536				    struct stat *sb); }
537; syscall numbers for FreeBSD
538300	AUE_NULL	NOPROTO	{ int modnext(int modid); }
539301	AUE_NULL	STD	{ int freebsd32_modstat(int modid, \
540				    struct module_stat32* stat); }
541302	AUE_NULL	NOPROTO	{ int modfnext(int modid); }
542303	AUE_NULL	NOPROTO	{ int modfind(const char *name); }
543304	AUE_MODLOAD	NOPROTO	{ int kldload(const char *file); }
544305	AUE_MODUNLOAD	NOPROTO	{ int kldunload(int fileid); }
545306	AUE_NULL	NOPROTO	{ int kldfind(const char *file); }
546307	AUE_NULL	NOPROTO	{ int kldnext(int fileid); }
547308	AUE_NULL	STD	{ int freebsd32_kldstat(int fileid, \
548				    struct kld32_file_stat* stat); }
549309	AUE_NULL	NOPROTO	{ int kldfirstmod(int fileid); }
550310	AUE_GETSID	NOPROTO	{ int getsid(pid_t pid); }
551311	AUE_SETRESUID	NOPROTO	{ int setresuid(uid_t ruid, uid_t euid, \
552				    uid_t suid); }
553312	AUE_SETRESGID	NOPROTO	{ int setresgid(gid_t rgid, gid_t egid, \
554				    gid_t sgid); }
555313	AUE_NULL	OBSOL	signanosleep
556314	AUE_NULL	NOSTD	{ int freebsd32_aio_return( \
557				    struct aiocb32 *aiocbp); }
558315	AUE_NULL	NOSTD	{ int freebsd32_aio_suspend( \
559				    struct aiocb32 * const * aiocbp, int nent, \
560				    const struct timespec32 *timeout); }
561316	AUE_NULL	NOSTD	{ int freebsd32_aio_cancel(int fd, \
562				    struct aiocb32 *aiocbp); }
563317	AUE_NULL	NOSTD	{ int freebsd32_aio_error( \
564				    struct aiocb32 *aiocbp); }
565318	AUE_NULL	NOSTD	{ int freebsd32_oaio_read( \
566				    struct oaiocb32 *aiocbp); }
567319	AUE_NULL	NOSTD	{ int freebsd32_oaio_write( \
568				    struct oaiocb32 *aiocbp); }
569320	AUE_NULL	NOSTD	{ int freebsd32_olio_listio(int mode, \
570				    struct oaiocb32 * const *acb_list, \
571				    int nent, struct osigevent32 *sig); }
572321	AUE_NULL	NOPROTO	{ int yield(void); }
573322	AUE_NULL	OBSOL	thr_sleep
574323	AUE_NULL	OBSOL	thr_wakeup
575324	AUE_MLOCKALL	NOPROTO	{ int mlockall(int how); }
576325	AUE_MUNLOCKALL	NOPROTO	{ int munlockall(void); }
577326	AUE_GETCWD	NOPROTO	{ int __getcwd(u_char *buf, u_int buflen); }
578
579327	AUE_NULL	NOPROTO	{ int sched_setparam (pid_t pid, \
580				    const struct sched_param *param); }
581328	AUE_NULL	NOPROTO	{ int sched_getparam (pid_t pid, \
582				    struct sched_param *param); }
583
584329	AUE_NULL	NOPROTO	{ int sched_setscheduler (pid_t pid, \
585				    int policy, \
586				    const struct sched_param *param); }
587330	AUE_NULL	NOPROTO	{ int sched_getscheduler (pid_t pid); }
588
589331	AUE_NULL	NOPROTO	{ int sched_yield (void); }
590332	AUE_NULL	NOPROTO	{ int sched_get_priority_max (int policy); }
591333	AUE_NULL	NOPROTO	{ int sched_get_priority_min (int policy); }
592334	AUE_NULL	NOPROTO	{ int sched_rr_get_interval (pid_t pid, \
593				    struct timespec *interval); }
594335	AUE_NULL	NOPROTO	{ int utrace(const void *addr, size_t len); }
595336	AUE_SENDFILE	COMPAT4	{ int freebsd32_sendfile(int fd, int s, \
596				    uint32_t offset1, uint32_t offset2, \
597				    size_t nbytes, struct sf_hdtr32 *hdtr, \
598				    off_t *sbytes, int flags); }
599337	AUE_NULL	NOPROTO	{ int kldsym(int fileid, int cmd, \
600				    void *data); }
601338	AUE_JAIL	STD	{ int freebsd32_jail(struct jail32 *jail); }
602339	AUE_NULL	UNIMPL	pioctl
603340	AUE_SIGPROCMASK	NOPROTO	{ int sigprocmask(int how, \
604				    const sigset_t *set, sigset_t *oset); }
605341	AUE_SIGSUSPEND	NOPROTO	{ int sigsuspend(const sigset_t *sigmask); }
606342	AUE_SIGACTION	COMPAT4	{ int freebsd32_sigaction(int sig, \
607				    struct sigaction32 *act, \
608				    struct sigaction32 *oact); }
609343	AUE_SIGPENDING	NOPROTO	{ int sigpending(sigset_t *set); }
610344	AUE_SIGRETURN	COMPAT4	{ int freebsd32_sigreturn( \
611		    const struct freebsd4_freebsd32_ucontext *sigcntxp); }
612345	AUE_SIGWAIT	STD	{ int freebsd32_sigtimedwait(const sigset_t *set, \
613				    siginfo_t *info, \
614				    const struct timespec *timeout); }
615346	AUE_NULL	STD	{ int freebsd32_sigwaitinfo(const sigset_t *set, \
616				    siginfo_t *info); }
617347	AUE_NULL	NOPROTO	{ int __acl_get_file(const char *path, \
618				    acl_type_t type, struct acl *aclp); }
619348	AUE_NULL	NOPROTO	{ int __acl_set_file(const char *path, \
620				    acl_type_t type, struct acl *aclp); }
621349	AUE_NULL	NOPROTO	{ int __acl_get_fd(int filedes, \
622				    acl_type_t type, struct acl *aclp); }
623350	AUE_NULL	NOPROTO	{ int __acl_set_fd(int filedes, \
624				    acl_type_t type, struct acl *aclp); }
625351	AUE_NULL	NOPROTO	{ int __acl_delete_file(const char *path, \
626				    acl_type_t type); }
627352	AUE_NULL	NOPROTO	{ int __acl_delete_fd(int filedes, \
628				    acl_type_t type); }
629353	AUE_NULL	NOPROTO	{ int __acl_aclcheck_file(const char *path, \
630				    acl_type_t type, struct acl *aclp); }
631354	AUE_NULL	NOPROTO	{ int __acl_aclcheck_fd(int filedes, \
632				    acl_type_t type, struct acl *aclp); }
633355	AUE_EXTATTRCTL	NOPROTO	{ int extattrctl(const char *path, int cmd, \
634				    const char *filename, int attrnamespace, \
635				    const char *attrname); }
636356	AUE_EXTATTR_SET_FILE	NOPROTO	{ int extattr_set_file( \
637				    const char *path, int attrnamespace, \
638				    const char *attrname, void *data, \
639				    size_t nbytes); }
640357	AUE_EXTATTR_GET_FILE	NOPROTO	{ ssize_t extattr_get_file( \
641				    const char *path, int attrnamespace, \
642				    const char *attrname, void *data, \
643				    size_t nbytes); }
644358	AUE_EXTATTR_DELETE_FILE	NOPROTO	{ int extattr_delete_file( \
645				    const char *path, int attrnamespace, \
646				    const char *attrname); }
647359	AUE_NULL	NOSTD	{ int freebsd32_aio_waitcomplete( \
648				    struct aiocb32 **aiocbp, \
649				    struct timespec32 *timeout); }
650360	AUE_GETRESUID	NOPROTO	{ int getresuid(uid_t *ruid, uid_t *euid, \
651				    uid_t *suid); }
652361	AUE_GETRESGID	NOPROTO	{ int getresgid(gid_t *rgid, gid_t *egid, \
653				    gid_t *sgid); }
654362	AUE_KQUEUE	NOPROTO	{ int kqueue(void); }
655363	AUE_NULL	STD	{ int freebsd32_kevent(int fd, \
656				    const struct kevent32 *changelist, \
657				    int nchanges, \
658				    struct kevent32 *eventlist, int nevents, \
659				    const struct timespec32 *timeout); }
660364	AUE_NULL	UNIMPL	__cap_get_proc
661365	AUE_NULL	UNIMPL	__cap_set_proc
662366	AUE_NULL	UNIMPL	__cap_get_fd
663367	AUE_NULL	UNIMPL	__cap_get_file
664368	AUE_NULL	UNIMPL	__cap_set_fd
665369	AUE_NULL	UNIMPL	__cap_set_file
666370	AUE_NULL	UNIMPL	nosys
667371	AUE_EXTATTR_SET_FD	NOPROTO	{ int extattr_set_fd(int fd, \
668				    int attrnamespace, const char *attrname, \
669				    void *data, size_t nbytes); }
670372	AUE_EXTATTR_GET_FD	NOPROTO	{ ssize_t extattr_get_fd(int fd, \
671				    int attrnamespace, const char *attrname, \
672				    void *data, size_t nbytes); }
673373	AUE_EXTATTR_DELETE_FD	NOPROTO	{ int extattr_delete_fd(int fd, \
674				    int attrnamespace, \
675				    const char *attrname); }
676374	AUE_NULL	NOPROTO	{ int __setugid(int flag); }
677375	AUE_NULL	UNIMPL	nfsclnt
678376	AUE_EACCESS	NOPROTO	{ int eaccess(char *path, int amode); }
679377	AUE_NULL	UNIMPL	afs_syscall
680378	AUE_NMOUNT	STD	{ int freebsd32_nmount(struct iovec32 *iovp, \
681				    unsigned int iovcnt, int flags); }
682379	AUE_NULL	UNIMPL	kse_exit
683380	AUE_NULL	UNIMPL	kse_wakeup
684381	AUE_NULL	UNIMPL	kse_create
685382	AUE_NULL	UNIMPL	kse_thr_interrupt
686383	AUE_NULL	UNIMPL	kse_release
687384	AUE_NULL	UNIMPL	__mac_get_proc
688385	AUE_NULL	UNIMPL	__mac_set_proc
689386	AUE_NULL	UNIMPL	__mac_get_fd
690387	AUE_NULL	UNIMPL	__mac_get_file
691388	AUE_NULL	UNIMPL	__mac_set_fd
692389	AUE_NULL	UNIMPL	__mac_set_file
693390	AUE_NULL	NOPROTO	{ int kenv(int what, const char *name, \
694				    char *value, int len); }
695391	AUE_LCHFLAGS	NOPROTO	{ int lchflags(const char *path, int flags); }
696392	AUE_NULL	NOPROTO	{ int uuidgen(struct uuid *store, \
697				    int count); }
698393	AUE_SENDFILE	STD	{ int freebsd32_sendfile(int fd, int s, \
699				    uint32_t offset1, uint32_t offset2, \
700				    size_t nbytes, struct sf_hdtr32 *hdtr, \
701				    off_t *sbytes, int flags); }
702394	AUE_NULL	UNIMPL	mac_syscall
703395	AUE_GETFSSTAT	NOPROTO	{ int getfsstat(struct statfs *buf, \
704				    long bufsize, int flags); }
705396	AUE_STATFS	NOPROTO	{ int statfs(char *path, \
706				    struct statfs *buf); }
707397	AUE_FSTATFS	NOPROTO	{ int fstatfs(int fd, struct statfs *buf); }
708398	AUE_FHSTATFS	NOPROTO	{ int fhstatfs(const struct fhandle *u_fhp, \
709				    struct statfs *buf); }
710399	AUE_NULL	UNIMPL	nosys
711400	AUE_NULL	NOSTD|NOPROTO	{ int ksem_close(semid_t id); }
712401	AUE_NULL	NOSTD|NOPROTO	{ int ksem_post(semid_t id); }
713402	AUE_NULL	NOSTD|NOPROTO	{ int ksem_wait(semid_t id); }
714403	AUE_NULL	NOSTD|NOPROTO	{ int ksem_trywait(semid_t id); }
715404	AUE_NULL	NOSTD	{ int freebsd32_ksem_init(semid_t *idp, \
716				    unsigned int value); }
717405	AUE_NULL	NOSTD	{ int freebsd32_ksem_open(semid_t *idp, \
718				    const char *name, int oflag, \
719				    mode_t mode, unsigned int value); }
720406	AUE_NULL	NOSTD|NOPROTO	{ int ksem_unlink(const char *name); }
721407	AUE_NULL	NOSTD|NOPROTO	{ int ksem_getvalue(semid_t id, \
722				    int *val); }
723408	AUE_NULL	NOSTD|NOPROTO	{ int ksem_destroy(semid_t id); }
724409	AUE_NULL	UNIMPL	__mac_get_pid
725410	AUE_NULL	UNIMPL	__mac_get_link
726411	AUE_NULL	UNIMPL	__mac_set_link
727412	AUE_EXTATTR_SET_LINK	NOPROTO	{ int extattr_set_link( \
728				    const char *path, int attrnamespace, \
729				    const char *attrname, void *data, \
730				    size_t nbytes); }
731413	AUE_EXTATTR_GET_LINK	NOPROTO	{ ssize_t extattr_get_link( \
732				    const char *path, int attrnamespace, \
733				    const char *attrname, void *data, \
734				    size_t nbytes); }
735414	AUE_EXTATTR_DELETE_LINK	NOPROTO	{ int extattr_delete_link( \
736				    const char *path, int attrnamespace, \
737				    const char *attrname); }
738415	AUE_NULL	UNIMPL	__mac_execve
739416	AUE_SIGACTION	STD	{ int freebsd32_sigaction(int sig, \
740				    struct sigaction32 *act, \
741				    struct sigaction32 *oact); }
742417	AUE_SIGRETURN	STD	{ int freebsd32_sigreturn( \
743		    const struct freebsd32_ucontext *sigcntxp); }
744418	AUE_NULL	UNIMPL	__xstat
745419	AUE_NULL	UNIMPL	__xfstat
746420	AUE_NULL	UNIMPL	__xlstat
747421	AUE_NULL	STD	{ int freebsd32_getcontext( \
748				    struct freebsd32_ucontext *ucp); }
749422	AUE_NULL	STD	{ int freebsd32_setcontext( \
750				    const struct freebsd32_ucontext *ucp); }
751423	AUE_NULL	STD	{ int freebsd32_swapcontext( \
752				    struct freebsd32_ucontext *oucp, \
753				    const struct freebsd32_ucontext *ucp); }
754424	AUE_SWAPOFF	UNIMPL	swapoff
755425	AUE_NULL	NOPROTO	{ int __acl_get_link(const char *path, \
756				    acl_type_t type, struct acl *aclp); }
757426	AUE_NULL	NOPROTO	{ int __acl_set_link(const char *path, \
758				    acl_type_t type, struct acl *aclp); }
759427	AUE_NULL	NOPROTO	{ int __acl_delete_link(const char *path, \
760				    acl_type_t type); }
761428	AUE_NULL	NOPROTO	{ int __acl_aclcheck_link(const char *path, \
762				    acl_type_t type, struct acl *aclp); }
763429	AUE_SIGWAIT	NOPROTO	{ int sigwait(const sigset_t *set, \
764				    int *sig); }
765430	AUE_NULL	UNIMPL	thr_create;
766431	AUE_NULL	NOPROTO	{ void thr_exit(long *state); }
767432	AUE_NULL	NOPROTO	{ int thr_self(long *id); }
768433	AUE_NULL	NOPROTO	{ int thr_kill(long id, int sig); }
769434	AUE_NULL	STD	{ int freebsd32_umtx_lock(struct umtx *umtx); }
770435	AUE_NULL	STD	{ int freebsd32_umtx_unlock(struct umtx *umtx); }
771436	AUE_NULL	NOPROTO	{ int jail_attach(int jid); }
772437	AUE_EXTATTR_LIST_FD	NOPROTO	{ ssize_t extattr_list_fd(int fd, \
773				    int attrnamespace, void *data, \
774				    size_t nbytes); }
775438	AUE_EXTATTR_LIST_FILE	NOPROTO	{ ssize_t extattr_list_file( \
776				    const char *path, int attrnamespace, \
777				    void *data, size_t nbytes); }
778439	AUE_EXTATTR_LIST_LINK	NOPROTO	{ ssize_t extattr_list_link( \
779				    const char *path, int attrnamespace, \
780				    void *data, size_t nbytes); }
781440	AUE_NULL	UNIMPL	kse_switchin
782441	AUE_NULL	NOSTD	{ int freebsd32_ksem_timedwait(semid_t id, \
783				    const struct timespec32 *abstime); }
784442	AUE_NULL	STD	{ int freebsd32_thr_suspend( \
785				    const struct timespec32 *timeout); }
786443	AUE_NULL	NOPROTO	{ int thr_wake(long id); }
787444	AUE_MODUNLOAD	NOPROTO	{ int kldunloadf(int fileid, int flags); }
788445	AUE_AUDIT	NOPROTO	{ int audit(const void *record, \
789				    u_int length); }
790446	AUE_AUDITON	NOPROTO	{ int auditon(int cmd, void *data, \
791				    u_int length); }
792447	AUE_GETAUID	NOPROTO	{ int getauid(uid_t *auid); }
793448	AUE_SETAUID	NOPROTO	{ int setauid(uid_t *auid); }
794449	AUE_GETAUDIT	NOPROTO	{ int getaudit(struct auditinfo *auditinfo); }
795450	AUE_SETAUDIT	NOPROTO	{ int setaudit(struct auditinfo *auditinfo); }
796451	AUE_GETAUDIT_ADDR	NOPROTO	{ int getaudit_addr( \
797				    struct auditinfo_addr *auditinfo_addr, \
798				    u_int length); }
799452	AUE_SETAUDIT_ADDR	NOPROTO	{ int setaudit_addr( \
800				    struct auditinfo_addr *auditinfo_addr, \
801				    u_int length); }
802453	AUE_AUDITCTL	NOPROTO	{ int auditctl(char *path); }
803454	AUE_NULL	STD	{ int freebsd32_umtx_op(void *obj, int op,\
804				    u_long val, void *uaddr, \
805				    void *uaddr2); }
806455	AUE_NULL	STD	{ int freebsd32_thr_new(	\
807				    struct thr_param32 *param,	\
808				    int param_size); }
809456	AUE_NULL	NOPROTO	{ int sigqueue(pid_t pid, int signum, \
810				    void *value); }
811457	AUE_NULL	NOSTD	{ int freebsd32_kmq_open( \
812				    const char *path, int flags, mode_t mode, \
813				    const struct mq_attr32 *attr); }
814458	AUE_NULL	NOSTD	{ int freebsd32_kmq_setattr(int mqd, \
815				    const struct mq_attr32 *attr,	\
816				    struct mq_attr32 *oattr); }
817459	AUE_NULL	NOSTD	{ int freebsd32_kmq_timedreceive(int mqd, \
818				    char *msg_ptr, size_t msg_len,	\
819				    unsigned *msg_prio,			\
820				    const struct timespec32 *abs_timeout); }
821460	AUE_NULL	NOSTD	{ int freebsd32_kmq_timedsend(int mqd,	\
822				    const char *msg_ptr, size_t msg_len,\
823				    unsigned msg_prio,			\
824				    const struct timespec32 *abs_timeout);}
825461	AUE_NULL	NOPROTO|NOSTD	{ int kmq_notify(int mqd,	\
826				    const struct sigevent *sigev); }
827462	AUE_NULL	NOPROTO|NOSTD	{ int kmq_unlink(const char *path); }
828463	AUE_NULL	NOPROTO	{ int abort2(const char *why, int nargs, void **args); }
829464	AUE_NULL 	NOPROTO	{ int thr_set_name(long id, const char *name); }
830465	AUE_NULL	NOSTD	{ int freebsd32_aio_fsync(int op, \
831				    struct aiocb32 *aiocbp); }
832466	AUE_RTPRIO	NOPROTO	{ int rtprio_thread(int function, \
833				    lwpid_t lwpid, struct rtprio *rtp); }
834467	AUE_NULL	UNIMPL	nosys
835468	AUE_NULL	UNIMPL	nosys
836469	AUE_NULL	UNIMPL	__getpath_fromfd
837470	AUE_NULL	UNIMPL	__getpath_fromaddr
838471	AUE_NULL	NOPROTO	{ int sctp_peeloff(int sd, uint32_t name); }
839472	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
840				    caddr_t to, __socklen_t tolen, \
841				    struct sctp_sndrcvinfo *sinfo, int flags); }
842473	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
843				    caddr_t to, __socklen_t tolen, \
844				    struct sctp_sndrcvinfo *sinfo, int flags); }
845474	AUE_NULL	NOPROTO	{ int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
846				    struct sockaddr * from, __socklen_t *fromlenaddr, \
847				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
848#ifdef PAD64_REQUIRED
849475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
850				    void *buf,size_t nbyte, \
851				    int pad, \
852				    uint32_t offset1, uint32_t offset2); }
853476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
854				    const void *buf, size_t nbyte, \
855				    int pad, \
856				    uint32_t offset1, uint32_t offset2); }
857477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
858				    size_t len, int prot, int flags, int fd, \
859				    int pad, \
860				    uint32_t pos1, uint32_t pos2); }
861478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
862				    int pad, \
863				    uint32_t offset1, uint32_t offset2, \
864				    int whence); }
865479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
866				    int pad, \
867				    uint32_t length1, uint32_t length2); }
868480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
869				    int pad, \
870				    uint32_t length1, uint32_t length2); }
871#else
872475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
873				    void *buf,size_t nbyte, \
874				    uint32_t offset1, uint32_t offset2); }
875476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
876				    const void *buf, size_t nbyte, \
877				    uint32_t offset1, uint32_t offset2); }
878477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
879				    size_t len, int prot, int flags, int fd, \
880				    uint32_t pos1, uint32_t pos2); }
881478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
882				    uint32_t offset1, uint32_t offset2, \
883				    int whence); }
884479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
885				    uint32_t length1, uint32_t length2); }
886480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
887				    uint32_t length1, uint32_t length2); }
888#endif
889481	AUE_KILL	NOPROTO	{ int thr_kill2(pid_t pid, long id, int sig); }
890482	AUE_SHMOPEN	NOPROTO	{ int shm_open(const char *path, int flags, \
891				    mode_t mode); }
892483	AUE_SHMUNLINK	NOPROTO	{ int shm_unlink(const char *path); }
893484	AUE_NULL	NOPROTO	{ int cpuset(cpusetid_t *setid); }
894#ifdef PAD64_REQUIRED
895485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
896				    int pad, \
897				    uint32_t id1, uint32_t id2, \
898				    cpusetid_t setid); }
899#else
900485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
901				    uint32_t id1, uint32_t id2, \
902				    cpusetid_t setid); }
903#endif
904486	AUE_NULL	STD	{ int freebsd32_cpuset_getid(cpulevel_t level, \
905				    cpuwhich_t which, \
906				    uint32_t id1, uint32_t id2, \
907				    cpusetid_t *setid); }
908487	AUE_NULL	STD	{ int freebsd32_cpuset_getaffinity( \
909				    cpulevel_t level, cpuwhich_t which, \
910				    uint32_t id1, uint32_t id2, \
911				    size_t cpusetsize, \
912				    cpuset_t *mask); }
913488	AUE_NULL	STD	{ int freebsd32_cpuset_setaffinity( \
914				    cpulevel_t level, cpuwhich_t which, \
915				    uint32_t id1, uint32_t id2, \
916				    size_t cpusetsize, \
917				    const cpuset_t *mask); }
918489	AUE_FACCESSAT	NOPROTO	{ int faccessat(int fd, char *path, int amode, \
919				    int flag); }
920490	AUE_FCHMODAT	NOPROTO	{ int fchmodat(int fd, const char *path, \
921				    mode_t mode, int flag); }
922491	AUE_FCHOWNAT	NOPROTO	{ int fchownat(int fd, char *path, uid_t uid, \
923				    gid_t gid, int flag); }
924492	AUE_FEXECVE	STD	{ int freebsd32_fexecve(int fd, \
925				    uint32_t *argv, uint32_t *envv); }
926493	AUE_FSTATAT	STD	{ int freebsd32_fstatat(int fd, char *path, \
927				    struct stat *buf, int flag); }
928494	AUE_FUTIMESAT	STD	{ int freebsd32_futimesat(int fd, char *path, \
929				    struct timeval *times); }
930495	AUE_LINKAT	NOPROTO	{ int linkat(int fd1, char *path1, int fd2, \
931				    char *path2, int flag); }
932496	AUE_MKDIRAT	NOPROTO	{ int mkdirat(int fd, char *path, \
933				    mode_t mode); }
934497	AUE_MKFIFOAT	NOPROTO	{ int mkfifoat(int fd, char *path, \
935				    mode_t mode); }
936498	AUE_MKNODAT	NOPROTO	{ int mknodat(int fd, char *path, \
937				    mode_t mode, dev_t dev); }
938499	AUE_OPENAT_RWTC	NOPROTO	{ int openat(int fd, char *path, int flag, \
939				    mode_t mode); }
940500	AUE_READLINKAT	NOPROTO	{ int readlinkat(int fd, char *path, char *buf, \
941				    size_t bufsize); }
942501	AUE_RENAMEAT	NOPROTO	{ int renameat(int oldfd, char *old, int newfd, \
943				    const char *new); }
944502	AUE_SYMLINKAT	NOPROTO	{ int symlinkat(char *path1, int fd, \
945				    char *path2); }
946503	AUE_UNLINKAT	NOPROTO	{ int unlinkat(int fd, char *path, \
947				    int flag); }
948504	AUE_POSIX_OPENPT	NOPROTO	{ int posix_openpt(int flags); }
949; 505 is initialised by the kgssapi code, if present.
950505	AUE_NULL	UNIMPL	gssd_syscall
951506	AUE_NULL	STD	{ int freebsd32_jail_get(struct iovec32 *iovp, \
952				    unsigned int iovcnt, int flags); }
953507	AUE_NULL	STD	{ int freebsd32_jail_set(struct iovec32 *iovp, \
954				    unsigned int iovcnt, int flags); }
955508	AUE_NULL	NOPROTO	{ int jail_remove(int jid); }
956509	AUE_CLOSEFROM	NOPROTO	{ int closefrom(int lowfd); }
957510	AUE_SEMCTL	NOSTD { int freebsd32_semctl(int semid, int semnum, \
958				    int cmd, union semun32 *arg); }
959511	AUE_MSGCTL	NOSTD	{ int freebsd32_msgctl(int msqid, int cmd, \
960				    struct msqid_ds32 *buf); }
961512	AUE_SHMCTL	NOSTD	{ int freebsd32_shmctl(int shmid, int cmd, \
962				    struct shmid_ds32 *buf); }
963513	AUE_LPATHCONF	NOPROTO	{ int lpathconf(char *path, int name); }
964514	AUE_CAP_NEW	NOPROTO	{ int cap_new(int fd, uint64_t rights); }
965515	AUE_CAP_GETRIGHTS	NOPROTO	{ int cap_getrights(int fd, \
966				    uint64_t *rightsp); }
967516	AUE_CAP_ENTER	NOPROTO	{ int cap_enter(void); }
968517	AUE_CAP_GETMODE	NOPROTO	{ int cap_getmode(u_int *modep); }
969518	AUE_PDFORK	UNIMPL	pdfork
970519	AUE_PDKILL	UNIMPL	pdkill
971520	AUE_PDGETPID	UNIMPL	pdgetpid
972521	AUE_PDWAIT	UNIMPL	pdwait
973522	AUE_SELECT	STD	{ int freebsd32_pselect(int nd, fd_set *in, \
974				    fd_set *ou, fd_set *ex, \
975				    const struct timespec32 *ts, \
976				    const sigset_t *sm); }
977523	AUE_NULL	NOPROTO	{ int getloginclass(char *namebuf, \
978				    size_t namelen); }
979524	AUE_NULL	NOPROTO	{ int setloginclass(const char *namebuf); }
980525	AUE_NULL	NOPROTO	{ int rctl_get_racct(const void *inbufp, \
981				    size_t inbuflen, void *outbufp, \
982				    size_t outbuflen); }
983526	AUE_NULL	NOPROTO	{ int rctl_get_rules(const void *inbufp, \
984				    size_t inbuflen, void *outbufp, \
985				    size_t outbuflen); }
986527	AUE_NULL	NOPROTO	{ int rctl_get_limits(const void *inbufp, \
987				    size_t inbuflen, void *outbufp, \
988				    size_t outbuflen); }
989528	AUE_NULL	NOPROTO	{ int rctl_add_rule(const void *inbufp, \
990				    size_t inbuflen, void *outbufp, \
991				    size_t outbuflen); }
992529	AUE_NULL	NOPROTO	{ int rctl_remove_rule(const void *inbufp, \
993				    size_t inbuflen, void *outbufp, \
994				    size_t outbuflen); }
995530	AUE_NULL	STD	{ int freebsd32_posix_fallocate(int fd,\
996				    uint32_t offset1, uint32_t offset2,\
997				    uint32_t len1, uint32_t len2); }
998531	AUE_NULL	STD	{ int freebsd32_posix_fadvise(int fd, \
999				    uint32_t offset1, uint32_t offset2,\
1000				    uint32_t len1, uint32_t len2, \
1001				    int advice); }
1002