xref: /trueos/sys/kern/syscalls.master (revision d1173733b6c3f23246e2178b8760d6302959aa79)
1 $FreeBSD$
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 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 STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
15;		COMPAT7, NODEF, NOARGS, NOPROTO, NOSTD
16;		The COMPAT* options may be combined with one or more NO*
17;		options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
18;	name	psuedo-prototype of syscall routine
19;		If one of the following alts is different, then all appear:
20;	altname	name of system call if different
21;	alttag	name of args struct tag if different from [o]`name'"_args"
22;	altrtyp	return type if not int (bogus - syscalls always return int)
23;		for UNIMPL/OBSOL, name continues with comments
24
25; types:
26;	STD	always included
27;	COMPAT	included on COMPAT #ifdef
28;	COMPAT4	included on COMPAT4 #ifdef (FreeBSD 4 compat)
29;	COMPAT6	included on COMPAT6 #ifdef (FreeBSD 6 compat)
30;	COMPAT7	included on COMPAT7 #ifdef (FreeBSD 7 compat)
31;	OBSOL	obsolete, not included in system, only specifies name
32;	UNIMPL	not implemented, placeholder only
33;	NOSTD	implemented but as a lkm that can be statically
34;		compiled in; sysent entry will be filled with lkmressys
35;		so the SYSCALL_MODULE macro works
36;	NOARGS	same as STD except do not create structure in sys/sysproto.h
37;	NODEF	same as STD except only have the entry in the syscall table
38;		added.  Meaning - do not create structure or function
39;		prototype in sys/sysproto.h
40;	NOPROTO	same as STD except do not create structure or
41;		function prototype in sys/sysproto.h.  Does add a
42;		definition to syscall.h besides adding a sysent.
43;	NOTSTATIC syscall is loadable
44;
45; Please copy any additions and changes to the following compatability tables:
46; sys/compat/freebsd32/syscalls.master
47
48; #ifdef's, etc. may be included, and are copied to the output files.
49
50#include <sys/param.h>
51#include <sys/sysent.h>
52#include <sys/sysproto.h>
53
54#include <vm/vm.h>
55#include <sys/mach/mach_types.h>
56#include <sys/mach/message.h>
57#include <sys/mach/mach_time.h>
58#include <sys/mach/port.h>
59#include <sys/mach/clock_server.h>
60
61
62;;
63; Reserved/unimplemented system calls in the range 0-150 inclusive
64; are reserved for use in future Berkeley releases.
65; Additional system calls implemented in vendor and other
66; redistributions should be placed in the reserved range at the end
67; of the current calls.
68
690	AUE_NULL	STD	{ int nosys(void); } syscall nosys_args int
701	AUE_EXIT	STD	{ void sys_exit(int rval); } exit \
71				    sys_exit_args void
722	AUE_FORK	STD	{ int fork(void); }
733	AUE_NULL	STD	{ ssize_t read(int fd, void *buf, \
74				    size_t nbyte); }
754	AUE_NULL	STD	{ ssize_t write(int fd, const void *buf, \
76				    size_t nbyte); }
775	AUE_OPEN_RWTC	STD	{ int open(char *path, int flags, int mode); }
78; XXX should be		{ int open(const char *path, int flags, ...); }
79; but we're not ready for `const' or varargs.
80; XXX man page says `mode_t mode'.
816	AUE_CLOSE	STD	{ int close(int fd); }
827	AUE_WAIT4	STD	{ int wait4(int pid, int *status, \
83				    int options, struct rusage *rusage); }
848	AUE_CREAT	COMPAT	{ int creat(char *path, int mode); }
859	AUE_LINK	STD	{ int link(char *path, char *link); }
8610	AUE_UNLINK	STD	{ int unlink(char *path); }
8711	AUE_NULL	OBSOL	execv
8812	AUE_CHDIR	STD	{ int chdir(char *path); }
8913	AUE_FCHDIR	STD	{ int fchdir(int fd); }
9014	AUE_MKNOD	STD	{ int mknod(char *path, int mode, int dev); }
9115	AUE_CHMOD	STD	{ int chmod(char *path, int mode); }
9216	AUE_CHOWN	STD	{ int chown(char *path, int uid, int gid); }
9317	AUE_NULL	STD	{ int obreak(char *nsize); } break \
94				    obreak_args int
9518	AUE_GETFSSTAT	COMPAT4	{ int getfsstat(struct ostatfs *buf, \
96				    long bufsize, int flags); }
9719	AUE_LSEEK	COMPAT	{ long lseek(int fd, long offset, \
98				    int whence); }
9920	AUE_GETPID	STD	{ pid_t getpid(void); }
10021	AUE_MOUNT	STD	{ int mount(char *type, char *path, \
101				    int flags, caddr_t data); }
102; XXX `path' should have type `const char *' but we're not ready for that.
10322	AUE_UMOUNT	STD	{ int unmount(char *path, int flags); }
10423	AUE_SETUID	STD	{ int setuid(uid_t uid); }
10524	AUE_GETUID	STD	{ uid_t getuid(void); }
10625	AUE_GETEUID	STD	{ uid_t geteuid(void); }
10726	AUE_PTRACE	STD	{ int ptrace(int req, pid_t pid, \
108				    caddr_t addr, int data); }
10927	AUE_RECVMSG	STD	{ int recvmsg(int s, struct msghdr *msg, \
110				    int flags); }
11128	AUE_SENDMSG	STD	{ int sendmsg(int s, struct msghdr *msg, \
112				    int flags); }
11329	AUE_RECVFROM	STD	{ int recvfrom(int s, caddr_t buf, \
114				    size_t len, int flags, \
115				    struct sockaddr * __restrict from, \
116				    __socklen_t * __restrict fromlenaddr); }
11730	AUE_ACCEPT	STD	{ int accept(int s, \
118				    struct sockaddr * __restrict name, \
119				    __socklen_t * __restrict anamelen); }
12031	AUE_GETPEERNAME	STD	{ int getpeername(int fdes, \
121				    struct sockaddr * __restrict asa, \
122				    __socklen_t * __restrict alen); }
12332	AUE_GETSOCKNAME	STD	{ int getsockname(int fdes, \
124				    struct sockaddr * __restrict asa, \
125				    __socklen_t * __restrict alen); }
12633	AUE_ACCESS	STD	{ int access(char *path, int amode); }
12734	AUE_CHFLAGS	STD	{ int chflags(const char *path, u_long flags); }
12835	AUE_FCHFLAGS	STD	{ int fchflags(int fd, u_long flags); }
12936	AUE_SYNC	STD	{ int sync(void); }
13037	AUE_KILL	STD	{ int kill(int pid, int signum); }
13138	AUE_STAT	COMPAT	{ int stat(char *path, struct ostat *ub); }
13239	AUE_GETPPID	STD	{ pid_t getppid(void); }
13340	AUE_LSTAT	COMPAT	{ int lstat(char *path, struct ostat *ub); }
13441	AUE_DUP		STD	{ int dup(u_int fd); }
13542	AUE_PIPE	STD	{ int pipe(void); }
13643	AUE_GETEGID	STD	{ gid_t getegid(void); }
13744	AUE_PROFILE	STD	{ int profil(caddr_t samples, size_t size, \
138				    size_t offset, u_int scale); }
13945	AUE_KTRACE	STD	{ int ktrace(const char *fname, int ops, \
140				    int facs, int pid); }
14146	AUE_SIGACTION	COMPAT	{ int sigaction(int signum, \
142				    struct osigaction *nsa, \
143				    struct osigaction *osa); }
14447	AUE_GETGID	STD	{ gid_t getgid(void); }
14548	AUE_SIGPROCMASK	COMPAT	{ int sigprocmask(int how, osigset_t mask); }
146; XXX note nonstandard (bogus) calling convention - the libc stub passes
147; us the mask, not a pointer to it, and we return the old mask as the
148; (int) return value.
14949	AUE_GETLOGIN	STD	{ int getlogin(char *namebuf, u_int \
150				    namelen); }
15150	AUE_SETLOGIN	STD	{ int setlogin(char *namebuf); }
15251	AUE_ACCT	STD	{ int acct(char *path); }
15352	AUE_SIGPENDING	COMPAT	{ int sigpending(void); }
15453	AUE_SIGALTSTACK	STD	{ int sigaltstack(stack_t *ss, \
155				    stack_t *oss); }
15654	AUE_IOCTL	STD	{ int ioctl(int fd, u_long com, \
157				    caddr_t data); }
15855	AUE_REBOOT	STD	{ int reboot(int opt); }
15956	AUE_REVOKE	STD	{ int revoke(char *path); }
16057	AUE_SYMLINK	STD	{ int symlink(char *path, char *link); }
16158	AUE_READLINK	STD	{ ssize_t readlink(char *path, char *buf, \
162				    size_t count); }
16359	AUE_EXECVE	STD	{ int execve(char *fname, char **argv, \
164				    char **envv); }
16560	AUE_UMASK	STD	{ int umask(int newmask); } umask umask_args \
166				    int
16761	AUE_CHROOT	STD	{ int chroot(char *path); }
16862	AUE_FSTAT	COMPAT	{ int fstat(int fd, struct ostat *sb); }
16963	AUE_NULL	COMPAT	{ int getkerninfo(int op, char *where, \
170				    size_t *size, int arg); } getkerninfo \
171				    getkerninfo_args int
17264	AUE_NULL	COMPAT	{ int getpagesize(void); } getpagesize \
173				    getpagesize_args int
17465	AUE_MSYNC	STD	{ int msync(void *addr, size_t len, \
175				    int flags); }
17666	AUE_VFORK	STD	{ int vfork(void); }
17767	AUE_NULL	OBSOL	vread
17868	AUE_NULL	OBSOL	vwrite
17969	AUE_SBRK	STD	{ int sbrk(int incr); }
18070	AUE_SSTK	STD	{ int sstk(int incr); }
18171	AUE_MMAP	COMPAT	{ int mmap(void *addr, int len, int prot, \
182				    int flags, int fd, long pos); }
18372	AUE_O_VADVISE	STD	{ int ovadvise(int anom); } vadvise \
184				    ovadvise_args int
18573	AUE_MUNMAP	STD	{ int munmap(void *addr, size_t len); }
18674	AUE_MPROTECT	STD	{ int mprotect(const void *addr, size_t len, \
187				    int prot); }
18875	AUE_MADVISE	STD	{ int madvise(void *addr, size_t len, \
189				    int behav); }
19076	AUE_NULL	OBSOL	vhangup
19177	AUE_NULL	OBSOL	vlimit
19278	AUE_MINCORE	STD	{ int mincore(const void *addr, size_t len, \
193				    char *vec); }
19479	AUE_GETGROUPS	STD	{ int getgroups(u_int gidsetsize, \
195				    gid_t *gidset); }
19680	AUE_SETGROUPS	STD	{ int setgroups(u_int gidsetsize, \
197				    gid_t *gidset); }
19881	AUE_GETPGRP	STD	{ int getpgrp(void); }
19982	AUE_SETPGRP	STD	{ int setpgid(int pid, int pgid); }
20083	AUE_SETITIMER	STD	{ int setitimer(u_int which, struct \
201				    itimerval *itv, struct itimerval *oitv); }
20284	AUE_WAIT4	COMPAT	{ int wait(void); }
20385	AUE_SWAPON	STD	{ int swapon(char *name); }
20486	AUE_GETITIMER	STD	{ int getitimer(u_int which, \
205				    struct itimerval *itv); }
20687	AUE_SYSCTL	COMPAT	{ int gethostname(char *hostname, \
207				    u_int len); } gethostname \
208				    gethostname_args int
20988	AUE_SYSCTL	COMPAT	{ int sethostname(char *hostname, \
210				    u_int len); } sethostname \
211				    sethostname_args int
21289	AUE_GETDTABLESIZE	STD	{ int getdtablesize(void); }
21390	AUE_DUP2	STD	{ int dup2(u_int from, u_int to); }
21491	AUE_NULL	UNIMPL	getdopt
21592	AUE_FCNTL	STD	{ int fcntl(int fd, int cmd, long arg); }
216; XXX should be	{ int fcntl(int fd, int cmd, ...); }
217; but we're not ready for varargs.
21893	AUE_SELECT	STD	{ int select(int nd, fd_set *in, fd_set *ou, \
219				    fd_set *ex, struct timeval *tv); }
22094	AUE_NULL	UNIMPL	setdopt
22195	AUE_FSYNC	STD	{ int fsync(int fd); }
22296	AUE_SETPRIORITY	STD	{ int setpriority(int which, int who, \
223				    int prio); }
22497	AUE_SOCKET	STD	{ int socket(int domain, int type, \
225				    int protocol); }
22698	AUE_CONNECT	STD	{ int connect(int s, caddr_t name, \
227				    int namelen); }
22899	AUE_ACCEPT	COMPAT|NOARGS { int accept(int s, caddr_t name, \
229				    int *anamelen); } accept accept_args int
230100	AUE_GETPRIORITY	STD	{ int getpriority(int which, int who); }
231101	AUE_SEND	COMPAT	{ int send(int s, caddr_t buf, int len, \
232				    int flags); }
233102	AUE_RECV	COMPAT	{ int recv(int s, caddr_t buf, int len, \
234				    int flags); }
235103	AUE_SIGRETURN	COMPAT	{ int sigreturn( \
236				    struct osigcontext *sigcntxp); }
237104	AUE_BIND	STD	{ int bind(int s, caddr_t name, \
238				    int namelen); }
239105	AUE_SETSOCKOPT	STD	{ int setsockopt(int s, int level, int name, \
240				    caddr_t val, int valsize); }
241106	AUE_LISTEN	STD	{ int listen(int s, int backlog); }
242107	AUE_NULL	OBSOL	vtimes
243108	AUE_NULL	COMPAT	{ int sigvec(int signum, struct sigvec *nsv, \
244				    struct sigvec *osv); }
245109	AUE_NULL	COMPAT	{ int sigblock(int mask); }
246110	AUE_NULL	COMPAT	{ int sigsetmask(int mask); }
247111	AUE_NULL	COMPAT	{ int sigsuspend(osigset_t mask); }
248; XXX note nonstandard (bogus) calling convention - the libc stub passes
249; us the mask, not a pointer to it.
250112	AUE_NULL	COMPAT	{ int sigstack(struct sigstack *nss, \
251				    struct sigstack *oss); }
252113	AUE_RECVMSG	COMPAT	{ int recvmsg(int s, struct omsghdr *msg, \
253				    int flags); }
254114	AUE_SENDMSG	COMPAT	{ int sendmsg(int s, caddr_t msg, \
255				    int flags); }
256115	AUE_NULL	OBSOL	vtrace
257116	AUE_GETTIMEOFDAY	STD	{ int gettimeofday(struct timeval *tp, \
258				    struct timezone *tzp); }
259117	AUE_GETRUSAGE	STD	{ int getrusage(int who, \
260				    struct rusage *rusage); }
261118	AUE_GETSOCKOPT	STD	{ int getsockopt(int s, int level, int name, \
262				    caddr_t val, int *avalsize); }
263119	AUE_NULL	UNIMPL	resuba (BSD/OS 2.x)
264120	AUE_READV	STD	{ int readv(int fd, struct iovec *iovp, \
265				    u_int iovcnt); }
266121	AUE_WRITEV	STD	{ int writev(int fd, struct iovec *iovp, \
267				    u_int iovcnt); }
268122	AUE_SETTIMEOFDAY	STD	{ int settimeofday(struct timeval *tv, \
269				    struct timezone *tzp); }
270123	AUE_FCHOWN	STD	{ int fchown(int fd, int uid, int gid); }
271124	AUE_FCHMOD	STD	{ int fchmod(int fd, int mode); }
272125	AUE_RECVFROM	COMPAT|NOARGS { int recvfrom(int s, caddr_t buf, \
273				    size_t len, int flags, caddr_t from, int \
274				    *fromlenaddr); } recvfrom recvfrom_args \
275				    int
276126	AUE_SETREUID	STD	{ int setreuid(int ruid, int euid); }
277127	AUE_SETREGID	STD	{ int setregid(int rgid, int egid); }
278128	AUE_RENAME	STD	{ int rename(char *from, char *to); }
279129	AUE_TRUNCATE	COMPAT	{ int truncate(char *path, long length); }
280130	AUE_FTRUNCATE	COMPAT	{ int ftruncate(int fd, long length); }
281131	AUE_FLOCK	STD	{ int flock(int fd, int how); }
282132	AUE_MKFIFO	STD	{ int mkfifo(char *path, int mode); }
283133	AUE_SENDTO	STD	{ int sendto(int s, caddr_t buf, size_t len, \
284				    int flags, caddr_t to, int tolen); }
285134	AUE_SHUTDOWN	STD	{ int shutdown(int s, int how); }
286135	AUE_SOCKETPAIR	STD	{ int socketpair(int domain, int type, \
287				    int protocol, int *rsv); }
288136	AUE_MKDIR	STD	{ int mkdir(char *path, int mode); }
289137	AUE_RMDIR	STD	{ int rmdir(char *path); }
290138	AUE_UTIMES	STD	{ int utimes(char *path, \
291				    struct timeval *tptr); }
292139	AUE_NULL	OBSOL	4.2 sigreturn
293140	AUE_ADJTIME	STD	{ int adjtime(struct timeval *delta, \
294				    struct timeval *olddelta); }
295141	AUE_GETPEERNAME	COMPAT	{ int getpeername(int fdes, caddr_t asa, \
296				    int *alen); }
297142	AUE_SYSCTL	COMPAT	{ long gethostid(void); }
298143	AUE_SYSCTL	COMPAT	{ int sethostid(long hostid); }
299144	AUE_GETRLIMIT	COMPAT	{ int getrlimit(u_int which, struct \
300				    orlimit *rlp); }
301145	AUE_SETRLIMIT	COMPAT	{ int setrlimit(u_int which, \
302				    struct orlimit *rlp); }
303146	AUE_KILLPG	COMPAT	{ int killpg(int pgid, int signum); }
304147	AUE_SETSID	STD	{ int setsid(void); }
305148	AUE_QUOTACTL	STD	{ int quotactl(char *path, int cmd, int uid, \
306				    caddr_t arg); }
307149	AUE_O_QUOTA	COMPAT	{ int quota(void); }
308150	AUE_GETSOCKNAME	COMPAT|NOARGS { int getsockname(int fdec, \
309				    caddr_t asa, int *alen); } getsockname \
310				    getsockname_args int
311
312; Syscalls 151-180 inclusive are reserved for vendor-specific
313; system calls.  (This includes various calls added for compatibity
314; with other Unix variants.)
315; Some of these calls are now supported by BSD...
316151	AUE_NULL	UNIMPL	sem_lock (BSD/OS 2.x)
317152	AUE_NULL	UNIMPL	sem_wakeup (BSD/OS 2.x)
318153	AUE_NULL	UNIMPL	asyncdaemon (BSD/OS 2.x)
319; 154 is initialised by the NLM code, if present.
320154	AUE_NULL	NOSTD	{ int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
321; 155 is initialized by the NFS code, if present.
322155	AUE_NFS_SVC	NOSTD	{ int nfssvc(int flag, caddr_t argp); }
323156	AUE_GETDIRENTRIES	COMPAT	{ int getdirentries(int fd, char *buf, \
324				    u_int count, long *basep); }
325157	AUE_STATFS	COMPAT4	{ int statfs(char *path, \
326				    struct ostatfs *buf); }
327158	AUE_FSTATFS	COMPAT4	{ int fstatfs(int fd, \
328				    struct ostatfs *buf); }
329159	AUE_NULL	UNIMPL	nosys
330160	AUE_LGETFH	STD	{ int lgetfh(char *fname, \
331				    struct fhandle *fhp); }
332161	AUE_NFS_GETFH	STD	{ int getfh(char *fname, \
333				    struct fhandle *fhp); }
334162	AUE_SYSCTL	COMPAT4	{ int getdomainname(char *domainname, \
335				    int len); }
336163	AUE_SYSCTL	COMPAT4	{ int setdomainname(char *domainname, \
337				    int len); }
338164	AUE_NULL	COMPAT4	{ int uname(struct utsname *name); }
339165	AUE_SYSARCH	STD	{ int sysarch(int op, char *parms); }
340166	AUE_RTPRIO	STD	{ int rtprio(int function, pid_t pid, \
341				    struct rtprio *rtp); }
342167	AUE_NULL	UNIMPL	nosys
343168	AUE_NULL	UNIMPL	nosys
344169	AUE_SEMSYS	NOSTD	{ int semsys(int which, int a2, int a3, \
345				    int a4, int a5); }
346; XXX should be	{ int semsys(int which, ...); }
347170	AUE_MSGSYS	NOSTD	{ int msgsys(int which, int a2, int a3, \
348				    int a4, int a5, int a6); }
349; XXX should be	{ int msgsys(int which, ...); }
350171	AUE_SHMSYS	NOSTD	{ int shmsys(int which, int a2, int a3, \
351				    int a4); }
352; XXX should be	{ int shmsys(int which, ...); }
353172	AUE_NULL	UNIMPL	nosys
354173	AUE_PREAD	STD	{ ssize_t freebsd6_pread(int fd, void *buf, \
355				    size_t nbyte, int pad, off_t offset); }
356174	AUE_PWRITE	STD	{ ssize_t freebsd6_pwrite(int fd, \
357				    const void *buf, \
358				    size_t nbyte, int pad, off_t offset); }
359175	AUE_NULL	STD	{ int setfib(int fibnum); }
360176	AUE_NTP_ADJTIME	STD	{ int ntp_adjtime(struct timex *tp); }
361177	AUE_NULL	UNIMPL	sfork (BSD/OS 2.x)
362178	AUE_NULL	UNIMPL	getdescriptor (BSD/OS 2.x)
363179	AUE_NULL	UNIMPL	setdescriptor (BSD/OS 2.x)
364180	AUE_NULL	UNIMPL	nosys
365
366; Syscalls 181-199 are used by/reserved for BSD
367181	AUE_SETGID	STD	{ int setgid(gid_t gid); }
368182	AUE_SETEGID	STD	{ int setegid(gid_t egid); }
369183	AUE_SETEUID	STD	{ int seteuid(uid_t euid); }
370184	AUE_NULL	UNIMPL	lfs_bmapv
371185	AUE_NULL	UNIMPL	lfs_markv
372186	AUE_NULL	UNIMPL	lfs_segclean
373187	AUE_NULL	UNIMPL	lfs_segwait
374188	AUE_STAT	STD	{ int stat(char *path, struct stat *ub); }
375189	AUE_FSTAT	STD	{ int fstat(int fd, struct stat *sb); }
376190	AUE_LSTAT	STD	{ int lstat(char *path, struct stat *ub); }
377191	AUE_PATHCONF	STD	{ int pathconf(char *path, int name); }
378192	AUE_FPATHCONF	STD	{ int fpathconf(int fd, int name); }
379193	AUE_NULL	UNIMPL	nosys
380194	AUE_GETRLIMIT	STD	{ int getrlimit(u_int which, \
381				    struct rlimit *rlp); } getrlimit \
382				    __getrlimit_args int
383195	AUE_SETRLIMIT	STD	{ int setrlimit(u_int which, \
384				    struct rlimit *rlp); } setrlimit \
385				    __setrlimit_args int
386196	AUE_GETDIRENTRIES	STD	{ int getdirentries(int fd, char *buf, \
387				    u_int count, long *basep); }
388197	AUE_MMAP	STD	{ caddr_t freebsd6_mmap(caddr_t addr, \
389				    size_t len, int prot, int flags, int fd, \
390				    int pad, off_t pos); }
391198	AUE_NULL	NOPROTO	{ int nosys(void); } __syscall \
392				    __syscall_args int
393199	AUE_LSEEK	STD	{ off_t freebsd6_lseek(int fd, int pad, \
394				    off_t offset, int whence); }
395200	AUE_TRUNCATE	STD	{ int freebsd6_truncate(char *path, int pad, \
396				    off_t length); }
397201	AUE_FTRUNCATE	STD	{ int freebsd6_ftruncate(int fd, int pad, \
398				    off_t length); }
399202	AUE_SYSCTL	STD	{ int __sysctl(int *name, u_int namelen, \
400				    void *old, size_t *oldlenp, void *new, \
401				    size_t newlen); } __sysctl sysctl_args int
402203	AUE_MLOCK	STD	{ int mlock(const void *addr, size_t len); }
403204	AUE_MUNLOCK	STD	{ int munlock(const void *addr, size_t len); }
404205	AUE_UNDELETE	STD	{ int undelete(char *path); }
405206	AUE_FUTIMES	STD	{ int futimes(int fd, struct timeval *tptr); }
406207	AUE_GETPGID	STD	{ int getpgid(pid_t pid); }
407208	AUE_NULL	UNIMPL	newreboot (NetBSD)
408209	AUE_POLL	STD	{ int poll(struct pollfd *fds, u_int nfds, \
409				    int timeout); }
410
411;
412; The following are reserved for loadable syscalls
413;
414210	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
415211	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
416212	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
417213	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
418214	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
419215	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
420216	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
421217	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
422218	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
423219	AUE_NULL	NODEF|NOTSTATIC	lkmnosys lkmnosys nosys_args int
424
425;
426; The following were introduced with NetBSD/4.4Lite-2
427220	AUE_SEMCTL	COMPAT7|NOSTD { int __semctl(int semid, int semnum, \
428				    int cmd, union semun_old *arg); }
429221	AUE_SEMGET	NOSTD	{ int semget(key_t key, int nsems, \
430				    int semflg); }
431222	AUE_SEMOP	NOSTD	{ int semop(int semid, struct sembuf *sops, \
432				    size_t nsops); }
433223	AUE_NULL	UNIMPL	semconfig
434224	AUE_MSGCTL	COMPAT7|NOSTD { int msgctl(int msqid, int cmd, \
435				    struct msqid_ds_old *buf); }
436225	AUE_MSGGET	NOSTD	{ int msgget(key_t key, int msgflg); }
437226	AUE_MSGSND	NOSTD	{ int msgsnd(int msqid, const void *msgp, \
438				    size_t msgsz, int msgflg); }
439227	AUE_MSGRCV	NOSTD	{ int msgrcv(int msqid, void *msgp, \
440				    size_t msgsz, long msgtyp, int msgflg); }
441228	AUE_SHMAT	NOSTD	{ int shmat(int shmid, const void *shmaddr, \
442				    int shmflg); }
443229	AUE_SHMCTL	COMPAT7|NOSTD { int shmctl(int shmid, int cmd, \
444				    struct shmid_ds_old *buf); }
445230	AUE_SHMDT	NOSTD	{ int shmdt(const void *shmaddr); }
446231	AUE_SHMGET	NOSTD	{ int shmget(key_t key, size_t size, \
447				    int shmflg); }
448;
449232	AUE_NULL	STD	{ int clock_gettime(clockid_t clock_id, \
450				    struct timespec *tp); }
451233	AUE_CLOCK_SETTIME	STD	{ int clock_settime( \
452				    clockid_t clock_id, \
453				    const struct timespec *tp); }
454234	AUE_NULL	STD	{ int clock_getres(clockid_t clock_id, \
455				    struct timespec *tp); }
456235	AUE_NULL	STD	{ int ktimer_create(clockid_t clock_id, \
457				    struct sigevent *evp, int *timerid); }
458236	AUE_NULL	STD	{ int ktimer_delete(int timerid); }
459237	AUE_NULL	STD	{ int ktimer_settime(int timerid, int flags, \
460				    const struct itimerspec *value, \
461				    struct itimerspec *ovalue); }
462238	AUE_NULL	STD	{ int ktimer_gettime(int timerid, struct \
463				    itimerspec *value); }
464239	AUE_NULL	STD	{ int ktimer_getoverrun(int timerid); }
465240	AUE_NULL	STD	{ int nanosleep(const struct timespec *rqtp, \
466				    struct timespec *rmtp); }
467241	AUE_NULL	STD	{ int ffclock_getcounter(ffcounter *ffcount); }
468242	AUE_NULL	STD	{ int ffclock_setestimate( \
469				    struct ffclock_estimate *cest); }
470243	AUE_NULL	STD	{ int ffclock_getestimate( \
471				    struct ffclock_estimate *cest); }
472244	AUE_NULL	UNIMPL	nosys
473245	AUE_NULL	UNIMPL	nosys
474246	AUE_NULL	UNIMPL	nosys
475247	AUE_NULL	STD	{ int clock_getcpuclockid2(id_t id,\
476				    int which, clockid_t *clock_id); }
477248	AUE_NULL	STD	{ int ntp_gettime(struct ntptimeval *ntvp); }
478249	AUE_NULL	UNIMPL	nosys
479; syscall numbers initially used in OpenBSD
480250	AUE_MINHERIT	STD	{ int minherit(void *addr, size_t len, \
481				    int inherit); }
482251	AUE_RFORK	STD	{ int rfork(int flags); }
483252	AUE_POLL	STD	{ int openbsd_poll(struct pollfd *fds, \
484				    u_int nfds, int timeout); }
485253	AUE_ISSETUGID	STD	{ int issetugid(void); }
486254	AUE_LCHOWN	STD	{ int lchown(char *path, int uid, int gid); }
487255	AUE_NULL	NOSTD	{ int aio_read(struct aiocb *aiocbp); }
488256	AUE_NULL	NOSTD	{ int aio_write(struct aiocb *aiocbp); }
489257	AUE_NULL	NOSTD	{ int lio_listio(int mode, \
490				    struct aiocb * const *acb_list, \
491				    int nent, struct sigevent *sig); }
492258 AUE_NULL	NOSTD	{ int __proc_info(int callnum, int pid, \
493					int flavor, uint64_t arg, void * buffer, \
494					int buffersize); }
495259 AUE_NULL	NOSTD	{ int __iopolicysys(int cmd, struct _iopol_param_t * param); }
496260	AUE_NULL	UNIMPL	nosys
497261	AUE_NULL	UNIMPL	nosys
498262	AUE_NULL	UNIMPL	nosys
499263	AUE_NULL	UNIMPL	nosys
500264	AUE_NULL	UNIMPL	nosys
501265	AUE_NULL	UNIMPL	nosys
502266	AUE_NULL	UNIMPL	nosys
503267	AUE_NULL	UNIMPL	nosys
504268	AUE_NULL	UNIMPL	nosys
505269	AUE_NULL	UNIMPL	nosys
506270	AUE_NULL	UNIMPL	nosys
507271	AUE_NULL	UNIMPL	nosys
508272	AUE_O_GETDENTS	STD	{ int getdents(int fd, char *buf, \
509				    size_t count); }
510273	AUE_NULL	UNIMPL	nosys
511274	AUE_LCHMOD	STD	{ int lchmod(char *path, mode_t mode); }
512275	AUE_LCHOWN	NOPROTO	{ int lchown(char *path, uid_t uid, \
513				    gid_t gid); } netbsd_lchown lchown_args \
514				    int
515276	AUE_LUTIMES	STD	{ int lutimes(char *path, \
516				    struct timeval *tptr); }
517277	AUE_MSYNC	NOPROTO	{ int msync(void *addr, size_t len, \
518				    int flags); } netbsd_msync msync_args int
519278	AUE_STAT	STD	{ int nstat(char *path, struct nstat *ub); }
520279	AUE_FSTAT	STD	{ int nfstat(int fd, struct nstat *sb); }
521280	AUE_LSTAT	STD	{ int nlstat(char *path, struct nstat *ub); }
522281	AUE_NULL	NOSTD { uint32_t audit_session_self(void); }
523282	AUE_NULL	NOSTD { int audit_session_join(uint32_t port); }
524283	AUE_NULL	NOSTD { int audit_session_port(pid_t asid, void *portnamep); }
525284	AUE_NULL	UNIMPL	nosys
526285	AUE_NULL	UNIMPL	nosys
527286	AUE_NULL	UNIMPL	nosys
528287	AUE_NULL	UNIMPL	nosys
529288	AUE_NULL	UNIMPL	nosys
530; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
531289	AUE_PREADV	STD	{ ssize_t preadv(int fd, struct iovec *iovp, \
532					u_int iovcnt, off_t offset); }
533290	AUE_PWRITEV	STD	{ ssize_t pwritev(int fd, struct iovec *iovp, \
534					u_int iovcnt, off_t offset); }
535291	AUE_NULL	UNIMPL	nosys
536292	AUE_NULL	UNIMPL	nosys
537293	AUE_NULL	UNIMPL	nosys
538294	AUE_NULL	UNIMPL	nosys
539295	AUE_NULL	UNIMPL	nosys
540296	AUE_NULL	UNIMPL	nosys
541; XXX 297 is 300 in NetBSD
542297	AUE_FHSTATFS	COMPAT4	{ int fhstatfs( \
543				    const struct fhandle *u_fhp, \
544				    struct ostatfs *buf); }
545298	AUE_FHOPEN	STD	{ int fhopen(const struct fhandle *u_fhp, \
546				    int flags); }
547299	AUE_FHSTAT	STD	{ int fhstat(const struct fhandle *u_fhp, \
548				    struct stat *sb); }
549; syscall numbers for FreeBSD
550300	AUE_NULL	STD	{ int modnext(int modid); }
551301	AUE_NULL	STD	{ int modstat(int modid, \
552				    struct module_stat *stat); }
553302	AUE_NULL	STD	{ int modfnext(int modid); }
554303	AUE_NULL	STD	{ int modfind(const char *name); }
555304	AUE_MODLOAD	STD	{ int kldload(const char *file); }
556305	AUE_MODUNLOAD	STD	{ int kldunload(int fileid); }
557306	AUE_NULL	STD	{ int kldfind(const char *file); }
558307	AUE_NULL	STD	{ int kldnext(int fileid); }
559308	AUE_NULL	STD	{ int kldstat(int fileid, struct \
560				    kld_file_stat* stat); }
561309	AUE_NULL	STD	{ int kldfirstmod(int fileid); }
562310	AUE_GETSID	STD	{ int getsid(pid_t pid); }
563311	AUE_SETRESUID	STD	{ int setresuid(uid_t ruid, uid_t euid, \
564				    uid_t suid); }
565312	AUE_SETRESGID	STD	{ int setresgid(gid_t rgid, gid_t egid, \
566				    gid_t sgid); }
567313	AUE_NULL	OBSOL	signanosleep
568314	AUE_NULL	NOSTD	{ int aio_return(struct aiocb *aiocbp); }
569315	AUE_NULL	NOSTD	{ int aio_suspend( \
570				    struct aiocb * const * aiocbp, int nent, \
571				    const struct timespec *timeout); }
572316	AUE_NULL	NOSTD	{ int aio_cancel(int fd, \
573				    struct aiocb *aiocbp); }
574317	AUE_NULL	NOSTD	{ int aio_error(struct aiocb *aiocbp); }
575318	AUE_NULL	NOSTD	{ int oaio_read(struct oaiocb *aiocbp); }
576319	AUE_NULL	NOSTD	{ int oaio_write(struct oaiocb *aiocbp); }
577320	AUE_NULL	NOSTD	{ int olio_listio(int mode, \
578				    struct oaiocb * const *acb_list, \
579				    int nent, struct osigevent *sig); }
580321	AUE_NULL	STD	{ int yield(void); }
581322	AUE_NULL	OBSOL	thr_sleep
582323	AUE_NULL	OBSOL	thr_wakeup
583324	AUE_MLOCKALL	STD	{ int mlockall(int how); }
584325	AUE_MUNLOCKALL	STD	{ int munlockall(void); }
585326	AUE_GETCWD	STD	{ int __getcwd(char *buf, u_int buflen); }
586
587327	AUE_NULL	STD	{ int sched_setparam (pid_t pid, \
588				    const struct sched_param *param); }
589328	AUE_NULL	STD	{ int sched_getparam (pid_t pid, struct \
590				    sched_param *param); }
591
592329	AUE_NULL	STD	{ int sched_setscheduler (pid_t pid, int \
593				    policy, const struct sched_param \
594				    *param); }
595330	AUE_NULL	STD	{ int sched_getscheduler (pid_t pid); }
596
597331	AUE_NULL	STD	{ int sched_yield (void); }
598332	AUE_NULL	STD	{ int sched_get_priority_max (int policy); }
599333	AUE_NULL	STD	{ int sched_get_priority_min (int policy); }
600334	AUE_NULL	STD	{ int sched_rr_get_interval (pid_t pid, \
601				    struct timespec *interval); }
602335	AUE_NULL	STD	{ int utrace(const void *addr, size_t len); }
603336	AUE_SENDFILE	COMPAT4	{ int sendfile(int fd, int s, \
604				    off_t offset, size_t nbytes, \
605				    struct sf_hdtr *hdtr, off_t *sbytes, \
606				    int flags); }
607337	AUE_NULL	STD	{ int kldsym(int fileid, int cmd, \
608				    void *data); }
609338	AUE_JAIL	STD	{ int jail(struct jail *jail); }
610339	AUE_NULL	NOSTD|NOTSTATIC	{ int nnpfs_syscall(int operation, \
611				    char *a_pathP, int a_opcode, \
612				    void *a_paramsP, int a_followSymlinks); }
613340	AUE_SIGPROCMASK	STD	{ int sigprocmask(int how, \
614				    const sigset_t *set, sigset_t *oset); }
615341	AUE_SIGSUSPEND	STD	{ int sigsuspend(const sigset_t *sigmask); }
616342	AUE_SIGACTION	COMPAT4	{ int sigaction(int sig, const \
617				    struct sigaction *act, \
618				    struct sigaction *oact); }
619343	AUE_SIGPENDING	STD	{ int sigpending(sigset_t *set); }
620344	AUE_SIGRETURN	COMPAT4	{ int sigreturn( \
621				    const struct ucontext4 *sigcntxp); }
622345	AUE_SIGWAIT	STD	{ int sigtimedwait(const sigset_t *set, \
623				    siginfo_t *info, \
624				    const struct timespec *timeout); }
625346	AUE_NULL	STD	{ int sigwaitinfo(const sigset_t *set, \
626				    siginfo_t *info); }
627347	AUE_NULL	STD	{ int __acl_get_file(const char *path, \
628				    acl_type_t type, struct acl *aclp); }
629348	AUE_NULL	STD	{ int __acl_set_file(const char *path, \
630				    acl_type_t type, struct acl *aclp); }
631349	AUE_NULL	STD	{ int __acl_get_fd(int filedes, \
632				    acl_type_t type, struct acl *aclp); }
633350	AUE_NULL	STD	{ int __acl_set_fd(int filedes, \
634				    acl_type_t type, struct acl *aclp); }
635351	AUE_NULL	STD	{ int __acl_delete_file(const char *path, \
636				    acl_type_t type); }
637352	AUE_NULL	STD	{ int __acl_delete_fd(int filedes, \
638				    acl_type_t type); }
639353	AUE_NULL	STD	{ int __acl_aclcheck_file(const char *path, \
640				    acl_type_t type, struct acl *aclp); }
641354	AUE_NULL	STD	{ int __acl_aclcheck_fd(int filedes, \
642				    acl_type_t type, struct acl *aclp); }
643355	AUE_EXTATTRCTL	STD	{ int extattrctl(const char *path, int cmd, \
644				    const char *filename, int attrnamespace, \
645				    const char *attrname); }
646356	AUE_EXTATTR_SET_FILE	STD	{ ssize_t extattr_set_file( \
647				    const char *path, int attrnamespace, \
648				    const char *attrname, void *data, \
649				    size_t nbytes); }
650357	AUE_EXTATTR_GET_FILE	STD	{ ssize_t extattr_get_file( \
651				    const char *path, int attrnamespace, \
652				    const char *attrname, void *data, \
653				    size_t nbytes); }
654358	AUE_EXTATTR_DELETE_FILE	STD	{ int extattr_delete_file(const char *path, \
655				    int attrnamespace, \
656				    const char *attrname); }
657359	AUE_NULL	NOSTD	{ int aio_waitcomplete( \
658				    struct aiocb **aiocbp, \
659				    struct timespec *timeout); }
660360	AUE_GETRESUID	STD	{ int getresuid(uid_t *ruid, uid_t *euid, \
661				    uid_t *suid); }
662361	AUE_GETRESGID	STD	{ int getresgid(gid_t *rgid, gid_t *egid, \
663				    gid_t *sgid); }
664362	AUE_KQUEUE	STD	{ int kqueue(void); }
665363	AUE_NULL	STD	{ int kevent(int fd, \
666				    struct kevent *changelist, int nchanges, \
667				    struct kevent *eventlist, int nevents, \
668				    const struct timespec *timeout); }
669364	AUE_NULL	UNIMPL	__cap_get_proc
670365	AUE_NULL	UNIMPL	__cap_set_proc
671366	AUE_NULL	UNIMPL	__cap_get_fd
672367	AUE_NULL	UNIMPL	__cap_get_file
673368	AUE_NULL	UNIMPL	__cap_set_fd
674369	AUE_NULL	UNIMPL	__cap_set_file
675370	AUE_NULL	STD { int kevent64(int fd, \
676				    const struct kevent64_s *changelist, \
677				    int nchanges, struct kevent64_s *eventlist, \
678				    int nevents, unsigned int flags, \
679				    const struct timespec *timeout); }
680371	AUE_EXTATTR_SET_FD	STD	{ ssize_t extattr_set_fd(int fd, \
681				    int attrnamespace, const char *attrname, \
682				    void *data, size_t nbytes); }
683372	AUE_EXTATTR_GET_FD	STD	{ ssize_t extattr_get_fd(int fd, \
684				    int attrnamespace, const char *attrname, \
685				    void *data, size_t nbytes); }
686373	AUE_EXTATTR_DELETE_FD	STD	{ int extattr_delete_fd(int fd, \
687				    int attrnamespace, \
688				    const char *attrname); }
689374	AUE_NULL	STD	{ int __setugid(int flag); }
690375	AUE_NULL	UNIMPL	nfsclnt
691376	AUE_EACCESS	STD	{ int eaccess(char *path, int amode); }
692377	AUE_NULL	NOSTD|NOTSTATIC	{ int afs3_syscall(long syscall, \
693				    long parm1, long parm2, long parm3, \
694				    long parm4, long parm5, long parm6); }
695378	AUE_NMOUNT	STD	{ int nmount(struct iovec *iovp, \
696				    unsigned int iovcnt, int flags); }
697379	AUE_NULL	UNIMPL	kse_exit
698380	AUE_NULL	UNIMPL	kse_wakeup
699381	AUE_NULL	UNIMPL	kse_create
700382	AUE_NULL	UNIMPL	kse_thr_interrupt
701383	AUE_NULL	UNIMPL	kse_release
702384	AUE_NULL	STD	{ int __mac_get_proc(struct mac *mac_p); }
703385	AUE_NULL	STD	{ int __mac_set_proc(struct mac *mac_p); }
704386	AUE_NULL	STD	{ int __mac_get_fd(int fd, \
705				    struct mac *mac_p); }
706387	AUE_NULL	STD	{ int __mac_get_file(const char *path_p, \
707				    struct mac *mac_p); }
708388	AUE_NULL	STD	{ int __mac_set_fd(int fd, \
709				    struct mac *mac_p); }
710389	AUE_NULL	STD	{ int __mac_set_file(const char *path_p, \
711				    struct mac *mac_p); }
712390	AUE_NULL	STD	{ int kenv(int what, const char *name, \
713				    char *value, int len); }
714391	AUE_LCHFLAGS	STD	{ int lchflags(const char *path, \
715				    u_long flags); }
716392	AUE_NULL	STD	{ int uuidgen(struct uuid *store, \
717				    int count); }
718393	AUE_SENDFILE	STD	{ int sendfile(int fd, int s, off_t offset, \
719				    size_t nbytes, struct sf_hdtr *hdtr, \
720				    off_t *sbytes, int flags); }
721394	AUE_NULL	STD	{ int mac_syscall(const char *policy, \
722				    int call, void *arg); }
723395	AUE_GETFSSTAT	STD	{ int getfsstat(struct statfs *buf, \
724				    long bufsize, int flags); }
725396	AUE_STATFS	STD	{ int statfs(char *path, \
726				    struct statfs *buf); }
727397	AUE_FSTATFS	STD	{ int fstatfs(int fd, struct statfs *buf); }
728398	AUE_FHSTATFS	STD	{ int fhstatfs(const struct fhandle *u_fhp, \
729				    struct statfs *buf); }
730399	AUE_NULL	UNIMPL	nosys
731400	AUE_NULL	NOSTD	{ int ksem_close(semid_t id); }
732401	AUE_NULL	NOSTD	{ int ksem_post(semid_t id); }
733402	AUE_NULL	NOSTD	{ int ksem_wait(semid_t id); }
734403	AUE_NULL	NOSTD	{ int ksem_trywait(semid_t id); }
735404	AUE_NULL	NOSTD	{ int ksem_init(semid_t *idp, \
736				    unsigned int value); }
737405	AUE_NULL	NOSTD	{ int ksem_open(semid_t *idp, \
738				    const char *name, int oflag, \
739				    mode_t mode, unsigned int value); }
740406	AUE_NULL	NOSTD	{ int ksem_unlink(const char *name); }
741407	AUE_NULL	NOSTD	{ int ksem_getvalue(semid_t id, int *val); }
742408	AUE_NULL	NOSTD	{ int ksem_destroy(semid_t id); }
743409	AUE_NULL	STD	{ int __mac_get_pid(pid_t pid, \
744				    struct mac *mac_p); }
745410	AUE_NULL	STD	{ int __mac_get_link(const char *path_p, \
746				    struct mac *mac_p); }
747411	AUE_NULL	STD	{ int __mac_set_link(const char *path_p, \
748				    struct mac *mac_p); }
749412	AUE_EXTATTR_SET_LINK	STD	{ ssize_t extattr_set_link( \
750				    const char *path, int attrnamespace, \
751				    const char *attrname, void *data, \
752				    size_t nbytes); }
753413	AUE_EXTATTR_GET_LINK	STD	{ ssize_t extattr_get_link( \
754				    const char *path, int attrnamespace, \
755				    const char *attrname, void *data, \
756				    size_t nbytes); }
757414	AUE_EXTATTR_DELETE_LINK	STD	{ int extattr_delete_link( \
758				    const char *path, int attrnamespace, \
759				    const char *attrname); }
760415	AUE_NULL	STD	{ int __mac_execve(char *fname, char **argv, \
761				    char **envv, struct mac *mac_p); }
762416	AUE_SIGACTION	STD	{ int sigaction(int sig, \
763				    const struct sigaction *act, \
764				    struct sigaction *oact); }
765417	AUE_SIGRETURN	STD	{ int sigreturn( \
766				    const struct __ucontext *sigcntxp); }
767418	AUE_NULL	UNIMPL	__xstat
768419	AUE_NULL	UNIMPL	__xfstat
769420	AUE_NULL	UNIMPL	__xlstat
770421	AUE_NULL	STD	{ int getcontext(struct __ucontext *ucp); }
771422	AUE_NULL	STD	{ int setcontext( \
772				    const struct __ucontext *ucp); }
773423	AUE_NULL	STD	{ int swapcontext(struct __ucontext *oucp, \
774				    const struct __ucontext *ucp); }
775424	AUE_SWAPOFF	STD	{ int swapoff(const char *name); }
776425	AUE_NULL	STD	{ int __acl_get_link(const char *path, \
777				    acl_type_t type, struct acl *aclp); }
778426	AUE_NULL	STD	{ int __acl_set_link(const char *path, \
779				    acl_type_t type, struct acl *aclp); }
780427	AUE_NULL	STD	{ int __acl_delete_link(const char *path, \
781				    acl_type_t type); }
782428	AUE_NULL	STD	{ int __acl_aclcheck_link(const char *path, \
783				    acl_type_t type, struct acl *aclp); }
784429	AUE_SIGWAIT	STD	{ int sigwait(const sigset_t *set, \
785				    int *sig); }
786430	AUE_NULL	STD	{ int thr_create(ucontext_t *ctx, long *id, \
787				    int flags); }
788431	AUE_NULL	STD	{ void thr_exit(long *state); }
789432	AUE_NULL	STD	{ int thr_self(long *id); }
790433	AUE_NULL	STD	{ int thr_kill(long id, int sig); }
791434	AUE_NULL	STD	{ int _umtx_lock(struct umtx *umtx); }
792435	AUE_NULL	STD	{ int _umtx_unlock(struct umtx *umtx); }
793436	AUE_NULL	STD	{ int jail_attach(int jid); }
794437	AUE_EXTATTR_LIST_FD	STD	{ ssize_t extattr_list_fd(int fd, \
795				    int attrnamespace, void *data, \
796				    size_t nbytes); }
797438	AUE_EXTATTR_LIST_FILE	STD	{ ssize_t extattr_list_file( \
798				    const char *path, int attrnamespace, \
799				    void *data, size_t nbytes); }
800439	AUE_EXTATTR_LIST_LINK	STD	{ ssize_t extattr_list_link( \
801				    const char *path, int attrnamespace, \
802				    void *data, size_t nbytes); }
803440	AUE_NULL	UNIMPL	kse_switchin
804441	AUE_NULL	NOSTD	{ int ksem_timedwait(semid_t id, \
805				    const struct timespec *abstime); }
806442	AUE_NULL	STD	{ int thr_suspend( \
807				    const struct timespec *timeout); }
808443	AUE_NULL	STD	{ int thr_wake(long id); }
809444	AUE_MODUNLOAD	STD	{ int kldunloadf(int fileid, int flags); }
810445	AUE_AUDIT	STD	{ int audit(const void *record, \
811				    u_int length); }
812446	AUE_AUDITON	STD	{ int auditon(int cmd, void *data, \
813				    u_int length); }
814447	AUE_GETAUID	STD	{ int getauid(uid_t *auid); }
815448	AUE_SETAUID	STD	{ int setauid(uid_t *auid); }
816449	AUE_GETAUDIT	STD	{ int getaudit(struct auditinfo *auditinfo); }
817450	AUE_SETAUDIT	STD	{ int setaudit(struct auditinfo *auditinfo); }
818451	AUE_GETAUDIT_ADDR	STD	{ int getaudit_addr( \
819				    struct auditinfo_addr *auditinfo_addr, \
820				    u_int length); }
821452	AUE_SETAUDIT_ADDR	STD	{ int setaudit_addr( \
822				    struct auditinfo_addr *auditinfo_addr, \
823				    u_int length); }
824453	AUE_AUDITCTL	STD	{ int auditctl(char *path); }
825454	AUE_NULL	STD	{ int _umtx_op(void *obj, int op, \
826				    u_long val, void *uaddr1, void *uaddr2); }
827455	AUE_NULL	STD	{ int thr_new(struct thr_param *param, \
828				    int param_size); }
829456	AUE_NULL	STD	{ int sigqueue(pid_t pid, int signum, void *value); }
830457	AUE_NULL	NOSTD	{ int kmq_open(const char *path, int flags, \
831				    mode_t mode, const struct mq_attr *attr); }
832458	AUE_NULL	NOSTD	{ int kmq_setattr(int mqd,		\
833				    const struct mq_attr *attr,		\
834				    struct mq_attr *oattr); }
835459	AUE_NULL	NOSTD	{ int kmq_timedreceive(int mqd,	\
836				    char *msg_ptr, size_t msg_len,	\
837				    unsigned *msg_prio,			\
838				    const struct timespec *abs_timeout); }
839460	AUE_NULL	NOSTD	{ int kmq_timedsend(int mqd,		\
840				    const char *msg_ptr, size_t msg_len,\
841				    unsigned msg_prio,			\
842				    const struct timespec *abs_timeout);}
843461	AUE_NULL	NOSTD	{ int kmq_notify(int mqd,		\
844				    const struct sigevent *sigev); }
845462	AUE_NULL	NOSTD	{ int kmq_unlink(const char *path); }
846463	AUE_NULL	STD	{ int abort2(const char *why, int nargs, void **args); }
847464	AUE_NULL	STD	{ int thr_set_name(long id, const char *name); }
848465	AUE_NULL	NOSTD	{ int aio_fsync(int op, struct aiocb *aiocbp); }
849466	AUE_RTPRIO	STD	{ int rtprio_thread(int function, \
850				    lwpid_t lwpid, struct rtprio *rtp); }
851467	AUE_NULL	UNIMPL nosys
852468	AUE_NULL	UNIMPL nosys
853469	AUE_NULL	UNIMPL	__getpath_fromfd
854470	AUE_NULL	UNIMPL	__getpath_fromaddr
855471	AUE_NULL	STD	{ int sctp_peeloff(int sd, uint32_t name); }
856472     AUE_NULL        STD    { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
857	                            caddr_t to, __socklen_t tolen, \
858				    struct sctp_sndrcvinfo *sinfo, int flags); }
859473     AUE_NULL        STD    { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
860	                            caddr_t to, __socklen_t tolen, \
861				    struct sctp_sndrcvinfo *sinfo, int flags); }
862474     AUE_NULL        STD    { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
863				    struct sockaddr * from, __socklen_t *fromlenaddr, \
864				    struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
865475	AUE_PREAD	STD	{ ssize_t pread(int fd, void *buf, \
866				    size_t nbyte, off_t offset); }
867476	AUE_PWRITE	STD	{ ssize_t pwrite(int fd, const void *buf, \
868				    size_t nbyte, off_t offset); }
869477	AUE_MMAP	STD	{ caddr_t mmap(caddr_t addr, size_t len, \
870				    int prot, int flags, int fd, off_t pos); }
871478	AUE_LSEEK	STD	{ off_t lseek(int fd, off_t offset, \
872				    int whence); }
873479	AUE_TRUNCATE	STD	{ int truncate(char *path, off_t length); }
874480	AUE_FTRUNCATE	STD	{ int ftruncate(int fd, off_t length); }
875481	AUE_KILL	STD	{ int thr_kill2(pid_t pid, long id, int sig); }
876482	AUE_SHMOPEN	STD	{ int shm_open(const char *path, int flags, \
877				    mode_t mode); }
878483	AUE_SHMUNLINK	STD	{ int shm_unlink(const char *path); }
879484	AUE_NULL	STD	{ int cpuset(cpusetid_t *setid); }
880485	AUE_NULL	STD	{ int cpuset_setid(cpuwhich_t which, id_t id, \
881				    cpusetid_t setid); }
882486	AUE_NULL	STD	{ int cpuset_getid(cpulevel_t level, \
883				    cpuwhich_t which, id_t id, \
884				    cpusetid_t *setid); }
885487	AUE_NULL	STD	{ int cpuset_getaffinity(cpulevel_t level, \
886				    cpuwhich_t which, id_t id, size_t cpusetsize, \
887				    cpuset_t *mask); }
888488	AUE_NULL	STD	{ int cpuset_setaffinity(cpulevel_t level, \
889				    cpuwhich_t which, id_t id, size_t cpusetsize, \
890				    const cpuset_t *mask); }
891489	AUE_FACCESSAT	STD	{ int faccessat(int fd, char *path, int amode, \
892				    int flag); }
893490	AUE_FCHMODAT	STD	{ int fchmodat(int fd, char *path, mode_t mode, \
894				    int flag); }
895491	AUE_FCHOWNAT	STD	{ int fchownat(int fd, char *path, uid_t uid, \
896				    gid_t gid, int flag); }
897492	AUE_FEXECVE	STD	{ int fexecve(int fd, char **argv, \
898				    char **envv); }
899493	AUE_FSTATAT	STD	{ int fstatat(int fd, char *path, \
900				    struct stat *buf, int flag); }
901494	AUE_FUTIMESAT	STD	{ int futimesat(int fd, char *path, \
902				    struct timeval *times); }
903495	AUE_LINKAT	STD	{ int linkat(int fd1, char *path1, int fd2, \
904				    char *path2, int flag); }
905496	AUE_MKDIRAT	STD	{ int mkdirat(int fd, char *path, mode_t mode); }
906497	AUE_MKFIFOAT	STD	{ int mkfifoat(int fd, char *path, mode_t mode); }
907498	AUE_MKNODAT	STD	{ int mknodat(int fd, char *path, mode_t mode, \
908				    dev_t dev); }
909; XXX: see the comment for open
910499	AUE_OPENAT_RWTC	STD	{ int openat(int fd, char *path, int flag, \
911				    mode_t mode); }
912500	AUE_READLINKAT	STD	{ int readlinkat(int fd, char *path, char *buf, \
913				    size_t bufsize); }
914501	AUE_RENAMEAT	STD	{ int renameat(int oldfd, char *old, int newfd, \
915				     char *new); }
916502	AUE_SYMLINKAT	STD	{ int symlinkat(char *path1, int fd, \
917				     char *path2); }
918503	AUE_UNLINKAT	STD	{ int unlinkat(int fd, char *path, int flag); }
919504	AUE_POSIX_OPENPT	STD	{ int posix_openpt(int flags); }
920; 505 is initialised by the kgssapi code, if present.
921505	AUE_NULL	NOSTD	{ int gssd_syscall(char *path); }
922506	AUE_NULL	STD	{ int jail_get(struct iovec *iovp, \
923				    unsigned int iovcnt, int flags); }
924507	AUE_NULL	STD	{ int jail_set(struct iovec *iovp, \
925				    unsigned int iovcnt, int flags); }
926508	AUE_NULL	STD	{ int jail_remove(int jid); }
927509	AUE_CLOSEFROM	STD	{ int closefrom(int lowfd); }
928510	AUE_SEMCTL	NOSTD	{ int __semctl(int semid, int semnum, \
929				    int cmd, union semun *arg); }
930511	AUE_MSGCTL	NOSTD	{ int msgctl(int msqid, int cmd, \
931				    struct msqid_ds *buf); }
932512	AUE_SHMCTL	NOSTD	{ int shmctl(int shmid, int cmd, \
933				    struct shmid_ds *buf); }
934513	AUE_LPATHCONF	STD	{ int lpathconf(char *path, int name); }
935514	AUE_NULL	OBSOL	cap_new
936515	AUE_CAP_RIGHTS_GET	STD	{ int __cap_rights_get(int version, \
937				    int fd, cap_rights_t *rightsp); }
938516	AUE_CAP_ENTER	STD	{ int cap_enter(void); }
939517	AUE_CAP_GETMODE	STD	{ int cap_getmode(u_int *modep); }
940518	AUE_PDFORK	STD	{ int pdfork(int *fdp, int flags); }
941519	AUE_PDKILL	STD	{ int pdkill(int fd, int signum); }
942520	AUE_PDGETPID	STD	{ int pdgetpid(int fd, pid_t *pidp); }
943521	AUE_PDWAIT	UNIMPL	pdwait4
944522	AUE_SELECT	STD	{ int pselect(int nd, fd_set *in, \
945				    fd_set *ou, fd_set *ex, \
946				    const struct timespec *ts, \
947				    const sigset_t *sm); }
948523	AUE_NULL	STD	{ int getloginclass(char *namebuf, \
949				    size_t namelen); }
950524	AUE_NULL	STD	{ int setloginclass(const char *namebuf); }
951525	AUE_NULL	STD	{ int rctl_get_racct(const void *inbufp, \
952				    size_t inbuflen, void *outbufp, \
953				    size_t outbuflen); }
954526	AUE_NULL	STD	{ int rctl_get_rules(const void *inbufp, \
955				    size_t inbuflen, void *outbufp, \
956				    size_t outbuflen); }
957527	AUE_NULL	STD	{ int rctl_get_limits(const void *inbufp, \
958				    size_t inbuflen, void *outbufp, \
959				    size_t outbuflen); }
960528	AUE_NULL	STD	{ int rctl_add_rule(const void *inbufp, \
961				    size_t inbuflen, void *outbufp, \
962				    size_t outbuflen); }
963529	AUE_NULL	STD	{ int rctl_remove_rule(const void *inbufp, \
964				    size_t inbuflen, void *outbufp, \
965				    size_t outbuflen); }
966530	AUE_NULL	STD	{ int posix_fallocate(int fd, \
967				    off_t offset, off_t len); }
968531	AUE_NULL	STD	{ int posix_fadvise(int fd, off_t offset, \
969				    off_t len, int advice); }
970532	AUE_WAIT6	STD	{ int wait6(idtype_t idtype, id_t id, \
971				    int *status, int options, \
972				    struct __wrusage *wrusage, \
973				    siginfo_t *info); }
974533	AUE_CAP_RIGHTS_LIMIT	STD	{ int cap_rights_limit(int fd, \
975					    cap_rights_t *rightsp); }
976534	AUE_CAP_IOCTLS_LIMIT	STD	{ int cap_ioctls_limit(int fd, \
977					    const u_long *cmds, size_t ncmds); }
978535	AUE_CAP_IOCTLS_GET	STD	{ ssize_t cap_ioctls_get(int fd, \
979					    u_long *cmds, size_t maxcmds); }
980536	AUE_CAP_FCNTLS_LIMIT	STD	{ int cap_fcntls_limit(int fd, \
981					    uint32_t fcntlrights); }
982537	AUE_CAP_FCNTLS_GET	STD	{ int cap_fcntls_get(int fd, \
983					    uint32_t *fcntlrightsp); }
984538	AUE_BINDAT	STD	{ int bindat(int fd, int s, caddr_t name, \
985				    int namelen); }
986539	AUE_CONNECTAT	STD	{ int connectat(int fd, int s, caddr_t name, \
987				    int namelen); }
988540	AUE_CHFLAGSAT	STD	{ int chflagsat(int fd, const char *path, \
989				    u_long flags, int atflag); }
990541	AUE_ACCEPT	STD	{ int accept4(int s, \
991				    struct sockaddr * __restrict name, \
992				    __socklen_t * __restrict anamelen, \
993				    int flags); }
994542	AUE_PIPE	STD	{ int pipe2(int *fildes, int flags); }
995543	AUE_NULL	NOSTD	{ int aio_mlock(struct aiocb *aiocbp); }
996544	AUE_NULL	STD	{ int procctl(idtype_t idtype, id_t id, \
997				    int com, void *data); }
998545	AUE_POLL	STD	{ int ppoll(struct pollfd *fds, u_int nfds, \
999				    const struct timespec *ts, \
1000				    const sigset_t *set); }
1001
1002; padding so that the mach system calls are on a straightforward boundary
1003546	AUE_NULL	UNIMPL	nosys
1004547	AUE_NULL	UNIMPL	nosys
1005548	AUE_NULL	UNIMPL	nosys
1006549	AUE_NULL	UNIMPL	nosys
1007550	AUE_NULL	UNIMPL	nosys
1008551	AUE_NULL	UNIMPL	nosys
1009552	AUE_NULL	UNIMPL	nosys
1010553	AUE_NULL	UNIMPL	nosys
1011554	AUE_NULL	UNIMPL	nosys
1012555	AUE_NULL	UNIMPL	nosys
1013556	AUE_NULL	UNIMPL	nosys
1014557	AUE_NULL	UNIMPL	nosys
1015558	AUE_NULL	UNIMPL	nosys
1016559	AUE_NULL	UNIMPL	nosys
1017560	AUE_NULL	UNIMPL	nosys
1018561	AUE_NULL	UNIMPL	nosys
1019562	AUE_NULL	UNIMPL	nosys
1020563	AUE_NULL	UNIMPL	nosys
1021564	AUE_NULL	UNIMPL	nosys
1022565	AUE_NULL	UNIMPL	nosys
1023566	AUE_NULL	UNIMPL	nosys
1024567	AUE_NULL	UNIMPL	nosys
1025568	AUE_NULL	UNIMPL	nosys
1026569	AUE_NULL	UNIMPL	nosys
1027570	AUE_NULL	UNIMPL	nosys
1028571	AUE_NULL	UNIMPL	nosys
1029572	AUE_NULL	UNIMPL	nosys
1030573	AUE_NULL	UNIMPL	nosys
1031574	AUE_NULL	UNIMPL	nosys
1032575	AUE_NULL	UNIMPL	nosys
1033576	AUE_NULL	UNIMPL	nosys
1034577	AUE_NULL	UNIMPL	nosys
1035578	AUE_NULL	UNIMPL	nosys
1036579	AUE_NULL	UNIMPL	nosys
1037580	AUE_NULL	UNIMPL	nosys
1038581	AUE_NULL	UNIMPL	nosys
1039582	AUE_NULL	UNIMPL	nosys
1040583	AUE_NULL	UNIMPL	nosys
1041584	AUE_NULL	UNIMPL	nosys
1042585	AUE_NULL	UNIMPL	nosys
1043586	AUE_NULL	UNIMPL	nosys
1044587	AUE_NULL	UNIMPL	nosys
1045588	AUE_NULL	UNIMPL	nosys
1046589	AUE_NULL	UNIMPL	nosys
1047590	AUE_NULL	UNIMPL	nosys
1048591	AUE_NULL	UNIMPL	nosys
1049592	AUE_NULL	UNIMPL	nosys
1050593	AUE_NULL	UNIMPL	nosys
1051594	AUE_NULL	UNIMPL	nosys
1052595	AUE_NULL	UNIMPL	nosys
1053596	AUE_NULL	UNIMPL	nosys
1054597	AUE_NULL	UNIMPL	nosys
1055598	AUE_NULL	UNIMPL	nosys
1056599	AUE_NULL	UNIMPL	nosys
1057; The mach syscall number space is negative on OS X
1058; here we have reserved this for OS X mach calls where the offset is: 600 + -(OSX mach index)
1059600 AUE_NULL	UNIMPL	nosys
1060601 AUE_NULL	UNIMPL	nosys
1061602 AUE_NULL	UNIMPL	nosys
1062603 AUE_NULL	UNIMPL	nosys
1063604 AUE_NULL	UNIMPL	nosys
1064605 AUE_NULL	UNIMPL	nosys
1065606 AUE_NULL	UNIMPL	nosys
1066607 AUE_NULL	UNIMPL	nosys
1067608 AUE_NULL	UNIMPL	nosys
1068609 AUE_NULL	UNIMPL	nosys
1069610 AUE_NULL	NOSTD		{ int _kernelrpc_mach_vm_allocate_trap( mach_port_name_t target, \
1070								mach_vm_offset_t *address, \
1071								mach_vm_size_t size, \
1072								int flags); }
1073611 AUE_NULL	UNIMPL	nosys
1074612 AUE_NULL	NOSTD		{ int _kernelrpc_mach_vm_deallocate_trap(mach_port_name_t target, \
1075							mach_vm_offset_t address, mach_vm_size_t size); }
1076613 AUE_NULL	UNIMPL	nosys
1077614 AUE_NULL	NOSTD		{ int _kernelrpc_mach_vm_protect_trap(mach_port_name_t target, \
1078								mach_vm_offset_t address, mach_vm_size_t size, \
1079								int set_maximum, vm_prot_t new_protection); }
1080615  AUE_MMAP	NOSTD		{ int _kernelrpc_mach_vm_map_trap(mach_port_name_t target, \
1081						  		mach_vm_offset_t *address, mach_vm_size_t size, \
1082								mach_vm_offset_t mask, int flags, \
1083								vm_prot_t cur_protection); }
1084616 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_allocate_trap( \
1085						  		mach_port_name_t target, mach_port_right_t right, \
1086						  		mach_port_name_t *name); }
1087617 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_destroy_trap( \
1088						  		mach_port_name_t target, mach_port_name_t name);}
1089618 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_deallocate_trap( \
1090						  		mach_port_name_t target, mach_port_name_t name);}
1091619 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_mod_refs_trap(		  \
1092								mach_port_name_t target, mach_port_name_t name, \
1093						  		mach_port_right_t right, mach_port_delta_t delta); }
1094620 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_move_member_trap( \
1095						  		mach_port_name_t target, mach_port_name_t member, \
1096								mach_port_name_t after);}
1097621 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_insert_right_trap( \
1098						  		mach_port_name_t target, mach_port_name_t name, \
1099						  		mach_port_name_t poly, \
1100								mach_msg_type_name_t polyPoly); }
1101622 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_insert_member_trap( \
1102						  		mach_port_name_t target, mach_port_name_t name, \
1103								mach_port_name_t pset); }
1104623 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_extract_member_trap( \
1105						  		mach_port_name_t target, mach_port_name_t name, \
1106								mach_port_name_t pset); }
1107624 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_construct_trap( \
1108						  		mach_port_name_t target, \
1109								struct mach_port_options *options, uint64_t context, \
1110								mach_port_name_t *name);}
1111625 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_destruct_trap( \
1112						  		mach_port_name_t target, mach_port_name_t name, \
1113								mach_port_delta_t srdelta, uint64_t guard);}
1114626	AUE_NULL	NOSTD		{ int mach_reply_port(void); }
1115627	AUE_NULL	NOSTD		{ int thread_self_trap(void); }
1116628	AUE_NULL	NOSTD		{ int task_self_trap(void); }
1117629	AUE_NULL	NOSTD	  	{ int host_self_trap(void); }
1118630 AUE_NULL	UNIMPL	nosys
1119631	AUE_NULL	NOSTD		{ int mach_msg_trap(mach_msg_header_t	*msg, \
1120			    		  	  mach_msg_option_t	option, \
1121			    			  mach_msg_size_t	send_size, \
1122			    			  mach_msg_size_t	rcv_size, \
1123			    			  mach_port_name_t	rcv_name, \
1124			    			  mach_msg_timeout_t	timeout, \
1125			    			  mach_port_name_t	notify); }
1126632	AUE_NULL	NOSTD		{ int mach_msg_overwrite_trap( \
1127			    			 mach_msg_header_t	*msg, \
1128			   				 mach_msg_option_t	option, \
1129			  				 mach_msg_size_t	send_size, \
1130			    			 mach_msg_size_t	rcv_size, \
1131			    			 mach_port_name_t	rcv_name, \
1132			    			 mach_msg_timeout_t	timeout, \
1133			    			 mach_port_name_t	notify, \
1134			    			 mach_msg_header_t	*rcv_msg, \
1135			    			 mach_msg_size_t	scatter_list_size); }
1136633	AUE_NULL	NOSTD		{ int semaphore_signal_trap( \
1137			  mach_port_name_t signal_name); }
1138634	AUE_NULL	NOSTD		{ int semaphore_signal_all_trap( \
1139			      mach_port_name_t signal_name); }
1140635	AUE_NULL	NOSTD		{ int semaphore_signal_thread_trap( \
1141			      	mach_port_name_t signal_name, \
1142			    	mach_port_name_t thread); }
1143636	AUE_NULL	NOSTD		{ int semaphore_wait_trap( \
1144			      mach_port_name_t wait_name); }
1145637	AUE_NULL	NOSTD		{ int semaphore_wait_signal_trap( \
1146			      		  	  mach_port_name_t wait_name, \
1147			      			  mach_port_name_t signal_name); }
1148638	AUE_NULL	NOSTD		{ int semaphore_timedwait_trap( \
1149							    mach_port_name_t wait_name, \
1150			    				unsigned int sec, \
1151			    				mach_clock_res_t nsec); }
1152639	AUE_NULL	NOSTD		{ int semaphore_timedwait_signal_trap( \
1153						  	  	mach_port_name_t wait_name, \
1154							    mach_port_name_t signal_name, \
1155			    				unsigned int sec, mach_clock_res_t nsec); }
1156640 AUE_NULL	UNIMPL	nosys
1157641	AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_guard_trap(mach_port_name_t target, \
1158						  	  mach_port_name_t name, uint64_t guard, int strict); }
1159642 AUE_NULL	NOSTD		{ int _kernelrpc_mach_port_unguard_trap(mach_port_name_t target, \
1160						  	  mach_port_name_t name, uint64_t guard); }
1161643	AUE_NULL	OBSOL	{ int mach_map_fd(int fd, \
1162			    mach_vm_offset_t offset, mach_vm_offset_t *va, \
1163			    mach_boolean_t findspace, mach_vm_size_t size); }
1164644 AUE_NULL	NOSTD     { int task_name_for_pid(mach_port_name_t target_tport, \
1165						  int pid, mach_port_name_t *tn); }
1166645	AUE_NULL	NOSTD		{ int task_for_pid(mach_port_name_t target_tport, \
1167						  int pid, mach_port_name_t *t); }
1168646	AUE_NULL	NOSTD		{ int pid_for_task(mach_port_name_t t, int *pid); }
1169647 AUE_NULL	UNIMPL	nosys
1170648	AUE_NULL	NOSTD		{ int macx_swapon( \
1171			    char *name, int flags, int size, int priority); }
1172649	AUE_NULL	NOSTD		{ int macx_swapoff( \
1173			    char *name, int flags); }
1174650 AUE_NULL	UNIMPL	nosys
1175651	AUE_NULL	NOSTD		{ int macx_triggers(int hi_water, int low_water, \
1176			  	  int flags, mach_port_name_t alert_port); }
1177652 AUE_NULL	NOSTD		{ int macx_backing_store_suspend(int suspend); }
1178653 AUE_NULL	NOSTD		{ int macx_backing_store_recovery(int pid); }
1179654 AUE_NULL	UNIMPL	nosys
1180655 AUE_NULL	UNIMPL	nosys
1181656 AUE_NULL	UNIMPL	nosys
1182657 AUE_NULL	UNIMPL	nosys
1183658 AUE_NULL	UNIMPL	nosys
1184659	AUE_NULL	NOSTD		{ int swtch_pri(int pri); }
1185660	AUE_NULL	NOSTD		{ int swtch(void); }
1186661	AUE_NULL	NOSTD		{ int thread_switch( \
1187			    mach_port_name_t thread_name, \
1188			    int option, \
1189			    mach_msg_timeout_t option_time); }
1190662	AUE_NULL	NOSTD		{ int clock_sleep_trap( \
1191			    mach_port_name_t clock_name, \
1192			    mach_sleep_type_t sleep_type, \
1193			    int sleep_sec, int sleep_nsec, \
1194			    mach_timespec_t *wakeup_time); }
1195663 AUE_NULL	UNIMPL	nosys
1196664 AUE_NULL	UNIMPL	nosys
1197665 AUE_NULL	UNIMPL	nosys
1198666 AUE_NULL	UNIMPL	nosys
1199667 AUE_NULL	UNIMPL	nosys
1200668 AUE_NULL	UNIMPL	nosys
1201669 AUE_NULL	UNIMPL	nosys
1202670 AUE_NULL	UNIMPL	nosys
1203671 AUE_NULL	UNIMPL	nosys
1204672 AUE_NULL	UNIMPL	nosys
1205673 AUE_NULL	UNIMPL	nosys
1206674 AUE_NULL	UNIMPL	nosys
1207675 AUE_NULL	UNIMPL	nosys
1208676 AUE_NULL	UNIMPL	nosys
1209677 AUE_NULL	UNIMPL	nosys
1210678 AUE_NULL	UNIMPL	nosys
1211679 AUE_NULL	UNIMPL	nosys
1212680 AUE_NULL	UNIMPL	nosys
1213681 AUE_NULL	UNIMPL	nosys
1214682 AUE_NULL	UNIMPL	nosys
1215683 AUE_NULL	UNIMPL	nosys
1216684 AUE_NULL	UNIMPL	nosys
1217685 AUE_NULL	UNIMPL	nosys
1218686 AUE_NULL	UNIMPL	nosys
1219687 AUE_NULL	UNIMPL	nosys
1220688 AUE_NULL	UNIMPL	nosys
1221689	AUE_NULL	NOSTD		{ int mach_timebase_info(struct mach_timebase_info *info); }
1222690	AUE_NULL	NOSTD		{ int mach_wait_until(uint64_t deadline); }
1223691	AUE_NULL	NOSTD		{ int mk_timer_create(void); }
1224692	AUE_NULL	NOSTD		{ int mk_timer_destroy(mach_port_name_t name); }
1225693	AUE_NULL	NOSTD		{ int mk_timer_arm(mach_port_name_t name, \
1226			      			mach_absolute_time_t expire_time); }
1227694	AUE_NULL	NOSTD		{ int mk_timer_cancel(mach_port_name_t name, \
1228			    		mach_absolute_time_t *result_time); }
1229695	AUE_NULL	UNIMPL	nosys
1230696 AUE_NULL	UNIMPL	nosys
1231697 AUE_NULL	UNIMPL	nosys
1232698 AUE_NULL	UNIMPL	nosys
1233699 AUE_NULL	UNIMPL	nosys
1234700 AUE_NULL	UNIMPL	nosys
1235701 AUE_NULL	UNIMPL	nosys
1236702 AUE_NULL	UNIMPL	nosys
1237703 AUE_NULL	UNIMPL	nosys
1238704 AUE_NULL	UNIMPL	nosys
1239705 AUE_NULL	UNIMPL	nosys
1240706 AUE_NULL	UNIMPL	nosys
1241707 AUE_NULL	UNIMPL	nosys
1242708 AUE_NULL	UNIMPL	nosys
1243709 AUE_NULL	UNIMPL	nosys
1244710 AUE_NULL	UNIMPL	nosys
1245711 AUE_NULL	UNIMPL	nosys
1246712 AUE_NULL	UNIMPL	nosys
1247713 AUE_NULL	UNIMPL	nosys
1248714 AUE_NULL	UNIMPL	nosys
1249715 AUE_NULL	UNIMPL	nosys
1250716 AUE_NULL	UNIMPL	nosys
1251717 AUE_NULL	UNIMPL	nosys
1252718 AUE_NULL	UNIMPL	nosys
1253719 AUE_NULL	UNIMPL	nosys
1254720 AUE_NULL	UNIMPL	nosys
1255; end of Mach reserved
1256
1257
1258; Please copy any additions and changes to the following compatability tables:
1259; sys/compat/freebsd32/syscalls.master
1260