xref: /xnu-11417.140.69/bsd/kern/syscalls.master (revision 43a90889846e00bfb5cf1d255cdc0a701a1e05a4)
1*43a90889SApple OSS Distributions;/*
2*43a90889SApple OSS Distributions;	derived from: FreeBSD @(#)syscalls.master	8.2 (Berkeley) 1/13/94
3*43a90889SApple OSS Distributions;
4*43a90889SApple OSS Distributions; System call name/number master file.
5*43a90889SApple OSS Distributions; This is file processed by .../xnu/bsd/kern/makesyscalls.sh and creates:
6*43a90889SApple OSS Distributions;	.../xnu/bsd/kern/init_sysent.c
7*43a90889SApple OSS Distributions;	.../xnu/bsd/kern/syscalls.c
8*43a90889SApple OSS Distributions;	.../xnu/bsd/sys/syscall.h
9*43a90889SApple OSS Distributions;	.../xnu/bsd/sys/sysproto.h
10*43a90889SApple OSS Distributions;	.../xnu/bsd/security/audit_syscalls.c
11*43a90889SApple OSS Distributions
12*43a90889SApple OSS Distributions; Columns -> | Number Audit Files | { Name and Args } | { Comments }
13*43a90889SApple OSS Distributions;	Number:  	system call number, must be in order
14*43a90889SApple OSS Distributions;	Audit:		the audit event associated with the system call
15*43a90889SApple OSS Distributions;			A value of AUE_NULL means no auditing, but it also means that
16*43a90889SApple OSS Distributions;			there is no audit event for the call at this time. For the
17*43a90889SApple OSS Distributions;			case where the event exists, but we don't want auditing, the
18*43a90889SApple OSS Distributions;			event should be #defined to AUE_NULL in audit_kevents.h.
19*43a90889SApple OSS Distributions;	Files:		with files to generate - "ALL" or any combo of:
20*43a90889SApple OSS Distributions;					"T" for syscall table (in init_sysent.c)
21*43a90889SApple OSS Distributions;					"N" for syscall names (in syscalls.c)
22*43a90889SApple OSS Distributions;					"H" for syscall headers (in syscall.h)
23*43a90889SApple OSS Distributions;					"P" for syscall prototypes (in sysproto.h)
24*43a90889SApple OSS Distributions;	Name and Args:	function prototype, optionally followed by
25*43a90889SApple OSS Distributions;			NO_SYSCALL_STUB (which mean no system call stub will
26*43a90889SApple OSS Distributions;			be generated in libSystem) and ending with a semicolon.
27*43a90889SApple OSS Distributions;			(Note: functions prefixed by double-underbar are
28*43a90889SApple OSS Distributions;			automatically given the NO_SYSCALL_STUB attribute.)
29*43a90889SApple OSS Distributions;	Comments:  	additional comments about the sys call copied to output files
30*43a90889SApple OSS Distributions
31*43a90889SApple OSS Distributions; `#ifdef`'s, `#include`'s, `#if`'s etc. are copied to all output files.
32*43a90889SApple OSS Distributions
33*43a90889SApple OSS Distributions; N.B.: makesyscalls.sh and createsyscalls.pl must be updated to account
34*43a90889SApple OSS Distributions; for any new argument types.
35*43a90889SApple OSS Distributions;*/
36*43a90889SApple OSS Distributions
37*43a90889SApple OSS Distributions#include <sys/appleapiopts.h>
38*43a90889SApple OSS Distributions#include <sys/param.h>
39*43a90889SApple OSS Distributions#include <sys/systm.h>
40*43a90889SApple OSS Distributions#include <sys/types.h>
41*43a90889SApple OSS Distributions#include <sys/sysent.h>
42*43a90889SApple OSS Distributions#include <sys/sysproto.h>
43*43a90889SApple OSS Distributions#include <nfs/nfs_conf.h>
44*43a90889SApple OSS Distributions
45*43a90889SApple OSS Distributions0	AUE_NULL	ALL	{ int nosys(void); }   { indirect syscall }
46*43a90889SApple OSS Distributions1	AUE_EXIT	ALL	{ void exit(int rval) NO_SYSCALL_STUB; }
47*43a90889SApple OSS Distributions2	AUE_FORK	ALL	{ int fork(void) NO_SYSCALL_STUB; }
48*43a90889SApple OSS Distributions3	AUE_NULL	ALL	{ user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
49*43a90889SApple OSS Distributions4	AUE_NULL	ALL	{ user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
50*43a90889SApple OSS Distributions5	AUE_OPEN_RWTC	ALL	{ int open(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
51*43a90889SApple OSS Distributions6	AUE_CLOSE	ALL	{ int sys_close(int fd); }
52*43a90889SApple OSS Distributions7	AUE_WAIT4	ALL	{ int wait4(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
53*43a90889SApple OSS Distributions8	AUE_NULL	ALL	{ int enosys(void); }   { old creat }
54*43a90889SApple OSS Distributions9	AUE_LINK	ALL	{ int link(user_addr_t path, user_addr_t link); }
55*43a90889SApple OSS Distributions10	AUE_UNLINK	ALL	{ int unlink(user_addr_t path) NO_SYSCALL_STUB; }
56*43a90889SApple OSS Distributions11	AUE_NULL	ALL	{ int enosys(void); }   { old execv }
57*43a90889SApple OSS Distributions12	AUE_CHDIR	ALL	{ int sys_chdir(user_addr_t path); }
58*43a90889SApple OSS Distributions13	AUE_FCHDIR	ALL	{ int sys_fchdir(int fd); }
59*43a90889SApple OSS Distributions14	AUE_MKNOD	ALL	{ int mknod(user_addr_t path, int mode, int dev); }
60*43a90889SApple OSS Distributions15	AUE_CHMOD	ALL	{ int chmod(user_addr_t path, int mode) NO_SYSCALL_STUB; }
61*43a90889SApple OSS Distributions16	AUE_CHOWN	ALL	{ int chown(user_addr_t path, int uid, int gid); }
62*43a90889SApple OSS Distributions17	AUE_NULL	ALL	{ int enosys(void); }   { old break }
63*43a90889SApple OSS Distributions18	AUE_GETFSSTAT	ALL	{ int getfsstat(user_addr_t buf, int bufsize, int flags); }
64*43a90889SApple OSS Distributions19	AUE_NULL	ALL	{ int enosys(void); }   { old lseek }
65*43a90889SApple OSS Distributions20	AUE_GETPID	ALL	{ int getpid(void); }
66*43a90889SApple OSS Distributions21	AUE_NULL	ALL	{ int enosys(void); }   { old mount }
67*43a90889SApple OSS Distributions22	AUE_NULL	ALL	{ int enosys(void); }   { old umount }
68*43a90889SApple OSS Distributions23	AUE_SETUID	ALL	{ int setuid(uid_t uid); }
69*43a90889SApple OSS Distributions24	AUE_GETUID	ALL	{ int getuid(void); }
70*43a90889SApple OSS Distributions25	AUE_GETEUID	ALL	{ int geteuid(void); }
71*43a90889SApple OSS Distributions26	AUE_PTRACE	ALL	{ int ptrace(int req, pid_t pid, caddr_t addr, int data); }
72*43a90889SApple OSS Distributions#if SOCKETS
73*43a90889SApple OSS Distributions27	AUE_RECVMSG	ALL	{ int recvmsg(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
74*43a90889SApple OSS Distributions28	AUE_SENDMSG	ALL	{ int sendmsg(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
75*43a90889SApple OSS Distributions29	AUE_RECVFROM	ALL	{ int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
76*43a90889SApple OSS Distributions30	AUE_ACCEPT	ALL	{ int accept(int s, caddr_t name, socklen_t	*anamelen) NO_SYSCALL_STUB; }
77*43a90889SApple OSS Distributions31	AUE_GETPEERNAME	ALL	{ int getpeername(int fdes, caddr_t asa, socklen_t *alen) NO_SYSCALL_STUB; }
78*43a90889SApple OSS Distributions32	AUE_GETSOCKNAME	ALL	{ int getsockname(int fdes, caddr_t asa, socklen_t *alen) NO_SYSCALL_STUB; }
79*43a90889SApple OSS Distributions#else
80*43a90889SApple OSS Distributions27	AUE_NULL	ALL	{ int nosys(void); }
81*43a90889SApple OSS Distributions28	AUE_NULL	ALL	{ int nosys(void); }
82*43a90889SApple OSS Distributions29	AUE_NULL	ALL	{ int nosys(void); }
83*43a90889SApple OSS Distributions30	AUE_NULL	ALL	{ int nosys(void); }
84*43a90889SApple OSS Distributions31	AUE_NULL	ALL	{ int nosys(void); }
85*43a90889SApple OSS Distributions32	AUE_NULL	ALL	{ int nosys(void); }
86*43a90889SApple OSS Distributions#endif /* SOCKETS */
87*43a90889SApple OSS Distributions33	AUE_ACCESS	ALL	{ int access(user_addr_t path, int flags); }
88*43a90889SApple OSS Distributions34	AUE_CHFLAGS	ALL	{ int chflags(char *path, int flags); }
89*43a90889SApple OSS Distributions35	AUE_FCHFLAGS	ALL	{ int fchflags(int fd, int flags); }
90*43a90889SApple OSS Distributions36	AUE_SYNC	ALL	{ int sync(void); }
91*43a90889SApple OSS Distributions37	AUE_KILL	ALL	{ int kill(int pid, int signum, int posix) NO_SYSCALL_STUB; }
92*43a90889SApple OSS Distributions38	AUE_NULL	ALL	{ int sys_crossarch_trap(uint32_t name) NO_SYSCALL_STUB; }
93*43a90889SApple OSS Distributions39	AUE_GETPPID	ALL	{ int getppid(void); }
94*43a90889SApple OSS Distributions40	AUE_NULL	ALL	{ int nosys(void); }   { old lstat }
95*43a90889SApple OSS Distributions41	AUE_DUP		ALL	{ int sys_dup(u_int fd); }
96*43a90889SApple OSS Distributions42	AUE_PIPE	ALL	{ int pipe(void); }
97*43a90889SApple OSS Distributions43	AUE_GETEGID	ALL	{ int getegid(void); }
98*43a90889SApple OSS Distributions44	AUE_NULL	ALL	{ int nosys(void); } { old profil }
99*43a90889SApple OSS Distributions45	AUE_NULL	ALL	{ int nosys(void); } { old ktrace }
100*43a90889SApple OSS Distributions46	AUE_SIGACTION	ALL	{ int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa) NO_SYSCALL_STUB; }
101*43a90889SApple OSS Distributions47	AUE_GETGID	ALL	{ int getgid(void); }
102*43a90889SApple OSS Distributions48	AUE_SIGPROCMASK	ALL	{ int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
103*43a90889SApple OSS Distributions49	AUE_GETLOGIN	ALL	{ int getlogin(char *namebuf, u_int namelen) NO_SYSCALL_STUB; }
104*43a90889SApple OSS Distributions50	AUE_SETLOGIN	ALL	{ int setlogin(char *namebuf) NO_SYSCALL_STUB; }
105*43a90889SApple OSS Distributions51	AUE_ACCT	ALL	{ int acct(char *path); }
106*43a90889SApple OSS Distributions52	AUE_SIGPENDING	ALL	{ int sigpending(struct sigvec *osv); }
107*43a90889SApple OSS Distributions53	AUE_SIGALTSTACK	ALL	{ int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss) NO_SYSCALL_STUB ; }
108*43a90889SApple OSS Distributions54	AUE_IOCTL	ALL	{ int ioctl(int fd, u_long com, caddr_t data) NO_SYSCALL_STUB; }
109*43a90889SApple OSS Distributions55	AUE_REBOOT	ALL	{ int reboot(int opt, char *msg) NO_SYSCALL_STUB; }
110*43a90889SApple OSS Distributions56	AUE_REVOKE	ALL	{ int revoke(char *path); }
111*43a90889SApple OSS Distributions57	AUE_SYMLINK	ALL	{ int symlink(char *path, char *link); }
112*43a90889SApple OSS Distributions58	AUE_READLINK	ALL	{ int readlink(char *path, char *buf, int count); }
113*43a90889SApple OSS Distributions59	AUE_EXECVE	ALL	{ int execve(char *fname, char **argp, char **envp) NO_SYSCALL_STUB; }
114*43a90889SApple OSS Distributions60	AUE_UMASK	ALL	{ int umask(int newmask); }
115*43a90889SApple OSS Distributions61	AUE_CHROOT	ALL	{ int chroot(user_addr_t path); }
116*43a90889SApple OSS Distributions62	AUE_NULL	ALL	{ int nosys(void); }   { old fstat }
117*43a90889SApple OSS Distributions63	AUE_NULL	ALL	{ int nosys(void); }   { used internally and reserved }
118*43a90889SApple OSS Distributions64	AUE_NULL	ALL	{ int nosys(void); }   { old getpagesize }
119*43a90889SApple OSS Distributions65	AUE_MSYNC	ALL	{ int msync(caddr_ut addr, size_ut len, int flags) NO_SYSCALL_STUB; }
120*43a90889SApple OSS Distributions#if CONFIG_VFORK
121*43a90889SApple OSS Distributions66	AUE_VFORK	ALL	{ int vfork(void) NO_SYSCALL_STUB; }
122*43a90889SApple OSS Distributions#else
123*43a90889SApple OSS Distributions66	AUE_NULL	ALL	{ int nosys(void); }   { old vfork }
124*43a90889SApple OSS Distributions#endif
125*43a90889SApple OSS Distributions67	AUE_NULL	ALL	{ int oslog_coproc_reg(const char *uuid, const char *file_path, size_t file_path_len) NO_SYSCALL_STUB; }
126*43a90889SApple OSS Distributions68	AUE_NULL	ALL	{ int oslog_coproc(void *buff, uint64_t buff_len, uint32_t type, const char *uuid, uint64_t timestamp, uint32_t offset, uint32_t stream_log) NO_SYSCALL_STUB; }
127*43a90889SApple OSS Distributions69	AUE_NULL	ALL	{ int nosys(void); }   { old sbrk }
128*43a90889SApple OSS Distributions70	AUE_NULL	ALL	{ int nosys(void); }   { old sstk }
129*43a90889SApple OSS Distributions71	AUE_NULL	ALL	{ int nosys(void); }   { old mmap }
130*43a90889SApple OSS Distributions72	AUE_NULL	ALL	{ int nosys(void); }   { old vadvise }
131*43a90889SApple OSS Distributions73	AUE_MUNMAP	ALL	{ int munmap(caddr_ut addr, size_ut len) NO_SYSCALL_STUB; }
132*43a90889SApple OSS Distributions74	AUE_MPROTECT	ALL	{ int mprotect(caddr_ut addr, size_ut len, int prot) NO_SYSCALL_STUB; }
133*43a90889SApple OSS Distributions75	AUE_MADVISE	ALL	{ int madvise(caddr_ut addr, size_ut len, int behav); }
134*43a90889SApple OSS Distributions76	AUE_NULL	ALL	{ int nosys(void); }   { old vhangup }
135*43a90889SApple OSS Distributions77	AUE_NULL	ALL	{ int nosys(void); }   { old vlimit }
136*43a90889SApple OSS Distributions78	AUE_MINCORE	ALL	{ int mincore(caddr_ut addr, size_ut len, user_addr_t vec); }
137*43a90889SApple OSS Distributions79	AUE_GETGROUPS	ALL	{ int getgroups(u_int gidsetsize, gid_t *gidset); }
138*43a90889SApple OSS Distributions80	AUE_SETGROUPS	ALL	{ int setgroups(u_int gidsetsize, gid_t *gidset); }
139*43a90889SApple OSS Distributions81	AUE_GETPGRP	ALL	{ int getpgrp(void); }
140*43a90889SApple OSS Distributions82	AUE_SETPGRP	ALL	{ int setpgid(int pid, int pgid); }
141*43a90889SApple OSS Distributions83	AUE_SETITIMER	ALL	{ int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
142*43a90889SApple OSS Distributions84	AUE_NULL	ALL	{ int nosys(void); }   { old wait }
143*43a90889SApple OSS Distributions85	AUE_SWAPON 	ALL	{ int swapon(void); }
144*43a90889SApple OSS Distributions86	AUE_GETITIMER	ALL	{ int getitimer(u_int which, struct itimerval *itv); }
145*43a90889SApple OSS Distributions87	AUE_NULL	ALL	{ int nosys(void); }   { old gethostname }
146*43a90889SApple OSS Distributions88	AUE_NULL	ALL	{ int nosys(void); }   { old sethostname }
147*43a90889SApple OSS Distributions89	AUE_GETDTABLESIZE	ALL	{ int sys_getdtablesize(void); }
148*43a90889SApple OSS Distributions90	AUE_DUP2	ALL	{ int sys_dup2(u_int from, u_int to); }
149*43a90889SApple OSS Distributions91	AUE_NULL	ALL	{ int nosys(void); }   { old getdopt }
150*43a90889SApple OSS Distributions92	AUE_FCNTL	ALL	{ int sys_fcntl(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
151*43a90889SApple OSS Distributions93	AUE_SELECT	ALL	{ int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv) NO_SYSCALL_STUB; }
152*43a90889SApple OSS Distributions94	AUE_NULL	ALL	{ int nosys(void); }   { old setdopt }
153*43a90889SApple OSS Distributions95	AUE_FSYNC	ALL	{ int fsync(int fd); }
154*43a90889SApple OSS Distributions96	AUE_SETPRIORITY	ALL	{ int setpriority(int which, id_t who, int prio) NO_SYSCALL_STUB; }
155*43a90889SApple OSS Distributions#if SOCKETS
156*43a90889SApple OSS Distributions97	AUE_SOCKET	ALL	{ int socket(int domain, int type, int protocol); }
157*43a90889SApple OSS Distributions98	AUE_CONNECT	ALL	{ int connect(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
158*43a90889SApple OSS Distributions#else
159*43a90889SApple OSS Distributions97	AUE_NULL	ALL	{ int nosys(void); }
160*43a90889SApple OSS Distributions98	AUE_NULL	ALL	{ int nosys(void); }
161*43a90889SApple OSS Distributions#endif /* SOCKETS */
162*43a90889SApple OSS Distributions99	AUE_NULL	ALL	{ int nosys(void); }   { old accept }
163*43a90889SApple OSS Distributions100	AUE_GETPRIORITY	ALL	{ int getpriority(int which, id_t who); }
164*43a90889SApple OSS Distributions101	AUE_NULL	ALL	{ int nosys(void); }   { old send }
165*43a90889SApple OSS Distributions102	AUE_NULL	ALL	{ int nosys(void); }   { old recv }
166*43a90889SApple OSS Distributions103	AUE_NULL	ALL	{ int nosys(void); }   { old sigreturn }
167*43a90889SApple OSS Distributions#if SOCKETS
168*43a90889SApple OSS Distributions104	AUE_BIND	ALL	{ int bind(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
169*43a90889SApple OSS Distributions105	AUE_SETSOCKOPT	ALL	{ int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
170*43a90889SApple OSS Distributions106	AUE_LISTEN	ALL	{ int listen(int s, int backlog) NO_SYSCALL_STUB; }
171*43a90889SApple OSS Distributions#else
172*43a90889SApple OSS Distributions104	AUE_NULL	ALL	{ int nosys(void); }
173*43a90889SApple OSS Distributions105	AUE_NULL	ALL	{ int nosys(void); }
174*43a90889SApple OSS Distributions106	AUE_NULL	ALL	{ int nosys(void); }
175*43a90889SApple OSS Distributions#endif /* SOCKETS */
176*43a90889SApple OSS Distributions107	AUE_NULL	ALL	{ int nosys(void); }   { old vtimes }
177*43a90889SApple OSS Distributions108	AUE_NULL	ALL	{ int nosys(void); }   { old sigvec }
178*43a90889SApple OSS Distributions109	AUE_NULL	ALL	{ int nosys(void); }   { old sigblock }
179*43a90889SApple OSS Distributions110	AUE_NULL	ALL	{ int nosys(void); }   { old sigsetmask }
180*43a90889SApple OSS Distributions111	AUE_NULL	ALL	{ int sigsuspend(sigset_t mask) NO_SYSCALL_STUB; }
181*43a90889SApple OSS Distributions112	AUE_NULL	ALL	{ int nosys(void); }   { old sigstack }
182*43a90889SApple OSS Distributions#if SOCKETS
183*43a90889SApple OSS Distributions113	AUE_NULL	ALL	{ int nosys(void); }   { old recvmsg }
184*43a90889SApple OSS Distributions114	AUE_NULL	ALL	{ int nosys(void); }   { old sendmsg }
185*43a90889SApple OSS Distributions#else
186*43a90889SApple OSS Distributions113	AUE_NULL	ALL	{ int nosys(void); }
187*43a90889SApple OSS Distributions114	AUE_NULL	ALL	{ int nosys(void); }
188*43a90889SApple OSS Distributions#endif /* SOCKETS */
189*43a90889SApple OSS Distributions115	AUE_NULL	ALL	{ int nosys(void); }   { old vtrace }
190*43a90889SApple OSS Distributions116	AUE_GETTIMEOFDAY	ALL	{ int gettimeofday(struct timeval *tp, struct timezone *tzp, uint64_t *mach_absolute_time) NO_SYSCALL_STUB; }
191*43a90889SApple OSS Distributions117	AUE_GETRUSAGE	ALL	{ int getrusage(int who, struct rusage *rusage); }
192*43a90889SApple OSS Distributions#if SOCKETS
193*43a90889SApple OSS Distributions118	AUE_GETSOCKOPT	ALL	{ int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
194*43a90889SApple OSS Distributions#else
195*43a90889SApple OSS Distributions118	AUE_NULL	ALL	{ int nosys(void); }
196*43a90889SApple OSS Distributions#endif /* SOCKETS */
197*43a90889SApple OSS Distributions119	AUE_NULL	ALL	{ int nosys(void); }   { old resuba }
198*43a90889SApple OSS Distributions120	AUE_READV	ALL	{ user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
199*43a90889SApple OSS Distributions121	AUE_WRITEV	ALL	{ user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
200*43a90889SApple OSS Distributions122	AUE_SETTIMEOFDAY	ALL	{ int settimeofday(struct timeval *tv, struct timezone *tzp) NO_SYSCALL_STUB; }
201*43a90889SApple OSS Distributions123	AUE_FCHOWN	ALL	{ int fchown(int fd, int uid, int gid); }
202*43a90889SApple OSS Distributions124	AUE_FCHMOD	ALL	{ int fchmod(int fd, int mode) NO_SYSCALL_STUB; }
203*43a90889SApple OSS Distributions125	AUE_NULL	ALL	{ int nosys(void); }   { old recvfrom }
204*43a90889SApple OSS Distributions126	AUE_SETREUID	ALL	{ int setreuid(uid_t ruid, uid_t euid) NO_SYSCALL_STUB; }
205*43a90889SApple OSS Distributions127	AUE_SETREGID	ALL	{ int setregid(gid_t rgid, gid_t egid) NO_SYSCALL_STUB; }
206*43a90889SApple OSS Distributions128	AUE_RENAME	ALL	{ int rename(char *from, char *to) NO_SYSCALL_STUB; }
207*43a90889SApple OSS Distributions129	AUE_NULL	ALL	{ int nosys(void); }   { old truncate }
208*43a90889SApple OSS Distributions130	AUE_NULL	ALL	{ int nosys(void); }   { old ftruncate }
209*43a90889SApple OSS Distributions131	AUE_FLOCK	ALL	{ int sys_flock(int fd, int how); }
210*43a90889SApple OSS Distributions132	AUE_MKFIFO	ALL	{ int mkfifo(user_addr_t path, int mode); }
211*43a90889SApple OSS Distributions#if SOCKETS
212*43a90889SApple OSS Distributions133	AUE_SENDTO	ALL	{ int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; }
213*43a90889SApple OSS Distributions134	AUE_SHUTDOWN	ALL	{ int shutdown(int s, int how); }
214*43a90889SApple OSS Distributions135	AUE_SOCKETPAIR	ALL	{ int socketpair(int domain, int type, int protocol, int *rsv) NO_SYSCALL_STUB; }
215*43a90889SApple OSS Distributions#else
216*43a90889SApple OSS Distributions133	AUE_NULL	ALL	{ int nosys(void); }
217*43a90889SApple OSS Distributions134	AUE_NULL	ALL	{ int nosys(void); }
218*43a90889SApple OSS Distributions135	AUE_NULL	ALL	{ int nosys(void); }
219*43a90889SApple OSS Distributions#endif /* SOCKETS */
220*43a90889SApple OSS Distributions136	AUE_MKDIR	ALL	{ int mkdir(user_addr_t path, int mode); }
221*43a90889SApple OSS Distributions137	AUE_RMDIR	ALL	{ int rmdir(char *path) NO_SYSCALL_STUB; }
222*43a90889SApple OSS Distributions138	AUE_UTIMES	ALL	{ int utimes(char *path, struct timeval *tptr); }
223*43a90889SApple OSS Distributions139	AUE_FUTIMES	ALL	{ int futimes(int fd, struct timeval *tptr); }
224*43a90889SApple OSS Distributions140	AUE_ADJTIME	ALL	{ int adjtime(struct timeval *delta, struct timeval *olddelta); }
225*43a90889SApple OSS Distributions141	AUE_NULL	ALL	{ int nosys(void); }   { old getpeername }
226*43a90889SApple OSS Distributions142	AUE_SYSCTL	ALL	{ int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp) NO_SYSCALL_STUB; }
227*43a90889SApple OSS Distributions143	AUE_NULL	ALL	{ int nosys(void); }   { old sethostid 	}
228*43a90889SApple OSS Distributions144	AUE_NULL	ALL	{ int nosys(void); }   { old getrlimit }
229*43a90889SApple OSS Distributions145	AUE_NULL	ALL	{ int nosys(void); }   { old setrlimit }
230*43a90889SApple OSS Distributions146	AUE_NULL	ALL	{ int nosys(void); }   { old killpg }
231*43a90889SApple OSS Distributions147	AUE_SETSID	ALL	{ int setsid(void); }
232*43a90889SApple OSS Distributions148	AUE_NULL	ALL	{ int nosys(void); }   { old setquota }
233*43a90889SApple OSS Distributions149	AUE_NULL	ALL	{ int nosys(void); }   { old qquota }
234*43a90889SApple OSS Distributions150	AUE_NULL	ALL	{ int nosys(void); }   { old getsockname }
235*43a90889SApple OSS Distributions151	AUE_GETPGID	ALL	{ int getpgid(pid_t pid); }
236*43a90889SApple OSS Distributions152	AUE_SETPRIVEXEC	ALL	{ int setprivexec(int flag); }
237*43a90889SApple OSS Distributions153	AUE_PREAD	ALL	{ user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
238*43a90889SApple OSS Distributions154	AUE_PWRITE	ALL	{ user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
239*43a90889SApple OSS Distributions
240*43a90889SApple OSS Distributions#if NFSSERVER	/* XXX */
241*43a90889SApple OSS Distributions155	AUE_NFS_SVC	ALL	{ int nfssvc(int flag, caddr_t argp); }
242*43a90889SApple OSS Distributions#else
243*43a90889SApple OSS Distributions155	AUE_NULL	ALL	{ int nosys(void); }
244*43a90889SApple OSS Distributions#endif
245*43a90889SApple OSS Distributions
246*43a90889SApple OSS Distributions156	AUE_NULL	ALL	{ int nosys(void); }   { old getdirentries }
247*43a90889SApple OSS Distributions157	AUE_STATFS	ALL	{ int statfs(char *path, struct statfs *buf); }
248*43a90889SApple OSS Distributions158	AUE_FSTATFS	ALL	{ int fstatfs(int fd, struct statfs *buf); }
249*43a90889SApple OSS Distributions159	AUE_UNMOUNT	ALL	{ int unmount(user_addr_t path, int flags); }
250*43a90889SApple OSS Distributions160	AUE_NULL	ALL	{ int nosys(void); }   { old async_daemon }
251*43a90889SApple OSS Distributions
252*43a90889SApple OSS Distributions#if NFSSERVER	/* XXX */
253*43a90889SApple OSS Distributions161	AUE_NFS_GETFH	ALL	{ int getfh(char *fname, fhandle_t *fhp); }
254*43a90889SApple OSS Distributions#else
255*43a90889SApple OSS Distributions161	AUE_NULL	ALL	{ int nosys(void); }
256*43a90889SApple OSS Distributions#endif
257*43a90889SApple OSS Distributions
258*43a90889SApple OSS Distributions162	AUE_NULL	ALL	{ int nosys(void); }   { old getdomainname }
259*43a90889SApple OSS Distributions163	AUE_NULL	ALL	{ int nosys(void); }   { old setdomainname }
260*43a90889SApple OSS Distributions164	AUE_NULL	ALL	{ int nosys(void); }
261*43a90889SApple OSS Distributions165	AUE_QUOTACTL	ALL	{ int quotactl(const char *path, int cmd, int uid, caddr_t arg); }
262*43a90889SApple OSS Distributions166	AUE_NULL	ALL	{ int nosys(void); }   { old exportfs }
263*43a90889SApple OSS Distributions167	AUE_MOUNT	ALL	{ int mount(char *type, char *path, int flags, caddr_t data); }
264*43a90889SApple OSS Distributions168	AUE_NULL	ALL	{ int nosys(void); }   { old ustat }
265*43a90889SApple OSS Distributions169	AUE_CSOPS	ALL	{ int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); }
266*43a90889SApple OSS Distributions170	AUE_CSOPS	ALL	{ int csops_audittoken(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize, user_addr_t uaudittoken); }
267*43a90889SApple OSS Distributions171	AUE_NULL	ALL	{ int nosys(void); }   { old wait3 }
268*43a90889SApple OSS Distributions172	AUE_NULL	ALL	{ int nosys(void); }   { old rpause	}
269*43a90889SApple OSS Distributions173	AUE_WAITID	ALL	{ int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
270*43a90889SApple OSS Distributions174	AUE_NULL	ALL	{ int nosys(void); }   { old getdents }
271*43a90889SApple OSS Distributions175	AUE_NULL	ALL	{ int nosys(void); }   { old gc_control }
272*43a90889SApple OSS Distributions176	AUE_NULL	ALL	{ int nosys(void); }   { old add_profil }
273*43a90889SApple OSS Distributions177	AUE_NULL	ALL	{ int kdebug_typefilter(void** addr, size_t* size) NO_SYSCALL_STUB; }
274*43a90889SApple OSS Distributions178	AUE_NULL	ALL 	{ uint64_t kdebug_trace_string(uint32_t debugid, uint64_t str_id, const char *str) NO_SYSCALL_STUB; }
275*43a90889SApple OSS Distributions179	AUE_NULL	ALL 	{ int kdebug_trace64(uint32_t code, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4) NO_SYSCALL_STUB; }
276*43a90889SApple OSS Distributions180	AUE_NULL	ALL 	{ int kdebug_trace(uint32_t code, u_long arg1, u_long arg2, u_long arg3, u_long arg4) NO_SYSCALL_STUB; }
277*43a90889SApple OSS Distributions181	AUE_SETGID	ALL	{ int setgid(gid_t gid); }
278*43a90889SApple OSS Distributions182	AUE_SETEGID	ALL	{ int setegid(gid_t egid); }
279*43a90889SApple OSS Distributions183	AUE_SETEUID	ALL	{ int seteuid(uid_t euid); }
280*43a90889SApple OSS Distributions184	AUE_SIGRETURN	ALL	{ int sigreturn(struct ucontext *uctx, int infostyle, user_addr_t token) NO_SYSCALL_STUB; }
281*43a90889SApple OSS Distributions185 AUE_NULL    ALL { int sys_panic_with_data(uuid_t uuid, void *addr, uint32_t len, uint32_t flags, const char *msg); }
282*43a90889SApple OSS Distributions186	AUE_NULL	ALL	{ int thread_selfcounts(uint32_t kind, user_addr_t buf, user_size_t size); }
283*43a90889SApple OSS Distributions187	AUE_FDATASYNC	ALL	{ int fdatasync(int fd); }
284*43a90889SApple OSS Distributions188	AUE_STAT	ALL	{ int stat(user_addr_t path, user_addr_t ub); }
285*43a90889SApple OSS Distributions189	AUE_FSTAT	ALL	{ int sys_fstat(int fd, user_addr_t ub); }
286*43a90889SApple OSS Distributions190	AUE_LSTAT	ALL	{ int lstat(user_addr_t path, user_addr_t ub); }
287*43a90889SApple OSS Distributions191	AUE_PATHCONF	ALL	{ int pathconf(char *path, int name); }
288*43a90889SApple OSS Distributions192	AUE_FPATHCONF	ALL	{ int sys_fpathconf(int fd, int name); }
289*43a90889SApple OSS Distributions193	AUE_NULL	ALL	{ int nosys(void); }	{ old getfsstat }
290*43a90889SApple OSS Distributions194	AUE_GETRLIMIT	ALL	{ int getrlimit(u_int which, struct rlimit *rlp) NO_SYSCALL_STUB; }
291*43a90889SApple OSS Distributions195	AUE_SETRLIMIT	ALL	{ int setrlimit(u_int which, struct rlimit *rlp) NO_SYSCALL_STUB; }
292*43a90889SApple OSS Distributions196	AUE_GETDIRENTRIES	ALL	{ int getdirentries(int fd, char *buf, u_int count, long *basep); }
293*43a90889SApple OSS Distributions197	AUE_MMAP	ALL	{ user_addr_t mmap(caddr_ut addr, size_ut len, int prot, int flags, int fd, off_t pos) NO_SYSCALL_STUB; }
294*43a90889SApple OSS Distributions198	AUE_NULL	ALL	{ int nosys(void); } 	{ old __syscall }
295*43a90889SApple OSS Distributions199	AUE_LSEEK	ALL	{ off_t lseek(int fd, off_t offset, int whence); }
296*43a90889SApple OSS Distributions200	AUE_TRUNCATE	ALL	{ int truncate(char *path, off_t length); }
297*43a90889SApple OSS Distributions201	AUE_FTRUNCATE	ALL	{ int ftruncate(int fd, off_t length); }
298*43a90889SApple OSS Distributions202	AUE_SYSCTL	ALL 	{ int sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen) NO_SYSCALL_STUB; }
299*43a90889SApple OSS Distributions203	AUE_MLOCK	ALL	{ int mlock(caddr_ut addr, size_ut len); }
300*43a90889SApple OSS Distributions204	AUE_MUNLOCK	ALL	{ int munlock(caddr_ut addr, size_ut len); }
301*43a90889SApple OSS Distributions205	AUE_UNDELETE	ALL	{ int undelete(user_addr_t path); }
302*43a90889SApple OSS Distributions
303*43a90889SApple OSS Distributions206	AUE_NULL	ALL	{ int nosys(void); } { old ATsocket }
304*43a90889SApple OSS Distributions207	AUE_NULL	ALL	{ int nosys(void); } { old ATgetmsg }
305*43a90889SApple OSS Distributions208	AUE_NULL	ALL	{ int nosys(void); } { old ATputmsg }
306*43a90889SApple OSS Distributions209	AUE_NULL	ALL	{ int nosys(void); } { old ATsndreq }
307*43a90889SApple OSS Distributions210	AUE_NULL	ALL	{ int nosys(void); } { old ATsndrsp }
308*43a90889SApple OSS Distributions211	AUE_NULL	ALL	{ int nosys(void); } { old ATgetreq }
309*43a90889SApple OSS Distributions212	AUE_NULL	ALL	{ int nosys(void); } { old ATgetrsp }
310*43a90889SApple OSS Distributions213	AUE_NULL	ALL	{ int nosys(void); } 	{ Reserved for AppleTalk }
311*43a90889SApple OSS Distributions
312*43a90889SApple OSS Distributions214	AUE_NULL	ALL	{ int nosys(void); }
313*43a90889SApple OSS Distributions215	AUE_NULL	ALL	{ int nosys(void); }
314*43a90889SApple OSS Distributions
315*43a90889SApple OSS Distributions; System Calls 216 - 230 are reserved for calls to support HFS/HFS Plus
316*43a90889SApple OSS Distributions; file system semantics. Currently, we only use 215-227.  The rest is
317*43a90889SApple OSS Distributions; for future expansion in anticipation of new MacOS APIs for HFS Plus.
318*43a90889SApple OSS Distributions; These calls are not conditionalized because while they are specific
319*43a90889SApple OSS Distributions; to HFS semantics, they are not specific to the HFS filesystem.
320*43a90889SApple OSS Distributions; We expect all filesystems to recognize the call and report that it is
321*43a90889SApple OSS Distributions; not supported or to actually implement it.
322*43a90889SApple OSS Distributions
323*43a90889SApple OSS Distributions; 216-> 219 used to be mkcomplex and {f,l}statv variants. They are gone now.
324*43a90889SApple OSS Distributions216	AUE_NULL	ALL	{ int open_dprotected_np(user_addr_t path, int flags, int class, int dpflags, int mode) NO_SYSCALL_STUB; }
325*43a90889SApple OSS Distributions217	AUE_FSGETPATH_EXTENDED	ALL	{ user_ssize_t fsgetpath_ext(user_addr_t buf, size_t bufsize, user_addr_t fsid, uint64_t objid, uint32_t options); }
326*43a90889SApple OSS Distributions218	AUE_NULL	ALL	{ int openat_dprotected_np(int fd, user_addr_t path, int flags, int class, int dpflags, int mode, int authfd) NO_SYSCALL_STUB; }
327*43a90889SApple OSS Distributions219	AUE_NULL	ALL	{ int nosys(void); }	{ old fstatv }
328*43a90889SApple OSS Distributions220	AUE_GETATTRLIST	ALL	{ int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options) NO_SYSCALL_STUB; }
329*43a90889SApple OSS Distributions221	AUE_SETATTRLIST	ALL	{ int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options) NO_SYSCALL_STUB; }
330*43a90889SApple OSS Distributions222	AUE_GETDIRENTRIESATTR	ALL	{ int getdirentriesattr(int fd, struct attrlist *alist, void *buffer, size_t buffersize, u_long *count, u_long *basep, u_long *newstate, u_long options); }
331*43a90889SApple OSS Distributions223	AUE_EXCHANGEDATA	ALL	{ int exchangedata(const char *path1, const char *path2, u_long options); }
332*43a90889SApple OSS Distributions224	AUE_NULL		ALL { int nosys(void); } { old checkuseraccess or fsgetpath }
333*43a90889SApple OSS Distributions225	AUE_SEARCHFS	ALL	{ int searchfs(const char *path, struct fssearchblock *searchblock, uint32_t *nummatches, uint32_t scriptcode, uint32_t options, struct searchstate *state); }
334*43a90889SApple OSS Distributions226	AUE_DELETE	ALL	{ int delete(user_addr_t path) NO_SYSCALL_STUB; }       { private delete (Carbon semantics) }
335*43a90889SApple OSS Distributions227	AUE_COPYFILE	ALL	{ int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; }
336*43a90889SApple OSS Distributions228	AUE_FGETATTRLIST	ALL	{ int fgetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
337*43a90889SApple OSS Distributions229	AUE_FSETATTRLIST	ALL	{ int fsetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
338*43a90889SApple OSS Distributions230	AUE_POLL	ALL	{ int poll(struct pollfd *fds, u_int nfds, int timeout); }
339*43a90889SApple OSS Distributions231	AUE_NULL	ALL	{ int nosys(void); } { old watchevent }
340*43a90889SApple OSS Distributions232	AUE_NULL	ALL	{ int nosys(void); } { old waitevent }
341*43a90889SApple OSS Distributions233	AUE_NULL	ALL	{ int nosys(void); } { old modwatch }
342*43a90889SApple OSS Distributions234	AUE_GETXATTR	ALL	{ user_ssize_t getxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
343*43a90889SApple OSS Distributions235	AUE_FGETXATTR	ALL	{ user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
344*43a90889SApple OSS Distributions236	AUE_SETXATTR	ALL	{ int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
345*43a90889SApple OSS Distributions237	AUE_FSETXATTR	ALL	{ int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
346*43a90889SApple OSS Distributions238	AUE_REMOVEXATTR	ALL	{ int removexattr(user_addr_t path, user_addr_t attrname, int options); }
347*43a90889SApple OSS Distributions239	AUE_FREMOVEXATTR	ALL	{ int fremovexattr(int fd, user_addr_t attrname, int options); }
348*43a90889SApple OSS Distributions240	AUE_LISTXATTR	ALL	{ user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
349*43a90889SApple OSS Distributions241	AUE_FLISTXATTR	ALL	{ user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
350*43a90889SApple OSS Distributions242	AUE_FSCTL	ALL	{ int fsctl(const char *path, u_long cmd, caddr_t data, u_int options); }
351*43a90889SApple OSS Distributions243	AUE_INITGROUPS	ALL	{ int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid) NO_SYSCALL_STUB; }
352*43a90889SApple OSS Distributions244	AUE_POSIX_SPAWN	ALL	{ int posix_spawn(pid_t *pid, const char *path, const struct _posix_spawn_args_desc *adesc, char **argv, char **envp) NO_SYSCALL_STUB; }
353*43a90889SApple OSS Distributions245	AUE_FFSCTL	ALL	{ int ffsctl(int fd, u_long cmd, caddr_t data, u_int options); }
354*43a90889SApple OSS Distributions246	AUE_NULL	ALL	{ int nosys(void); }
355*43a90889SApple OSS Distributions247	AUE_NULL	ALL	{ int nosys(void); } { old nfsclnt }
356*43a90889SApple OSS Distributions
357*43a90889SApple OSS Distributions#if NFSSERVER	/* XXX */
358*43a90889SApple OSS Distributions248	AUE_FHOPEN	ALL	{ int fhopen(const struct fhandle *u_fhp, int flags); }
359*43a90889SApple OSS Distributions#else
360*43a90889SApple OSS Distributions248	AUE_NULL	ALL	{ int nosys(void); }
361*43a90889SApple OSS Distributions#endif
362*43a90889SApple OSS Distributions
363*43a90889SApple OSS Distributions249	AUE_NULL	ALL	{ int nosys(void); }
364*43a90889SApple OSS Distributions250	AUE_MINHERIT	ALL	{ int minherit(caddr_ut addr, size_ut len, int inherit); }
365*43a90889SApple OSS Distributions#if SYSV_SEM
366*43a90889SApple OSS Distributions251	AUE_SEMSYS	ALL	{ int semsys(u_int which, int a2, int a3, int a4, int a5) NO_SYSCALL_STUB; }
367*43a90889SApple OSS Distributions#else
368*43a90889SApple OSS Distributions251	AUE_NULL	ALL	{ int nosys(void); }
369*43a90889SApple OSS Distributions#endif
370*43a90889SApple OSS Distributions#if SYSV_MSG
371*43a90889SApple OSS Distributions252	AUE_MSGSYS	ALL	{ int msgsys(u_int which, int a2, int a3, int a4, int a5) NO_SYSCALL_STUB; }
372*43a90889SApple OSS Distributions#else
373*43a90889SApple OSS Distributions252	AUE_NULL	ALL	{ int nosys(void); }
374*43a90889SApple OSS Distributions#endif
375*43a90889SApple OSS Distributions#if SYSV_SHM
376*43a90889SApple OSS Distributions253	AUE_SHMSYS	ALL	{ int shmsys(u_int which, int a2, int a3, int a4) NO_SYSCALL_STUB; }
377*43a90889SApple OSS Distributions#else
378*43a90889SApple OSS Distributions253	AUE_NULL	ALL	{ int nosys(void); }
379*43a90889SApple OSS Distributions#endif
380*43a90889SApple OSS Distributions#if SYSV_SEM
381*43a90889SApple OSS Distributions254	AUE_SEMCTL	ALL	{ int semctl(int semid, int semnum, int cmd, semun_t arg) NO_SYSCALL_STUB; }
382*43a90889SApple OSS Distributions255	AUE_SEMGET	ALL	{ int semget(key_t key, int	nsems, int semflg); }
383*43a90889SApple OSS Distributions256	AUE_SEMOP	ALL	{ int semop(int semid, struct sembuf *sops, int nsops); }
384*43a90889SApple OSS Distributions257	AUE_NULL	ALL	{ int nosys(void); }	{ old semconfig }
385*43a90889SApple OSS Distributions#else
386*43a90889SApple OSS Distributions254	AUE_NULL	ALL	{ int nosys(void); }
387*43a90889SApple OSS Distributions255	AUE_NULL	ALL	{ int nosys(void); }
388*43a90889SApple OSS Distributions256	AUE_NULL	ALL	{ int nosys(void); }
389*43a90889SApple OSS Distributions257	AUE_NULL	ALL	{ int nosys(void); }
390*43a90889SApple OSS Distributions#endif
391*43a90889SApple OSS Distributions#if SYSV_MSG
392*43a90889SApple OSS Distributions258	AUE_MSGCTL	ALL	{ int msgctl(int msqid, int cmd, struct	msqid_ds *buf) NO_SYSCALL_STUB; }
393*43a90889SApple OSS Distributions259	AUE_MSGGET	ALL	{ int msgget(key_t key, int msgflg); }
394*43a90889SApple OSS Distributions260	AUE_MSGSND	ALL	{ int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
395*43a90889SApple OSS Distributions261	AUE_MSGRCV	ALL	{ user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
396*43a90889SApple OSS Distributions#else
397*43a90889SApple OSS Distributions258	AUE_NULL	ALL	{ int nosys(void); }
398*43a90889SApple OSS Distributions259	AUE_NULL	ALL	{ int nosys(void); }
399*43a90889SApple OSS Distributions260	AUE_NULL	ALL	{ int nosys(void); }
400*43a90889SApple OSS Distributions261	AUE_NULL	ALL	{ int nosys(void); }
401*43a90889SApple OSS Distributions#endif
402*43a90889SApple OSS Distributions#if SYSV_SHM
403*43a90889SApple OSS Distributions262	AUE_SHMAT	ALL	{ user_addr_t shmat(int shmid, void *shmaddr, int shmflg); }
404*43a90889SApple OSS Distributions263	AUE_SHMCTL	ALL	{ int shmctl(int shmid, int cmd, struct shmid_ds *buf) NO_SYSCALL_STUB; }
405*43a90889SApple OSS Distributions264	AUE_SHMDT	ALL	{ int shmdt(void *shmaddr); }
406*43a90889SApple OSS Distributions265	AUE_SHMGET	ALL	{ int shmget(key_t key, size_t size, int shmflg); }
407*43a90889SApple OSS Distributions#else
408*43a90889SApple OSS Distributions262	AUE_NULL	ALL	{ int nosys(void); }
409*43a90889SApple OSS Distributions263	AUE_NULL	ALL	{ int nosys(void); }
410*43a90889SApple OSS Distributions264	AUE_NULL	ALL	{ int nosys(void); }
411*43a90889SApple OSS Distributions265	AUE_NULL	ALL	{ int nosys(void); }
412*43a90889SApple OSS Distributions#endif
413*43a90889SApple OSS Distributions266	AUE_SHMOPEN	ALL	{ int shm_open(const char *name, int oflag, int mode) NO_SYSCALL_STUB; }
414*43a90889SApple OSS Distributions267	AUE_SHMUNLINK	ALL	{ int shm_unlink(const char *name); }
415*43a90889SApple OSS Distributions268	AUE_SEMOPEN	ALL	{ user_addr_t sem_open(const char *name, int oflag, int mode, int value) NO_SYSCALL_STUB; }
416*43a90889SApple OSS Distributions269	AUE_SEMCLOSE	ALL	{ int sem_close(sem_t *sem); }
417*43a90889SApple OSS Distributions270	AUE_SEMUNLINK	ALL	{ int sem_unlink(const char *name); }
418*43a90889SApple OSS Distributions271	AUE_SEMWAIT	ALL	{ int sem_wait(sem_t *sem); }
419*43a90889SApple OSS Distributions272	AUE_SEMTRYWAIT	ALL	{ int sem_trywait(sem_t *sem); }
420*43a90889SApple OSS Distributions273	AUE_SEMPOST	ALL	{ int sem_post(sem_t *sem); }
421*43a90889SApple OSS Distributions274	AUE_SYSCTL	ALL 	{ int sys_sysctlbyname(const char *name, size_t namelen, void *old, size_t *oldlenp, void *new, size_t newlen) NO_SYSCALL_STUB; }
422*43a90889SApple OSS Distributions275	AUE_NULL	ALL	{ int enosys(void); } { old sem_init }
423*43a90889SApple OSS Distributions276	AUE_NULL	ALL	{ int enosys(void); } { old sem_destroy }
424*43a90889SApple OSS Distributions277	AUE_OPEN_EXTENDED_RWTC	ALL	{ int open_extended(user_addr_t path, int flags, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
425*43a90889SApple OSS Distributions278	AUE_UMASK_EXTENDED	ALL	{ int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; }
426*43a90889SApple OSS Distributions279	AUE_STAT_EXTENDED	ALL	{ int stat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
427*43a90889SApple OSS Distributions280	AUE_LSTAT_EXTENDED	ALL	{ int lstat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
428*43a90889SApple OSS Distributions281	AUE_FSTAT_EXTENDED	ALL	{ int sys_fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
429*43a90889SApple OSS Distributions282	AUE_CHMOD_EXTENDED	ALL	{ int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
430*43a90889SApple OSS Distributions283	AUE_FCHMOD_EXTENDED	ALL	{ int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
431*43a90889SApple OSS Distributions284	AUE_ACCESS_EXTENDED	ALL	{ int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; }
432*43a90889SApple OSS Distributions285	AUE_SETTID	ALL	{ int sys_settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; }
433*43a90889SApple OSS Distributions286	AUE_GETTID	ALL	{ int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; }
434*43a90889SApple OSS Distributions287	AUE_SETSGROUPS	ALL	{ int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
435*43a90889SApple OSS Distributions288	AUE_GETSGROUPS	ALL	{ int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
436*43a90889SApple OSS Distributions289	AUE_SETWGROUPS	ALL	{ int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
437*43a90889SApple OSS Distributions290	AUE_GETWGROUPS	ALL	{ int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
438*43a90889SApple OSS Distributions291	AUE_MKFIFO_EXTENDED	ALL	{ int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
439*43a90889SApple OSS Distributions292	AUE_MKDIR_EXTENDED	ALL	{ int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
440*43a90889SApple OSS Distributions#if CONFIG_EXT_RESOLVER
441*43a90889SApple OSS Distributions293	AUE_IDENTITYSVC	ALL	{ int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; }
442*43a90889SApple OSS Distributions#else
443*43a90889SApple OSS Distributions293	AUE_NULL	ALL	{ int nosys(void); }
444*43a90889SApple OSS Distributions#endif
445*43a90889SApple OSS Distributions294	AUE_NULL	ALL	{ int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; }
446*43a90889SApple OSS Distributions295	AUE_NULL	ALL	{ int nosys(void); } { old shared_region_map_np }
447*43a90889SApple OSS Distributions296	AUE_NULL	ALL	{ int vm_pressure_monitor(int wait_for_pressure, int nsecs_monitored, uint32_t *pages_reclaimed); }
448*43a90889SApple OSS Distributions#if PSYNCH
449*43a90889SApple OSS Distributions297	AUE_NULL	ALL	{ uint32_t psynch_rw_longrdlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags)  NO_SYSCALL_STUB; }
450*43a90889SApple OSS Distributions298	AUE_NULL	ALL	{ uint32_t psynch_rw_yieldwrlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags)  NO_SYSCALL_STUB; }
451*43a90889SApple OSS Distributions299	AUE_NULL	ALL	{ int psynch_rw_downgrade(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags)  NO_SYSCALL_STUB; }
452*43a90889SApple OSS Distributions300	AUE_NULL	ALL	{ uint32_t psynch_rw_upgrade(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags)  NO_SYSCALL_STUB; }
453*43a90889SApple OSS Distributions301	AUE_NULL	ALL	{ uint32_t psynch_mutexwait(user_addr_t mutex,  uint32_t mgen, uint32_t  ugen, uint64_t tid, uint32_t flags) NO_SYSCALL_STUB; }
454*43a90889SApple OSS Distributions302	AUE_NULL	ALL	{ uint32_t psynch_mutexdrop(user_addr_t mutex,  uint32_t mgen, uint32_t  ugen, uint64_t tid, uint32_t flags) NO_SYSCALL_STUB; }
455*43a90889SApple OSS Distributions303	AUE_NULL	ALL	{ uint32_t psynch_cvbroad(user_addr_t cv, uint64_t cvlsgen, uint64_t cvudgen, uint32_t flags, user_addr_t mutex,  uint64_t mugen, uint64_t tid) NO_SYSCALL_STUB; }
456*43a90889SApple OSS Distributions304	AUE_NULL	ALL	{ uint32_t psynch_cvsignal(user_addr_t cv, uint64_t cvlsgen, uint32_t cvugen, int thread_port, user_addr_t mutex,  uint64_t mugen, uint64_t tid, uint32_t flags) NO_SYSCALL_STUB; }
457*43a90889SApple OSS Distributions305	AUE_NULL	ALL	{ uint32_t psynch_cvwait(user_addr_t cv, uint64_t cvlsgen, uint32_t cvugen, user_addr_t mutex,  uint64_t mugen, uint32_t flags, int64_t sec, uint32_t nsec) NO_SYSCALL_STUB; }
458*43a90889SApple OSS Distributions306	AUE_NULL	ALL	{ uint32_t psynch_rw_rdlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags)  NO_SYSCALL_STUB; }
459*43a90889SApple OSS Distributions307	AUE_NULL	ALL	{ uint32_t psynch_rw_wrlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags)  NO_SYSCALL_STUB; }
460*43a90889SApple OSS Distributions308	AUE_NULL	ALL	{ uint32_t psynch_rw_unlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags)  NO_SYSCALL_STUB; }
461*43a90889SApple OSS Distributions309	AUE_NULL	ALL	{ uint32_t psynch_rw_unlock2(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags)  NO_SYSCALL_STUB; }
462*43a90889SApple OSS Distributions#else
463*43a90889SApple OSS Distributions297	AUE_NULL	ALL	{ int nosys(void); } { old reset_shared_file }
464*43a90889SApple OSS Distributions298	AUE_NULL	ALL	{ int nosys(void); } { old new_system_shared_regions }
465*43a90889SApple OSS Distributions299	AUE_NULL	ALL	{ int enosys(void); } { old shared_region_map_file_np }
466*43a90889SApple OSS Distributions300	AUE_NULL	ALL	{ int enosys(void); } { old shared_region_make_private_np }
467*43a90889SApple OSS Distributions301	AUE_NULL	ALL	{ int nosys(void); }
468*43a90889SApple OSS Distributions302	AUE_NULL	ALL	{ int nosys(void); }
469*43a90889SApple OSS Distributions303	AUE_NULL	ALL	{ int nosys(void); }
470*43a90889SApple OSS Distributions304	AUE_NULL	ALL	{ int nosys(void); }
471*43a90889SApple OSS Distributions305	AUE_NULL	ALL	{ int nosys(void); }
472*43a90889SApple OSS Distributions306	AUE_NULL	ALL	{ int nosys(void); }
473*43a90889SApple OSS Distributions307	AUE_NULL	ALL	{ int nosys(void); }
474*43a90889SApple OSS Distributions308	AUE_NULL	ALL	{ int nosys(void); }
475*43a90889SApple OSS Distributions309	AUE_NULL	ALL	{ int nosys(void); }
476*43a90889SApple OSS Distributions#endif
477*43a90889SApple OSS Distributions310	AUE_GETSID	ALL	{ int getsid(pid_t pid); }
478*43a90889SApple OSS Distributions311	AUE_SETTIDWITHPID	ALL	{ int sys_settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; }
479*43a90889SApple OSS Distributions#if PSYNCH
480*43a90889SApple OSS Distributions312	AUE_NULL	ALL	{ int psynch_cvclrprepost(user_addr_t cv, uint32_t cvgen, uint32_t cvugen, uint32_t cvsgen, uint32_t prepocnt, uint32_t preposeq, uint32_t flags) NO_SYSCALL_STUB; }
481*43a90889SApple OSS Distributions#else
482*43a90889SApple OSS Distributions312	AUE_NULL	ALL	{ int nosys(void); } { old __pthread_cond_timedwait }
483*43a90889SApple OSS Distributions#endif
484*43a90889SApple OSS Distributions313	AUE_NULL	ALL	{ int aio_fsync(int op, user_addr_t aiocbp); }
485*43a90889SApple OSS Distributions314 	AUE_NULL	ALL	{ user_ssize_t aio_return(user_addr_t aiocbp); }
486*43a90889SApple OSS Distributions315	AUE_NULL	ALL	{ int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
487*43a90889SApple OSS Distributions316	AUE_NULL	ALL	{ int aio_cancel(int fd, user_addr_t aiocbp); }
488*43a90889SApple OSS Distributions317	AUE_NULL	ALL	{ int aio_error(user_addr_t aiocbp); }
489*43a90889SApple OSS Distributions318	AUE_NULL	ALL	{ int aio_read(user_addr_t aiocbp); }
490*43a90889SApple OSS Distributions319	AUE_NULL	ALL	{ int aio_write(user_addr_t aiocbp); }
491*43a90889SApple OSS Distributions320	AUE_LIOLISTIO	ALL	{ int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
492*43a90889SApple OSS Distributions321	AUE_NULL	ALL	{ int nosys(void); } { old __pthread_cond_wait }
493*43a90889SApple OSS Distributions322	AUE_IOPOLICYSYS	ALL	{ int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; }
494*43a90889SApple OSS Distributions323	AUE_NULL	ALL	{ int process_policy(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, pid_t target_pid, uint64_t target_threadid) NO_SYSCALL_STUB; }
495*43a90889SApple OSS Distributions324	AUE_MLOCKALL	ALL	{ int mlockall(int how); }
496*43a90889SApple OSS Distributions325	AUE_MUNLOCKALL	ALL	{ int munlockall(int how); }
497*43a90889SApple OSS Distributions326	AUE_NULL	ALL	{ int nosys(void); }
498*43a90889SApple OSS Distributions327	AUE_ISSETUGID	ALL	{ int issetugid(void); }
499*43a90889SApple OSS Distributions328	AUE_PTHREADKILL	ALL	{ int __pthread_kill(int thread_port, int sig); }
500*43a90889SApple OSS Distributions329	AUE_PTHREADSIGMASK	ALL	{ int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
501*43a90889SApple OSS Distributions330	AUE_SIGWAIT	ALL	{ int __sigwait(user_addr_t set, user_addr_t sig); }
502*43a90889SApple OSS Distributions331	AUE_NULL	ALL	{ int __disable_threadsignal(int value); }
503*43a90889SApple OSS Distributions332	AUE_NULL	ALL	{ int __pthread_markcancel(int thread_port); }
504*43a90889SApple OSS Distributions333	AUE_NULL	ALL	{ int __pthread_canceled(int  action); }
505*43a90889SApple OSS Distributions
506*43a90889SApple OSS Distributions;#if OLD_SEMWAIT_SIGNAL
507*43a90889SApple OSS Distributions;334	AUE_NULL	ALL	{ int nosys(void); }   { old __semwait_signal }
508*43a90889SApple OSS Distributions;#else
509*43a90889SApple OSS Distributions334     AUE_SEMWAITSIGNAL       ALL     { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, int64_t tv_sec, int32_t tv_nsec); }
510*43a90889SApple OSS Distributions;#endif
511*43a90889SApple OSS Distributions
512*43a90889SApple OSS Distributions335	AUE_NULL	ALL	{ int nosys(void); }   { old utrace }
513*43a90889SApple OSS Distributions336	AUE_PROCINFO	ALL	{ int proc_info(int32_t callnum,int32_t pid,uint32_t flavor, uint64_t arg,user_addr_t buffer,int32_t buffersize) NO_SYSCALL_STUB; }
514*43a90889SApple OSS Distributions#if SENDFILE
515*43a90889SApple OSS Distributions337	AUE_SENDFILE	ALL	{ int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); }
516*43a90889SApple OSS Distributions#else /* !SENDFILE */
517*43a90889SApple OSS Distributions337	AUE_NULL	ALL	{ int nosys(void); }
518*43a90889SApple OSS Distributions#endif /* SENDFILE */
519*43a90889SApple OSS Distributions338	AUE_STAT64	ALL	{ int stat64(user_addr_t path, user_addr_t ub); }
520*43a90889SApple OSS Distributions339	AUE_FSTAT64	ALL	{ int sys_fstat64(int fd, user_addr_t ub); }
521*43a90889SApple OSS Distributions340	AUE_LSTAT64	ALL	{ int lstat64(user_addr_t path, user_addr_t ub); }
522*43a90889SApple OSS Distributions341	AUE_STAT64_EXTENDED	ALL	{ int stat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
523*43a90889SApple OSS Distributions342	AUE_LSTAT64_EXTENDED	ALL	{ int lstat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
524*43a90889SApple OSS Distributions343	AUE_FSTAT64_EXTENDED	ALL	{ int sys_fstat64_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
525*43a90889SApple OSS Distributions344	AUE_GETDIRENTRIES64	ALL	{ user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; }
526*43a90889SApple OSS Distributions345	AUE_STATFS64	ALL	{ int statfs64(char *path, struct statfs64 *buf); }
527*43a90889SApple OSS Distributions346	AUE_FSTATFS64	ALL	{ int fstatfs64(int fd, struct statfs64 *buf); }
528*43a90889SApple OSS Distributions347	AUE_GETFSSTAT64	ALL	{ int getfsstat64(user_addr_t buf, int bufsize, int flags); }
529*43a90889SApple OSS Distributions348	AUE_NULL	ALL	{ int __pthread_chdir(user_addr_t path); }
530*43a90889SApple OSS Distributions349	AUE_NULL	ALL	{ int __pthread_fchdir(int fd); }
531*43a90889SApple OSS Distributions350	AUE_AUDIT	ALL	{ int audit(void *record, int length); }
532*43a90889SApple OSS Distributions351	AUE_AUDITON	ALL	{ int auditon(int cmd, void *data, int length); }
533*43a90889SApple OSS Distributions352	AUE_NULL	ALL	{ int nosys(void); }
534*43a90889SApple OSS Distributions353	AUE_GETAUID	ALL	{ int getauid(au_id_t *auid); }
535*43a90889SApple OSS Distributions354	AUE_SETAUID	ALL	{ int setauid(au_id_t *auid); }
536*43a90889SApple OSS Distributions355	AUE_NULL	ALL	{ int nosys(void); }	{ old getaudit }
537*43a90889SApple OSS Distributions356	AUE_NULL	ALL	{ int nosys(void); }	{ old setaudit }
538*43a90889SApple OSS Distributions357	AUE_GETAUDIT_ADDR	ALL	{ int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
539*43a90889SApple OSS Distributions358	AUE_SETAUDIT_ADDR	ALL	{ int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
540*43a90889SApple OSS Distributions359	AUE_AUDITCTL	ALL	{ int auditctl(char *path); }
541*43a90889SApple OSS Distributions360	AUE_NULL	ALL	{ user_addr_t bsdthread_create(user_addr_t func, user_addr_t func_arg, user_addr_t stack, user_addr_t pthread, uint32_t flags) NO_SYSCALL_STUB; }
542*43a90889SApple OSS Distributions361	AUE_NULL	ALL	{ int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, user_addr_t sema_or_ulock) NO_SYSCALL_STUB; }
543*43a90889SApple OSS Distributions362	AUE_KQUEUE	ALL	{ int kqueue(void); }
544*43a90889SApple OSS Distributions363	AUE_NULL	ALL	{ int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
545*43a90889SApple OSS Distributions364	AUE_LCHOWN	ALL	{ int lchown(user_addr_t path, uid_t owner, gid_t group) NO_SYSCALL_STUB; }
546*43a90889SApple OSS Distributions365	AUE_NULL	ALL	{ int nosys(void); }	{ old stack_snapshot }
547*43a90889SApple OSS Distributions366	AUE_NULL	ALL	{ int bsdthread_register(user_addr_t threadstart, user_addr_t wqthread, uint32_t flags, user_addr_t stack_addr_hint, user_addr_t targetconc_ptr, uint32_t dispatchqueue_offset, uint32_t tsd_offset) NO_SYSCALL_STUB; }
548*43a90889SApple OSS Distributions367	AUE_WORKQOPEN	ALL	{ int workq_open(void) NO_SYSCALL_STUB; }
549*43a90889SApple OSS Distributions368	AUE_WORKQOPS	ALL	{ int workq_kernreturn(int options, user_addr_t item, int affinity, int prio) NO_SYSCALL_STUB; }
550*43a90889SApple OSS Distributions369	AUE_NULL	ALL	{ int kevent64(int fd, const struct kevent64_s *changelist, int nchanges, struct kevent64_s *eventlist, int nevents, unsigned int flags, const struct timespec *timeout); }
551*43a90889SApple OSS Distributions370     AUE_NULL        ALL     { int nosys(void); }   { old __semwait_signal }
552*43a90889SApple OSS Distributions371     AUE_NULL        ALL     { int nosys(void); }   { old __semwait_signal }
553*43a90889SApple OSS Distributions372	AUE_NULL	ALL	{ uint64_t thread_selfid (void) NO_SYSCALL_STUB; }
554*43a90889SApple OSS Distributions373	AUE_LEDGER	ALL	{ int ledger(int cmd, caddr_t arg1, caddr_t arg2, caddr_t arg3); }
555*43a90889SApple OSS Distributions374	AUE_NULL	ALL	{ int kevent_qos(int fd, const struct kevent_qos_s *changelist, int nchanges, struct kevent_qos_s *eventlist, int nevents, void *data_out, size_t *data_available, unsigned int flags); }
556*43a90889SApple OSS Distributions375	AUE_NULL	ALL	{ int kevent_id(uint64_t id, const struct kevent_qos_s *changelist, int nchanges, struct kevent_qos_s *eventlist, int nevents, void *data_out, size_t *data_available, unsigned int flags); }
557*43a90889SApple OSS Distributions376	AUE_NULL	ALL	{ int nosys(void); }
558*43a90889SApple OSS Distributions377	AUE_NULL	ALL	{ int nosys(void); }
559*43a90889SApple OSS Distributions378	AUE_NULL	ALL	{ int nosys(void); }
560*43a90889SApple OSS Distributions379	AUE_NULL	ALL	{ int nosys(void); }
561*43a90889SApple OSS Distributions380	AUE_MAC_EXECVE	ALL	{ int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); }
562*43a90889SApple OSS Distributions#if CONFIG_MACF
563*43a90889SApple OSS Distributions381	AUE_MAC_SYSCALL	ALL	{ int __mac_syscall(char *policy, int call, user_addr_t arg); }
564*43a90889SApple OSS Distributions382	AUE_MAC_GET_FILE	ALL	{ int __mac_get_file(char *path_p, struct mac *mac_p); }
565*43a90889SApple OSS Distributions383	AUE_MAC_SET_FILE	ALL	{ int __mac_set_file(char *path_p, struct mac *mac_p); }
566*43a90889SApple OSS Distributions384	AUE_MAC_GET_LINK	ALL	{ int __mac_get_link(char *path_p, struct mac *mac_p); }
567*43a90889SApple OSS Distributions385	AUE_MAC_SET_LINK	ALL	{ int __mac_set_link(char *path_p, struct mac *mac_p); }
568*43a90889SApple OSS Distributions386	AUE_MAC_GET_PROC	ALL	{ int __mac_get_proc(struct mac *mac_p); }
569*43a90889SApple OSS Distributions387	AUE_MAC_SET_PROC	ALL	{ int __mac_set_proc(struct mac *mac_p); }
570*43a90889SApple OSS Distributions388	AUE_MAC_GET_FD	ALL	{ int __mac_get_fd(int fd, struct mac *mac_p); }
571*43a90889SApple OSS Distributions389	AUE_MAC_SET_FD	ALL	{ int __mac_set_fd(int fd, struct mac *mac_p); }
572*43a90889SApple OSS Distributions390	AUE_MAC_GET_PID	ALL	{ int __mac_get_pid(pid_t pid, struct mac *mac_p); }
573*43a90889SApple OSS Distributions#else
574*43a90889SApple OSS Distributions381     AUE_MAC_SYSCALL ALL     { int enosys(void); }
575*43a90889SApple OSS Distributions382     AUE_MAC_GET_FILE        ALL     { int nosys(void); }
576*43a90889SApple OSS Distributions383     AUE_MAC_SET_FILE        ALL     { int nosys(void); }
577*43a90889SApple OSS Distributions384     AUE_MAC_GET_LINK        ALL     { int nosys(void); }
578*43a90889SApple OSS Distributions385     AUE_MAC_SET_LINK        ALL     { int nosys(void); }
579*43a90889SApple OSS Distributions386     AUE_MAC_GET_PROC        ALL     { int nosys(void); }
580*43a90889SApple OSS Distributions387     AUE_MAC_SET_PROC        ALL     { int nosys(void); }
581*43a90889SApple OSS Distributions388     AUE_MAC_GET_FD  ALL     { int nosys(void); }
582*43a90889SApple OSS Distributions389     AUE_MAC_SET_FD  ALL     { int nosys(void); }
583*43a90889SApple OSS Distributions390     AUE_MAC_GET_PID ALL     { int nosys(void); }
584*43a90889SApple OSS Distributions#endif
585*43a90889SApple OSS Distributions391	AUE_NULL	ALL	{ int enosys(void); }
586*43a90889SApple OSS Distributions392	AUE_NULL	ALL	{ int enosys(void); }
587*43a90889SApple OSS Distributions393	AUE_NULL	ALL	{ int enosys(void); }
588*43a90889SApple OSS Distributions394	AUE_SELECT	ALL	{ int pselect(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, const struct timespec *ts, const struct sigset_t *mask) NO_SYSCALL_STUB; }
589*43a90889SApple OSS Distributions395	AUE_SELECT	ALL	{ int pselect_nocancel(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, const struct timespec *ts, const struct sigset_t *mask) NO_SYSCALL_STUB; }
590*43a90889SApple OSS Distributions396	AUE_NULL	ALL	{ user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
591*43a90889SApple OSS Distributions397	AUE_NULL	ALL	{ user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
592*43a90889SApple OSS Distributions398	AUE_OPEN_RWTC	ALL	{ int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
593*43a90889SApple OSS Distributions399	AUE_CLOSE	ALL	{ int sys_close_nocancel(int fd) NO_SYSCALL_STUB; }
594*43a90889SApple OSS Distributions400	AUE_WAIT4	ALL	{ int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
595*43a90889SApple OSS Distributions#if SOCKETS
596*43a90889SApple OSS Distributions401	AUE_RECVMSG	ALL	{ int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
597*43a90889SApple OSS Distributions402	AUE_SENDMSG	ALL	{ int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
598*43a90889SApple OSS Distributions403	AUE_RECVFROM	ALL	{ int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
599*43a90889SApple OSS Distributions404	AUE_ACCEPT	ALL	{ int accept_nocancel(int s, caddr_t name, socklen_t	*anamelen) NO_SYSCALL_STUB; }
600*43a90889SApple OSS Distributions#else
601*43a90889SApple OSS Distributions401	AUE_NULL	ALL	{ int nosys(void); }
602*43a90889SApple OSS Distributions402	AUE_NULL	ALL	{ int nosys(void); }
603*43a90889SApple OSS Distributions403	AUE_NULL	ALL	{ int nosys(void); }
604*43a90889SApple OSS Distributions404	AUE_NULL	ALL	{ int nosys(void); }
605*43a90889SApple OSS Distributions#endif /* SOCKETS */
606*43a90889SApple OSS Distributions405	AUE_MSYNC	ALL	{ int msync_nocancel(caddr_ut addr, size_ut len, int flags) NO_SYSCALL_STUB; }
607*43a90889SApple OSS Distributions406	AUE_FCNTL	ALL	{ int sys_fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
608*43a90889SApple OSS Distributions407	AUE_SELECT	ALL	{ int select_nocancel(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv) NO_SYSCALL_STUB; }
609*43a90889SApple OSS Distributions408	AUE_FSYNC	ALL	{ int fsync_nocancel(int fd) NO_SYSCALL_STUB; }
610*43a90889SApple OSS Distributions#if SOCKETS
611*43a90889SApple OSS Distributions409	AUE_CONNECT	ALL	{ int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
612*43a90889SApple OSS Distributions#else
613*43a90889SApple OSS Distributions409	AUE_NULL	ALL	{ int nosys(void); }
614*43a90889SApple OSS Distributions#endif /* SOCKETS */
615*43a90889SApple OSS Distributions410	AUE_NULL	ALL	{ int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; }
616*43a90889SApple OSS Distributions411	AUE_READV	ALL	{ user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
617*43a90889SApple OSS Distributions412	AUE_WRITEV	ALL	{ user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
618*43a90889SApple OSS Distributions#if SOCKETS
619*43a90889SApple OSS Distributions413	AUE_SENDTO	ALL	{ int sendto_nocancel(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; }
620*43a90889SApple OSS Distributions#else
621*43a90889SApple OSS Distributions413	AUE_NULL	ALL	{ int nosys(void); }
622*43a90889SApple OSS Distributions#endif /* SOCKETS */
623*43a90889SApple OSS Distributions414	AUE_PREAD	ALL	{ user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
624*43a90889SApple OSS Distributions415	AUE_PWRITE	ALL	{ user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
625*43a90889SApple OSS Distributions416	AUE_WAITID	ALL	{ int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; }
626*43a90889SApple OSS Distributions417	AUE_POLL	ALL	{ int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; }
627*43a90889SApple OSS Distributions#if SYSV_MSG
628*43a90889SApple OSS Distributions418	AUE_MSGSND	ALL	{ int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; }
629*43a90889SApple OSS Distributions419	AUE_MSGRCV	ALL	{ user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; }
630*43a90889SApple OSS Distributions#else
631*43a90889SApple OSS Distributions418	AUE_NULL	ALL	{ int nosys(void); }
632*43a90889SApple OSS Distributions419	AUE_NULL	ALL	{ int nosys(void); }
633*43a90889SApple OSS Distributions#endif
634*43a90889SApple OSS Distributions420	AUE_SEMWAIT	ALL	{ int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; }
635*43a90889SApple OSS Distributions421	AUE_NULL	ALL	{ int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; }
636*43a90889SApple OSS Distributions422	AUE_SIGWAIT	ALL	{ int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; }
637*43a90889SApple OSS Distributions423     AUE_SEMWAITSIGNAL       ALL     { int __semwait_signal_nocancel(int cond_sem, int mutex_sem, int timeout, int relative, int64_t tv_sec, int32_t tv_nsec); }
638*43a90889SApple OSS Distributions424	AUE_MAC_MOUNT	ALL	{ int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); }
639*43a90889SApple OSS Distributions#if CONFIG_MACF
640*43a90889SApple OSS Distributions425	AUE_MAC_GET_MOUNT	ALL	{ int __mac_get_mount(char *path, struct mac *mac_p); }
641*43a90889SApple OSS Distributions#else
642*43a90889SApple OSS Distributions425     AUE_MAC_GET_MOUNT       ALL     { int nosys(void); }
643*43a90889SApple OSS Distributions#endif
644*43a90889SApple OSS Distributions426	AUE_MAC_GETFSSTAT	ALL	{ int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); }
645*43a90889SApple OSS Distributions427	AUE_FSGETPATH	ALL	{ user_ssize_t fsgetpath(user_addr_t buf, size_t bufsize, user_addr_t fsid, uint64_t objid); } { private fsgetpath (File Manager SPI) }
646*43a90889SApple OSS Distributions428	AUE_NULL	ALL	{ mach_port_name_t audit_session_self(void); }
647*43a90889SApple OSS Distributions429	AUE_NULL	ALL	{ int audit_session_join(mach_port_name_t port); }
648*43a90889SApple OSS Distributions430	AUE_NULL	ALL	{ int sys_fileport_makeport(int fd, user_addr_t portnamep); }
649*43a90889SApple OSS Distributions431	AUE_NULL	ALL	{ int sys_fileport_makefd(mach_port_name_t port); }
650*43a90889SApple OSS Distributions432	AUE_NULL	ALL	{ int audit_session_port(au_asid_t asid, user_addr_t portnamep); }
651*43a90889SApple OSS Distributions433	AUE_NULL	ALL	{ int pid_suspend(int pid); }
652*43a90889SApple OSS Distributions434	AUE_NULL	ALL	{ int pid_resume(int pid); }
653*43a90889SApple OSS Distributions#if CONFIG_EMBEDDED
654*43a90889SApple OSS Distributions435	AUE_NULL	ALL	{ int pid_hibernate(int pid); }
655*43a90889SApple OSS Distributions#else
656*43a90889SApple OSS Distributions435     AUE_NULL        ALL     { int nosys(void); }
657*43a90889SApple OSS Distributions#endif
658*43a90889SApple OSS Distributions#if SOCKETS
659*43a90889SApple OSS Distributions436	AUE_NULL	ALL	{ int pid_shutdown_sockets(int pid, int level); }
660*43a90889SApple OSS Distributions#else
661*43a90889SApple OSS Distributions436	AUE_NULL	ALL	{ int nosys(void); }
662*43a90889SApple OSS Distributions#endif
663*43a90889SApple OSS Distributions437	AUE_NULL	ALL	{ int nosys(void); } { old shared_region_slide_np }
664*43a90889SApple OSS Distributions438	AUE_NULL	ALL	{ int nosys(void); } { old shared_region_map_and_slide_np }
665*43a90889SApple OSS Distributions439	AUE_NULL	ALL	{ int kas_info(int selector, void *value, size_t *size); }
666*43a90889SApple OSS Distributions#if CONFIG_MEMORYSTATUS
667*43a90889SApple OSS Distributions440	AUE_NULL	ALL	{ int memorystatus_control(uint32_t command, int32_t pid, uint32_t flags, user_addr_t buffer, size_t buffersize); }
668*43a90889SApple OSS Distributions#else
669*43a90889SApple OSS Distributions440	AUE_NULL	ALL	{ int nosys(void); }
670*43a90889SApple OSS Distributions#endif
671*43a90889SApple OSS Distributions441	AUE_OPEN_RWTC	ALL	{ int guarded_open_np(user_addr_t path, const guardid_t *guard, u_int guardflags, int flags, int mode) NO_SYSCALL_STUB; }
672*43a90889SApple OSS Distributions442	AUE_CLOSE	ALL	{ int guarded_close_np(int fd, const guardid_t *guard); }
673*43a90889SApple OSS Distributions443	AUE_KQUEUE	ALL	{ int guarded_kqueue_np(const guardid_t *guard, u_int guardflags); }
674*43a90889SApple OSS Distributions444	AUE_NULL	ALL	{ int change_fdguard_np(int fd, const guardid_t *guard, u_int guardflags, const guardid_t *nguard, u_int nguardflags, int *fdflagsp); }
675*43a90889SApple OSS Distributions445	AUE_USRCTL	ALL	{ int usrctl(uint32_t flags); }
676*43a90889SApple OSS Distributions446	AUE_NULL	ALL	{ int proc_rlimit_control(pid_t pid, int flavor, void *arg); }
677*43a90889SApple OSS Distributions#if SOCKETS
678*43a90889SApple OSS Distributions447	AUE_CONNECT	ALL	{ int connectx(int socket, const sa_endpoints_t *endpoints, sae_associd_t associd, unsigned int flags, const struct iovec *iov, unsigned int iovcnt, size_t *len, sae_connid_t *connid); }
679*43a90889SApple OSS Distributions448	AUE_NULL	ALL	{ int disconnectx(int s, sae_associd_t aid, sae_connid_t cid); }
680*43a90889SApple OSS Distributions449	AUE_NULL	ALL	{ int peeloff(int s, sae_associd_t aid); }
681*43a90889SApple OSS Distributions450	AUE_SOCKET	ALL	{ int socket_delegate(int domain, int type, int protocol, pid_t epid); }
682*43a90889SApple OSS Distributions#else
683*43a90889SApple OSS Distributions447	AUE_NULL	ALL	{ int nosys(void); }
684*43a90889SApple OSS Distributions448	AUE_NULL	ALL	{ int nosys(void); }
685*43a90889SApple OSS Distributions449	AUE_NULL	ALL	{ int nosys(void); }
686*43a90889SApple OSS Distributions450	AUE_NULL	ALL	{ int nosys(void); }
687*43a90889SApple OSS Distributions#endif /* SOCKETS */
688*43a90889SApple OSS Distributions451	AUE_NULL	ALL	{ int telemetry(uint64_t cmd, uint64_t deadline, uint64_t interval, uint64_t leeway, uint64_t arg4, uint64_t arg5) NO_SYSCALL_STUB; }
689*43a90889SApple OSS Distributions#if CONFIG_PROC_UUID_POLICY
690*43a90889SApple OSS Distributions452	AUE_NULL	ALL	{ int proc_uuid_policy(uint32_t operation, uuid_t uuid, size_t uuidlen, uint32_t flags); }
691*43a90889SApple OSS Distributions#else
692*43a90889SApple OSS Distributions452	AUE_NULL	ALL	{ int nosys(void); }
693*43a90889SApple OSS Distributions#endif
694*43a90889SApple OSS Distributions#if CONFIG_MEMORYSTATUS
695*43a90889SApple OSS Distributions453	AUE_NULL	ALL	{ int memorystatus_get_level(user_addr_t level); }
696*43a90889SApple OSS Distributions#else
697*43a90889SApple OSS Distributions453	AUE_NULL	ALL	{ int nosys(void); }
698*43a90889SApple OSS Distributions#endif
699*43a90889SApple OSS Distributions454	AUE_NULL	ALL	{ int system_override(uint64_t timeout, uint64_t flags); }
700*43a90889SApple OSS Distributions455	AUE_NULL	ALL	{ int vfs_purge(void); }
701*43a90889SApple OSS Distributions456	AUE_NULL	ALL	{ int sfi_ctl(uint32_t operation, uint32_t sfi_class, uint64_t time, uint64_t *out_time) NO_SYSCALL_STUB; }
702*43a90889SApple OSS Distributions457	AUE_NULL	ALL	{ int sfi_pidctl(uint32_t operation, pid_t pid, uint32_t sfi_flags, uint32_t *out_sfi_flags) NO_SYSCALL_STUB; }
703*43a90889SApple OSS Distributions#if CONFIG_COALITIONS
704*43a90889SApple OSS Distributions458	AUE_NULL	ALL	{ int coalition(uint32_t operation, uint64_t *cid, uint32_t flags) NO_SYSCALL_STUB; }
705*43a90889SApple OSS Distributions459	AUE_NULL	ALL	{ int coalition_info(uint32_t flavor, uint64_t *cid, void *buffer, size_t *bufsize) NO_SYSCALL_STUB; }
706*43a90889SApple OSS Distributions#else
707*43a90889SApple OSS Distributions458	AUE_NULL	ALL	{ int enosys(void); }
708*43a90889SApple OSS Distributions459	AUE_NULL	ALL	{ int enosys(void); }
709*43a90889SApple OSS Distributions#endif /* COALITIONS */
710*43a90889SApple OSS Distributions#if NECP
711*43a90889SApple OSS Distributions460 AUE_NECP	ALL { int necp_match_policy(uint8_t *parameters, size_t parameters_size, struct necp_aggregate_result *returned_result); }
712*43a90889SApple OSS Distributions#else
713*43a90889SApple OSS Distributions460	AUE_NULL	ALL	{ int nosys(void); }
714*43a90889SApple OSS Distributions#endif /* NECP */
715*43a90889SApple OSS Distributions461	AUE_GETATTRLISTBULK	ALL	{ int getattrlistbulk(int dirfd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, uint64_t options); }
716*43a90889SApple OSS Distributions462	AUE_CLONEFILEAT	ALL     { int clonefileat(int src_dirfd, user_addr_t src, int dst_dirfd, user_addr_t dst, uint32_t flags); }
717*43a90889SApple OSS Distributions463	AUE_OPENAT_RWTC	ALL	{ int openat(int fd, user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
718*43a90889SApple OSS Distributions464	AUE_OPENAT_RWTC	ALL	{ int openat_nocancel(int fd, user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
719*43a90889SApple OSS Distributions465	AUE_RENAMEAT	ALL	{ int renameat(int fromfd, char *from, int tofd, char *to) NO_SYSCALL_STUB; }
720*43a90889SApple OSS Distributions466	AUE_FACCESSAT	ALL	{ int faccessat(int fd, user_addr_t path, int amode, int flag); }
721*43a90889SApple OSS Distributions467	AUE_FCHMODAT	ALL	{ int fchmodat(int fd, user_addr_t path, int mode, int flag); }
722*43a90889SApple OSS Distributions468	AUE_FCHOWNAT	ALL	{ int fchownat(int fd, user_addr_t path, uid_t uid,gid_t gid, int flag); }
723*43a90889SApple OSS Distributions469	AUE_FSTATAT	ALL	{ int fstatat(int fd, user_addr_t path, user_addr_t ub, int flag); }
724*43a90889SApple OSS Distributions470	AUE_FSTATAT	ALL	{ int fstatat64(int fd, user_addr_t path, user_addr_t ub, int flag); }
725*43a90889SApple OSS Distributions471	AUE_LINKAT	ALL	{ int linkat(int fd1, user_addr_t path, int fd2, user_addr_t link, int flag); }
726*43a90889SApple OSS Distributions472	AUE_UNLINKAT	ALL	{ int unlinkat(int fd, user_addr_t path, int flag) NO_SYSCALL_STUB; }
727*43a90889SApple OSS Distributions473	AUE_READLINKAT	ALL	{ int readlinkat(int fd, user_addr_t path, user_addr_t buf, size_t bufsize); }
728*43a90889SApple OSS Distributions474	AUE_SYMLINKAT	ALL	{ int symlinkat(user_addr_t *path1, int fd, user_addr_t path2); }
729*43a90889SApple OSS Distributions475	AUE_MKDIRAT	ALL	{ int mkdirat(int fd, user_addr_t path, int mode); }
730*43a90889SApple OSS Distributions476	AUE_GETATTRLISTAT	ALL	{ int getattrlistat(int fd, const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
731*43a90889SApple OSS Distributions477	AUE_NULL	ALL	{ int proc_trace_log(pid_t pid, uint64_t uniqueid); }
732*43a90889SApple OSS Distributions478	AUE_NULL	ALL	{ int bsdthread_ctl(user_addr_t cmd, user_addr_t arg1, user_addr_t arg2, user_addr_t arg3) NO_SYSCALL_STUB; }
733*43a90889SApple OSS Distributions479	AUE_OPENBYID_RWT	ALL	{ int openbyid_np(user_addr_t fsid, user_addr_t objid, int oflags); }
734*43a90889SApple OSS Distributions#if SOCKETS
735*43a90889SApple OSS Distributions480	AUE_NULL	ALL	{ user_ssize_t recvmsg_x(int s, struct msghdr_x *msgp, u_int cnt, int flags); }
736*43a90889SApple OSS Distributions481	AUE_NULL	ALL	{ user_ssize_t sendmsg_x(int s, struct msghdr_x *msgp, u_int cnt, int flags); }
737*43a90889SApple OSS Distributions#else
738*43a90889SApple OSS Distributions480	AUE_NULL	ALL	{ int nosys(void); }
739*43a90889SApple OSS Distributions481	AUE_NULL	ALL	{ int nosys(void); }
740*43a90889SApple OSS Distributions#endif /* SOCKETS */
741*43a90889SApple OSS Distributions482	AUE_NULL	ALL	{ uint64_t thread_selfusage(void) NO_SYSCALL_STUB; }
742*43a90889SApple OSS Distributions#if CONFIG_CSR
743*43a90889SApple OSS Distributions483	AUE_NULL	ALL	{ int csrctl(uint32_t op, user_addr_t useraddr, user_addr_t usersize) NO_SYSCALL_STUB; }
744*43a90889SApple OSS Distributions#else
745*43a90889SApple OSS Distributions483	AUE_NULL	ALL	{ int enosys(void); }
746*43a90889SApple OSS Distributions#endif /* CSR */
747*43a90889SApple OSS Distributions484	AUE_NULL	ALL	{ int guarded_open_dprotected_np(user_addr_t path, const guardid_t *guard, u_int guardflags, int flags, int dpclass, int dpflags, int mode) NO_SYSCALL_STUB; }
748*43a90889SApple OSS Distributions485	AUE_NULL	ALL	{ user_ssize_t guarded_write_np(int fd, const guardid_t *guard, user_addr_t cbuf, user_size_t nbyte); }
749*43a90889SApple OSS Distributions486	AUE_PWRITE	ALL	{ user_ssize_t guarded_pwrite_np(int fd, const guardid_t *guard, user_addr_t buf, user_size_t nbyte, off_t offset); }
750*43a90889SApple OSS Distributions487	AUE_WRITEV	ALL	{ user_ssize_t guarded_writev_np(int fd, const guardid_t *guard, struct iovec *iovp, int iovcnt); }
751*43a90889SApple OSS Distributions488	AUE_RENAMEAT	ALL	{ int renameatx_np(int fromfd, char *from, int tofd, char *to, u_int flags) NO_SYSCALL_STUB; }
752*43a90889SApple OSS Distributions#if CONFIG_CODE_DECRYPTION
753*43a90889SApple OSS Distributions489	AUE_MPROTECT	ALL	{ int mremap_encrypted(caddr_ut addr, size_ut len, uint32_t cryptid, uint32_t cputype, uint32_t cpusubtype); }
754*43a90889SApple OSS Distributions#else
755*43a90889SApple OSS Distributions489	AUE_NULL	ALL	{ int enosys(void); }
756*43a90889SApple OSS Distributions#endif
757*43a90889SApple OSS Distributions#if NETWORKING
758*43a90889SApple OSS Distributions490	AUE_NETAGENT	ALL	{ int netagent_trigger(uuid_t agent_uuid, size_t agent_uuidlen); }
759*43a90889SApple OSS Distributions#else
760*43a90889SApple OSS Distributions490	AUE_NULL	ALL	{ int nosys(void); }
761*43a90889SApple OSS Distributions#endif /* NETWORKING */
762*43a90889SApple OSS Distributions491	AUE_STACKSNAPSHOT ALL	{ int stack_snapshot_with_config(int stackshot_config_version, user_addr_t stackshot_config, size_t stackshot_config_size) NO_SYSCALL_STUB; }
763*43a90889SApple OSS Distributions#if CONFIG_TELEMETRY
764*43a90889SApple OSS Distributions492	AUE_STACKSNAPSHOT ALL	{ int microstackshot(user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t flags) NO_SYSCALL_STUB; }
765*43a90889SApple OSS Distributions#else
766*43a90889SApple OSS Distributions492	AUE_NULL	ALL { int enosys(void); }
767*43a90889SApple OSS Distributions#endif /* CONFIG_TELEMETRY */
768*43a90889SApple OSS Distributions#if PGO
769*43a90889SApple OSS Distributions493 	AUE_NULL	ALL	{ user_ssize_t grab_pgo_data (user_addr_t uuid, int flags, user_addr_t buffer, user_ssize_t size); }
770*43a90889SApple OSS Distributions#else
771*43a90889SApple OSS Distributions493	AUE_NULL	ALL { int enosys(void); }
772*43a90889SApple OSS Distributions#endif
773*43a90889SApple OSS Distributions#if CONFIG_PERSONAS
774*43a90889SApple OSS Distributions494	AUE_PERSONA	ALL	{ int persona(uint32_t operation, uint32_t flags, struct kpersona_info *info, uid_t *id, size_t *idlen, char *path) NO_SYSCALL_STUB; }
775*43a90889SApple OSS Distributions#else
776*43a90889SApple OSS Distributions494	AUE_NULL	ALL	{ int enosys(void); }
777*43a90889SApple OSS Distributions#endif
778*43a90889SApple OSS Distributions495	AUE_NULL	ALL	{ int enosys(void); }
779*43a90889SApple OSS Distributions496	AUE_NULL	ALL	{ uint64_t mach_eventlink_signal(mach_port_name_t eventlink_port, uint64_t signal_count) NO_SYSCALL_STUB; }
780*43a90889SApple OSS Distributions497	AUE_NULL	ALL	{ uint64_t mach_eventlink_wait_until(mach_port_name_t eventlink_port, uint64_t wait_count, uint64_t deadline, uint32_t clock_id, uint32_t option) NO_SYSCALL_STUB; }
781*43a90889SApple OSS Distributions498	AUE_NULL	ALL	{ uint64_t mach_eventlink_signal_wait_until(mach_port_name_t eventlink_port, uint64_t wait_count, uint64_t signal_count, uint64_t deadline, uint32_t clock_id, uint32_t option) NO_SYSCALL_STUB; }
782*43a90889SApple OSS Distributions499	AUE_NULL	ALL	{ int work_interval_ctl(uint32_t operation, uint64_t work_interval_id, void *arg, size_t len) NO_SYSCALL_STUB; }
783*43a90889SApple OSS Distributions500	AUE_NULL	ALL	{ int getentropy(void *buffer, size_t size); }
784*43a90889SApple OSS Distributions#if NECP
785*43a90889SApple OSS Distributions501	AUE_NECP	ALL	{ int necp_open(int flags); } }
786*43a90889SApple OSS Distributions502	AUE_NECP	ALL	{ int necp_client_action(int necp_fd, uint32_t action, uuid_t client_id, size_t client_id_len, uint8_t *buffer, size_t buffer_size); }
787*43a90889SApple OSS Distributions#else
788*43a90889SApple OSS Distributions501	AUE_NULL	ALL	{ int enosys(void); }
789*43a90889SApple OSS Distributions502	AUE_NULL	ALL	{ int enosys(void); }
790*43a90889SApple OSS Distributions#endif /* NECP */
791*43a90889SApple OSS Distributions#if SKYWALK
792*43a90889SApple OSS Distributions503	AUE_NEXUS	ALL	{ int __nexus_open(struct nxctl_init *init, uint32_t init_len); }
793*43a90889SApple OSS Distributions504	AUE_NEXUS	ALL	{ int __nexus_register(int ctl, struct nxprov_reg *reg, uint32_t reg_len, uuid_t *prov_uuid, uint32_t prov_uuid_len); }
794*43a90889SApple OSS Distributions505	AUE_NEXUS	ALL	{ int __nexus_deregister(int ctl, uuid_t prov_uuid, uint32_t prov_uuid_len); }
795*43a90889SApple OSS Distributions506	AUE_NEXUS	ALL	{ int __nexus_create(int ctl, uuid_t prov_uuid, uint32_t prov_uuid_len, uuid_t *nx_uuid, uint32_t nx_uuid_len); }
796*43a90889SApple OSS Distributions507	AUE_NEXUS	ALL	{ int __nexus_destroy(int ctl, uuid_t nx_uuid, uint32_t nx_uuid_len); }
797*43a90889SApple OSS Distributions508	AUE_NEXUS	ALL	{ int __nexus_get_opt(int ctl, uint32_t opt, void *aoptval, uint32_t *aoptlen); }
798*43a90889SApple OSS Distributions509	AUE_NEXUS	ALL	{ int __nexus_set_opt(int ctl, uint32_t opt, const void *aoptval, uint32_t optlen); }
799*43a90889SApple OSS Distributions510	AUE_CHANNEL	ALL	{ int __channel_open(struct ch_init *init, uint32_t init_len); }
800*43a90889SApple OSS Distributions511	AUE_CHANNEL	ALL	{ int __channel_get_info(int c, struct ch_info *cinfo, uint32_t cinfolen); }
801*43a90889SApple OSS Distributions512	AUE_CHANNEL	ALL	{ int __channel_sync(int c, int mode, int flags); }
802*43a90889SApple OSS Distributions513	AUE_CHANNEL	ALL	{ int __channel_get_opt(int c, uint32_t opt, void *aoptval, uint32_t *aoptlen); }
803*43a90889SApple OSS Distributions514	AUE_CHANNEL	ALL	{ int __channel_set_opt(int c, uint32_t opt, const void *aoptval, uint32_t optlen); }
804*43a90889SApple OSS Distributions#else
805*43a90889SApple OSS Distributions503	AUE_NULL	ALL	{ int enosys(void); }
806*43a90889SApple OSS Distributions504	AUE_NULL	ALL	{ int enosys(void); }
807*43a90889SApple OSS Distributions505	AUE_NULL	ALL	{ int enosys(void); }
808*43a90889SApple OSS Distributions506	AUE_NULL	ALL	{ int enosys(void); }
809*43a90889SApple OSS Distributions507	AUE_NULL	ALL	{ int enosys(void); }
810*43a90889SApple OSS Distributions508	AUE_NULL	ALL	{ int enosys(void); }
811*43a90889SApple OSS Distributions509	AUE_NULL	ALL	{ int enosys(void); }
812*43a90889SApple OSS Distributions510	AUE_NULL	ALL	{ int enosys(void); }
813*43a90889SApple OSS Distributions511	AUE_NULL	ALL	{ int enosys(void); }
814*43a90889SApple OSS Distributions512	AUE_NULL	ALL	{ int enosys(void); }
815*43a90889SApple OSS Distributions513	AUE_NULL	ALL	{ int enosys(void); }
816*43a90889SApple OSS Distributions514	AUE_NULL	ALL	{ int enosys(void); }
817*43a90889SApple OSS Distributions#endif /* !SKYWALK */
818*43a90889SApple OSS Distributions515	AUE_NULL	ALL	{ int sys_ulock_wait(uint32_t operation, void *addr, uint64_t value, uint32_t timeout) NO_SYSCALL_STUB; }
819*43a90889SApple OSS Distributions516	AUE_NULL	ALL	{ int sys_ulock_wake(uint32_t operation, void *addr, uint64_t wake_value) NO_SYSCALL_STUB; }
820*43a90889SApple OSS Distributions517	AUE_FCLONEFILEAT	ALL     { int fclonefileat(int src_fd, int dst_dirfd, user_addr_t dst, uint32_t flags); }
821*43a90889SApple OSS Distributions518	AUE_NULL	ALL     { int fs_snapshot(uint32_t op, int dirfd, user_addr_t name1, user_addr_t name2, user_addr_t data, uint32_t flags) NO_SYSCALL_STUB; }
822*43a90889SApple OSS Distributions519	AUE_NULL	ALL	{ int enosys(void); }
823*43a90889SApple OSS Distributions520	AUE_KILL	ALL	{ int terminate_with_payload(int pid, uint32_t reason_namespace, uint64_t reason_code, void *payload, uint32_t payload_size, const char *reason_string, uint64_t reason_flags) NO_SYSCALL_STUB; }
824*43a90889SApple OSS Distributions521	AUE_EXIT	ALL	{ void abort_with_payload(uint32_t reason_namespace, uint64_t reason_code, void *payload, uint32_t payload_size, const char *reason_string, uint64_t reason_flags) NO_SYSCALL_STUB; }
825*43a90889SApple OSS Distributions#if NECP
826*43a90889SApple OSS Distributions522	AUE_NECP	ALL	{ int necp_session_open(int flags); } }
827*43a90889SApple OSS Distributions523	AUE_NECP	ALL	{ int necp_session_action(int necp_fd, uint32_t action, uint8_t *in_buffer, size_t in_buffer_length, uint8_t *out_buffer, size_t out_buffer_length); }
828*43a90889SApple OSS Distributions#else /* NECP */
829*43a90889SApple OSS Distributions522	AUE_NULL	ALL	{ int enosys(void); }
830*43a90889SApple OSS Distributions523	AUE_NULL	ALL	{ int enosys(void); }
831*43a90889SApple OSS Distributions#endif /* NECP */
832*43a90889SApple OSS Distributions524	AUE_SETATTRLISTAT	ALL	{ int setattrlistat(int fd, const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, uint32_t options); }
833*43a90889SApple OSS Distributions525	AUE_NET		ALL	{ int net_qos_guideline(struct net_qos_param *param, uint32_t param_len); }
834*43a90889SApple OSS Distributions526	AUE_FMOUNT	ALL	{ int fmount(const char *type, int fd, int flags, void *data); }
835*43a90889SApple OSS Distributions527	AUE_NULL	ALL	{ int ntp_adjtime(struct timex *tp); }
836*43a90889SApple OSS Distributions528	AUE_NULL	ALL	{ int ntp_gettime(struct ntptimeval *ntvp); }
837*43a90889SApple OSS Distributions529	AUE_NULL	ALL	{ int os_fault_with_payload(uint32_t reason_namespace, uint64_t reason_code, void *payload, uint32_t payload_size, const char *reason_string, uint64_t reason_flags); }
838*43a90889SApple OSS Distributions530	AUE_WORKLOOPCTL	ALL	{ int kqueue_workloop_ctl(user_addr_t cmd, uint64_t options, user_addr_t addr, size_t sz) NO_SYSCALL_STUB; }
839*43a90889SApple OSS Distributions531	AUE_NULL	ALL	{ uint64_t __mach_bridge_remote_time(uint64_t local_timestamp); }
840*43a90889SApple OSS Distributions#if CONFIG_COALITIONS
841*43a90889SApple OSS Distributions532 AUE_NULL  ALL { int coalition_ledger(uint32_t operation, uint64_t *cid, void *buffer, size_t *bufsize) NO_SYSCALL_STUB; }
842*43a90889SApple OSS Distributions#else
843*43a90889SApple OSS Distributions532   AUE_NULL    ALL { int enosys(void); }
844*43a90889SApple OSS Distributions#endif // CONFIG_COALITIONS
845*43a90889SApple OSS Distributions533     AUE_NULL        ALL     { int log_data(unsigned int tag, unsigned int flags, void *buffer, unsigned int size) NO_SYSCALL_STUB; }
846*43a90889SApple OSS Distributions534 AUE_NULL	ALL	{ uint64_t memorystatus_available_memory(void) NO_SYSCALL_STUB; }
847*43a90889SApple OSS Distributions535 AUE_NULL	ALL	{ int objc_bp_assist_cfg_np(uint64_t adr, uint64_t ctl); }
848*43a90889SApple OSS Distributions536	AUE_NULL	ALL	{ int shared_region_map_and_slide_2_np(uint32_t files_count, const struct shared_file_np *files, uint32_t mappings_count, const shared_file_mapping_slide_np_ut *mappings_u) NO_SYSCALL_STUB; }
849*43a90889SApple OSS Distributions537	AUE_NULL	ALL { int pivot_root(const char *new_rootfs_path_before, const char *old_rootfs_path_after); }
850*43a90889SApple OSS Distributions538 AUE_TASKINSPECTFORPID	ALL { int task_inspect_for_pid(mach_port_name_t target_tport, int pid, mach_port_name_t *t); }
851*43a90889SApple OSS Distributions539 AUE_TASKREADFORPID	ALL { int task_read_for_pid(mach_port_name_t target_tport, int pid, mach_port_name_t *t); }
852*43a90889SApple OSS Distributions540	AUE_PREADV	ALL	{ user_ssize_t sys_preadv(int fd, struct iovec *iovp, int iovcnt, off_t offset); }
853*43a90889SApple OSS Distributions541	AUE_PWRITEV	ALL	{ user_ssize_t sys_pwritev(int fd, struct iovec *iovp, int iovcnt, off_t offset); }
854*43a90889SApple OSS Distributions542	AUE_PREADV	ALL	{ user_ssize_t sys_preadv_nocancel(int fd, struct iovec *iovp, int iovcnt, off_t offset) NO_SYSCALL_STUB; }
855*43a90889SApple OSS Distributions543	AUE_PWRITEV	ALL	{ user_ssize_t sys_pwritev_nocancel(int fd, struct iovec *iovp, int iovcnt, off_t offset) NO_SYSCALL_STUB; }
856*43a90889SApple OSS Distributions544	AUE_NULL        ALL     { int sys_ulock_wait2(uint32_t operation, void *addr, uint64_t value, uint64_t timeout, uint64_t value2) NO_SYSCALL_STUB; }
857*43a90889SApple OSS Distributions545	AUE_PROCINFO	ALL	{ int proc_info_extended_id(int32_t callnum, int32_t pid, uint32_t flavor, uint32_t flags, uint64_t ext_id, uint64_t arg, user_addr_t buffer, int32_t buffersize) NO_SYSCALL_STUB; }
858*43a90889SApple OSS Distributions#if SOCKETS
859*43a90889SApple OSS Distributions546     AUE_TRACKERACTION       ALL     { int tracker_action(int action, char *buffer, size_t buffer_size); }
860*43a90889SApple OSS Distributions#else
861*43a90889SApple OSS Distributions546	AUE_NULL	ALL	{ int nosys(void); }
862*43a90889SApple OSS Distributions#endif /* SOCKETS */
863*43a90889SApple OSS Distributions547 AUE_DEBUG_SYSCALL_REJECT	ALL { int debug_syscall_reject(uint64_t packed_selectors) NO_SYSCALL_STUB; }
864*43a90889SApple OSS Distributions548 AUE_DEBUG_SYSCALL_REJECT_CONFIG	ALL { int sys_debug_syscall_reject_config(uint64_t packed_selectors1, uint64_t packed_selectors2, uint64_t flags) NO_SYSCALL_STUB; }
865*43a90889SApple OSS Distributions549 AUE_NULL	ALL { int graftdmg(int dmg_fd, const char *mountdir, uint32_t graft_type, graftdmg_args_un *gda); }
866*43a90889SApple OSS Distributions550	AUE_NULL	ALL	{ int map_with_linking_np(void *regions, uint32_t region_count, void *link_info, uint32_t link_info_size) NO_SYSCALL_STUB; }
867*43a90889SApple OSS Distributions551	AUE_FREADLINK	ALL	{ int freadlink(int fd, user_addr_t buf, user_size_t bufsize); }
868*43a90889SApple OSS Distributions552 AUE_NULL    ALL { int sys_record_system_event(uint32_t type, uint32_t subsystem, const char *event, const char *payload) NO_SYSCALL_STUB; }
869*43a90889SApple OSS Distributions553 AUE_MKFIFOAT	ALL	{ int mkfifoat(int fd, user_addr_t path, int mode); }
870*43a90889SApple OSS Distributions554 AUE_MKNODAT	ALL	{ int mknodat(int fd, user_addr_t path, int mode, int dev); }
871*43a90889SApple OSS Distributions555 AUE_NULL	ALL { int ungraftdmg(const char *mountdir, uint64_t flags); }
872*43a90889SApple OSS Distributions#if CONFIG_COALITIONS
873*43a90889SApple OSS Distributions556	AUE_NULL	ALL	{ int sys_coalition_policy_set(uint64_t cid, uint32_t flavor, uint32_t value); }
874*43a90889SApple OSS Distributions557	AUE_NULL	ALL	{ int sys_coalition_policy_get(uint64_t cid, uint32_t flavor); }
875*43a90889SApple OSS Distributions#else
876*43a90889SApple OSS Distributions556	AUE_NULL	ALL	{ int enosys(void); }
877*43a90889SApple OSS Distributions557	AUE_NULL	ALL	{ int enosys(void); }
878*43a90889SApple OSS Distributions#endif /* CONFIG_COALITIONS */
879