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