]> git.saurik.com Git - apple/xnu.git/blame - bsd/kern/syscalls.master
xnu-6153.121.1.tar.gz
[apple/xnu.git] / bsd / kern / syscalls.master
CommitLineData
91447636
A
1; derived from: FreeBSD @(#)syscalls.master 8.2 (Berkeley) 1/13/94
2;
3; System call name/number master file.
4; This is file processed by .../xnu/bsd/kern/makesyscalls.sh and creates:
5; .../xnu/bsd/kern/init_sysent.c
6; .../xnu/bsd/kern/syscalls.c
7; .../xnu/bsd/sys/syscall.h
8; .../xnu/bsd/sys/sysproto.h
b0d623f7 9; .../xnu/bsd/security/audit_syscalls.c
91447636 10
b0d623f7 11; Columns -> | Number Audit Files | { Name and Args } | { Comments }
91447636 12; Number: system call number, must be in order
b0d623f7
A
13; Audit: the audit event associated with the system call
14; A value of AUE_NULL means no auditing, but it also means that
15; there is no audit event for the call at this time. For the
16; case where the event exists, but we don't want auditing, the
17; event should be #defined to AUE_NULL in audit_kevents.h.
91447636
A
18; Files: with files to generate - "ALL" or any combo of:
19; "T" for syscall table (in init_sysent.c)
20; "N" for syscall names (in syscalls.c)
21; "H" for syscall headers (in syscall.h)
22; "P" for syscall prototypes (in sysproto.h)
2d21ac55
A
23; Name and Args: function prototype, optionally followed by
24; NO_SYSCALL_STUB (which mean no system call stub will
25; be generated in libSystem) and ending with a semicolon.
26; (Note: functions prefixed by double-underbar are
27; automatically given the NO_SYSCALL_STUB attribute.)
91447636
A
28; Comments: additional comments about the sys call copied to output files
29
30; #ifdef's, #include's, #if's etc. are copied to all output files.
2d21ac55
A
31; N.B.: makesyscalls.sh and createsyscalls.pl must be updated to account
32; for any new argument types.
91447636
A
33
34#include <sys/appleapiopts.h>
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/types.h>
38#include <sys/sysent.h>
39#include <sys/sysproto.h>
ea3f0419 40#include <nfs/nfs_conf.h>
91447636 41
b0d623f7 420 AUE_NULL ALL { int nosys(void); } { indirect syscall }
6d2010ae
A
431 AUE_EXIT ALL { void exit(int rval) NO_SYSCALL_STUB; }
442 AUE_FORK ALL { int fork(void) NO_SYSCALL_STUB; }
b0d623f7
A
453 AUE_NULL ALL { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
464 AUE_NULL ALL { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
6d2010ae 475 AUE_OPEN_RWTC ALL { int open(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
b0d623f7 486 AUE_CLOSE ALL { int close(int fd); }
6d2010ae 497 AUE_WAIT4 ALL { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
fe8ab488 508 AUE_NULL ALL { int enosys(void); } { old creat }
b0d623f7 519 AUE_LINK ALL { int link(user_addr_t path, user_addr_t link); }
6d2010ae 5210 AUE_UNLINK ALL { int unlink(user_addr_t path) NO_SYSCALL_STUB; }
fe8ab488 5311 AUE_NULL ALL { int enosys(void); } { old execv }
b0d623f7
A
5412 AUE_CHDIR ALL { int chdir(user_addr_t path); }
5513 AUE_FCHDIR ALL { int fchdir(int fd); }
5614 AUE_MKNOD ALL { int mknod(user_addr_t path, int mode, int dev); }
6d2010ae 5715 AUE_CHMOD ALL { int chmod(user_addr_t path, int mode) NO_SYSCALL_STUB; }
b0d623f7 5816 AUE_CHOWN ALL { int chown(user_addr_t path, int uid, int gid); }
fe8ab488 5917 AUE_NULL ALL { int enosys(void); } { old break }
b0d623f7 6018 AUE_GETFSSTAT ALL { int getfsstat(user_addr_t buf, int bufsize, int flags); }
fe8ab488 6119 AUE_NULL ALL { int enosys(void); } { old lseek }
b0d623f7 6220 AUE_GETPID ALL { int getpid(void); }
fe8ab488
A
6321 AUE_NULL ALL { int enosys(void); } { old mount }
6422 AUE_NULL ALL { int enosys(void); } { old umount }
b0d623f7
A
6523 AUE_SETUID ALL { int setuid(uid_t uid); }
6624 AUE_GETUID ALL { int getuid(void); }
6725 AUE_GETEUID ALL { int geteuid(void); }
6826 AUE_PTRACE ALL { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
2d21ac55 69#if SOCKETS
6d2010ae
A
7027 AUE_RECVMSG ALL { int recvmsg(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
7128 AUE_SENDMSG ALL { int sendmsg(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
7229 AUE_RECVFROM ALL { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
7330 AUE_ACCEPT ALL { int accept(int s, caddr_t name, socklen_t *anamelen) NO_SYSCALL_STUB; }
7431 AUE_GETPEERNAME ALL { int getpeername(int fdes, caddr_t asa, socklen_t *alen) NO_SYSCALL_STUB; }
7532 AUE_GETSOCKNAME ALL { int getsockname(int fdes, caddr_t asa, socklen_t *alen) NO_SYSCALL_STUB; }
2d21ac55 76#else
b0d623f7
A
7727 AUE_NULL ALL { int nosys(void); }
7828 AUE_NULL ALL { int nosys(void); }
7929 AUE_NULL ALL { int nosys(void); }
8030 AUE_NULL ALL { int nosys(void); }
8131 AUE_NULL ALL { int nosys(void); }
8232 AUE_NULL ALL { int nosys(void); }
2d21ac55 83#endif /* SOCKETS */
b0d623f7
A
8433 AUE_ACCESS ALL { int access(user_addr_t path, int flags); }
8534 AUE_CHFLAGS ALL { int chflags(char *path, int flags); }
8635 AUE_FCHFLAGS ALL { int fchflags(int fd, int flags); }
8736 AUE_SYNC ALL { int sync(void); }
6d2010ae 8837 AUE_KILL ALL { int kill(int pid, int signum, int posix) NO_SYSCALL_STUB; }
b0d623f7
A
8938 AUE_NULL ALL { int nosys(void); } { old stat }
9039 AUE_GETPPID ALL { int getppid(void); }
9140 AUE_NULL ALL { int nosys(void); } { old lstat }
9241 AUE_DUP ALL { int dup(u_int fd); }
9342 AUE_PIPE ALL { int pipe(void); }
9443 AUE_GETEGID ALL { int getegid(void); }
316670eb 9544 AUE_NULL ALL { int nosys(void); } { old profil }
b0d623f7 9645 AUE_NULL ALL { int nosys(void); } { old ktrace }
6d2010ae 9746 AUE_SIGACTION ALL { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa) NO_SYSCALL_STUB; }
b0d623f7
A
9847 AUE_GETGID ALL { int getgid(void); }
9948 AUE_SIGPROCMASK ALL { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
6d2010ae
A
10049 AUE_GETLOGIN ALL { int getlogin(char *namebuf, u_int namelen) NO_SYSCALL_STUB; }
10150 AUE_SETLOGIN ALL { int setlogin(char *namebuf) NO_SYSCALL_STUB; }
b0d623f7
A
10251 AUE_ACCT ALL { int acct(char *path); }
10352 AUE_SIGPENDING ALL { int sigpending(struct sigvec *osv); }
6d2010ae
A
10453 AUE_SIGALTSTACK ALL { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss) NO_SYSCALL_STUB ; }
10554 AUE_IOCTL ALL { int ioctl(int fd, u_long com, caddr_t data) NO_SYSCALL_STUB; }
d9a64523 10655 AUE_REBOOT ALL { int reboot(int opt, char *msg) NO_SYSCALL_STUB; }
b0d623f7
A
10756 AUE_REVOKE ALL { int revoke(char *path); }
10857 AUE_SYMLINK ALL { int symlink(char *path, char *link); }
10958 AUE_READLINK ALL { int readlink(char *path, char *buf, int count); }
11059 AUE_EXECVE ALL { int execve(char *fname, char **argp, char **envp); }
11160 AUE_UMASK ALL { int umask(int newmask); }
11261 AUE_CHROOT ALL { int chroot(user_addr_t path); }
11362 AUE_NULL ALL { int nosys(void); } { old fstat }
39037602 11463 AUE_NULL ALL { int nosys(void); } { used internally and reserved }
b0d623f7 11564 AUE_NULL ALL { int nosys(void); } { old getpagesize }
6d2010ae 11665 AUE_MSYNC ALL { int msync(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; }
b0d623f7
A
11766 AUE_VFORK ALL { int vfork(void); }
11867 AUE_NULL ALL { int nosys(void); } { old vread }
11968 AUE_NULL ALL { int nosys(void); } { old vwrite }
12069 AUE_NULL ALL { int nosys(void); } { old sbrk }
12170 AUE_NULL ALL { int nosys(void); } { old sstk }
12271 AUE_NULL ALL { int nosys(void); } { old mmap }
12372 AUE_NULL ALL { int nosys(void); } { old vadvise }
6d2010ae
A
12473 AUE_MUNMAP ALL { int munmap(caddr_t addr, size_t len) NO_SYSCALL_STUB; }
12574 AUE_MPROTECT ALL { int mprotect(caddr_t addr, size_t len, int prot) NO_SYSCALL_STUB; }
b0d623f7
A
12675 AUE_MADVISE ALL { int madvise(caddr_t addr, size_t len, int behav); }
12776 AUE_NULL ALL { int nosys(void); } { old vhangup }
12877 AUE_NULL ALL { int nosys(void); } { old vlimit }
12978 AUE_MINCORE ALL { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
13079 AUE_GETGROUPS ALL { int getgroups(u_int gidsetsize, gid_t *gidset); }
13180 AUE_SETGROUPS ALL { int setgroups(u_int gidsetsize, gid_t *gidset); }
13281 AUE_GETPGRP ALL { int getpgrp(void); }
13382 AUE_SETPGRP ALL { int setpgid(int pid, int pgid); }
13483 AUE_SETITIMER ALL { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
13584 AUE_NULL ALL { int nosys(void); } { old wait }
13685 AUE_SWAPON ALL { int swapon(void); }
13786 AUE_GETITIMER ALL { int getitimer(u_int which, struct itimerval *itv); }
13887 AUE_NULL ALL { int nosys(void); } { old gethostname }
13988 AUE_NULL ALL { int nosys(void); } { old sethostname }
14089 AUE_GETDTABLESIZE ALL { int getdtablesize(void); }
14190 AUE_DUP2 ALL { int dup2(u_int from, u_int to); }
14291 AUE_NULL ALL { int nosys(void); } { old getdopt }
6d2010ae
A
14392 AUE_FCNTL ALL { int fcntl(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
14493 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; }
b0d623f7
A
14594 AUE_NULL ALL { int nosys(void); } { old setdopt }
14695 AUE_FSYNC ALL { int fsync(int fd); }
fe8ab488 14796 AUE_SETPRIORITY ALL { int setpriority(int which, id_t who, int prio) NO_SYSCALL_STUB; }
2d21ac55 148#if SOCKETS
b0d623f7 14997 AUE_SOCKET ALL { int socket(int domain, int type, int protocol); }
6d2010ae 15098 AUE_CONNECT ALL { int connect(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
2d21ac55 151#else
b0d623f7
A
15297 AUE_NULL ALL { int nosys(void); }
15398 AUE_NULL ALL { int nosys(void); }
2d21ac55 154#endif /* SOCKETS */
b0d623f7
A
15599 AUE_NULL ALL { int nosys(void); } { old accept }
156100 AUE_GETPRIORITY ALL { int getpriority(int which, id_t who); }
157101 AUE_NULL ALL { int nosys(void); } { old send }
158102 AUE_NULL ALL { int nosys(void); } { old recv }
159103 AUE_NULL ALL { int nosys(void); } { old sigreturn }
2d21ac55 160#if SOCKETS
6d2010ae 161104 AUE_BIND ALL { int bind(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
b0d623f7 162105 AUE_SETSOCKOPT ALL { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
6d2010ae 163106 AUE_LISTEN ALL { int listen(int s, int backlog) NO_SYSCALL_STUB; }
2d21ac55 164#else
b0d623f7
A
165104 AUE_NULL ALL { int nosys(void); }
166105 AUE_NULL ALL { int nosys(void); }
167106 AUE_NULL ALL { int nosys(void); }
2d21ac55 168#endif /* SOCKETS */
b0d623f7
A
169107 AUE_NULL ALL { int nosys(void); } { old vtimes }
170108 AUE_NULL ALL { int nosys(void); } { old sigvec }
171109 AUE_NULL ALL { int nosys(void); } { old sigblock }
172110 AUE_NULL ALL { int nosys(void); } { old sigsetmask }
6d2010ae 173111 AUE_NULL ALL { int sigsuspend(sigset_t mask) NO_SYSCALL_STUB; }
b0d623f7 174112 AUE_NULL ALL { int nosys(void); } { old sigstack }
2d21ac55 175#if SOCKETS
b0d623f7
A
176113 AUE_NULL ALL { int nosys(void); } { old recvmsg }
177114 AUE_NULL ALL { int nosys(void); } { old sendmsg }
2d21ac55 178#else
b0d623f7
A
179113 AUE_NULL ALL { int nosys(void); }
180114 AUE_NULL ALL { int nosys(void); }
2d21ac55 181#endif /* SOCKETS */
b0d623f7 182115 AUE_NULL ALL { int nosys(void); } { old vtrace }
39037602 183116 AUE_GETTIMEOFDAY ALL { int gettimeofday(struct timeval *tp, struct timezone *tzp, uint64_t *mach_absolute_time) NO_SYSCALL_STUB; }
b0d623f7 184117 AUE_GETRUSAGE ALL { int getrusage(int who, struct rusage *rusage); }
2d21ac55 185#if SOCKETS
b0d623f7 186118 AUE_GETSOCKOPT ALL { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
2d21ac55 187#else
b0d623f7 188118 AUE_NULL ALL { int nosys(void); }
2d21ac55 189#endif /* SOCKETS */
b0d623f7
A
190119 AUE_NULL ALL { int nosys(void); } { old resuba }
191120 AUE_READV ALL { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
192121 AUE_WRITEV ALL { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
6d2010ae 193122 AUE_SETTIMEOFDAY ALL { int settimeofday(struct timeval *tv, struct timezone *tzp) NO_SYSCALL_STUB; }
b0d623f7 194123 AUE_FCHOWN ALL { int fchown(int fd, int uid, int gid); }
6d2010ae 195124 AUE_FCHMOD ALL { int fchmod(int fd, int mode) NO_SYSCALL_STUB; }
b0d623f7 196125 AUE_NULL ALL { int nosys(void); } { old recvfrom }
6d2010ae
A
197126 AUE_SETREUID ALL { int setreuid(uid_t ruid, uid_t euid) NO_SYSCALL_STUB; }
198127 AUE_SETREGID ALL { int setregid(gid_t rgid, gid_t egid) NO_SYSCALL_STUB; }
199128 AUE_RENAME ALL { int rename(char *from, char *to) NO_SYSCALL_STUB; }
b0d623f7
A
200129 AUE_NULL ALL { int nosys(void); } { old truncate }
201130 AUE_NULL ALL { int nosys(void); } { old ftruncate }
202131 AUE_FLOCK ALL { int flock(int fd, int how); }
203132 AUE_MKFIFO ALL { int mkfifo(user_addr_t path, int mode); }
2d21ac55 204#if SOCKETS
6d2010ae 205133 AUE_SENDTO ALL { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; }
b0d623f7 206134 AUE_SHUTDOWN ALL { int shutdown(int s, int how); }
6d2010ae 207135 AUE_SOCKETPAIR ALL { int socketpair(int domain, int type, int protocol, int *rsv) NO_SYSCALL_STUB; }
2d21ac55 208#else
b0d623f7
A
209133 AUE_NULL ALL { int nosys(void); }
210134 AUE_NULL ALL { int nosys(void); }
211135 AUE_NULL ALL { int nosys(void); }
2d21ac55 212#endif /* SOCKETS */
b0d623f7 213136 AUE_MKDIR ALL { int mkdir(user_addr_t path, int mode); }
6d2010ae 214137 AUE_RMDIR ALL { int rmdir(char *path) NO_SYSCALL_STUB; }
b0d623f7
A
215138 AUE_UTIMES ALL { int utimes(char *path, struct timeval *tptr); }
216139 AUE_FUTIMES ALL { int futimes(int fd, struct timeval *tptr); }
217140 AUE_ADJTIME ALL { int adjtime(struct timeval *delta, struct timeval *olddelta); }
218141 AUE_NULL ALL { int nosys(void); } { old getpeername }
cb323159 219142 AUE_SYSCTL ALL { int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp) NO_SYSCALL_STUB; }
b0d623f7
A
220143 AUE_NULL ALL { int nosys(void); } { old sethostid }
221144 AUE_NULL ALL { int nosys(void); } { old getrlimit }
222145 AUE_NULL ALL { int nosys(void); } { old setrlimit }
223146 AUE_NULL ALL { int nosys(void); } { old killpg }
224147 AUE_SETSID ALL { int setsid(void); }
225148 AUE_NULL ALL { int nosys(void); } { old setquota }
226149 AUE_NULL ALL { int nosys(void); } { old qquota }
227150 AUE_NULL ALL { int nosys(void); } { old getsockname }
228151 AUE_GETPGID ALL { int getpgid(pid_t pid); }
229152 AUE_SETPRIVEXEC ALL { int setprivexec(int flag); }
230153 AUE_PREAD ALL { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
231154 AUE_PWRITE ALL { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
91447636 232
ea3f0419 233#if NFSSERVER /* XXX */
b0d623f7 234155 AUE_NFS_SVC ALL { int nfssvc(int flag, caddr_t argp); }
91447636 235#else
b0d623f7 236155 AUE_NULL ALL { int nosys(void); }
91447636
A
237#endif
238
b0d623f7
A
239156 AUE_NULL ALL { int nosys(void); } { old getdirentries }
240157 AUE_STATFS ALL { int statfs(char *path, struct statfs *buf); }
241158 AUE_FSTATFS ALL { int fstatfs(int fd, struct statfs *buf); }
242159 AUE_UNMOUNT ALL { int unmount(user_addr_t path, int flags); }
243160 AUE_NULL ALL { int nosys(void); } { old async_daemon }
91447636 244
ea3f0419 245#if NFSSERVER /* XXX */
b0d623f7 246161 AUE_NFS_GETFH ALL { int getfh(char *fname, fhandle_t *fhp); }
91447636 247#else
b0d623f7 248161 AUE_NULL ALL { int nosys(void); }
91447636
A
249#endif
250
b0d623f7
A
251162 AUE_NULL ALL { int nosys(void); } { old getdomainname }
252163 AUE_NULL ALL { int nosys(void); } { old setdomainname }
253164 AUE_NULL ALL { int nosys(void); }
254165 AUE_QUOTACTL ALL { int quotactl(const char *path, int cmd, int uid, caddr_t arg); }
255166 AUE_NULL ALL { int nosys(void); } { old exportfs }
256167 AUE_MOUNT ALL { int mount(char *type, char *path, int flags, caddr_t data); }
257168 AUE_NULL ALL { int nosys(void); } { old ustat }
258169 AUE_CSOPS ALL { int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); }
316670eb 259170 AUE_CSOPS ALL { int csops_audittoken(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize, user_addr_t uaudittoken); }
b0d623f7
A
260171 AUE_NULL ALL { int nosys(void); } { old wait3 }
261172 AUE_NULL ALL { int nosys(void); } { old rpause }
262173 AUE_WAITID ALL { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
263174 AUE_NULL ALL { int nosys(void); } { old getdents }
264175 AUE_NULL ALL { int nosys(void); } { old gc_control }
316670eb 265176 AUE_NULL ALL { int nosys(void); } { old add_profil }
5ba3f43e
A
266177 AUE_NULL ALL { int kdebug_typefilter(void** addr, size_t* size) NO_SYSCALL_STUB; }
267178 AUE_NULL ALL { uint64_t kdebug_trace_string(uint32_t debugid, uint64_t str_id, const char *str) NO_SYSCALL_STUB; }
268179 AUE_NULL ALL { int kdebug_trace64(uint32_t code, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4) NO_SYSCALL_STUB; }
269180 AUE_NULL ALL { int kdebug_trace(uint32_t code, u_long arg1, u_long arg2, u_long arg3, u_long arg4) NO_SYSCALL_STUB; }
b0d623f7
A
270181 AUE_SETGID ALL { int setgid(gid_t gid); }
271182 AUE_SETEGID ALL { int setegid(gid_t egid); }
272183 AUE_SETEUID ALL { int seteuid(uid_t euid); }
d9a64523 273184 AUE_SIGRETURN ALL { int sigreturn(struct ucontext *uctx, int infostyle, user_addr_t token) NO_SYSCALL_STUB; }
39037602 274185 AUE_NULL ALL { int enosys(void); } { old chud }
5ba3f43e 275186 AUE_NULL ALL { int thread_selfcounts(int type, user_addr_t buf, user_size_t nbytes); }
b0d623f7
A
276187 AUE_FDATASYNC ALL { int fdatasync(int fd); }
277188 AUE_STAT ALL { int stat(user_addr_t path, user_addr_t ub); }
278189 AUE_FSTAT ALL { int fstat(int fd, user_addr_t ub); }
279190 AUE_LSTAT ALL { int lstat(user_addr_t path, user_addr_t ub); }
280191 AUE_PATHCONF ALL { int pathconf(char *path, int name); }
281192 AUE_FPATHCONF ALL { int fpathconf(int fd, int name); }
39037602 282193 AUE_NULL ALL { int nosys(void); } { old getfsstat }
6d2010ae
A
283194 AUE_GETRLIMIT ALL { int getrlimit(u_int which, struct rlimit *rlp) NO_SYSCALL_STUB; }
284195 AUE_SETRLIMIT ALL { int setrlimit(u_int which, struct rlimit *rlp) NO_SYSCALL_STUB; }
b0d623f7 285196 AUE_GETDIRENTRIES ALL { int getdirentries(int fd, char *buf, u_int count, long *basep); }
6d2010ae 286197 AUE_MMAP ALL { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos) NO_SYSCALL_STUB; }
39037602 287198 AUE_NULL ALL { int nosys(void); } { old __syscall }
b0d623f7
A
288199 AUE_LSEEK ALL { off_t lseek(int fd, off_t offset, int whence); }
289200 AUE_TRUNCATE ALL { int truncate(char *path, off_t length); }
290201 AUE_FTRUNCATE ALL { int ftruncate(int fd, off_t length); }
fe8ab488 291202 AUE_SYSCTL ALL { int sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen) NO_SYSCALL_STUB; }
b0d623f7
A
292203 AUE_MLOCK ALL { int mlock(caddr_t addr, size_t len); }
293204 AUE_MUNLOCK ALL { int munlock(caddr_t addr, size_t len); }
294205 AUE_UNDELETE ALL { int undelete(user_addr_t path); }
91447636 295
39236c6e
A
296206 AUE_NULL ALL { int nosys(void); } { old ATsocket }
297207 AUE_NULL ALL { int nosys(void); } { old ATgetmsg }
298208 AUE_NULL ALL { int nosys(void); } { old ATputmsg }
299209 AUE_NULL ALL { int nosys(void); } { old ATsndreq }
300210 AUE_NULL ALL { int nosys(void); } { old ATsndrsp }
301211 AUE_NULL ALL { int nosys(void); } { old ATgetreq }
302212 AUE_NULL ALL { int nosys(void); } { old ATgetrsp }
b0d623f7 303213 AUE_NULL ALL { int nosys(void); } { Reserved for AppleTalk }
91447636 304
b0d623f7
A
305214 AUE_NULL ALL { int nosys(void); }
306215 AUE_NULL ALL { int nosys(void); }
91447636
A
307
308; System Calls 216 - 230 are reserved for calls to support HFS/HFS Plus
309; file system semantics. Currently, we only use 215-227. The rest is
310; for future expansion in anticipation of new MacOS APIs for HFS Plus.
2d21ac55 311; These calls are not conditionalized because while they are specific
91447636
A
312; to HFS semantics, they are not specific to the HFS filesystem.
313; We expect all filesystems to recognize the call and report that it is
314; not supported or to actually implement it.
316670eb
A
315
316; 216-> 219 used to be mkcomplex and {f,l}statv variants. They are gone now.
317216 AUE_NULL ALL { int open_dprotected_np(user_addr_t path, int flags, int class, int dpflags, int mode) NO_SYSCALL_STUB; }
cb323159 318217 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); }
39037602
A
319218 AUE_NULL ALL { int nosys(void); } { old lstatv }
320219 AUE_NULL ALL { int nosys(void); } { old fstatv }
6d2010ae
A
321220 AUE_GETATTRLIST ALL { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options) NO_SYSCALL_STUB; }
322221 AUE_SETATTRLIST ALL { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options) NO_SYSCALL_STUB; }
b0d623f7
A
323222 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); }
324223 AUE_EXCHANGEDATA ALL { int exchangedata(const char *path1, const char *path2, u_long options); }
39037602 325224 AUE_NULL ALL { int nosys(void); } { old checkuseraccess or fsgetpath }
b0d623f7
A
326225 AUE_SEARCHFS ALL { int searchfs(const char *path, struct fssearchblock *searchblock, uint32_t *nummatches, uint32_t scriptcode, uint32_t options, struct searchstate *state); }
327226 AUE_DELETE ALL { int delete(user_addr_t path) NO_SYSCALL_STUB; } { private delete (Carbon semantics) }
328227 AUE_COPYFILE ALL { int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; }
329228 AUE_FGETATTRLIST ALL { int fgetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
330229 AUE_FSETATTRLIST ALL { int fsetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
331230 AUE_POLL ALL { int poll(struct pollfd *fds, u_int nfds, int timeout); }
332231 AUE_WATCHEVENT ALL { int watchevent(struct eventreq *u_req, int u_eventmask); }
333232 AUE_WAITEVENT ALL { int waitevent(struct eventreq *u_req, struct timeval *tv); }
334233 AUE_MODWATCH ALL { int modwatch(struct eventreq *u_req, int u_eventmask); }
335234 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); }
336235 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); }
337236 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); }
338237 AUE_FSETXATTR ALL { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
339238 AUE_REMOVEXATTR ALL { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
340239 AUE_FREMOVEXATTR ALL { int fremovexattr(int fd, user_addr_t attrname, int options); }
341240 AUE_LISTXATTR ALL { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
342241 AUE_FLISTXATTR ALL { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
343242 AUE_FSCTL ALL { int fsctl(const char *path, u_long cmd, caddr_t data, u_int options); }
6d2010ae
A
344243 AUE_INITGROUPS ALL { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid) NO_SYSCALL_STUB; }
345244 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; }
b0d623f7
A
346245 AUE_FFSCTL ALL { int ffsctl(int fd, u_long cmd, caddr_t data, u_int options); }
347246 AUE_NULL ALL { int nosys(void); }
91447636 348
ea3f0419 349#if NFSCLIENT /* XXX */
b0d623f7 350247 AUE_NULL ALL { int nfsclnt(int flag, caddr_t argp); }
91447636 351#else
b0d623f7 352247 AUE_NULL ALL { int nosys(void); }
2d21ac55 353#endif
ea3f0419 354#if NFSSERVER /* XXX */
b0d623f7 355248 AUE_FHOPEN ALL { int fhopen(const struct fhandle *u_fhp, int flags); }
2d21ac55 356#else
b0d623f7 357248 AUE_NULL ALL { int nosys(void); }
2d21ac55 358#endif
91447636 359
b0d623f7
A
360249 AUE_NULL ALL { int nosys(void); }
361250 AUE_MINHERIT ALL { int minherit(void *addr, size_t len, int inherit); }
2d21ac55 362#if SYSV_SEM
39236c6e 363251 AUE_SEMSYS ALL { int semsys(u_int which, int a2, int a3, int a4, int a5) NO_SYSCALL_STUB; }
2d21ac55 364#else
b0d623f7 365251 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
366#endif
367#if SYSV_MSG
39236c6e 368252 AUE_MSGSYS ALL { int msgsys(u_int which, int a2, int a3, int a4, int a5) NO_SYSCALL_STUB; }
2d21ac55 369#else
b0d623f7 370252 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
371#endif
372#if SYSV_SHM
39236c6e 373253 AUE_SHMSYS ALL { int shmsys(u_int which, int a2, int a3, int a4) NO_SYSCALL_STUB; }
2d21ac55 374#else
b0d623f7 375253 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
376#endif
377#if SYSV_SEM
6d2010ae 378254 AUE_SEMCTL ALL { int semctl(int semid, int semnum, int cmd, semun_t arg) NO_SYSCALL_STUB; }
b0d623f7
A
379255 AUE_SEMGET ALL { int semget(key_t key, int nsems, int semflg); }
380256 AUE_SEMOP ALL { int semop(int semid, struct sembuf *sops, int nsops); }
39037602 381257 AUE_NULL ALL { int nosys(void); } { old semconfig }
2d21ac55 382#else
b0d623f7
A
383254 AUE_NULL ALL { int nosys(void); }
384255 AUE_NULL ALL { int nosys(void); }
385256 AUE_NULL ALL { int nosys(void); }
386257 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
387#endif
388#if SYSV_MSG
6d2010ae 389258 AUE_MSGCTL ALL { int msgctl(int msqid, int cmd, struct msqid_ds *buf) NO_SYSCALL_STUB; }
b0d623f7
A
390259 AUE_MSGGET ALL { int msgget(key_t key, int msgflg); }
391260 AUE_MSGSND ALL { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
392261 AUE_MSGRCV ALL { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
2d21ac55 393#else
b0d623f7
A
394258 AUE_NULL ALL { int nosys(void); }
395259 AUE_NULL ALL { int nosys(void); }
396260 AUE_NULL ALL { int nosys(void); }
397261 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
398#endif
399#if SYSV_SHM
b0d623f7 400262 AUE_SHMAT ALL { user_addr_t shmat(int shmid, void *shmaddr, int shmflg); }
6d2010ae 401263 AUE_SHMCTL ALL { int shmctl(int shmid, int cmd, struct shmid_ds *buf) NO_SYSCALL_STUB; }
b0d623f7
A
402264 AUE_SHMDT ALL { int shmdt(void *shmaddr); }
403265 AUE_SHMGET ALL { int shmget(key_t key, size_t size, int shmflg); }
2d21ac55 404#else
b0d623f7
A
405262 AUE_NULL ALL { int nosys(void); }
406263 AUE_NULL ALL { int nosys(void); }
407264 AUE_NULL ALL { int nosys(void); }
408265 AUE_NULL ALL { int nosys(void); }
2d21ac55 409#endif
39236c6e 410266 AUE_SHMOPEN ALL { int shm_open(const char *name, int oflag, int mode) NO_SYSCALL_STUB; }
b0d623f7 411267 AUE_SHMUNLINK ALL { int shm_unlink(const char *name); }
316670eb 412268 AUE_SEMOPEN ALL { user_addr_t sem_open(const char *name, int oflag, int mode, int value) NO_SYSCALL_STUB; }
b0d623f7
A
413269 AUE_SEMCLOSE ALL { int sem_close(sem_t *sem); }
414270 AUE_SEMUNLINK ALL { int sem_unlink(const char *name); }
415271 AUE_SEMWAIT ALL { int sem_wait(sem_t *sem); }
416272 AUE_SEMTRYWAIT ALL { int sem_trywait(sem_t *sem); }
417273 AUE_SEMPOST ALL { int sem_post(sem_t *sem); }
cb323159 418274 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; }
fe8ab488
A
419275 AUE_NULL ALL { int enosys(void); } { old sem_init }
420276 AUE_NULL ALL { int enosys(void); } { old sem_destroy }
b0d623f7
A
421277 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; }
422278 AUE_UMASK_EXTENDED ALL { int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; }
423279 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; }
424280 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; }
425281 AUE_FSTAT_EXTENDED ALL { int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
426282 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; }
427283 AUE_FCHMOD_EXTENDED ALL { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
428284 AUE_ACCESS_EXTENDED ALL { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; }
429285 AUE_SETTID ALL { int settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; }
430286 AUE_GETTID ALL { int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; }
431287 AUE_SETSGROUPS ALL { int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
432288 AUE_GETSGROUPS ALL { int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
433289 AUE_SETWGROUPS ALL { int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
434290 AUE_GETWGROUPS ALL { int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
435291 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; }
436292 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; }
316670eb 437#if CONFIG_EXT_RESOLVER
b0d623f7 438293 AUE_IDENTITYSVC ALL { int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; }
316670eb
A
439#else
440293 AUE_NULL ALL { int nosys(void); }
441#endif
b0d623f7 442294 AUE_NULL ALL { int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; }
6d2010ae 443295 AUE_NULL ALL { int nosys(void); } { old shared_region_map_np }
b0d623f7
A
444296 AUE_NULL ALL { int vm_pressure_monitor(int wait_for_pressure, int nsecs_monitored, uint32_t *pages_reclaimed); }
445#if PSYNCH
446297 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; }
447298 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; }
448299 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; }
449300 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; }
450301 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; }
451302 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; }
6d2010ae
A
452303 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; }
453304 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; }
454305 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; }
b0d623f7
A
455306 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; }
456307 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; }
457308 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; }
458309 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; }
2d21ac55 459#else
b0d623f7
A
460297 AUE_NULL ALL { int nosys(void); } { old reset_shared_file }
461298 AUE_NULL ALL { int nosys(void); } { old new_system_shared_regions }
462299 AUE_NULL ALL { int enosys(void); } { old shared_region_map_file_np }
463300 AUE_NULL ALL { int enosys(void); } { old shared_region_make_private_np }
464301 AUE_NULL ALL { int nosys(void); }
465302 AUE_NULL ALL { int nosys(void); }
466303 AUE_NULL ALL { int nosys(void); }
467304 AUE_NULL ALL { int nosys(void); }
468305 AUE_NULL ALL { int nosys(void); }
469306 AUE_NULL ALL { int nosys(void); }
470307 AUE_NULL ALL { int nosys(void); }
471308 AUE_NULL ALL { int nosys(void); }
472309 AUE_NULL ALL { int nosys(void); }
2d21ac55 473#endif
b0d623f7
A
474310 AUE_GETSID ALL { int getsid(pid_t pid); }
475311 AUE_SETTIDWITHPID ALL { int settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; }
6d2010ae
A
476#if PSYNCH
477312 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; }
478#else
b0d623f7 479312 AUE_NULL ALL { int nosys(void); } { old __pthread_cond_timedwait }
6d2010ae 480#endif
b0d623f7
A
481313 AUE_NULL ALL { int aio_fsync(int op, user_addr_t aiocbp); }
482314 AUE_NULL ALL { user_ssize_t aio_return(user_addr_t aiocbp); }
483315 AUE_NULL ALL { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
484316 AUE_NULL ALL { int aio_cancel(int fd, user_addr_t aiocbp); }
485317 AUE_NULL ALL { int aio_error(user_addr_t aiocbp); }
486318 AUE_NULL ALL { int aio_read(user_addr_t aiocbp); }
487319 AUE_NULL ALL { int aio_write(user_addr_t aiocbp); }
488320 AUE_LIOLISTIO ALL { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
489321 AUE_NULL ALL { int nosys(void); } { old __pthread_cond_wait }
490322 AUE_IOPOLICYSYS ALL { int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; }
6d2010ae 491323 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; }
b0d623f7
A
492324 AUE_MLOCKALL ALL { int mlockall(int how); }
493325 AUE_MUNLOCKALL ALL { int munlockall(int how); }
494326 AUE_NULL ALL { int nosys(void); }
495327 AUE_ISSETUGID ALL { int issetugid(void); }
496328 AUE_PTHREADKILL ALL { int __pthread_kill(int thread_port, int sig); }
497329 AUE_PTHREADSIGMASK ALL { int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
498330 AUE_SIGWAIT ALL { int __sigwait(user_addr_t set, user_addr_t sig); }
499331 AUE_NULL ALL { int __disable_threadsignal(int value); }
500332 AUE_NULL ALL { int __pthread_markcancel(int thread_port); }
501333 AUE_NULL ALL { int __pthread_canceled(int action); }
502
503;#if OLD_SEMWAIT_SIGNAL
504;334 AUE_NULL ALL { int nosys(void); } { old __semwait_signal }
505;#else
506334 AUE_SEMWAITSIGNAL ALL { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, int64_t tv_sec, int32_t tv_nsec); }
507;#endif
2d21ac55 508
b0d623f7
A
509335 AUE_NULL ALL { int nosys(void); } { old utrace }
510336 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; }
511#if SENDFILE
512337 AUE_SENDFILE ALL { int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); }
513#else /* !SENDFILE */
514337 AUE_NULL ALL { int nosys(void); }
515#endif /* SENDFILE */
516338 AUE_STAT64 ALL { int stat64(user_addr_t path, user_addr_t ub); }
517339 AUE_FSTAT64 ALL { int fstat64(int fd, user_addr_t ub); }
518340 AUE_LSTAT64 ALL { int lstat64(user_addr_t path, user_addr_t ub); }
519341 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; }
520342 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; }
521343 AUE_FSTAT64_EXTENDED ALL { int fstat64_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; }
522344 AUE_GETDIRENTRIES64 ALL { user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; }
523345 AUE_STATFS64 ALL { int statfs64(char *path, struct statfs64 *buf); }
524346 AUE_FSTATFS64 ALL { int fstatfs64(int fd, struct statfs64 *buf); }
525347 AUE_GETFSSTAT64 ALL { int getfsstat64(user_addr_t buf, int bufsize, int flags); }
526348 AUE_NULL ALL { int __pthread_chdir(user_addr_t path); }
527349 AUE_NULL ALL { int __pthread_fchdir(int fd); }
528350 AUE_AUDIT ALL { int audit(void *record, int length); }
529351 AUE_AUDITON ALL { int auditon(int cmd, void *data, int length); }
530352 AUE_NULL ALL { int nosys(void); }
531353 AUE_GETAUID ALL { int getauid(au_id_t *auid); }
532354 AUE_SETAUID ALL { int setauid(au_id_t *auid); }
316670eb
A
533355 AUE_NULL ALL { int nosys(void); } { old getaudit }
534356 AUE_NULL ALL { int nosys(void); } { old setaudit }
b0d623f7
A
535357 AUE_GETAUDIT_ADDR ALL { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
536358 AUE_SETAUDIT_ADDR ALL { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
537359 AUE_AUDITCTL ALL { int auditctl(char *path); }
593a1d5f 538#if CONFIG_WORKQUEUE
b0d623f7
A
539360 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; }
540361 AUE_NULL ALL { int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, uint32_t sem) NO_SYSCALL_STUB; }
593a1d5f 541#else
b0d623f7
A
542360 AUE_NULL ALL { int nosys(void); }
543361 AUE_NULL ALL { int nosys(void); }
544#endif /* CONFIG_WORKQUEUE */
545362 AUE_KQUEUE ALL { int kqueue(void); }
546363 AUE_NULL ALL { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
6d2010ae 547364 AUE_LCHOWN ALL { int lchown(user_addr_t path, uid_t owner, gid_t group) NO_SYSCALL_STUB; }
39037602 548365 AUE_NULL ALL { int nosys(void); } { old stack_snapshot }
593a1d5f 549#if CONFIG_WORKQUEUE
fe8ab488 550366 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; }
b0d623f7
A
551367 AUE_WORKQOPEN ALL { int workq_open(void) NO_SYSCALL_STUB; }
552368 AUE_WORKQOPS ALL { int workq_kernreturn(int options, user_addr_t item, int affinity, int prio) NO_SYSCALL_STUB; }
553#else
554366 AUE_NULL ALL { int nosys(void); }
555367 AUE_NULL ALL { int nosys(void); }
556368 AUE_NULL ALL { int nosys(void); }
557#endif /* CONFIG_WORKQUEUE */
558369 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); }
559#if OLD_SEMWAIT_SIGNAL
560370 AUE_SEMWAITSIGNAL ALL { int __old_semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, const struct timespec *ts); }
561371 AUE_SEMWAITSIGNAL ALL { int __old_semwait_signal_nocancel(int cond_sem, int mutex_sem, int timeout, int relative, const struct timespec *ts) NO_SYSCALL_STUB; }
593a1d5f 562#else
b0d623f7
A
563370 AUE_NULL ALL { int nosys(void); } { old __semwait_signal }
564371 AUE_NULL ALL { int nosys(void); } { old __semwait_signal }
593a1d5f 565#endif
d1ecb069 566372 AUE_NULL ALL { uint64_t thread_selfid (void) NO_SYSCALL_STUB; }
316670eb 567373 AUE_LEDGER ALL { int ledger(int cmd, caddr_t arg1, caddr_t arg2, caddr_t arg3); }
3e170ce0 568374 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); }
5ba3f43e 569375 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); }
b0d623f7
A
570376 AUE_NULL ALL { int nosys(void); }
571377 AUE_NULL ALL { int nosys(void); }
572378 AUE_NULL ALL { int nosys(void); }
573379 AUE_NULL ALL { int nosys(void); }
574380 AUE_MAC_EXECVE ALL { int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); }
39236c6e 575#if CONFIG_MACF
b0d623f7
A
576381 AUE_MAC_SYSCALL ALL { int __mac_syscall(char *policy, int call, user_addr_t arg); }
577382 AUE_MAC_GET_FILE ALL { int __mac_get_file(char *path_p, struct mac *mac_p); }
578383 AUE_MAC_SET_FILE ALL { int __mac_set_file(char *path_p, struct mac *mac_p); }
579384 AUE_MAC_GET_LINK ALL { int __mac_get_link(char *path_p, struct mac *mac_p); }
580385 AUE_MAC_SET_LINK ALL { int __mac_set_link(char *path_p, struct mac *mac_p); }
581386 AUE_MAC_GET_PROC ALL { int __mac_get_proc(struct mac *mac_p); }
582387 AUE_MAC_SET_PROC ALL { int __mac_set_proc(struct mac *mac_p); }
583388 AUE_MAC_GET_FD ALL { int __mac_get_fd(int fd, struct mac *mac_p); }
584389 AUE_MAC_SET_FD ALL { int __mac_set_fd(int fd, struct mac *mac_p); }
585390 AUE_MAC_GET_PID ALL { int __mac_get_pid(pid_t pid, struct mac *mac_p); }
39236c6e
A
586#else
587381 AUE_MAC_SYSCALL ALL { int enosys(void); }
588382 AUE_MAC_GET_FILE ALL { int nosys(void); }
589383 AUE_MAC_SET_FILE ALL { int nosys(void); }
590384 AUE_MAC_GET_LINK ALL { int nosys(void); }
591385 AUE_MAC_SET_LINK ALL { int nosys(void); }
592386 AUE_MAC_GET_PROC ALL { int nosys(void); }
593387 AUE_MAC_SET_PROC ALL { int nosys(void); }
594388 AUE_MAC_GET_FD ALL { int nosys(void); }
595389 AUE_MAC_SET_FD ALL { int nosys(void); }
596390 AUE_MAC_GET_PID ALL { int nosys(void); }
39236c6e 597#endif
3e170ce0
A
598391 AUE_NULL ALL { int enosys(void); }
599392 AUE_NULL ALL { int enosys(void); }
600393 AUE_NULL ALL { int enosys(void); }
4bd07ac2
A
601394 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; }
602395 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; }
b0d623f7
A
603396 AUE_NULL ALL { user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
604397 AUE_NULL ALL { user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
605398 AUE_OPEN_RWTC ALL { int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
606399 AUE_CLOSE ALL { int close_nocancel(int fd) NO_SYSCALL_STUB; }
607400 AUE_WAIT4 ALL { int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
2d21ac55 608#if SOCKETS
b0d623f7
A
609401 AUE_RECVMSG ALL { int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
610402 AUE_SENDMSG ALL { int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
611403 AUE_RECVFROM ALL { int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
612404 AUE_ACCEPT ALL { int accept_nocancel(int s, caddr_t name, socklen_t *anamelen) NO_SYSCALL_STUB; }
2d21ac55 613#else
b0d623f7
A
614401 AUE_NULL ALL { int nosys(void); }
615402 AUE_NULL ALL { int nosys(void); }
616403 AUE_NULL ALL { int nosys(void); }
617404 AUE_NULL ALL { int nosys(void); }
2d21ac55 618#endif /* SOCKETS */
b0d623f7
A
619405 AUE_MSYNC ALL { int msync_nocancel(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; }
620406 AUE_FCNTL ALL { int fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
621407 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; }
622408 AUE_FSYNC ALL { int fsync_nocancel(int fd) NO_SYSCALL_STUB; }
2d21ac55 623#if SOCKETS
b0d623f7 624409 AUE_CONNECT ALL { int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
2d21ac55 625#else
b0d623f7 626409 AUE_NULL ALL { int nosys(void); }
2d21ac55 627#endif /* SOCKETS */
b0d623f7
A
628410 AUE_NULL ALL { int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; }
629411 AUE_READV ALL { user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
630412 AUE_WRITEV ALL { user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
2d21ac55 631#if SOCKETS
b0d623f7 632413 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; }
2d21ac55 633#else
b0d623f7 634413 AUE_NULL ALL { int nosys(void); }
2d21ac55 635#endif /* SOCKETS */
b0d623f7
A
636414 AUE_PREAD ALL { user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
637415 AUE_PWRITE ALL { user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
638416 AUE_WAITID ALL { int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; }
639417 AUE_POLL ALL { int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; }
2d21ac55 640#if SYSV_MSG
b0d623f7
A
641418 AUE_MSGSND ALL { int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; }
642419 AUE_MSGRCV ALL { user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; }
91447636 643#else
b0d623f7
A
644418 AUE_NULL ALL { int nosys(void); }
645419 AUE_NULL ALL { int nosys(void); }
91447636 646#endif
b0d623f7
A
647420 AUE_SEMWAIT ALL { int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; }
648421 AUE_NULL ALL { int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; }
649422 AUE_SIGWAIT ALL { int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; }
650;#if OLD_SEMWAIT_SIGNAL
651;423 AUE_NULL ALL { int nosys(void); } { old __semwait_signal_nocancel }
652;#else
6d2010ae 653423 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); }
b0d623f7
A
654;#endif
655424 AUE_MAC_MOUNT ALL { int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); }
39236c6e 656#if CONFIG_MACF
b0d623f7 657425 AUE_MAC_GET_MOUNT ALL { int __mac_get_mount(char *path, struct mac *mac_p); }
39236c6e
A
658#else
659425 AUE_MAC_GET_MOUNT ALL { int nosys(void); }
660#endif
b0d623f7 661426 AUE_MAC_GETFSSTAT ALL { int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); }
39037602 662427 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) }
b0d623f7
A
663428 AUE_NULL ALL { mach_port_name_t audit_session_self(void); }
664429 AUE_NULL ALL { int audit_session_join(mach_port_name_t port); }
6d2010ae
A
665430 AUE_NULL ALL { int fileport_makeport(int fd, user_addr_t portnamep); }
666431 AUE_NULL ALL { int fileport_makefd(mach_port_name_t port); }
667432 AUE_NULL ALL { int audit_session_port(au_asid_t asid, user_addr_t portnamep); }
668433 AUE_NULL ALL { int pid_suspend(int pid); }
669434 AUE_NULL ALL { int pid_resume(int pid); }
5ba3f43e
A
670#if CONFIG_EMBEDDED
671435 AUE_NULL ALL { int pid_hibernate(int pid); }
672#else
39236c6e 673435 AUE_NULL ALL { int nosys(void); }
5ba3f43e
A
674#endif
675#if SOCKETS
676436 AUE_NULL ALL { int pid_shutdown_sockets(int pid, int level); }
677#else
6d2010ae 678436 AUE_NULL ALL { int nosys(void); }
5ba3f43e 679#endif
6d2010ae
A
680437 AUE_NULL ALL { int nosys(void); } { old shared_region_slide_np }
681438 AUE_NULL ALL { int shared_region_map_and_slide_np(int fd, uint32_t count, const struct shared_file_mapping_np *mappings, uint32_t slide, uint64_t* slide_start, uint32_t slide_size) NO_SYSCALL_STUB; }
316670eb 682439 AUE_NULL ALL { int kas_info(int selector, void *value, size_t *size); }
39236c6e
A
683#if CONFIG_MEMORYSTATUS
684440 AUE_NULL ALL { int memorystatus_control(uint32_t command, int32_t pid, uint32_t flags, user_addr_t buffer, size_t buffersize); }
685#else
686440 AUE_NULL ALL { int nosys(void); }
687#endif
5ba3f43e 688441 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; }
39236c6e
A
689442 AUE_CLOSE ALL { int guarded_close_np(int fd, const guardid_t *guard); }
690443 AUE_KQUEUE ALL { int guarded_kqueue_np(const guardid_t *guard, u_int guardflags); }
691444 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); }
490019cf 692445 AUE_USRCTL ALL { int usrctl(uint32_t flags); }
39236c6e
A
693446 AUE_NULL ALL { int proc_rlimit_control(pid_t pid, int flavor, void *arg); }
694#if SOCKETS
3e170ce0
A
695447 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); }
696448 AUE_NULL ALL { int disconnectx(int s, sae_associd_t aid, sae_connid_t cid); }
697449 AUE_NULL ALL { int peeloff(int s, sae_associd_t aid); }
39236c6e
A
698450 AUE_SOCKET ALL { int socket_delegate(int domain, int type, int protocol, pid_t epid); }
699#else
700447 AUE_NULL ALL { int nosys(void); }
701448 AUE_NULL ALL { int nosys(void); }
702449 AUE_NULL ALL { int nosys(void); }
703450 AUE_NULL ALL { int nosys(void); }
704#endif /* SOCKETS */
39236c6e 705451 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; }
39236c6e
A
706#if CONFIG_PROC_UUID_POLICY
707452 AUE_NULL ALL { int proc_uuid_policy(uint32_t operation, uuid_t uuid, size_t uuidlen, uint32_t flags); }
708#else
709452 AUE_NULL ALL { int nosys(void); }
710#endif
711#if CONFIG_MEMORYSTATUS
712453 AUE_NULL ALL { int memorystatus_get_level(user_addr_t level); }
713#else
714453 AUE_NULL ALL { int nosys(void); }
715#endif
716454 AUE_NULL ALL { int system_override(uint64_t timeout, uint64_t flags); }
717455 AUE_NULL ALL { int vfs_purge(void); }
fe8ab488
A
718456 AUE_NULL ALL { int sfi_ctl(uint32_t operation, uint32_t sfi_class, uint64_t time, uint64_t *out_time) NO_SYSCALL_STUB; }
719457 AUE_NULL ALL { int sfi_pidctl(uint32_t operation, pid_t pid, uint32_t sfi_flags, uint32_t *out_sfi_flags) NO_SYSCALL_STUB; }
720#if CONFIG_COALITIONS
721458 AUE_NULL ALL { int coalition(uint32_t operation, uint64_t *cid, uint32_t flags) NO_SYSCALL_STUB; }
722459 AUE_NULL ALL { int coalition_info(uint32_t flavor, uint64_t *cid, void *buffer, size_t *bufsize) NO_SYSCALL_STUB; }
723#else
724458 AUE_NULL ALL { int enosys(void); }
725459 AUE_NULL ALL { int enosys(void); }
726#endif /* COALITIONS */
727#if NECP
39037602 728460 AUE_NECP ALL { int necp_match_policy(uint8_t *parameters, size_t parameters_size, struct necp_aggregate_result *returned_result); }
fe8ab488
A
729#else
730460 AUE_NULL ALL { int nosys(void); }
731#endif /* NECP */
732461 AUE_GETATTRLISTBULK ALL { int getattrlistbulk(int dirfd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, uint64_t options); }
39037602 733462 AUE_CLONEFILEAT ALL { int clonefileat(int src_dirfd, user_addr_t src, int dst_dirfd, user_addr_t dst, uint32_t flags); }
fe8ab488
A
734463 AUE_OPENAT_RWTC ALL { int openat(int fd, user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
735464 AUE_OPENAT_RWTC ALL { int openat_nocancel(int fd, user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
736465 AUE_RENAMEAT ALL { int renameat(int fromfd, char *from, int tofd, char *to) NO_SYSCALL_STUB; }
737466 AUE_FACCESSAT ALL { int faccessat(int fd, user_addr_t path, int amode, int flag); }
738467 AUE_FCHMODAT ALL { int fchmodat(int fd, user_addr_t path, int mode, int flag); }
739468 AUE_FCHOWNAT ALL { int fchownat(int fd, user_addr_t path, uid_t uid,gid_t gid, int flag); }
740469 AUE_FSTATAT ALL { int fstatat(int fd, user_addr_t path, user_addr_t ub, int flag); }
741470 AUE_FSTATAT ALL { int fstatat64(int fd, user_addr_t path, user_addr_t ub, int flag); }
742471 AUE_LINKAT ALL { int linkat(int fd1, user_addr_t path, int fd2, user_addr_t link, int flag); }
743472 AUE_UNLINKAT ALL { int unlinkat(int fd, user_addr_t path, int flag) NO_SYSCALL_STUB; }
744473 AUE_READLINKAT ALL { int readlinkat(int fd, user_addr_t path, user_addr_t buf, size_t bufsize); }
745474 AUE_SYMLINKAT ALL { int symlinkat(user_addr_t *path1, int fd, user_addr_t path2); }
746475 AUE_MKDIRAT ALL { int mkdirat(int fd, user_addr_t path, int mode); }
747476 AUE_GETATTRLISTAT ALL { int getattrlistat(int fd, const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
748477 AUE_NULL ALL { int proc_trace_log(pid_t pid, uint64_t uniqueid); }
749478 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; }
750479 AUE_OPENBYID_RWT ALL { int openbyid_np(user_addr_t fsid, user_addr_t objid, int oflags); }
751#if SOCKETS
752480 AUE_NULL ALL { user_ssize_t recvmsg_x(int s, struct msghdr_x *msgp, u_int cnt, int flags); }
753481 AUE_NULL ALL { user_ssize_t sendmsg_x(int s, struct msghdr_x *msgp, u_int cnt, int flags); }
754#else
755480 AUE_NULL ALL { int nosys(void); }
756481 AUE_NULL ALL { int nosys(void); }
757#endif /* SOCKETS */
758482 AUE_NULL ALL { uint64_t thread_selfusage(void) NO_SYSCALL_STUB; }
759#if CONFIG_CSR
760483 AUE_NULL ALL { int csrctl(uint32_t op, user_addr_t useraddr, user_addr_t usersize) NO_SYSCALL_STUB; }
761#else
762483 AUE_NULL ALL { int enosys(void); }
763#endif /* CSR */
5ba3f43e 764484 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; }
fe8ab488
A
765485 AUE_NULL ALL { user_ssize_t guarded_write_np(int fd, const guardid_t *guard, user_addr_t cbuf, user_size_t nbyte); }
766486 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); }
3e170ce0 767487 AUE_WRITEV ALL { user_ssize_t guarded_writev_np(int fd, const guardid_t *guard, struct iovec *iovp, int iovcnt); }
39037602 768488 AUE_RENAMEAT ALL { int renameatx_np(int fromfd, char *from, int tofd, char *to, u_int flags) NO_SYSCALL_STUB; }
fe8ab488
A
769#if CONFIG_CODE_DECRYPTION
770489 AUE_MPROTECT ALL { int mremap_encrypted(caddr_t addr, size_t len, uint32_t cryptid, uint32_t cputype, uint32_t cpusubtype); }
771#else
772489 AUE_NULL ALL { int enosys(void); }
773#endif
3e170ce0 774#if NETWORKING
39037602 775490 AUE_NETAGENT ALL { int netagent_trigger(uuid_t agent_uuid, size_t agent_uuidlen); }
3e170ce0
A
776#else
777490 AUE_NULL ALL { int nosys(void); }
778#endif /* NETWORKING */
779491 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; }
780#if CONFIG_TELEMETRY
781492 AUE_STACKSNAPSHOT ALL { int microstackshot(user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t flags) NO_SYSCALL_STUB; }
782#else
783492 AUE_NULL ALL { int enosys(void); }
784#endif /* CONFIG_TELEMETRY */
813fb2f6 785#if PGO
3e170ce0 786493 AUE_NULL ALL { user_ssize_t grab_pgo_data (user_addr_t uuid, int flags, user_addr_t buffer, user_ssize_t size); }
813fb2f6
A
787#else
788493 AUE_NULL ALL { int enosys(void); }
789#endif
490019cf 790#if CONFIG_PERSONAS
cb323159 791494 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; }
490019cf 792#else
3e170ce0 793494 AUE_NULL ALL { int enosys(void); }
490019cf 794#endif
3e170ce0
A
795495 AUE_NULL ALL { int enosys(void); }
796496 AUE_NULL ALL { int enosys(void); }
39037602 797497 AUE_NULL ALL { int enosys(void); }
3e170ce0
A
798498 AUE_NULL ALL { int enosys(void); }
799499 AUE_NULL ALL { int work_interval_ctl(uint32_t operation, uint64_t work_interval_id, void *arg, size_t len) NO_SYSCALL_STUB; }
39037602
A
800500 AUE_NULL ALL { int getentropy(void *buffer, size_t size); }
801#if NECP
802501 AUE_NECP ALL { int necp_open(int flags); } }
803502 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); }
804#else
805501 AUE_NULL ALL { int enosys(void); }
806502 AUE_NULL ALL { int enosys(void); }
807#endif /* NECP */
808503 AUE_NULL ALL { int enosys(void); }
809504 AUE_NULL ALL { int enosys(void); }
810505 AUE_NULL ALL { int enosys(void); }
811506 AUE_NULL ALL { int enosys(void); }
812507 AUE_NULL ALL { int enosys(void); }
813508 AUE_NULL ALL { int enosys(void); }
814509 AUE_NULL ALL { int enosys(void); }
815510 AUE_NULL ALL { int enosys(void); }
816511 AUE_NULL ALL { int enosys(void); }
817512 AUE_NULL ALL { int enosys(void); }
818513 AUE_NULL ALL { int enosys(void); }
819514 AUE_NULL ALL { int enosys(void); }
820515 AUE_NULL ALL { int ulock_wait(uint32_t operation, void *addr, uint64_t value, uint32_t timeout) NO_SYSCALL_STUB; }
821516 AUE_NULL ALL { int ulock_wake(uint32_t operation, void *addr, uint64_t wake_value) NO_SYSCALL_STUB; }
822517 AUE_FCLONEFILEAT ALL { int fclonefileat(int src_fd, int dst_dirfd, user_addr_t dst, uint32_t flags); }
823518 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; }
824519 AUE_NULL ALL { int enosys(void); }
825520 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; }
826521 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; }
5ba3f43e
A
827#if NECP
828522 AUE_NECP ALL { int necp_session_open(int flags); } }
829523 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); }
830#else /* NECP */
831522 AUE_NULL ALL { int enosys(void); }
832523 AUE_NULL ALL { int enosys(void); }
833#endif /* NECP */
834524 AUE_SETATTRLISTAT ALL { int setattrlistat(int fd, const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, uint32_t options); }
835525 AUE_NET ALL { int net_qos_guideline(struct net_qos_param *param, uint32_t param_len); }
836526 AUE_FMOUNT ALL { int fmount(const char *type, int fd, int flags, void *data); }
837527 AUE_NULL ALL { int ntp_adjtime(struct timex *tp); }
838528 AUE_NULL ALL { int ntp_gettime(struct ntptimeval *ntvp); }
839529 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); }
d9a64523
A
840#if CONFIG_WORKQUEUE
841530 AUE_WORKLOOPCTL ALL { int kqueue_workloop_ctl(user_addr_t cmd, uint64_t options, user_addr_t addr, size_t sz) NO_SYSCALL_STUB; }
842#else
d26ffc64 843530 AUE_NULL ALL { int enosys(void); }
d9a64523 844#endif // CONFIG_WORKQUEUE
0a7de745 845531 AUE_NULL ALL { uint64_t __mach_bridge_remote_time(uint64_t local_timestamp); }
cb323159
A
846#if CONFIG_COALITIONS
847532 AUE_NULL ALL { int coalition_ledger(uint32_t operation, uint64_t *cid, void *buffer, size_t *bufsize) NO_SYSCALL_STUB; }
848#else
849532 AUE_NULL ALL { int enosys(void); }
850#endif // CONFIG_COALITIONS
851533 AUE_NULL ALL { int log_data(unsigned int tag, unsigned int flags, void *buffer, unsigned int size) NO_SYSCALL_STUB; }
852534 AUE_NULL ALL { uint64_t memorystatus_available_memory(void) NO_SYSCALL_STUB; }