syscalls.master revision 160111
1 $FreeBSD: head/sys/kern/syscalls.master 160111 2006-07-05 15:46:02Z wsalamon $
2;	from: @(#)syscalls.master	8.2 (Berkeley) 1/13/94
3;
4; System call name/number master file.
5; Processed to created init_sysent.c, syscalls.c and syscall.h.
6
7; Columns: number audit [M]type name alt{name,tag,rtyp}/comments
8;	number	system call number, must be in order
9;	audit	the audit event associated with the system call
10;		A value of AUE_NULL means no auditing, but it also means that
11;		there is no audit event for the call at this time. For the
12;		case where the event exists, but we don't want auditing, the
13;		event should be #defined to AUE_NULL in audit_kevents.h.
14;	type	one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
15;		[M]LIBCOMPAT, [M]NODEF, [M]NOARGS, [M]NOPROTO, [M]NOIMPL,
16;		[M]NOSTD, [M]COMPAT4
17;	name	psuedo-prototype of syscall routine
18;		If one of the following alts is different, then all appear:
19;	altname	name of system call if different
20;	alttag	name of args struct tag if different from [o]`name'"_args"
21;	altrtyp	return type if not int (bogus - syscalls always return int)
22;		for UNIMPL/OBSOL, name continues with comments
23
24; types:
25;	[M]	e.g. like MSTD -- means the system call is MP-safe.  If no
26;		M prefix is used, the syscall wrapper will obtain the Giant
27;		lock for the syscall.
28;	STD	always included
29;	COMPAT	included on COMPAT #ifdef
30;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
31;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
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 lkmsys
36;			so the SYSCALL_MODULE macro works
37;
38; Please copy any additions and changes to the following compatability tables:
39; sys/compat/freebsd32/syscalls.master
40
41; #ifdef's, etc. may be included, and are copied to the output files.
42
43#include <sys/param.h>
44#include <sys/sysent.h>
45#include <sys/sysproto.h>
46
47; Reserved/unimplemented system calls in the range 0-150 inclusive
48; are reserved for use in future Berkeley releases.
49; Additional system calls implemented in vendor and other
50; redistributions should be placed in the reserved range at the end
51; of the current calls.
52
530	AUE_NULL	MSTD	{ int nosys(void); } syscall nosys_args int
541	AUE_EXIT	MSTD	{ void sys_exit(int rval); } exit \
55				    sys_exit_args void
562	AUE_FORK	MSTD	{ int fork(void); }
573	AUE_NULL	MSTD	{ ssize_t read(int fd, void *buf, \
58				    size_t nbyte); }
594	AUE_NULL	MSTD	{ ssize_t write(int fd, const void *buf, \
60				    size_t nbyte); }
615	AUE_OPEN_RWTC	MSTD	{ int open(char *path, int flags, int mode); }
62; XXX should be		{ int open(const char *path, int flags, ...); }
63; but we're not ready for `const' or varargs.
64; XXX man page says `mode_t mode'.
656	AUE_CLOSE	MSTD	{ int close(int fd); }
667	AUE_WAIT4	MSTD	{ int wait4(int pid, int *status, \
67				    int options, struct rusage *rusage); } \
68				    wait4 wait_args int
698	AUE_O_CREAT	MCOMPAT	{ int creat(char *path, int mode); }
709	AUE_LINK	MSTD	{ int link(char *path, char *link); }
7110	AUE_UNLINK	MSTD	{ int unlink(char *path); }
7211	AUE_NULL	OBSOL	execv
7312	AUE_CHDIR	MSTD	{ int chdir(char *path); }
7413	AUE_FCHDIR	MSTD	{ int fchdir(int fd); }
7514	AUE_MKNOD	MSTD	{ int mknod(char *path, int mode, int dev); }
7615	AUE_CHMOD	MSTD	{ int chmod(char *path, int mode); }
7716	AUE_CHOWN	MSTD	{ int chown(char *path, int uid, int gid); }
7817	AUE_NULL	MSTD	{ int obreak(char *nsize); } break \
79				    obreak_args int
8018	AUE_GETFSSTAT	MCOMPAT4	{ int getfsstat(struct ostatfs *buf, \
81				    long bufsize, int flags); }
8219	AUE_LSEEK	MCOMPAT	{ long lseek(int fd, long offset, \
83				    int whence); }
8420	AUE_GETPID	MSTD	{ pid_t getpid(void); }
8521	AUE_MOUNT	MSTD	{ int mount(char *type, char *path, \
86				    int flags, caddr_t data); }
87; XXX `path' should have type `const char *' but we're not ready for that.
8822	AUE_UMOUNT	MSTD	{ int unmount(char *path, int flags); }
8923	AUE_SETUID	MSTD	{ int setuid(uid_t uid); }
9024	AUE_GETUID	MSTD	{ uid_t getuid(void); }
9125	AUE_GETEUID	MSTD	{ uid_t geteuid(void); }
9226	AUE_PTRACE	MSTD	{ int ptrace(int req, pid_t pid, \
93				    caddr_t addr, int data); }
9427	AUE_RECVMSG	MSTD	{ int recvmsg(int s, struct msghdr *msg, \
95				    int flags); }
9628	AUE_SENDMSG	MSTD	{ int sendmsg(int s, struct msghdr *msg, \
97				    int flags); }
9829	AUE_RECVFROM	MSTD	{ int recvfrom(int s, caddr_t buf, \
99				    size_t len, int flags, \
100				    struct sockaddr * __restrict from, \
101				    __socklen_t * __restrict fromlenaddr); }
10230	AUE_ACCEPT	MSTD	{ int accept(int s, \
103				    struct sockaddr * __restrict name, \
104				    __socklen_t * __restrict anamelen); }
10531	AUE_GETPEERNAME	MSTD	{ int getpeername(int fdes, \
106				    struct sockaddr * __restrict asa, \
107				    __socklen_t * __restrict alen); }
10832	AUE_GETSOCKNAME	MSTD	{ int getsockname(int fdes, \
109				    struct sockaddr * __restrict asa, \
110				    __socklen_t * __restrict alen); }
11133	AUE_ACCESS	MSTD	{ int access(char *path, int flags); }
11234	AUE_CHFLAGS	MSTD	{ int chflags(char *path, int flags); }
11335	AUE_FCHFLAGS	MSTD	{ int fchflags(int fd, int flags); }
11436	AUE_SYNC	MSTD	{ int sync(void); }
11537	AUE_KILL	MSTD	{ int kill(int pid, int signum); }
11638	AUE_STAT	MCOMPAT	{ int stat(char *path, struct ostat *ub); }
11739	AUE_GETPPID	MSTD	{ pid_t getppid(void); }
11840	AUE_LSTAT	MCOMPAT	{ int lstat(char *path, struct ostat *ub); }
11941	AUE_DUP		MSTD	{ int dup(u_int fd); }
12042	AUE_PIPE	MSTD	{ int pipe(void); }
12143	AUE_GETEGID	MSTD	{ gid_t getegid(void); }
12244	AUE_PROFILE	MSTD	{ int profil(caddr_t samples, size_t size, \
123				    size_t offset, u_int scale); }
12445	AUE_KTRACE	MSTD	{ int ktrace(const char *fname, int ops, \
125				    int facs, int pid); }
12646	AUE_SIGACTION	MCOMPAT	{ int sigaction(int signum, \
127				    struct osigaction *nsa, \
128				    struct osigaction *osa); }
12947	AUE_GETGID	MSTD	{ gid_t getgid(void); }
13048	AUE_SIGPROCMASK	MCOMPAT	{ int sigprocmask(int how, osigset_t mask); }
131; XXX note nonstandard (bogus) calling convention - the libc stub passes
132; us the mask, not a pointer to it, and we return the old mask as the
133; (int) return value.
13449	AUE_GETLOGIN	MSTD	{ int getlogin(char *namebuf, u_int \
135				    namelen); }
13650	AUE_SETLOGIN	MSTD	{ int setlogin(char *namebuf); }
13751	AUE_ACCT	MSTD	{ int acct(char *path); }
13852	AUE_SIGPENDING	MCOMPAT	{ int sigpending(void); }
13953	AUE_SIGPENDING	MSTD	{ int sigaltstack(stack_t *ss, \
140				    stack_t *oss); }
14154	AUE_IOCTL	MSTD	{ int ioctl(int fd, u_long com, \
142				    caddr_t data); }
14355	AUE_REBOOT	MSTD	{ int reboot(int opt); }
14456	AUE_REVOKE	MSTD	{ int revoke(char *path); }
14557	AUE_SYMLINK	MSTD	{ int symlink(char *path, char *link); }
14658	AUE_READLINK	MSTD	{ int readlink(char *path, char *buf, \
147				    int count); }
14859	AUE_EXECVE	MSTD	{ int execve(char *fname, char **argv, \
149				    char **envv); }
15060	AUE_UMASK	MSTD	{ int umask(int newmask); } umask umask_args \
151				    int
15261	AUE_CHROOT	MSTD	{ int chroot(char *path); }
15362	AUE_FSTAT	MCOMPAT	{ int fstat(int fd, struct ostat *sb); }
15463	AUE_NULL	MCOMPAT	{ int getkerninfo(int op, char *where, \
155				    size_t *size, int arg); } getkerninfo \
156				    getkerninfo_args int
15764	AUE_O_GETPAGESIZE	MCOMPAT	{ int getpagesize(void); } getpagesize \
158				    getpagesize_args int
15965	AUE_MSYNC	MSTD	{ int msync(void *addr, size_t len, \
160				    int flags); }
16166	AUE_VFORK	MSTD	{ int vfork(void); }
16267	AUE_NULL	OBSOL	vread
16368	AUE_NULL	OBSOL	vwrite
16469	AUE_SBRK	MSTD	{ int sbrk(int incr); }
16570	AUE_SSTK	MSTD	{ int sstk(int incr); }
16671	AUE_MMAP	MCOMPAT	{ int mmap(void *addr, int len, int prot, \
167				    int flags, int fd, long pos); }
16872	AUE_O_VADVISE	MSTD	{ int ovadvise(int anom); } vadvise \
169				    ovadvise_args int
17073	AUE_MUNMAP	MSTD	{ int munmap(void *addr, size_t len); }
17174	AUE_MPROTECT	MSTD	{ int mprotect(const void *addr, size_t len, \
172				    int prot); }
17375	AUE_MADVISE	MSTD	{ int madvise(void *addr, size_t len, \
174				    int behav); }
17576	AUE_NULL	OBSOL	vhangup
17677	AUE_NULL	OBSOL	vlimit
17778	AUE_MINCORE	MSTD	{ int mincore(const void *addr, size_t len, \
178				    char *vec); }
17979	AUE_GETGROUPS	MSTD	{ int getgroups(u_int gidsetsize, \
180				    gid_t *gidset); }
18180	AUE_SETGROUPS	MSTD	{ int setgroups(u_int gidsetsize, \
182				    gid_t *gidset); }
18381	AUE_GETPGRP	MSTD	{ int getpgrp(void); }
18482	AUE_SETPGRP	MSTD	{ int setpgid(int pid, int pgid); }
18583	AUE_SETITIMER	MSTD	{ int setitimer(u_int which, struct \
186				    itimerval *itv, struct itimerval *oitv); }
18784	AUE_WAIT4	MCOMPAT	{ int wait(void); }
18885	AUE_SWAPON	MSTD	{ int swapon(char *name); }
18986	AUE_GETITIMER	MSTD	{ int getitimer(u_int which, \
190				    struct itimerval *itv); }
19187	AUE_SYSCTL	MCOMPAT	{ int gethostname(char *hostname, \
192				    u_int len); } gethostname \
193				    gethostname_args int
19488	AUE_SYSCTL	MCOMPAT	{ int sethostname(char *hostname, \
195				    u_int len); } sethostname \
196				    sethostname_args int
19789	AUE_GETDTABLESIZE	MSTD	{ int getdtablesize(void); }
19890	AUE_DUP2	MSTD	{ int dup2(u_int from, u_int to); }
19991	AUE_NULL	UNIMPL	getdopt
20092	AUE_FCNTL	MSTD	{ int fcntl(int fd, int cmd, long arg); }
201; XXX should be	{ int fcntl(int fd, int cmd, ...); }
202; but we're not ready for varargs.
20393	AUE_SELECT	MSTD	{ int select(int nd, fd_set *in, fd_set *ou, \
204				    fd_set *ex, struct timeval *tv); }
20594	AUE_NULL	UNIMPL	setdopt
20695	AUE_FSYNC	MSTD	{ int fsync(int fd); }
20796	AUE_SETPRIORITY	MSTD	{ int setpriority(int which, int who, \
208				    int prio); }
20997	AUE_SOCKET	MSTD	{ int socket(int domain, int type, \
210				    int protocol); }
21198	AUE_CONNECT	MSTD	{ int connect(int s, caddr_t name, \
212				    int namelen); }
21399	AUE_ACCEPT	MCPT_NOA { int accept(int s, caddr_t name, \
214				    int *anamelen); } accept accept_args int
215100	AUE_GETPRIORITY	MSTD	{ int getpriority(int which, int who); }
216101	AUE_SEND	MCOMPAT	{ int send(int s, caddr_t buf, int len, \
217				    int flags); }
218102	AUE_RECV	MCOMPAT	{ int recv(int s, caddr_t buf, int len, \
219				    int flags); }
220103	AUE_SIGRETURN	MCOMPAT	{ int sigreturn( \
221				    struct osigcontext *sigcntxp); }
222104	AUE_BIND	MSTD	{ int bind(int s, caddr_t name, \
223				    int namelen); }
224105	AUE_SETSOCKOPT	MSTD	{ int setsockopt(int s, int level, int name, \
225				    caddr_t val, int valsize); }
226106	AUE_LISTEN	MSTD	{ int listen(int s, int backlog); }
227107	AUE_NULL	OBSOL	vtimes
228108	AUE_NULL	MCOMPAT	{ int sigvec(int signum, struct sigvec *nsv, \
229				    struct sigvec *osv); }
230109	AUE_NULL	MCOMPAT	{ int sigblock(int mask); }
231110	AUE_NULL	MCOMPAT	{ int sigsetmask(int mask); }
232111	AUE_NULL	MCOMPAT	{ int sigsuspend(osigset_t mask); }
233; XXX note nonstandard (bogus) calling convention - the libc stub passes
234; us the mask, not a pointer to it.
235112	AUE_NULL	MCOMPAT	{ int sigstack(struct sigstack *nss, \
236				    struct sigstack *oss); }
237113	AUE_RECVMSG	MCOMPAT	{ int recvmsg(int s, struct omsghdr *msg, \
238				    int flags); }
239114	AUE_SENDMSG	MCOMPAT	{ int sendmsg(int s, caddr_t msg, \
240				    int flags); }
241115	AUE_NULL	OBSOL	vtrace
242116	AUE_GETTIMEOFDAY	MSTD	{ int gettimeofday(struct timeval *tp, \
243				    struct timezone *tzp); }
244117	AUE_GETRUSAGE	MSTD	{ int getrusage(int who, \
245				    struct rusage *rusage); }
246118	AUE_GETSOCKOPT	MSTD	{ int getsockopt(int s, int level, int name, \
247				    caddr_t val, int *avalsize); }
248119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
249120	AUE_READV	MSTD	{ int readv(int fd, struct iovec *iovp, \
250				    u_int iovcnt); }
251121	AUE_WRITEV	MSTD	{ int writev(int fd, struct iovec *iovp, \
252				    u_int iovcnt); }
253122	AUE_SETTIMEOFDAY	MSTD	{ int settimeofday(struct timeval *tv, \
254				    struct timezone *tzp); }
255123	AUE_FCHOWN	MSTD	{ int fchown(int fd, int uid, int gid); }
256124	AUE_FCHMOD	MSTD	{ int fchmod(int fd, int mode); }
257125	AUE_RECVFROM	MCPT_NOA { int recvfrom(int s, caddr_t buf, \
258				    size_t len, int flags, caddr_t from, int \
259				    *fromlenaddr); } recvfrom recvfrom_args \
260				    int
261126	AUE_SETREUID	MSTD	{ int setreuid(int ruid, int euid); }
262127	AUE_SETREGID	MSTD	{ int setregid(int rgid, int egid); }
263128	AUE_RENAME	MSTD	{ int rename(char *from, char *to); }
264129	AUE_TRUNCATE	MCOMPAT	{ int truncate(char *path, long length); }
265130	AUE_FTRUNCATE	MCOMPAT	{ int ftruncate(int fd, long length); }
266131	AUE_FLOCK	MSTD	{ int flock(int fd, int how); }
267132	AUE_MKFIFO	MSTD	{ int mkfifo(char *path, int mode); }
268133	AUE_SENDTO	MSTD	{ int sendto(int s, caddr_t buf, size_t len, \
269				    int flags, caddr_t to, int tolen); }
270134	AUE_SHUTDOWN	MSTD	{ int shutdown(int s, int how); }
271135	AUE_SOCKETPAIR	MSTD	{ int socketpair(int domain, int type, \
272				    int protocol, int *rsv); }
273136	AUE_MKDIR	MSTD	{ int mkdir(char *path, int mode); }
274137	AUE_RMDIR	MSTD	{ int rmdir(char *path); }
275138	AUE_UTIMES	MSTD	{ int utimes(char *path, \
276				    struct timeval *tptr); }
277139	AUE_NULL	OBSOL	4.2 sigreturn
278140	AUE_ADJTIME	MSTD	{ int adjtime(struct timeval *delta, \
279				    struct timeval *olddelta); }
280141	AUE_GETPEERNAME	MCOMPAT	{ int getpeername(int fdes, caddr_t asa, \
281				    int *alen); }
282142	AUE_SYSCTL	MCOMPAT	{ long gethostid(void); }
283143	AUE_SYSCTL	MCOMPAT	{ int sethostid(long hostid); }
284144	AUE_GETRLIMIT	MCOMPAT	{ int getrlimit(u_int which, struct \
285				    orlimit *rlp); }
286145	AUE_SETRLIMIT	MCOMPAT	{ int setrlimit(u_int which, \
287				    struct orlimit *rlp); }
288146	AUE_KILLPG	MCOMPAT	{ int killpg(int pgid, int signum); }
289147	AUE_SETSID	MSTD	{ int setsid(void); }
290148	AUE_QUOTACTL	MSTD	{ int quotactl(char *path, int cmd, int uid, \
291				    caddr_t arg); }
292149	AUE_O_QUOTA	MCOMPAT	{ int quota(void); }
293150	AUE_GETSOCKNAME	MCPT_NOA	{ int getsockname(int fdec, \
294				    caddr_t asa, int *alen); } getsockname \
295				    getsockname_args int
296
297; Syscalls 151-180 inclusive are reserved for vendor-specific
298; system calls.  (This includes various calls added for compatibity
299; with other Unix variants.)
300; Some of these calls are now supported by BSD...
301151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
302152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
303153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
304154	AUE_NULL	UNIMPL	nosys
305; 155 is initialized by the NFS code, if present.
306155	AUE_NFSSVC	MNOIMPL	{ int nfssvc(int flag, caddr_t argp); }
307156	AUE_GETDIRENTRIES	COMPAT	{ int getdirentries(int fd, char *buf, \
308				    u_int count, long *basep); }
309157	AUE_STATFS	MCOMPAT4	{ int statfs(char *path, \
310				    struct ostatfs *buf); }
311158	AUE_FSTATFS	MCOMPAT4	{ int fstatfs(int fd, \
312				    struct ostatfs *buf); }
313159	AUE_NULL	UNIMPL	nosys
314160	AUE_LGETFH	MSTD	{ int lgetfh(char *fname, \
315				    struct fhandle *fhp); }
316161	AUE_NFS_GETFH	MSTD	{ int getfh(char *fname, \
317				    struct fhandle *fhp); }
318162	AUE_SYSCTL	MSTD	{ int getdomainname(char *domainname, \
319				    int len); }
320163	AUE_SYSCTL	MSTD	{ int setdomainname(char *domainname, \
321				    int len); }
322164	AUE_NULL	MSTD	{ int uname(struct utsname *name); }
323165	AUE_NULL	MSTD	{ int sysarch(int op, char *parms); }
324166	AUE_NULL	MSTD	{ int rtprio(int function, pid_t pid, \
325				    struct rtprio *rtp); }
326167	AUE_NULL	UNIMPL	nosys
327168	AUE_NULL	UNIMPL	nosys
328; 169 is initialized by the SYSVSEM code if present or loaded
329169	AUE_SEMSYS	MNOSTD	{ int semsys(int which, int a2, int a3, \
330				    int a4, int a5); }
331; 169 is initialized by the SYSVMSG code if present or loaded
332; XXX should be	{ int semsys(int which, ...); }
333170	AUE_MSGSYS	MNOSTD	{ int msgsys(int which, int a2, int a3, \
334				    int a4, int a5, int a6); }
335; 169 is initialized by the SYSVSHM code if present or loaded
336; XXX should be	{ int msgsys(int which, ...); }
337171	AUE_SHMSYS	MNOSTD	{ int shmsys(int which, int a2, int a3, \
338				    int a4); }
339; XXX should be	{ int shmsys(int which, ...); }
340172	AUE_NULL	UNIMPL	nosys
341173	AUE_PREAD	MSTD	{ ssize_t pread(int fd, void *buf, \
342				    size_t nbyte, int pad, off_t offset); }
343174	AUE_PWRITE	MSTD	{ ssize_t pwrite(int fd, const void *buf, \
344				    size_t nbyte, int pad, off_t offset); }
345175	AUE_NULL	UNIMPL	nosys
346176	AUE_ADJTIME	MSTD	{ int ntp_adjtime(struct timex *tp); }
347177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
348178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
349179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
350180	AUE_NULL	UNIMPL	nosys
351
352; Syscalls 181-199 are used by/reserved for BSD
353181	AUE_SETGID	MSTD	{ int setgid(gid_t gid); }
354182	AUE_SETEGID	MSTD	{ int setegid(gid_t egid); }
355183	AUE_SETEUID	MSTD	{ int seteuid(uid_t euid); }
356184	AUE_NULL	UNIMPL	lfs_bmapv
357185	AUE_NULL	UNIMPL	lfs_markv
358186	AUE_NULL	UNIMPL	lfs_segclean
359187	AUE_NULL	UNIMPL	lfs_segwait
360188	AUE_STAT	MSTD	{ int stat(char *path, struct stat *ub); }
361189	AUE_FSTAT	MSTD	{ int fstat(int fd, struct stat *sb); }
362190	AUE_LSTAT	MSTD	{ int lstat(char *path, struct stat *ub); }
363191	AUE_PATHCONF	MSTD	{ int pathconf(char *path, int name); }
364192	AUE_FPATHCONF	MSTD	{ int fpathconf(int fd, int name); }
365193	AUE_NULL	UNIMPL	nosys
366194	AUE_GETRLIMIT	MSTD	{ int getrlimit(u_int which, \
367				    struct rlimit *rlp); } getrlimit \
368				    __getrlimit_args int
369195	AUE_SETRLIMIT	MSTD	{ int setrlimit(u_int which, \
370				    struct rlimit *rlp); } setrlimit \
371				    __setrlimit_args int
372196	AUE_GETDIRENTRIES	MSTD	{ int getdirentries(int fd, char *buf, \
373				    u_int count, long *basep); }
374197	AUE_MMAP	MSTD	{ caddr_t mmap(caddr_t addr, size_t len, \
375				    int prot, int flags, int fd, int pad, \
376				    off_t pos); }
377198	AUE_NULL	MSTD	{ int nosys(void); } __syscall \
378				    __syscall_args int
379199	AUE_LSEEK	MSTD	{ off_t lseek(int fd, int pad, off_t offset, \
380				    int whence); }
381200	AUE_TRUNCATE	MSTD	{ int truncate(char *path, int pad, \
382				    off_t length); }
383201	AUE_FTRUNCATE	MSTD	{ int ftruncate(int fd, int pad, \
384				    off_t length); }
385202	AUE_SYSCTL	MSTD	{ int __sysctl(int *name, u_int namelen, \
386				    void *old, size_t *oldlenp, void *new, \
387				    size_t newlen); } __sysctl sysctl_args int
388203	AUE_MLOCK	MSTD	{ int mlock(const void *addr, size_t len); }
389204	AUE_MUNLOCK	MSTD	{ int munlock(const void *addr, size_t len); }
390205	AUE_UNDELETE	MSTD	{ int undelete(char *path); }
391206	AUE_FUTIMES	MSTD	{ int futimes(int fd, struct timeval *tptr); }
392207	AUE_GETPGID	MSTD	{ int getpgid(pid_t pid); }
393208	AUE_NULL	UNIMPL	newreboot (NetBSD)
394209	AUE_POLL	MSTD	{ int poll(struct pollfd *fds, u_int nfds, \
395				    int timeout); }
396
397;
398; The following are reserved for loadable syscalls
399;
400210	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
401211	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
402212	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
403213	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
404214	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
405215	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
406216	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
407217	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
408218	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
409219	AUE_NULL	NODEF	lkmnosys lkmnosys nosys_args int
410
411;
412; The following were introduced with NetBSD/4.4Lite-2
413220	AUE_SEMCTL	MNOSTD	{ int __semctl(int semid, int semnum, \
414				    int cmd, union semun *arg); }
415221	AUE_SEMGET	MNOSTD	{ int semget(key_t key, int nsems, \
416				    int semflg); }
417222	AUE_SEMOP	MNOSTD	{ int semop(int semid, struct sembuf *sops, \
418				    size_t nsops); }
419223	AUE_NULL	UNIMPL	semconfig
420224	AUE_MSGCTL	MNOSTD	{ int msgctl(int msqid, int cmd, \
421				    struct msqid_ds *buf); }
422225	AUE_MSGGET	MNOSTD	{ int msgget(key_t key, int msgflg); }
423226	AUE_MSGSND	MNOSTD	{ int msgsnd(int msqid, const void *msgp, \
424				    size_t msgsz, int msgflg); }
425227	AUE_MSGRCV	MNOSTD	{ int msgrcv(int msqid, void *msgp, \
426				    size_t msgsz, long msgtyp, int msgflg); }
427228	AUE_SHMAT	MNOSTD	{ int shmat(int shmid, const void *shmaddr, \
428				    int shmflg); }
429229	AUE_SHMCTL	MNOSTD	{ int shmctl(int shmid, int cmd, \
430				    struct shmid_ds *buf); }
431230	AUE_SHMDT	MNOSTD	{ int shmdt(const void *shmaddr); }
432231	AUE_SHMGET	MNOSTD	{ int shmget(key_t key, size_t size, \
433				    int shmflg); }
434;
435232	AUE_NULL	MSTD	{ int clock_gettime(clockid_t clock_id, \
436				    struct timespec *tp); }
437233	AUE_NULL	MSTD	{ int clock_settime(clockid_t clock_id, \
438				    const struct timespec *tp); }
439234	AUE_NULL	MSTD	{ int clock_getres(clockid_t clock_id, \
440				    struct timespec *tp); }
441235	AUE_NULL	MSTD	{ int ktimer_create(clockid_t clock_id, \
442				    struct sigevent *evp, int *timerid); }
443236	AUE_NULL	MSTD	{ int ktimer_delete(int timerid); }
444237	AUE_NULL	MSTD	{ int ktimer_settime(int timerid, int flags, \
445				    const struct itimerspec *value, \
446				    struct itimerspec *ovalue); }
447238	AUE_NULL	MSTD	{ int ktimer_gettime(int timerid, struct \
448				    itimerspec *value); }
449239	AUE_NULL	MSTD	{ int ktimer_getoverrun(int timerid); }
450240	AUE_NULL	MSTD	{ int nanosleep(const struct timespec *rqtp, \
451				    struct timespec *rmtp); }
452241	AUE_NULL	UNIMPL	nosys
453242	AUE_NULL	UNIMPL	nosys
454243	AUE_NULL	UNIMPL	nosys
455244	AUE_NULL	UNIMPL	nosys
456245	AUE_NULL	UNIMPL	nosys
457246	AUE_NULL	UNIMPL	nosys
458247	AUE_NULL	UNIMPL	nosys
459248	AUE_NULL	MSTD	{ int ntp_gettime(struct ntptimeval *ntvp); }
460249	AUE_NULL	UNIMPL	nosys
461; syscall numbers initially used in OpenBSD
462250	AUE_MINHERIT	MSTD	{ int minherit(void *addr, size_t len, \
463				    int inherit); }
464251	AUE_RFORK	MSTD	{ int rfork(int flags); }
465252	AUE_POLL	MSTD	{ int openbsd_poll(struct pollfd *fds, \
466				    u_int nfds, int timeout); }
467253	AUE_ISSETUGID	MSTD	{ int issetugid(void); }
468254	AUE_LCHOWN	MSTD	{ int lchown(char *path, int uid, int gid); }
469255	AUE_NULL	MNOSTD	{ int aio_read(struct aiocb *aiocbp); }
470256	AUE_NULL	MNOSTD	{ int aio_write(struct aiocb *aiocbp); }
471257	AUE_NULL	MNOSTD	{ int lio_listio(int mode, \
472				    struct aiocb * const *acb_list, \
473				    int nent, struct sigevent *sig); }
474258	AUE_NULL	UNIMPL	nosys
475259	AUE_NULL	UNIMPL	nosys
476260	AUE_NULL	UNIMPL	nosys
477261	AUE_NULL	UNIMPL	nosys
478262	AUE_NULL	UNIMPL	nosys
479263	AUE_NULL	UNIMPL	nosys
480264	AUE_NULL	UNIMPL	nosys
481265	AUE_NULL	UNIMPL	nosys
482266	AUE_NULL	UNIMPL	nosys
483267	AUE_NULL	UNIMPL	nosys
484268	AUE_NULL	UNIMPL	nosys
485269	AUE_NULL	UNIMPL	nosys
486270	AUE_NULL	UNIMPL	nosys
487271	AUE_NULL	UNIMPL	nosys
488272	AUE_O_GETDENTS	MSTD	{ int getdents(int fd, char *buf, \
489				    size_t count); }
490273	AUE_NULL	UNIMPL	nosys
491274	AUE_LCHMOD	MSTD	{ int lchmod(char *path, mode_t mode); }
492275	AUE_LCHOWN	MNOPROTO { int lchown(char *path, uid_t uid, \
493				    gid_t gid); } netbsd_lchown lchown_args \
494				    int
495276	AUE_LUTIMES	MSTD	{ int lutimes(char *path, \
496				    struct timeval *tptr); }
497277	AUE_MSYNC	MNOPROTO	{ int msync(void *addr, size_t len, \
498				    int flags); } netbsd_msync msync_args int
499278	AUE_STAT	MSTD	{ int nstat(char *path, struct nstat *ub); }
500279	AUE_FSTAT	MSTD	{ int nfstat(int fd, struct nstat *sb); }
501280	AUE_LSTAT	MSTD	{ int nlstat(char *path, struct nstat *ub); }
502281	AUE_NULL	UNIMPL	nosys
503282	AUE_NULL	UNIMPL	nosys
504283	AUE_NULL	UNIMPL	nosys
505284	AUE_NULL	UNIMPL	nosys
506285	AUE_NULL	UNIMPL	nosys
507286	AUE_NULL	UNIMPL	nosys
508287	AUE_NULL	UNIMPL	nosys
509288	AUE_NULL	UNIMPL	nosys
510; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
511289	AUE_NULL	MSTD	{ ssize_t preadv(int fd, struct iovec *iovp, \
512					u_int iovcnt, off_t offset); }
513290	AUE_NULL	MSTD	{ ssize_t pwritev(int fd, struct iovec *iovp, \
514					u_int iovcnt, off_t offset); }
515291	AUE_NULL	UNIMPL	nosys
516292	AUE_NULL	UNIMPL	nosys
517293	AUE_NULL	UNIMPL	nosys
518294	AUE_NULL	UNIMPL	nosys
519295	AUE_NULL	UNIMPL	nosys
520296	AUE_NULL	UNIMPL	nosys
521; XXX 297 is 300 in NetBSD 
522297	AUE_FHSTATFS	MCOMPAT4	{ int fhstatfs( \
523				    const struct fhandle *u_fhp, \
524				    struct ostatfs *buf); }
525298	AUE_FHOPEN	MSTD	{ int fhopen(const struct fhandle *u_fhp, \
526				    int flags); }
527299	AUE_FHSTAT	MSTD	{ int fhstat(const struct fhandle *u_fhp, \
528				    struct stat *sb); }
529; syscall numbers for FreeBSD
530300	AUE_NULL	MSTD	{ int modnext(int modid); }
531301	AUE_NULL	MSTD	{ int modstat(int modid, \
532				    struct module_stat *stat); }
533302	AUE_NULL	MSTD	{ int modfnext(int modid); }
534303	AUE_NULL	MSTD	{ int modfind(const char *name); }
535304	AUE_MODLOAD	MSTD	{ int kldload(const char *file); }
536305	AUE_MODUNLOAD	MSTD	{ int kldunload(int fileid); }
537306	AUE_NULL	MSTD	{ int kldfind(const char *file); }
538307	AUE_NULL	MSTD	{ int kldnext(int fileid); }
539308	AUE_NULL	MSTD	{ int kldstat(int fileid, struct \
540				    kld_file_stat* stat); }
541309	AUE_NULL	MSTD	{ int kldfirstmod(int fileid); }
542310	AUE_GETSID	MSTD	{ int getsid(pid_t pid); }
543311	AUE_SETRESUID	MSTD	{ int setresuid(uid_t ruid, uid_t euid, \
544				    uid_t suid); }
545312	AUE_SETRESGID	MSTD	{ int setresgid(gid_t rgid, gid_t egid, \
546				    gid_t sgid); }
547313	AUE_NULL	OBSOL	signanosleep
548314	AUE_NULL	MNOSTD	{ int aio_return(struct aiocb *aiocbp); }
549315	AUE_NULL	MNOSTD	{ int aio_suspend( \
550				    struct aiocb * const * aiocbp, int nent, \
551				    const struct timespec *timeout); }
552316	AUE_NULL	MNOSTD	{ int aio_cancel(int fd, \
553				    struct aiocb *aiocbp); }
554317	AUE_NULL	MNOSTD	{ int aio_error(struct aiocb *aiocbp); }
555318	AUE_NULL	MNOSTD	{ int oaio_read(struct oaiocb *aiocbp); }
556319	AUE_NULL	MNOSTD	{ int oaio_write(struct oaiocb *aiocbp); }
557320	AUE_NULL	MNOSTD	{ int olio_listio(int mode, \
558				    struct oaiocb * const *acb_list, \
559				    int nent, struct osigevent *sig); }
560321	AUE_NULL	MSTD	{ int yield(void); }
561322	AUE_NULL	OBSOL	thr_sleep
562323	AUE_NULL	OBSOL	thr_wakeup
563324	AUE_MLOCKALL	MSTD	{ int mlockall(int how); }
564325	AUE_MUNLOCKALL	MSTD	{ int munlockall(void); }
565326	AUE_NULL	MSTD	{ int __getcwd(u_char *buf, u_int buflen); }
566
567327	AUE_NULL	MSTD	{ int sched_setparam (pid_t pid, \
568				    const struct sched_param *param); }
569328	AUE_NULL	MSTD	{ int sched_getparam (pid_t pid, struct \
570				    sched_param *param); }
571
572329	AUE_NULL	MSTD	{ int sched_setscheduler (pid_t pid, int \
573				    policy, const struct sched_param \
574				    *param); }
575330	AUE_NULL	MSTD	{ int sched_getscheduler (pid_t pid); }
576
577331	AUE_NULL	MSTD	{ int sched_yield (void); }
578332	AUE_NULL	MSTD	{ int sched_get_priority_max (int policy); }
579333	AUE_NULL	MSTD	{ int sched_get_priority_min (int policy); }
580334	AUE_NULL	MSTD	{ int sched_rr_get_interval (pid_t pid, \
581				    struct timespec *interval); }
582335	AUE_NULL	MSTD	{ int utrace(const void *addr, size_t len); }
583336	AUE_SENDFILE	MCOMPAT4	{ int sendfile(int fd, int s, \
584				    off_t offset, size_t nbytes, \
585				    struct sf_hdtr *hdtr, off_t *sbytes, \
586				    int flags); }
587337	AUE_NULL	MSTD	{ int kldsym(int fileid, int cmd, \
588				    void *data); }
589338	AUE_JAIL	MSTD	{ int jail(struct jail *jail); }
590339	AUE_NULL	UNIMPL	pioctl
591340	AUE_SIGPROCMASK	MSTD	{ int sigprocmask(int how, \
592				    const sigset_t *set, sigset_t *oset); }
593341	AUE_SIGSUSPEND	MSTD	{ int sigsuspend(const sigset_t *sigmask); }
594342	AUE_SIGACTION	MCOMPAT4	{ int sigaction(int sig, const \
595				    struct sigaction *act, \
596				    struct sigaction *oact); }
597343	AUE_SIGPENDING	MSTD	{ int sigpending(sigset_t *set); }
598344	AUE_SIGRETURN	MCOMPAT4	{ int sigreturn( \
599				    const struct ucontext4 *sigcntxp); }
600345	AUE_SIGWAIT	MSTD	{ int sigtimedwait(const sigset_t *set, \
601				    siginfo_t *info, \
602				    const struct timespec *timeout); }
603346	AUE_NULL	MSTD	{ int sigwaitinfo(const sigset_t *set, \
604				    siginfo_t *info); }
605347	AUE_NULL	MSTD	{ int __acl_get_file(const char *path, \
606				    acl_type_t type, struct acl *aclp); }
607348	AUE_NULL	MSTD	{ int __acl_set_file(const char *path, \
608				    acl_type_t type, struct acl *aclp); }
609349	AUE_NULL	MSTD	{ int __acl_get_fd(int filedes, \
610				    acl_type_t type, struct acl *aclp); }
611350	AUE_NULL	MSTD	{ int __acl_set_fd(int filedes, \
612				    acl_type_t type, struct acl *aclp); }
613351	AUE_NULL	MSTD	{ int __acl_delete_file(const char *path, \
614				    acl_type_t type); }
615352	AUE_NULL	MSTD	{ int __acl_delete_fd(int filedes, \
616				    acl_type_t type); }
617353	AUE_NULL	MSTD	{ int __acl_aclcheck_file(const char *path, \
618				    acl_type_t type, struct acl *aclp); }
619354	AUE_NULL	MSTD	{ int __acl_aclcheck_fd(int filedes, \
620				    acl_type_t type, struct acl *aclp); }
621355	AUE_EXTATTRCTL	MSTD	{ int extattrctl(const char *path, int cmd, \
622				    const char *filename, int attrnamespace, \
623				    const char *attrname); }
624356	AUE_EXTATTR_SET_FILE	MSTD	{ int extattr_set_file( \
625				    const char *path, int attrnamespace, \
626				    const char *attrname, void *data, \
627				    size_t nbytes); }
628357	AUE_EXTATTR_GET_FILE	MSTD	{ ssize_t extattr_get_file( \
629				    const char *path, int attrnamespace, \
630				    const char *attrname, void *data, \
631				    size_t nbytes); }
632358	AUE_EXTATTR_DELETE_FILE	MSTD	{ int extattr_delete_file(const char *path, \
633				    int attrnamespace, \
634				    const char *attrname); }
635359	AUE_NULL	MNOSTD	{ int aio_waitcomplete( \
636				    struct aiocb **aiocbp, \
637				    struct timespec *timeout); }
638360	AUE_GETRESUID	MSTD	{ int getresuid(uid_t *ruid, uid_t *euid, \
639				    uid_t *suid); }
640361	AUE_GETRESGID	MSTD	{ int getresgid(gid_t *rgid, gid_t *egid, \
641				    gid_t *sgid); }
642362	AUE_NULL	MSTD	{ int kqueue(void); }
643363	AUE_NULL	MSTD	{ int kevent(int fd, \
644				    struct kevent *changelist, int nchanges, \
645				    struct kevent *eventlist, int nevents, \
646				    const struct timespec *timeout); }
647364	AUE_NULL	UNIMPL	__cap_get_proc
648365	AUE_NULL	UNIMPL	__cap_set_proc
649366	AUE_NULL	UNIMPL	__cap_get_fd
650367	AUE_NULL	UNIMPL	__cap_get_file
651368	AUE_NULL	UNIMPL	__cap_set_fd
652369	AUE_NULL	UNIMPL	__cap_set_file
653370	AUE_NULL	NODEF	lkmressys lkmressys nosys_args int
654371	AUE_EXTATTR_SET_FD	MSTD	{ int extattr_set_fd(int fd, \
655				    int attrnamespace, const char *attrname, \
656				    void *data, size_t nbytes); }
657372	AUE_EXTATTR_GET_FD	MSTD	{ ssize_t extattr_get_fd(int fd, \
658				    int attrnamespace, const char *attrname, \
659				    void *data, size_t nbytes); }
660373	AUE_EXTATTR_DELETE_FD	MSTD	{ int extattr_delete_fd(int fd, \
661				    int attrnamespace, \
662				    const char *attrname); }
663374	AUE_NULL	MSTD	{ int __setugid(int flag); }
664375	AUE_NULL	NOIMPL	{ int nfsclnt(int flag, caddr_t argp); }
665376	AUE_EACCESS	MSTD	{ int eaccess(char *path, int flags); }
666377	AUE_NULL	UNIMPL	afs_syscall
667378	AUE_NMOUNT	MSTD	{ int nmount(struct iovec *iovp, \
668				    unsigned int iovcnt, int flags); }
669379	AUE_NULL	MSTD	{ int kse_exit(void); }
670380	AUE_NULL	MSTD	{ int kse_wakeup(struct kse_mailbox *mbx); }
671381	AUE_NULL	MSTD	{ int kse_create(struct kse_mailbox *mbx, \
672				    int newgroup); }
673382	AUE_NULL	MSTD	{ int kse_thr_interrupt( \
674				    struct kse_thr_mailbox *tmbx, int cmd, \
675				    long data); }
676383	AUE_NULL	MSTD	{ int kse_release(struct timespec *timeout); }
677384	AUE_NULL	MSTD	{ int __mac_get_proc(struct mac *mac_p); }
678385	AUE_NULL	MSTD	{ int __mac_set_proc(struct mac *mac_p); }
679386	AUE_NULL	MSTD	{ int __mac_get_fd(int fd, \
680				    struct mac *mac_p); }
681387	AUE_NULL	MSTD	{ int __mac_get_file(const char *path_p, \
682				    struct mac *mac_p); }
683388	AUE_NULL	MSTD	{ int __mac_set_fd(int fd, \
684				    struct mac *mac_p); }
685389	AUE_NULL	MSTD	{ int __mac_set_file(const char *path_p, \
686				    struct mac *mac_p); }
687390	AUE_NULL	MSTD	{ int kenv(int what, const char *name, \
688				    char *value, int len); }
689391	AUE_LCHFLAGS	MSTD	{ int lchflags(const char *path, int flags); }
690392	AUE_NULL	MSTD	{ int uuidgen(struct uuid *store, \
691				    int count); }
692393	AUE_SENDFILE	MSTD	{ int sendfile(int fd, int s, off_t offset, \
693				    size_t nbytes, struct sf_hdtr *hdtr, \
694				    off_t *sbytes, int flags); }
695394	AUE_NULL	MSTD	{ int mac_syscall(const char *policy, \
696				    int call, void *arg); }
697395	AUE_GETFSSTAT	MSTD	{ int getfsstat(struct statfs *buf, \
698				    long bufsize, int flags); }
699396	AUE_STATFS	MSTD	{ int statfs(char *path, \
700				    struct statfs *buf); }
701397	AUE_FSTATFS	MSTD	{ int fstatfs(int fd, struct statfs *buf); }
702398	AUE_NULL	MSTD	{ int fhstatfs(const struct fhandle *u_fhp, \
703				    struct statfs *buf); }
704399	AUE_NULL	UNIMPL	nosys
705400	AUE_NULL	MNOSTD	{ int ksem_close(semid_t id); }
706401	AUE_NULL	MNOSTD	{ int ksem_post(semid_t id); }
707402	AUE_NULL	MNOSTD	{ int ksem_wait(semid_t id); }
708403	AUE_NULL	MNOSTD	{ int ksem_trywait(semid_t id); }
709404	AUE_NULL	MNOSTD	{ int ksem_init(semid_t *idp, \
710				    unsigned int value); }
711405	AUE_NULL	MNOSTD	{ int ksem_open(semid_t *idp, \
712				    const char *name, int oflag, \
713				    mode_t mode, unsigned int value); }
714406	AUE_NULL	MNOSTD	{ int ksem_unlink(const char *name); }
715407	AUE_NULL	MNOSTD	{ int ksem_getvalue(semid_t id, int *val); }
716408	AUE_NULL	MNOSTD	{ int ksem_destroy(semid_t id); }
717409	AUE_NULL	MSTD	{ int __mac_get_pid(pid_t pid, \
718				    struct mac *mac_p); }
719410	AUE_NULL	MSTD	{ int __mac_get_link(const char *path_p, \
720				    struct mac *mac_p); }
721411	AUE_NULL	MSTD	{ int __mac_set_link(const char *path_p, \
722				    struct mac *mac_p); }
723412	AUE_EXTATTR_SET_LINK	MSTD	{ int extattr_set_link( \
724				    const char *path, int attrnamespace, \
725				    const char *attrname, void *data, \
726				    size_t nbytes); }
727413	AUE_EXTATTR_GET_LINK	MSTD	{ ssize_t extattr_get_link( \
728				    const char *path, int attrnamespace, \
729				    const char *attrname, void *data, \
730				    size_t nbytes); }
731414	AUE_EXTATTR_DELETE_LINK	MSTD	{ int extattr_delete_link( \
732				    const char *path, int attrnamespace, \
733				    const char *attrname); }
734415	AUE_NULL	MSTD	{ int __mac_execve(char *fname, char **argv, \
735				    char **envv, struct mac *mac_p); }
736416	AUE_SIGACTION	MSTD	{ int sigaction(int sig, \
737				    const struct sigaction *act, \
738				    struct sigaction *oact); }
739417	AUE_SIGRETURN	MSTD	{ int sigreturn( \
740				    const struct __ucontext *sigcntxp); }
741418	AUE_NULL	UNIMPL	__xstat
742419	AUE_NULL	UNIMPL	__xfstat
743420	AUE_NULL	UNIMPL	__xlstat
744421	AUE_NULL	MSTD	{ int getcontext(struct __ucontext *ucp); }
745422	AUE_NULL	MSTD	{ int setcontext( \
746				    const struct __ucontext *ucp); }
747423	AUE_NULL	MSTD	{ int swapcontext(struct __ucontext *oucp, \
748				    const struct __ucontext *ucp); }
749424	AUE_SWAPOFF	MSTD	{ int swapoff(const char *name); }
750425	AUE_NULL	MSTD	{ int __acl_get_link(const char *path, \
751				    acl_type_t type, struct acl *aclp); }
752426	AUE_NULL	MSTD	{ int __acl_set_link(const char *path, \
753				    acl_type_t type, struct acl *aclp); }
754427	AUE_NULL	MSTD	{ int __acl_delete_link(const char *path, \
755				    acl_type_t type); }
756428	AUE_NULL	MSTD	{ int __acl_aclcheck_link(const char *path, \
757				    acl_type_t type, struct acl *aclp); }
758429	AUE_SIGWAIT	MSTD	{ int sigwait(const sigset_t *set, \
759				    int *sig); }
760430	AUE_NULL	MSTD	{ int thr_create(ucontext_t *ctx, long *id, \
761				    int flags); }
762431	AUE_NULL	MSTD	{ void thr_exit(long *state); }
763432	AUE_NULL	MSTD	{ int thr_self(long *id); }
764433	AUE_NULL	MSTD	{ int thr_kill(long id, int sig); }
765434	AUE_NULL	MSTD	{ int _umtx_lock(struct umtx *umtx); }
766435	AUE_NULL	MSTD	{ int _umtx_unlock(struct umtx *umtx); }
767436	AUE_NULL	MSTD	{ int jail_attach(int jid); }
768437	AUE_EXTATTR_LIST_FD	MSTD	{ ssize_t extattr_list_fd(int fd, \
769				    int attrnamespace, void *data, \
770				    size_t nbytes); }
771438	AUE_EXTATTR_LIST_FILE	MSTD	{ ssize_t extattr_list_file( \
772				    const char *path, int attrnamespace, \
773				    void *data, size_t nbytes); }
774439	AUE_EXTATTR_LIST_LINK	MSTD	{ ssize_t extattr_list_link( \
775				    const char *path, int attrnamespace, \
776				    void *data, size_t nbytes); }
777440	AUE_NULL	MSTD	{ int kse_switchin( \
778				    struct kse_thr_mailbox *tmbx, \
779				    int flags); }
780441	AUE_NULL	MNOSTD	{ int ksem_timedwait(semid_t id, \
781				    const struct timespec *abstime); }
782442	AUE_NULL	MSTD	{ int thr_suspend( \
783				    const struct timespec *timeout); }
784443	AUE_NULL	MSTD	{ int thr_wake(long id); }
785444	AUE_NULL	MSTD	{ int kldunloadf(int fileid, int flags); }
786445	AUE_AUDIT	MSTD	{ int audit(const void *record, \
787				    u_int length); }
788446	AUE_AUDITON	MSTD	{ int auditon(int cmd, void *data, \
789				    u_int length); }
790447	AUE_GETAUID	MSTD	{ int getauid(uid_t *auid); }
791448	AUE_SETAUID	MSTD	{ int setauid(uid_t *auid); }
792449	AUE_GETAUDIT	MSTD	{ int getaudit(struct auditinfo *auditinfo); }
793450	AUE_SETAUDIT	MSTD	{ int setaudit(struct auditinfo *auditinfo); }
794451	AUE_GETAUDIT_ADDR	MSTD	{ int getaudit_addr( \
795				    struct auditinfo_addr *auditinfo_addr, \
796				    u_int length); }
797452	AUE_SETAUDIT_ADDR	MSTD	{ int setaudit_addr( \
798				    struct auditinfo_addr *auditinfo_addr, \
799				    u_int length); }
800453	AUE_AUDITCTL	MSTD	{ int auditctl(char *path); }
801454	AUE_NULL	MSTD	{ int _umtx_op(struct umtx *umtx, int op, \
802				    long id, void *uaddr, void *uaddr2); }
803455	AUE_NULL	MSTD	{ int thr_new(struct thr_param *param, \
804				    int param_size); }
805456	AUE_NULL	MSTD	{ int sigqueue(pid_t pid, int signum, void *value); }
806457	AUE_NULL	MNOSTD	{ int kmq_open(const char *path, int flags, \
807				    mode_t mode, const struct mq_attr *attr); }
808458	AUE_NULL	MNOSTD	{ int kmq_setattr(int mqd,		\
809				    const struct mq_attr *attr,		\
810				    struct mq_attr *oattr); }
811459	AUE_NULL	MNOSTD	{ int kmq_timedreceive(int mqd,	\
812				    char *msg_ptr, size_t msg_len,	\
813				    unsigned *msg_prio,			\
814				    const struct timespec *abs_timeout); }
815460	AUE_NULL	MNOSTD  { int kmq_timedsend(int mqd,		\
816				    const char *msg_ptr, size_t msg_len,\
817				    unsigned msg_prio,			\
818				    const struct timespec *abs_timeout);}
819461	AUE_NULL	MNOSTD	{ int kmq_notify(int mqd,		\
820				    const struct sigevent *sigev); }
821462	AUE_NULL	MNOSTD	{ int kmq_unlink(const char *path); }
822463	AUE_NULL	MSTD	{ int abort2(const char *why, int nargs, void **args); }
823464	AUE_NULL	MSTD	{ int thr_set_name(long id, const char *name); }
824465	AUE_NULL	MNOSTD	{ int aio_fsync(int op, struct aiocb *aiocbp); }
825; Please copy any additions and changes to the following compatability tables:
826; sys/compat/freebsd32/syscalls.master
827