syscalls.master revision 197636
1 $FreeBSD: head/sys/compat/freebsd32/syscalls.master 197636 2009-09-30 08:46:01Z rwatson $
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, LIBCOMPAT, 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;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
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; Reserved/unimplemented system calls in the range 0-150 inclusive
57; are reserved for use in future Berkeley releases.
58; Additional system calls implemented in vendor and other
59; redistributions should be placed in the reserved range at the end
60; of the current calls.
61
620	AUE_NULL	NOPROTO	{ int nosys(void); } syscall nosys_args int
631	AUE_EXIT	NOPROTO	{ void sys_exit(int rval); } exit \
64				    sys_exit_args void
652	AUE_FORK	NOPROTO	{ int fork(void); }
663	AUE_READ	NOPROTO	{ ssize_t read(int fd, void *buf, \
67				    size_t nbyte); }
684	AUE_WRITE	NOPROTO	{ ssize_t write(int fd, const void *buf, \
69				    size_t nbyte); }
705	AUE_OPEN_RWTC	NOPROTO	{ int open(char *path, int flags, \
71				    int mode); }
726	AUE_CLOSE	NOPROTO	{ int close(int fd); }
737	AUE_WAIT4	STD	{ int freebsd32_wait4(int pid, int *status, \
74				    int options, struct rusage32 *rusage); }
758	AUE_CREAT	OBSOL	old creat
769	AUE_LINK	NOPROTO	{ int link(char *path, char *link); }
7710	AUE_UNLINK	NOPROTO	{ int unlink(char *path); }
7811	AUE_NULL	OBSOL	execv
7912	AUE_CHDIR	NOPROTO	{ int chdir(char *path); }
8013	AUE_FCHDIR	NOPROTO	{ int fchdir(int fd); }
8114	AUE_MKNOD	NOPROTO	{ int mknod(char *path, int mode, int dev); }
8215	AUE_CHMOD	NOPROTO	{ int chmod(char *path, int mode); }
8316	AUE_CHOWN	NOPROTO	{ int chown(char *path, int uid, int gid); }
8417	AUE_NULL	NOPROTO	{ int obreak(char *nsize); } break \
85				    obreak_args int
8618	AUE_GETFSSTAT	COMPAT4	{ int freebsd32_getfsstat( \
87				    struct statfs32 *buf, long bufsize, \
88				    int flags); }
8919	AUE_LSEEK	OBSOL	olseek
9020	AUE_GETPID	NOPROTO	{ pid_t getpid(void); }
9121	AUE_MOUNT	NOPROTO	{ int mount(char *type, char *path, \
92				    int flags, caddr_t data); }
9322	AUE_UMOUNT	NOPROTO	{ int unmount(char *path, int flags); }
9423	AUE_SETUID	NOPROTO	{ int setuid(uid_t uid); }
9524	AUE_GETUID	NOPROTO	{ uid_t getuid(void); }
9625	AUE_GETEUID	NOPROTO	{ uid_t geteuid(void); }
9726	AUE_PTRACE	NOPROTO	{ int ptrace(int req, pid_t pid, \
98				    caddr_t addr, int data); }
9927	AUE_RECVMSG	STD	{ int freebsd32_recvmsg(int s, struct msghdr32 *msg, \
100				    int flags); }
10128	AUE_SENDMSG	STD	{ int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
102				    int flags); }
10329	AUE_RECVFROM	STD	{ int freebsd32_recvfrom(int s, u_int32_t buf, \
104				    u_int32_t len, int flags, u_int32_t from, \
105				    u_int32_t fromlenaddr); }
10630	AUE_ACCEPT	NOPROTO	{ int accept(int s, caddr_t name, \
107				    int *anamelen); }
10831	AUE_GETPEERNAME	NOPROTO	{ int getpeername(int fdes, caddr_t asa, \
109				    int *alen); }
11032	AUE_GETSOCKNAME	NOPROTO	{ int getsockname(int fdes, caddr_t asa, \
111				    int *alen); }
11233	AUE_ACCESS	NOPROTO	{ int access(char *path, int flags); }
11334	AUE_CHFLAGS	NOPROTO	{ int chflags(char *path, int flags); }
11435	AUE_FCHFLAGS	NOPROTO	{ int fchflags(int fd, int flags); }
11536	AUE_SYNC	NOPROTO	{ int sync(void); }
11637	AUE_KILL	NOPROTO	{ int kill(int pid, int signum); }
11738	AUE_STAT	UNIMPL	ostat
11839	AUE_GETPPID	NOPROTO	{ pid_t getppid(void); }
11940	AUE_LSTAT	UNIMPL	olstat
12041	AUE_DUP		NOPROTO	{ int dup(u_int fd); }
12142	AUE_PIPE	NOPROTO	{ int pipe(void); }
12243	AUE_GETEGID	NOPROTO	{ gid_t getegid(void); }
12344	AUE_PROFILE	NOPROTO	{ int profil(caddr_t samples, size_t size, \
124				    size_t offset, u_int scale); }
12545	AUE_KTRACE	NOPROTO	{ int ktrace(const char *fname, int ops, \
126				    int facs, int pid); }
12746	AUE_SIGACTION	COMPAT	{ int freebsd32_sigaction( int signum, \
128				   struct osigaction32 *nsa, \
129				   struct osigaction32 *osa); }
13047	AUE_GETGID	NOPROTO	{ gid_t getgid(void); }
13148	AUE_SIGPROCMASK	COMPAT	{ int freebsd32_sigprocmask(int how, \
132				   osigset_t mask); }
13349	AUE_GETLOGIN	NOPROTO	{ int getlogin(char *namebuf, \
134				    u_int namelen); }
13550	AUE_SETLOGIN	NOPROTO	{ int setlogin(char *namebuf); }
13651	AUE_ACCT	NOPROTO	{ int acct(char *path); }
13752	AUE_SIGPENDING	COMPAT	{ int freebsd32_sigpending(void); }
13853	AUE_SIGALTSTACK	STD	{ int freebsd32_sigaltstack( \
139				    struct sigaltstack32 *ss, \
140				    struct sigaltstack32 *oss); }
14154	AUE_NULL	STD	{ int freebsd32_ioctl(int fd, uint32_t com, \
142				    struct md_ioctl32 *data); }
14355	AUE_REBOOT	NOPROTO	{ int reboot(int opt); }
14456	AUE_REVOKE	NOPROTO	{ int revoke(char *path); }
14557	AUE_SYMLINK	NOPROTO	{ int symlink(char *path, char *link); }
14658	AUE_READLINK	NOPROTO	{ ssize_t readlink(char *path, char *buf, \
147				    size_t count); }
14859	AUE_EXECVE	STD	{ int freebsd32_execve(char *fname, \
149				    u_int32_t *argv, u_int32_t *envv); }
15060	AUE_UMASK	NOPROTO	{ int umask(int newmask); } umask \
151				    umask_args int
15261	AUE_CHROOT	NOPROTO	{ int chroot(char *path); }
15362	AUE_FSTAT	OBSOL	ofstat
15463	AUE_NULL	OBSOL	ogetkerninfo
15564	AUE_NULL	OBSOL	ogetpagesize
15665	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
157				    int flags); }
15866	AUE_VFORK	NOPROTO	{ int vfork(void); }
15967	AUE_NULL	OBSOL	vread
16068	AUE_NULL	OBSOL	vwrite
16169	AUE_SBRK	NOPROTO	{ int sbrk(int incr); }
16270	AUE_SSTK	NOPROTO	{ int sstk(int incr); }
16371	AUE_MMAP	OBSOL	ommap
16472	AUE_O_VADVISE	NOPROTO	{ int ovadvise(int anom); } vadvise \
165				    ovadvise_args int
16673	AUE_MUNMAP	NOPROTO	{ int munmap(void *addr, size_t len); }
16774	AUE_MPROTECT	NOPROTO	{ int mprotect(const void *addr, \
168				    size_t len, int prot); }
16975	AUE_MADVISE	NOPROTO	{ int madvise(void *addr, size_t len, \
170				    int behav); }
17176	AUE_NULL	OBSOL	vhangup
17277	AUE_NULL	OBSOL	vlimit
17378	AUE_MINCORE	NOPROTO	{ int mincore(const void *addr, size_t len, \
174				    char *vec); }
17579	AUE_GETGROUPS	NOPROTO	{ int getgroups(u_int gidsetsize, \
176				    gid_t *gidset); }
17780	AUE_SETGROUPS	NOPROTO	{ int setgroups(u_int gidsetsize, \
178				    gid_t *gidset); }
17981	AUE_GETPGRP	NOPROTO	{ int getpgrp(void); }
18082	AUE_SETPGRP	NOPROTO	{ int setpgid(int pid, int pgid); }
18183	AUE_SETITIMER	STD	{ int freebsd32_setitimer(u_int which, \
182				    struct itimerval32 *itv, \
183				    struct itimerval32 *oitv); }
18484	AUE_NULL	OBSOL	owait
185; XXX implement
18685	AUE_SWAPON	NOPROTO	{ int swapon(char *name); }
18786	AUE_GETITIMER	STD	{ int freebsd32_getitimer(u_int which, \
188				    struct itimerval32 *itv); }
18987	AUE_O_GETHOSTNAME	OBSOL	ogethostname
19088	AUE_O_SETHOSTNAME	OBSOL	osethostname
19189	AUE_GETDTABLESIZE	NOPROTO	{ int getdtablesize(void); }
19290	AUE_DUP2	NOPROTO	{ int dup2(u_int from, u_int to); }
19391	AUE_NULL	UNIMPL	getdopt
19492	AUE_FCNTL	NOPROTO	{ int fcntl(int fd, int cmd, long arg); }
19593	AUE_SELECT	STD	{ int freebsd32_select(int nd, fd_set *in, \
196				    fd_set *ou, fd_set *ex, \
197				    struct timeval32 *tv); }
198; XXX need to override for big-endian - little-endian should work fine.
19994	AUE_NULL	UNIMPL	setdopt
20095	AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
20196	AUE_SETPRIORITY	NOPROTO	{ int setpriority(int which, int who, \
202				    int prio); }
20397	AUE_SOCKET	NOPROTO	{ int socket(int domain, int type, \
204				    int protocol); }
20598	AUE_CONNECT	NOPROTO	{ int connect(int s, caddr_t name, \
206				    int namelen); }
20799	AUE_NULL	OBSOL	oaccept
208100	AUE_GETPRIORITY	NOPROTO	{ int getpriority(int which, int who); }
209101	AUE_NULL	OBSOL	osend
210102	AUE_NULL	OBSOL	orecv
211103	AUE_NULL	OBSOL	osigreturn
212104	AUE_BIND	NOPROTO	{ int bind(int s, caddr_t name, \
213				    int namelen); }
214105	AUE_SETSOCKOPT	NOPROTO	{ int setsockopt(int s, int level, \
215				    int name, caddr_t val, int valsize); }
216106	AUE_LISTEN	NOPROTO	{ int listen(int s, int backlog); }
217107	AUE_NULL	OBSOL	vtimes
218108	AUE_O_SIGVEC	COMPAT	{ int freebsd32_sigvec(int signum, \
219				     struct sigvec32 *nsv, \
220				     struct sigvec32 *osv); }
221109	AUE_O_SIGBLOCK	COMPAT	{ int freebsd32_sigblock(int mask); }
222110	AUE_O_SIGSETMASK	COMPAT	{ int freebsd32_sigsetmask( int mask); }
223111	AUE_SIGSUSPEND	COMPAT	{ int freebsd32_sigsuspend( int mask); }
224112	AUE_O_SIGSTACK	COMPAT	{ int freebsd32_sigstack( \
225				     struct sigstack32 *nss, \
226				     struct sigstack32 *oss); }
227113	AUE_NULL	OBSOL	orecvmsg
228114	AUE_NULL	OBSOL	osendmsg
229115	AUE_NULL	OBSOL	vtrace
230116	AUE_GETTIMEOFDAY	STD	{ int freebsd32_gettimeofday( \
231				    struct timeval32 *tp, \
232				    struct timezone *tzp); }
233117	AUE_GETRUSAGE	STD	{ int freebsd32_getrusage(int who, \
234				    struct rusage32 *rusage); }
235118	AUE_GETSOCKOPT	NOPROTO	{ int getsockopt(int s, int level, \
236				    int name, caddr_t val, int *avalsize); }
237119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
238120	AUE_READV	STD	{ int freebsd32_readv(int fd, \
239				    struct iovec32 *iovp, u_int iovcnt); }
240121	AUE_WRITEV	STD	{ int freebsd32_writev(int fd, \
241				    struct iovec32 *iovp, u_int iovcnt); }
242122	AUE_SETTIMEOFDAY	STD	{ int freebsd32_settimeofday( \
243				    struct timeval32 *tv, \
244				    struct timezone *tzp); }
245123	AUE_FCHOWN	NOPROTO	{ int fchown(int fd, int uid, int gid); }
246124	AUE_FCHMOD	NOPROTO	{ int fchmod(int fd, int mode); }
247125	AUE_RECVFROM	OBSOL	orecvfrom
248126	AUE_SETREUID	NOPROTO	{ int setreuid(int ruid, int euid); }
249127	AUE_SETREGID	NOPROTO	{ int setregid(int rgid, int egid); }
250128	AUE_RENAME	NOPROTO	{ int rename(char *from, char *to); }
251129	AUE_TRUNCATE	OBSOL	otruncate
252130	AUE_FTRUNCATE	OBSOL	ftruncate
253131	AUE_FLOCK	NOPROTO	{ int flock(int fd, int how); }
254132	AUE_MKFIFO	NOPROTO	{ int mkfifo(char *path, int mode); }
255133	AUE_SENDTO	NOPROTO	{ int sendto(int s, caddr_t buf, \
256				    size_t len, int flags, caddr_t to, \
257				    int tolen); }
258134	AUE_SHUTDOWN	NOPROTO	{ int shutdown(int s, int how); }
259135	AUE_SOCKETPAIR	NOPROTO	{ int socketpair(int domain, int type, \
260				    int protocol, int *rsv); }
261136	AUE_MKDIR	NOPROTO	{ int mkdir(char *path, int mode); }
262137	AUE_RMDIR	NOPROTO	{ int rmdir(char *path); }
263138	AUE_UTIMES	STD	{ int freebsd32_utimes(char *path, \
264				    struct timeval32 *tptr); }
265139	AUE_NULL	OBSOL	4.2 sigreturn
266140	AUE_ADJTIME	STD	{ int freebsd32_adjtime( \
267				    struct timeval32 *delta, \
268				    struct timeval32 *olddelta); }
269141	AUE_GETPEERNAME	OBSOL	ogetpeername
270142	AUE_SYSCTL	OBSOL	ogethostid
271143	AUE_SYSCTL	OBSOL	sethostid
272144	AUE_GETRLIMIT	OBSOL	getrlimit
273145	AUE_SETRLIMIT	OBSOL	setrlimit
274146	AUE_KILLPG	OBSOL	killpg
275147	AUE_SETSID	NOPROTO	{ int setsid(void); }
276148	AUE_QUOTACTL	NOPROTO	{ int quotactl(char *path, int cmd, int uid, \
277				    caddr_t arg); }
278149	AUE_O_QUOTA	OBSOL oquota
279150	AUE_GETSOCKNAME	OBSOL ogetsockname
280
281; Syscalls 151-180 inclusive are reserved for vendor-specific
282; system calls.  (This includes various calls added for compatibity
283; with other Unix variants.)
284; Some of these calls are now supported by BSD...
285151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
286152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
287153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
288; 154 is initialised by the NLM code, if present.
289154	AUE_NULL	UNIMPL	nlm_syscall
290; 155 is initialized by the NFS code, if present.
291; XXX this is a problem!!!
292155	AUE_NFS_SVC	UNIMPL	nfssvc
293156	AUE_GETDIRENTRIES	OBSOL	ogetdirentries
294157	AUE_STATFS	COMPAT4	{ int freebsd32_statfs(char *path, \
295				    struct statfs32 *buf); }
296158	AUE_FSTATFS	COMPAT4	{ int freebsd32_fstatfs(int fd, \
297				    struct statfs32 *buf); }
298159	AUE_NULL	UNIMPL	nosys
299160	AUE_LGETFH	UNIMPL	lgetfh
300161	AUE_NFS_GETFH	NOPROTO	{ int getfh(char *fname, \
301				    struct fhandle *fhp); }
302162	AUE_NULL	OBSOL	getdomainname
303163	AUE_NULL	OBSOL	setdomainname
304164	AUE_NULL	OBSOL	uname
305165	AUE_SYSARCH	STD	{ int freebsd32_sysarch(int op, char *parms); }
306166	AUE_RTPRIO	NOPROTO	{ int rtprio(int function, pid_t pid, \
307				    struct rtprio *rtp); }
308167	AUE_NULL	UNIMPL	nosys
309168	AUE_NULL	UNIMPL	nosys
310169	AUE_SEMSYS	STD	{ int freebsd32_semsys(int which, int a2, \
311				    int a3, int a4, int a5); }
312170	AUE_MSGSYS	STD	{ int freebsd32_msgsys(int which, int a2, \
313				    int a3, int a4, int a5, int a6); }
314171	AUE_SHMSYS	STD	{ int freebsd32_shmsys(uint32_t which, uint32_t a2, \
315				    uint32_t a3, uint32_t a4); }
316172	AUE_NULL	UNIMPL	nosys
317173	AUE_PREAD	COMPAT6	{ ssize_t freebsd32_pread(int fd, void *buf, \
318				    size_t nbyte, int pad, \
319				    u_int32_t offsetlo, u_int32_t offsethi); }
320; XXX note - bigendian is different
321174	AUE_PWRITE	COMPAT6	{ ssize_t freebsd32_pwrite(int fd, \
322				    const void *buf, size_t nbyte, int pad, \
323				    u_int32_t offsetlo, u_int32_t offsethi); }
324; XXX note - bigendian is different
325175	AUE_NULL	UNIMPL	nosys
326176	AUE_NTP_ADJTIME	NOPROTO	{ int ntp_adjtime(struct timex *tp); }
327177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
328178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
329179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
330180	AUE_NULL	UNIMPL	nosys
331
332; Syscalls 181-199 are used by/reserved for BSD
333181	AUE_SETGID	NOPROTO	{ int setgid(gid_t gid); }
334182	AUE_SETEGID	NOPROTO	{ int setegid(gid_t egid); }
335183	AUE_SETEUID	NOPROTO	{ int seteuid(uid_t euid); }
336184	AUE_NULL	UNIMPL	lfs_bmapv
337185	AUE_NULL	UNIMPL	lfs_markv
338186	AUE_NULL	UNIMPL	lfs_segclean
339187	AUE_NULL	UNIMPL	lfs_segwait
340188	AUE_STAT	STD	{ int freebsd32_stat(char *path, \
341				    struct stat32 *ub); }
342189	AUE_FSTAT	STD	{ int freebsd32_fstat(int fd, \
343				    struct stat32 *ub); }
344190	AUE_LSTAT	STD	{ int freebsd32_lstat(char *path, \
345				    struct stat32 *ub); }
346191	AUE_PATHCONF	NOPROTO	{ int pathconf(char *path, int name); }
347192	AUE_FPATHCONF	NOPROTO	{ int fpathconf(int fd, int name); }
348193	AUE_NULL	UNIMPL	nosys
349194	AUE_GETRLIMIT	NOPROTO	{ int getrlimit(u_int which, \
350				    struct rlimit *rlp); } getrlimit \
351				    __getrlimit_args int
352195	AUE_SETRLIMIT	NOPROTO	{ int setrlimit(u_int which, \
353				    struct rlimit *rlp); } setrlimit \
354				    __setrlimit_args int
355196	AUE_GETDIRENTRIES	STD	{ int freebsd32_getdirentries(int fd, \
356				    char *buf, u_int count, int32_t *basep); }
357197	AUE_MMAP	COMPAT6	{ caddr_t freebsd32_mmap(caddr_t addr, \
358				    size_t len, int prot, int flags, int fd, \
359				    int pad, u_int32_t poslo, \
360				    u_int32_t poshi); }
361198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
362				    __syscall_args int
363; XXX note - bigendian is different
364199	AUE_LSEEK	COMPAT6	{ off_t freebsd32_lseek(int fd, int pad, \
365				    u_int32_t offsetlo, u_int32_t offsethi, \
366				    int whence); }
367; XXX note - bigendian is different
368200	AUE_TRUNCATE	COMPAT6	{ int freebsd32_truncate(char *path, \
369				    int pad, u_int32_t lengthlo, \
370				    u_int32_t lengthhi); }
371; XXX note - bigendian is different
372201	AUE_FTRUNCATE	COMPAT6	{ int freebsd32_ftruncate(int fd, int pad, \
373				    u_int32_t lengthlo, u_int32_t lengthhi); }
374202	AUE_SYSCTL	STD	{ int freebsd32_sysctl(int *name, \
375				    u_int namelen, void *old, \
376				    u_int32_t *oldlenp, void *new, \
377				    u_int32_t newlen); }
378203	AUE_MLOCK	NOPROTO	{ int mlock(const void *addr, \
379				    size_t len); }
380204	AUE_MUNLOCK	NOPROTO	{ int munlock(const void *addr, \
381				    size_t len); }
382205	AUE_UNDELETE	NOPROTO	{ int undelete(char *path); }
383206	AUE_FUTIMES	STD	{ int freebsd32_futimes(int fd, \
384				    struct timeval32 *tptr); }
385207	AUE_GETPGID	NOPROTO	{ int getpgid(pid_t pid); }
386208	AUE_NULL	UNIMPL	newreboot (NetBSD)
387209	AUE_POLL	NOPROTO	{ int poll(struct pollfd *fds, u_int nfds, \
388				    int timeout); }
389
390;
391; The following are reserved for loadable syscalls
392;
393210	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
394211	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
395212	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
396213	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
397214	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
398215	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
399216	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
400217	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
401218	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
402219	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
403
404;
405; The following were introduced with NetBSD/4.4Lite-2
406; They are initialized by thier respective modules/sysinits
407; XXX PROBLEM!!
408220	AUE_SEMCTL	COMPAT7	{ int freebsd32_semctl(int semid, int semnum, \
409				    int cmd, union semun32 *arg); }
410221	AUE_SEMGET	NOPROTO	{ int semget(key_t key, int nsems, \
411				    int semflg); }
412222	AUE_SEMOP	NOPROTO	{ int semop(int semid, struct sembuf *sops, \
413				    u_int nsops); }
414223	AUE_NULL	UNIMPL	semconfig
415224	AUE_MSGCTL	COMPAT7	{ int freebsd32_msgctl(int msqid, int cmd, \
416				    struct msqid_ds32_old *buf); }
417225	AUE_MSGGET	NOPROTO	{ int msgget(key_t key, int msgflg); }
418226	AUE_MSGSND	STD	{ int freebsd32_msgsnd(int msqid, void *msgp, \
419				    size_t msgsz, int msgflg); }
420227	AUE_MSGRCV	STD	{ int freebsd32_msgrcv(int msqid, void *msgp, \
421				    size_t msgsz, long msgtyp, int msgflg); }
422228	AUE_SHMAT	NOPROTO	{ int shmat(int shmid, void *shmaddr, \
423				    int shmflg); }
424229	AUE_SHMCTL	COMPAT7	{ int freebsd32_shmctl(int shmid, int cmd, \
425				    struct shmid_ds32_old *buf); }
426230	AUE_SHMDT	NOPROTO	{ int shmdt(void *shmaddr); }
427231	AUE_SHMGET	NOPROTO	{ int shmget(key_t key, int size, \
428				    int shmflg); }
429;
430232	AUE_NULL	STD 	{ int freebsd32_clock_gettime(clockid_t clock_id, \
431				    struct timespec32 *tp); }
432233	AUE_CLOCK_SETTIME	STD	{ int freebsd32_clock_settime(clockid_t clock_id, \
433				    const struct timespec32 *tp); }
434234	AUE_NULL	STD	{ int freebsd32_clock_getres(clockid_t clock_id, \
435				    struct timespec32 *tp); }
436235	AUE_NULL	UNIMPL	timer_create
437236	AUE_NULL	UNIMPL	timer_delete
438237	AUE_NULL	UNIMPL	timer_settime
439238	AUE_NULL	UNIMPL	timer_gettime
440239	AUE_NULL	UNIMPL	timer_getoverrun
441240	AUE_NULL	STD	{ int freebsd32_nanosleep( \
442				    const struct timespec32 *rqtp, \
443				    struct timespec32 *rmtp); }
444241	AUE_NULL	UNIMPL	nosys
445242	AUE_NULL	UNIMPL	nosys
446243	AUE_NULL	UNIMPL	nosys
447244	AUE_NULL	UNIMPL	nosys
448245	AUE_NULL	UNIMPL	nosys
449246	AUE_NULL	UNIMPL	nosys
450247	AUE_NULL	UNIMPL	nosys
451248	AUE_NULL	UNIMPL	ntp_gettime
452249	AUE_NULL	UNIMPL	nosys
453; syscall numbers initially used in OpenBSD
454250	AUE_MINHERIT	NOPROTO	{ int minherit(void *addr, size_t len, \
455				    int inherit); }
456251	AUE_RFORK	NOPROTO	{ int rfork(int flags); }
457252	AUE_POLL	NOPROTO	{ int openbsd_poll(struct pollfd *fds, \
458				    u_int nfds, int timeout); }
459253	AUE_ISSETUGID	NOPROTO	{ int issetugid(void); }
460254	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, int uid, int gid); }
461255	AUE_NULL	NOSTD	{ int freebsd32_aio_read( \
462				    struct aiocb32 *aiocbp); }
463256	AUE_NULL	NOSTD	{ int freebsd32_aio_write( \
464				    struct aiocb32 *aiocbp); }
465257	AUE_NULL	NOSTD	{ int freebsd32_lio_listio(int mode, \
466				    struct aiocb32 * const *acb_list, \
467				    int nent, struct sigevent *sig); }
468258	AUE_NULL	UNIMPL	nosys
469259	AUE_NULL	UNIMPL	nosys
470260	AUE_NULL	UNIMPL	nosys
471261	AUE_NULL	UNIMPL	nosys
472262	AUE_NULL	UNIMPL	nosys
473263	AUE_NULL	UNIMPL	nosys
474264	AUE_NULL	UNIMPL	nosys
475265	AUE_NULL	UNIMPL	nosys
476266	AUE_NULL	UNIMPL	nosys
477267	AUE_NULL	UNIMPL	nosys
478268	AUE_NULL	UNIMPL	nosys
479269	AUE_NULL	UNIMPL	nosys
480270	AUE_NULL	UNIMPL	nosys
481271	AUE_NULL	UNIMPL	nosys
482272	AUE_O_GETDENTS	NOPROTO	{ int getdents(int fd, char *buf, \
483				    size_t count); }
484273	AUE_NULL	UNIMPL	nosys
485274	AUE_LCHMOD	NOPROTO	{ int lchmod(char *path, mode_t mode); }
486275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
487				    gid_t gid); } netbsd_lchown \
488				    lchown_args int
489276	AUE_LUTIMES	STD	{ int freebsd32_lutimes(char *path, \
490				    struct timeval32 *tptr); }
491277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
492				    int flags); } netbsd_msync msync_args int
493278	AUE_STAT	NOPROTO	{ int nstat(char *path, struct nstat *ub); }
494279	AUE_FSTAT	NOPROTO	{ int nfstat(int fd, struct nstat *sb); }
495280	AUE_LSTAT	NOPROTO	{ int nlstat(char *path, struct nstat *ub); }
496281	AUE_NULL	UNIMPL	nosys
497282	AUE_NULL	UNIMPL	nosys
498283	AUE_NULL	UNIMPL	nosys
499284	AUE_NULL	UNIMPL	nosys
500285	AUE_NULL	UNIMPL	nosys
501286	AUE_NULL	UNIMPL	nosys
502287	AUE_NULL	UNIMPL	nosys
503288	AUE_NULL	UNIMPL	nosys
504; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
505289	AUE_PREADV	STD	{ ssize_t freebsd32_preadv(int fd, \
506					struct iovec32 *iovp, \
507					u_int iovcnt, off_t offset); }
508; XXX note - bigendian is different
509290	AUE_PWRITEV	STD	{ ssize_t freebsd32_pwritev(int fd, \
510					struct iovec32 *iovp, \
511					u_int iovcnt, off_t offset); }
512; XXX note - bigendian is different
513291	AUE_NULL	UNIMPL	nosys
514292	AUE_NULL	UNIMPL	nosys
515293	AUE_NULL	UNIMPL	nosys
516294	AUE_NULL	UNIMPL	nosys
517295	AUE_NULL	UNIMPL	nosys
518296	AUE_NULL	UNIMPL	nosys
519; XXX 297 is 300 in NetBSD 
520297	AUE_FHSTATFS	COMPAT4	{ int freebsd32_fhstatfs( \
521				    const struct fhandle *u_fhp, \
522				    struct statfs32 *buf); }
523298	AUE_FHOPEN	NOPROTO	{ int fhopen(const struct fhandle *u_fhp, \
524			 	    int flags); }
525299	AUE_FHSTAT	NOPROTO	{ int fhstat(const struct fhandle *u_fhp, \
526				    struct stat *sb); }
527; syscall numbers for FreeBSD
528300	AUE_NULL	NOPROTO	{ int modnext(int modid); }
529301	AUE_NULL	STD	{ int freebsd32_modstat(int modid, \
530				    struct module_stat32* stat); }
531302	AUE_NULL	NOPROTO	{ int modfnext(int modid); }
532303	AUE_NULL	NOPROTO	{ int modfind(const char *name); }
533304	AUE_MODLOAD	NOPROTO	{ int kldload(const char *file); }
534305	AUE_MODUNLOAD	NOPROTO	{ int kldunload(int fileid); }
535306	AUE_NULL	NOPROTO	{ int kldfind(const char *file); }
536307	AUE_NULL	NOPROTO	{ int kldnext(int fileid); }
537308	AUE_NULL	NOPROTO	{ int kldstat(int fileid, \
538				    struct kld_file_stat* stat); }
539309	AUE_NULL	NOPROTO	{ int kldfirstmod(int fileid); }
540310	AUE_GETSID	NOPROTO	{ int getsid(pid_t pid); }
541311	AUE_SETRESUID	NOPROTO	{ int setresuid(uid_t ruid, uid_t euid, \
542				    uid_t suid); }
543312	AUE_SETRESGID	NOPROTO	{ int setresgid(gid_t rgid, gid_t egid, \
544				    gid_t sgid); }
545313	AUE_NULL	OBSOL	signanosleep
546314	AUE_NULL	NOSTD	{ int freebsd32_aio_return( \
547				    struct aiocb32 *aiocbp); }
548315	AUE_NULL	NOSTD	{ int freebsd32_aio_suspend( \
549				    struct aiocb32 * const * aiocbp, int nent, \
550				    const struct timespec32 *timeout); }
551316	AUE_NULL	NOSTD	{ int freebsd32_aio_cancel(int fd, \
552				    struct aiocb32 *aiocbp); }
553317	AUE_NULL	NOSTD	{ int freebsd32_aio_error( \
554				    struct aiocb32 *aiocbp); }
555318	AUE_NULL	NOSTD	{ int freebsd32_oaio_read( \
556				    struct oaiocb32 *aiocbp); }
557319	AUE_NULL	NOSTD	{ int freebsd32_oaio_write( \
558				    struct oaiocb32 *aiocbp); }
559320	AUE_NULL	NOSTD	{ int freebsd32_olio_listio(int mode, \
560				    struct oaiocb32 * const *acb_list, \
561				    int nent, struct osigevent32 *sig); }
562321	AUE_NULL	NOPROTO	{ int yield(void); }
563322	AUE_NULL	OBSOL	thr_sleep
564323	AUE_NULL	OBSOL	thr_wakeup
565324	AUE_MLOCKALL	NOPROTO	{ int mlockall(int how); }
566325	AUE_MUNLOCKALL	NOPROTO	{ int munlockall(void); }
567326	AUE_GETCWD	NOPROTO	{ int __getcwd(u_char *buf, u_int buflen); }
568
569327	AUE_NULL	NOPROTO	{ int sched_setparam (pid_t pid, \
570				    const struct sched_param *param); }
571328	AUE_NULL	NOPROTO	{ int sched_getparam (pid_t pid, \
572				    struct sched_param *param); }
573
574329	AUE_NULL	NOPROTO	{ int sched_setscheduler (pid_t pid, \
575				    int policy, \
576				    const struct sched_param *param); }
577330	AUE_NULL	NOPROTO	{ int sched_getscheduler (pid_t pid); }
578
579331	AUE_NULL	NOPROTO	{ int sched_yield (void); }
580332	AUE_NULL	NOPROTO	{ int sched_get_priority_max (int policy); }
581333	AUE_NULL	NOPROTO	{ int sched_get_priority_min (int policy); }
582334	AUE_NULL	NOPROTO	{ int sched_rr_get_interval (pid_t pid, \
583				    struct timespec *interval); }
584335	AUE_NULL	NOPROTO	{ int utrace(const void *addr, size_t len); }
585; XXX note - bigendian is different
586336	AUE_SENDFILE	COMPAT4	{ int freebsd32_sendfile(int fd, int s, \
587				    u_int32_t offsetlo, u_int32_t offsethi, \
588				    size_t nbytes, struct sf_hdtr32 *hdtr, \
589				    off_t *sbytes, int flags); }
590337	AUE_NULL	NOPROTO	{ int kldsym(int fileid, int cmd, \
591				    void *data); }
592338	AUE_JAIL	STD	{ int freebsd32_jail(struct jail32 *jail); }
593339	AUE_NULL	UNIMPL	pioctl
594340	AUE_SIGPROCMASK	NOPROTO	{ int sigprocmask(int how, \
595				    const sigset_t *set, sigset_t *oset); }
596341	AUE_SIGSUSPEND	NOPROTO	{ int sigsuspend(const sigset_t *sigmask); }
597342	AUE_SIGACTION	COMPAT4	{ int freebsd32_sigaction(int sig, \
598				    struct sigaction32 *act, \
599				    struct sigaction32 *oact); }
600343	AUE_SIGPENDING	NOPROTO	{ int sigpending(sigset_t *set); }
601344	AUE_SIGRETURN	COMPAT4	{ int freebsd32_sigreturn( \
602		    const struct freebsd4_freebsd32_ucontext *sigcntxp); }
603345	AUE_SIGWAIT	STD	{ int freebsd32_sigtimedwait(const sigset_t *set, \
604				    siginfo_t *info, \
605				    const struct timespec *timeout); }
606346	AUE_NULL	STD	{ int freebsd32_sigwaitinfo(const sigset_t *set, \
607				    siginfo_t *info); }
608347	AUE_NULL	NOPROTO	{ int __acl_get_file(const char *path, \
609				    acl_type_t type, struct acl *aclp); }
610348	AUE_NULL	NOPROTO	{ int __acl_set_file(const char *path, \
611				    acl_type_t type, struct acl *aclp); }
612349	AUE_NULL	NOPROTO	{ int __acl_get_fd(int filedes, \
613				    acl_type_t type, struct acl *aclp); }
614350	AUE_NULL	NOPROTO	{ int __acl_set_fd(int filedes, \
615				    acl_type_t type, struct acl *aclp); }
616351	AUE_NULL	NOPROTO	{ int __acl_delete_file(const char *path, \
617				    acl_type_t type); }
618352	AUE_NULL	NOPROTO	{ int __acl_delete_fd(int filedes, \
619				    acl_type_t type); }
620353	AUE_NULL	NOPROTO	{ int __acl_aclcheck_file(const char *path, \
621				    acl_type_t type, struct acl *aclp); }
622354	AUE_NULL	NOPROTO	{ int __acl_aclcheck_fd(int filedes, \
623				    acl_type_t type, struct acl *aclp); }
624355	AUE_EXTATTRCTL	NOPROTO	{ int extattrctl(const char *path, int cmd, \
625				    const char *filename, int attrnamespace, \
626				    const char *attrname); }
627356	AUE_EXTATTR_SET_FILE	NOPROTO	{ int extattr_set_file( \
628				    const char *path, int attrnamespace, \
629				    const char *attrname, void *data, \
630				    size_t nbytes); }
631357	AUE_EXTATTR_GET_FILE	NOPROTO	{ ssize_t extattr_get_file( \
632				    const char *path, int attrnamespace, \
633				    const char *attrname, void *data, \
634				    size_t nbytes); }
635358	AUE_EXTATTR_DELETE_FILE	NOPROTO	{ int extattr_delete_file( \
636				    const char *path, int attrnamespace, \
637				    const char *attrname); }
638359	AUE_NULL	NOSTD	{ int freebsd32_aio_waitcomplete( \
639				    struct aiocb32 **aiocbp, \
640				    struct timespec32 *timeout); }
641360	AUE_GETRESUID	NOPROTO	{ int getresuid(uid_t *ruid, uid_t *euid, \
642				    uid_t *suid); }
643361	AUE_GETRESGID	NOPROTO	{ int getresgid(gid_t *rgid, gid_t *egid, \
644				    gid_t *sgid); }
645362	AUE_KQUEUE	NOPROTO	{ int kqueue(void); }
646363	AUE_NULL	STD	{ int freebsd32_kevent(int fd, \
647				    const struct kevent32 *changelist, \
648				    int nchanges, \
649				    struct kevent32 *eventlist, int nevents, \
650				    const struct timespec32 *timeout); }
651364	AUE_NULL	UNIMPL	__cap_get_proc
652365	AUE_NULL	UNIMPL	__cap_set_proc
653366	AUE_NULL	UNIMPL	__cap_get_fd
654367	AUE_NULL	UNIMPL	__cap_get_file
655368	AUE_NULL	UNIMPL	__cap_set_fd
656369	AUE_NULL	UNIMPL	__cap_set_file
657370	AUE_NULL	UNIMPL	nosys
658371	AUE_EXTATTR_SET_FD	NOPROTO	{ int extattr_set_fd(int fd, \
659				    int attrnamespace, const char *attrname, \
660				    void *data, size_t nbytes); }
661372	AUE_EXTATTR_GET_FD	NOPROTO	{ ssize_t extattr_get_fd(int fd, \
662				    int attrnamespace, const char *attrname, \
663				    void *data, size_t nbytes); }
664373	AUE_EXTATTR_DELETE_FD	NOPROTO	{ int extattr_delete_fd(int fd, \
665				    int attrnamespace, \
666				    const char *attrname); }
667374	AUE_NULL	NOPROTO	{ int __setugid(int flag); }
668375	AUE_NULL	UNIMPL	nfsclnt
669376	AUE_EACCESS	NOPROTO	{ int eaccess(char *path, int flags); }
670377	AUE_NULL	UNIMPL	afs_syscall
671378	AUE_NMOUNT	STD	{ int freebsd32_nmount(struct iovec32 *iovp, \
672				    unsigned int iovcnt, int flags); }
673379	AUE_NULL	UNIMPL	kse_exit
674380	AUE_NULL	UNIMPL	kse_wakeup
675381	AUE_NULL	UNIMPL	kse_create
676382	AUE_NULL	UNIMPL	kse_thr_interrupt
677383	AUE_NULL	UNIMPL	kse_release
678384	AUE_NULL	UNIMPL	__mac_get_proc
679385	AUE_NULL	UNIMPL	__mac_set_proc
680386	AUE_NULL	UNIMPL	__mac_get_fd
681387	AUE_NULL	UNIMPL	__mac_get_file
682388	AUE_NULL	UNIMPL	__mac_set_fd
683389	AUE_NULL	UNIMPL	__mac_set_file
684390	AUE_NULL	NOPROTO	{ int kenv(int what, const char *name, \
685				    char *value, int len); }
686391	AUE_LCHFLAGS	NOPROTO	{ int lchflags(const char *path, int flags); }
687392	AUE_NULL	NOPROTO	{ int uuidgen(struct uuid *store, \
688				    int count); }
689393	AUE_SENDFILE	STD	{ int freebsd32_sendfile(int fd, int s, \
690				    u_int32_t offsetlo, u_int32_t offsethi, \
691				    size_t nbytes, struct sf_hdtr32 *hdtr, \
692				    off_t *sbytes, int flags); }
693394	AUE_NULL	UNIMPL	mac_syscall
694395	AUE_GETFSSTAT	NOPROTO	{ int getfsstat(struct statfs *buf, \
695				    long bufsize, int flags); }
696396	AUE_STATFS	NOPROTO	{ int statfs(char *path, \
697				    struct statfs *buf); }
698397	AUE_FSTATFS	NOPROTO	{ int fstatfs(int fd, struct statfs *buf); }
699398	AUE_FHSTATFS	NOPROTO	{ int fhstatfs(const struct fhandle *u_fhp, \
700				    struct statfs *buf); }
701399	AUE_NULL	UNIMPL	nosys
702; XXX implement these?
703400	AUE_NULL	UNIMPL	ksem_close
704401	AUE_NULL	UNIMPL	ksem_post
705402	AUE_NULL	UNIMPL	ksem_wait
706403	AUE_NULL	UNIMPL	ksem_trywait
707404	AUE_NULL	UNIMPL	ksem_init
708405	AUE_NULL	UNIMPL	ksem_open
709406	AUE_NULL	UNIMPL	ksem_unlink
710407	AUE_NULL	UNIMPL	ksem_getvalue
711408	AUE_NULL	UNIMPL	ksem_destroy
712409	AUE_NULL	UNIMPL	__mac_get_pid
713410	AUE_NULL	UNIMPL	__mac_get_link
714411	AUE_NULL	UNIMPL	__mac_set_link
715412	AUE_EXTATTR_SET_LINK	NOPROTO	{ int extattr_set_link( \
716				    const char *path, int attrnamespace, \
717				    const char *attrname, void *data, \
718				    size_t nbytes); }
719413	AUE_EXTATTR_GET_LINK	NOPROTO	{ ssize_t extattr_get_link( \
720				    const char *path, int attrnamespace, \
721				    const char *attrname, void *data, \
722				    size_t nbytes); }
723414	AUE_EXTATTR_DELETE_LINK	NOPROTO	{ int extattr_delete_link( \
724				    const char *path, int attrnamespace, \
725				    const char *attrname); }
726415	AUE_NULL	UNIMPL	__mac_execve
727416	AUE_SIGACTION	STD	{ int freebsd32_sigaction(int sig, \
728				    struct sigaction32 *act, \
729				    struct sigaction32 *oact); }
730417	AUE_SIGRETURN	STD	{ int freebsd32_sigreturn( \
731		    const struct freebsd32_ucontext *sigcntxp); }
732418	AUE_NULL	UNIMPL	__xstat
733419	AUE_NULL	UNIMPL	__xfstat
734420	AUE_NULL	UNIMPL	__xlstat
735421	AUE_NULL	STD	{ int freebsd32_getcontext( \
736				    struct freebsd32_ucontext *ucp); }
737422	AUE_NULL	STD	{ int freebsd32_setcontext( \
738				    const struct freebsd32_ucontext *ucp); }
739423	AUE_NULL	STD	{ int freebsd32_swapcontext( \
740				    struct freebsd32_ucontext *oucp, \
741				    const struct freebsd32_ucontext *ucp); }
742424	AUE_SWAPOFF	UNIMPL	swapoff
743425	AUE_NULL	UNIMPL	__acl_get_link
744426	AUE_NULL	UNIMPL	__acl_set_link
745427	AUE_NULL	UNIMPL	__acl_delete_link
746428	AUE_NULL	UNIMPL	__acl_aclcheck_link
747429	AUE_SIGWAIT	NOPROTO	{ int sigwait(const sigset_t *set, \
748				    int *sig); }
749430	AUE_NULL	UNIMPL	thr_create;
750431	AUE_NULL	NOPROTO	{ void thr_exit(long *state); }
751432	AUE_NULL	NOPROTO	{ int thr_self(long *id); }
752433	AUE_NULL	NOPROTO	{ int thr_kill(long id, int sig); }
753434	AUE_NULL	STD	{ int freebsd32_umtx_lock(struct umtx *umtx); }
754435	AUE_NULL	STD	{ int freebsd32_umtx_unlock(struct umtx *umtx); }
755436	AUE_NULL	NOPROTO	{ int jail_attach(int jid); }
756437	AUE_EXTATTR_LIST_FD	NOPROTO	{ ssize_t extattr_list_fd(int fd, \
757				    int attrnamespace, void *data, \
758				    size_t nbytes); }
759438	AUE_EXTATTR_LIST_FILE	NOPROTO	{ ssize_t extattr_list_file( \
760				    const char *path, int attrnamespace, \
761				    void *data, size_t nbytes); }
762439	AUE_EXTATTR_LIST_LINK	NOPROTO	{ ssize_t extattr_list_link( \
763				    const char *path, int attrnamespace, \
764				    void *data, size_t nbytes); }
765440	AUE_NULL	UNIMPL	kse_switchin
766441	AUE_NULL	UNIMPL	ksem_timedwait
767442	AUE_NULL	STD	{ int freebsd32_thr_suspend( \
768				    const struct timespec32 *timeout); }
769443	AUE_NULL	NOPROTO	{ int thr_wake(long id); }
770444	AUE_MODUNLOAD	NOPROTO	{ int kldunloadf(int fileid, int flags); }
771445	AUE_AUDIT	NOPROTO	{ int audit(const void *record, \
772				    u_int length); }
773446	AUE_AUDITON	NOPROTO	{ int auditon(int cmd, void *data, \
774				    u_int length); }
775447	AUE_GETAUID	NOPROTO	{ int getauid(uid_t *auid); }
776448	AUE_SETAUID	NOPROTO	{ int setauid(uid_t *auid); }
777449	AUE_GETAUDIT	NOPROTO	{ int getaudit(struct auditinfo *auditinfo); }
778450	AUE_SETAUDIT	NOPROTO	{ int setaudit(struct auditinfo *auditinfo); }
779451	AUE_GETAUDIT_ADDR	NOPROTO	{ int getaudit_addr( \
780				    struct auditinfo_addr *auditinfo_addr, \
781				    u_int length); }
782452	AUE_SETAUDIT_ADDR	NOPROTO	{ int setaudit_addr( \
783				    struct auditinfo_addr *auditinfo_addr, \
784				    u_int length); }
785453	AUE_AUDITCTL	NOPROTO	{ int auditctl(char *path); }
786454	AUE_NULL	STD	{ int freebsd32_umtx_op(void *obj, int op,\
787				    u_long val, void *uaddr, \
788				    void *uaddr2); }
789455	AUE_NULL	STD	{ int freebsd32_thr_new(	\
790				    struct thr_param32 *param,	\
791				    int param_size); }
792456	AUE_NULL	NOPROTO	{ int sigqueue(pid_t pid, int signum, \
793				    void *value); }
794457	AUE_NULL	UNIMPL	kmq_open
795458	AUE_NULL	UNIMPL	kmq_setattr
796459	AUE_NULL	UNIMPL	kmq_timedreceive
797460	AUE_NULL	UNIMPL  kmq_timedsend
798461	AUE_NULL	UNIMPL	kmq_notify
799462	AUE_NULL	UNIMPL	kmq_unlink
800463	AUE_NULL	NOPROTO	{ int abort2(const char *why, int nargs, void **args); }
801464	AUE_NULL 	NOPROTO	{ int thr_set_name(long id, const char *name); }
802465	AUE_NULL	NOSTD	{ int freebsd32_aio_fsync(int op, \
803				    struct aiocb32 *aiocbp); }
804466	AUE_RTPRIO	NOPROTO	{ int rtprio_thread(int function, \
805				    lwpid_t lwpid, struct rtprio *rtp); }
806467	AUE_NULL	UNIMPL	nosys
807468	AUE_NULL	UNIMPL	nosys
808469	AUE_NULL	UNIMPL	__getpath_fromfd
809470	AUE_NULL	UNIMPL	__getpath_fromaddr
810471	AUE_NULL	NOPROTO	{ int sctp_peeloff(int sd, uint32_t name); }
811472	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
812				    caddr_t to, __socklen_t tolen, \
813				    struct sctp_sndrcvinfo *sinfo, int flags); }
814473	AUE_NULL	NOPROTO	{ int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
815				    caddr_t to, __socklen_t tolen, \
816				    struct sctp_sndrcvinfo *sinfo, int flags); }
817474	AUE_NULL	NOPROTO	{ int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
818				    struct sockaddr * from, __socklen_t *fromlenaddr, \
819				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
820475	AUE_PREAD	STD	{ ssize_t freebsd32_pread(int fd, \
821				    void *buf,size_t nbyte, \
822				    u_int32_t offsetlo, u_int32_t offsethi); }
823476	AUE_PWRITE	STD	{ ssize_t freebsd32_pwrite(int fd, \
824				    const void *buf, size_t nbyte, \
825				    u_int32_t offsetlo, u_int32_t offsethi); }
826477	AUE_MMAP	STD 	{ caddr_t freebsd32_mmap(caddr_t addr, \
827				    size_t len, int prot, int flags, int fd, \
828				    u_int32_t poslo, u_int32_t poshi); }
829478	AUE_LSEEK	STD	{ off_t freebsd32_lseek(int fd, \
830				    u_int32_t offsetlo, u_int32_t offsethi, \
831				    int whence); }
832479	AUE_TRUNCATE	STD	{ int freebsd32_truncate(char *path, \
833				    u_int32_t lengthlo, u_int32_t lengthhi); }
834480	AUE_FTRUNCATE	STD	{ int freebsd32_ftruncate(int fd, \
835				    u_int32_t lengthlo, u_int32_t lengthhi); }
836481	AUE_KILL	NOPROTO	{ int thr_kill2(pid_t pid, long id, int sig); }
837482	AUE_SHMOPEN	NOPROTO	{ int shm_open(const char *path, int flags, \
838				    mode_t mode); }
839483	AUE_SHMUNLINK	NOPROTO	{ int shm_unlink(const char *path); }
840484	AUE_NULL	NOPROTO	{ int cpuset(cpusetid_t *setid); }
841485	AUE_NULL	STD	{ int freebsd32_cpuset_setid(cpuwhich_t which, \
842				    uint32_t idlo, uint32_t idhi, \
843				    cpusetid_t setid); }
844486	AUE_NULL	STD	{ int freebsd32_cpuset_getid(cpulevel_t level, \
845				    cpuwhich_t which, \
846				    uint32_t idlo, uint32_t idhi, \
847				    cpusetid_t *setid); }
848487	AUE_NULL	STD	{ int freebsd32_cpuset_getaffinity( \
849				    cpulevel_t level, cpuwhich_t which, \
850				    uint32_t idlo, uint32_t idhi, \
851				    size_t cpusetsize, \
852				    cpuset_t *mask); }
853488	AUE_NULL	STD	{ int freebsd32_cpuset_setaffinity( \
854				    cpulevel_t level, cpuwhich_t which, \
855				    uint32_t idlo, uint32_t idhi, \
856				    size_t cpusetsize, \
857				    const cpuset_t *mask); }
858489	AUE_FACCESSAT	NOPROTO	{ int faccessat(int fd, char *path, int mode, \
859				    int flag); }
860490	AUE_FCHMODAT	NOPROTO	{ int fchmodat(int fd, const char *path, \
861				    mode_t mode, int flag); }
862491	AUE_FCHOWNAT	NOPROTO	{ int fchownat(int fd, char *path, uid_t uid, \
863				    gid_t gid, int flag); }
864492	AUE_FEXECVE	STD	{ int freebsd32_fexecve(int fd, \
865				    u_int32_t *argv, u_int32_t *envv); }
866493	AUE_FSTATAT	STD	{ int freebsd32_fstatat(int fd, char *path, \
867				    struct stat *buf, int flag); }
868494	AUE_FUTIMESAT	STD	{ int freebsd32_futimesat(int fd, char *path, \
869				    struct timeval *times); }
870495	AUE_LINKAT	NOPROTO	{ int linkat(int fd1, char *path1, int fd2, \
871				    char *path2, int flag); }
872496	AUE_MKDIRAT	NOPROTO	{ int mkdirat(int fd, char *path, \
873				    mode_t mode); }
874497	AUE_MKFIFOAT	NOPROTO	{ int mkfifoat(int fd, char *path, \
875				    mode_t mode); }
876498	AUE_MKNODAT	NOPROTO	{ int mknodat(int fd, char *path, \
877				    mode_t mode, dev_t dev); }
878499	AUE_OPENAT_RWTC	NOPROTO	{ int openat(int fd, char *path, int flag, \
879				    mode_t mode); }
880500	AUE_READLINKAT	NOPROTO	{ int readlinkat(int fd, char *path, char *buf, \
881				    size_t bufsize); }
882501	AUE_RENAMEAT	NOPROTO	{ int renameat(int oldfd, char *old, int newfd, \
883				    const char *new); }
884502	AUE_SYMLINKAT	NOPROTO	{ int symlinkat(char *path1, int fd, \
885				    char *path2); }
886503	AUE_UNLINKAT	NOPROTO	{ int unlinkat(int fd, char *path, \
887				    int flag); }
888504	AUE_POSIX_OPENPT	NOPROTO	{ int posix_openpt(int flags); }
889; 505 is initialised by the kgssapi code, if present.
890505	AUE_NULL	UNIMPL	gssd_syscall
891506	AUE_NULL	STD	{ int freebsd32_jail_get(struct iovec32 *iovp, \
892				    unsigned int iovcnt, int flags); }
893507	AUE_NULL	STD	{ int freebsd32_jail_set(struct iovec32 *iovp, \
894				    unsigned int iovcnt, int flags); }
895508	AUE_NULL	NOPROTO	{ int jail_remove(int jid); }
896509	AUE_CLOSEFROM	NOPROTO	{ int closefrom(int lowfd); }
897510	AUE_SEMCTL	STD { int freebsd32_semctl(int semid, int semnum, \
898				    int cmd, union semun32 *arg); }
899511	AUE_MSGCTL	STD	{ int freebsd32_msgctl(int msqid, int cmd, \
900				    struct msqid_ds32 *buf); }
901512	AUE_SHMCTL	STD	{ int freebsd32_shmctl(int shmid, int cmd, \
902				    struct shmid_ds32 *buf); }
903513	AUE_LPATHCONF	NOPROTO	{ int lpathconf(char *path, int name); }
904514	AUE_CAP_NEW	UNIMPL	cap_new
905515	AUE_CAP_GETRIGHTS	UNIMPL	cap_getrights
906516	AUE_CAP_ENTER	UNIMPL	cap_enter
907517	AUE_CAP_GETMODE	UNIMPL	cap_getmode
908518	AUE_PDFORK	UNIMPL	pdfork
909519	AUE_PDKILL	UNIMPL	pdkill
910520	AUE_PDGETPID	UNIMPL	pdgetpid
911521	AUE_PDWAIT	UNIMPL	pdwait
912