]> git.saurik.com Git - apple/xnu.git/blame - bsd/kern/syscalls.master
xnu-2782.40.9.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 33
39236c6e
A
34; If you add a new syscall number to the end of this file, you need to
35; increment the value of NUM_SYSENT in bsd/sys/sysent.h.
36
91447636
A
37#include <sys/appleapiopts.h>
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/types.h>
41#include <sys/sysent.h>
42#include <sys/sysproto.h>
43
b0d623f7 440 AUE_NULL ALL { int nosys(void); } { indirect syscall }
6d2010ae
A
451 AUE_EXIT ALL { void exit(int rval) NO_SYSCALL_STUB; }
462 AUE_FORK ALL { int fork(void) NO_SYSCALL_STUB; }
b0d623f7
A
473 AUE_NULL ALL { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
484 AUE_NULL ALL { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
6d2010ae 495 AUE_OPEN_RWTC ALL { int open(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
b0d623f7 506 AUE_CLOSE ALL { int close(int fd); }
6d2010ae 517 AUE_WAIT4 ALL { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
fe8ab488 528 AUE_NULL ALL { int enosys(void); } { old creat }
b0d623f7 539 AUE_LINK ALL { int link(user_addr_t path, user_addr_t link); }
6d2010ae 5410 AUE_UNLINK ALL { int unlink(user_addr_t path) NO_SYSCALL_STUB; }
fe8ab488 5511 AUE_NULL ALL { int enosys(void); } { old execv }
b0d623f7
A
5612 AUE_CHDIR ALL { int chdir(user_addr_t path); }
5713 AUE_FCHDIR ALL { int fchdir(int fd); }
5814 AUE_MKNOD ALL { int mknod(user_addr_t path, int mode, int dev); }
6d2010ae 5915 AUE_CHMOD ALL { int chmod(user_addr_t path, int mode) NO_SYSCALL_STUB; }
b0d623f7 6016 AUE_CHOWN ALL { int chown(user_addr_t path, int uid, int gid); }
fe8ab488 6117 AUE_NULL ALL { int enosys(void); } { old break }
b0d623f7 6218 AUE_GETFSSTAT ALL { int getfsstat(user_addr_t buf, int bufsize, int flags); }
fe8ab488 6319 AUE_NULL ALL { int enosys(void); } { old lseek }
b0d623f7 6420 AUE_GETPID ALL { int getpid(void); }
fe8ab488
A
6521 AUE_NULL ALL { int enosys(void); } { old mount }
6622 AUE_NULL ALL { int enosys(void); } { old umount }
b0d623f7
A
6723 AUE_SETUID ALL { int setuid(uid_t uid); }
6824 AUE_GETUID ALL { int getuid(void); }
6925 AUE_GETEUID ALL { int geteuid(void); }
7026 AUE_PTRACE ALL { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
2d21ac55 71#if SOCKETS
6d2010ae
A
7227 AUE_RECVMSG ALL { int recvmsg(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
7328 AUE_SENDMSG ALL { int sendmsg(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
7429 AUE_RECVFROM ALL { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
7530 AUE_ACCEPT ALL { int accept(int s, caddr_t name, socklen_t *anamelen) NO_SYSCALL_STUB; }
7631 AUE_GETPEERNAME ALL { int getpeername(int fdes, caddr_t asa, socklen_t *alen) NO_SYSCALL_STUB; }
7732 AUE_GETSOCKNAME ALL { int getsockname(int fdes, caddr_t asa, socklen_t *alen) NO_SYSCALL_STUB; }
2d21ac55 78#else
b0d623f7
A
7927 AUE_NULL ALL { int nosys(void); }
8028 AUE_NULL ALL { int nosys(void); }
8129 AUE_NULL ALL { int nosys(void); }
8230 AUE_NULL ALL { int nosys(void); }
8331 AUE_NULL ALL { int nosys(void); }
8432 AUE_NULL ALL { int nosys(void); }
2d21ac55 85#endif /* SOCKETS */
b0d623f7
A
8633 AUE_ACCESS ALL { int access(user_addr_t path, int flags); }
8734 AUE_CHFLAGS ALL { int chflags(char *path, int flags); }
8835 AUE_FCHFLAGS ALL { int fchflags(int fd, int flags); }
8936 AUE_SYNC ALL { int sync(void); }
6d2010ae 9037 AUE_KILL ALL { int kill(int pid, int signum, int posix) NO_SYSCALL_STUB; }
b0d623f7
A
9138 AUE_NULL ALL { int nosys(void); } { old stat }
9239 AUE_GETPPID ALL { int getppid(void); }
9340 AUE_NULL ALL { int nosys(void); } { old lstat }
9441 AUE_DUP ALL { int dup(u_int fd); }
9542 AUE_PIPE ALL { int pipe(void); }
9643 AUE_GETEGID ALL { int getegid(void); }
316670eb 9744 AUE_NULL ALL { int nosys(void); } { old profil }
b0d623f7 9845 AUE_NULL ALL { int nosys(void); } { old ktrace }
6d2010ae 9946 AUE_SIGACTION ALL { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa) NO_SYSCALL_STUB; }
b0d623f7
A
10047 AUE_GETGID ALL { int getgid(void); }
10148 AUE_SIGPROCMASK ALL { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
6d2010ae
A
10249 AUE_GETLOGIN ALL { int getlogin(char *namebuf, u_int namelen) NO_SYSCALL_STUB; }
10350 AUE_SETLOGIN ALL { int setlogin(char *namebuf) NO_SYSCALL_STUB; }
b0d623f7
A
10451 AUE_ACCT ALL { int acct(char *path); }
10552 AUE_SIGPENDING ALL { int sigpending(struct sigvec *osv); }
6d2010ae
A
10653 AUE_SIGALTSTACK ALL { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss) NO_SYSCALL_STUB ; }
10754 AUE_IOCTL ALL { int ioctl(int fd, u_long com, caddr_t data) NO_SYSCALL_STUB; }
b0d623f7
A
10855 AUE_REBOOT ALL { int reboot(int opt, char *command); }
10956 AUE_REVOKE ALL { int revoke(char *path); }
11057 AUE_SYMLINK ALL { int symlink(char *path, char *link); }
11158 AUE_READLINK ALL { int readlink(char *path, char *buf, int count); }
11259 AUE_EXECVE ALL { int execve(char *fname, char **argp, char **envp); }
11360 AUE_UMASK ALL { int umask(int newmask); }
11461 AUE_CHROOT ALL { int chroot(user_addr_t path); }
11562 AUE_NULL ALL { int nosys(void); } { old fstat }
11663 AUE_NULL ALL { int nosys(void); } { used internally, reserved }
11764 AUE_NULL ALL { int nosys(void); } { old getpagesize }
6d2010ae 11865 AUE_MSYNC ALL { int msync(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; }
b0d623f7
A
11966 AUE_VFORK ALL { int vfork(void); }
12067 AUE_NULL ALL { int nosys(void); } { old vread }
12168 AUE_NULL ALL { int nosys(void); } { old vwrite }
12269 AUE_NULL ALL { int nosys(void); } { old sbrk }
12370 AUE_NULL ALL { int nosys(void); } { old sstk }
12471 AUE_NULL ALL { int nosys(void); } { old mmap }
12572 AUE_NULL ALL { int nosys(void); } { old vadvise }
6d2010ae
A
12673 AUE_MUNMAP ALL { int munmap(caddr_t addr, size_t len) NO_SYSCALL_STUB; }
12774 AUE_MPROTECT ALL { int mprotect(caddr_t addr, size_t len, int prot) NO_SYSCALL_STUB; }
b0d623f7
A
12875 AUE_MADVISE ALL { int madvise(caddr_t addr, size_t len, int behav); }
12976 AUE_NULL ALL { int nosys(void); } { old vhangup }
13077 AUE_NULL ALL { int nosys(void); } { old vlimit }
13178 AUE_MINCORE ALL { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
13279 AUE_GETGROUPS ALL { int getgroups(u_int gidsetsize, gid_t *gidset); }
13380 AUE_SETGROUPS ALL { int setgroups(u_int gidsetsize, gid_t *gidset); }
13481 AUE_GETPGRP ALL { int getpgrp(void); }
13582 AUE_SETPGRP ALL { int setpgid(int pid, int pgid); }
13683 AUE_SETITIMER ALL { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
13784 AUE_NULL ALL { int nosys(void); } { old wait }
13885 AUE_SWAPON ALL { int swapon(void); }
13986 AUE_GETITIMER ALL { int getitimer(u_int which, struct itimerval *itv); }
14087 AUE_NULL ALL { int nosys(void); } { old gethostname }
14188 AUE_NULL ALL { int nosys(void); } { old sethostname }
14289 AUE_GETDTABLESIZE ALL { int getdtablesize(void); }
14390 AUE_DUP2 ALL { int dup2(u_int from, u_int to); }
14491 AUE_NULL ALL { int nosys(void); } { old getdopt }
6d2010ae
A
14592 AUE_FCNTL ALL { int fcntl(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
14693 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
14794 AUE_NULL ALL { int nosys(void); } { old setdopt }
14895 AUE_FSYNC ALL { int fsync(int fd); }
fe8ab488 14996 AUE_SETPRIORITY ALL { int setpriority(int which, id_t who, int prio) NO_SYSCALL_STUB; }
2d21ac55 150#if SOCKETS
b0d623f7 15197 AUE_SOCKET ALL { int socket(int domain, int type, int protocol); }
6d2010ae 15298 AUE_CONNECT ALL { int connect(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
2d21ac55 153#else
b0d623f7
A
15497 AUE_NULL ALL { int nosys(void); }
15598 AUE_NULL ALL { int nosys(void); }
2d21ac55 156#endif /* SOCKETS */
b0d623f7
A
15799 AUE_NULL ALL { int nosys(void); } { old accept }
158100 AUE_GETPRIORITY ALL { int getpriority(int which, id_t who); }
159101 AUE_NULL ALL { int nosys(void); } { old send }
160102 AUE_NULL ALL { int nosys(void); } { old recv }
161103 AUE_NULL ALL { int nosys(void); } { old sigreturn }
2d21ac55 162#if SOCKETS
6d2010ae 163104 AUE_BIND ALL { int bind(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
b0d623f7 164105 AUE_SETSOCKOPT ALL { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
6d2010ae 165106 AUE_LISTEN ALL { int listen(int s, int backlog) NO_SYSCALL_STUB; }
2d21ac55 166#else
b0d623f7
A
167104 AUE_NULL ALL { int nosys(void); }
168105 AUE_NULL ALL { int nosys(void); }
169106 AUE_NULL ALL { int nosys(void); }
2d21ac55 170#endif /* SOCKETS */
b0d623f7
A
171107 AUE_NULL ALL { int nosys(void); } { old vtimes }
172108 AUE_NULL ALL { int nosys(void); } { old sigvec }
173109 AUE_NULL ALL { int nosys(void); } { old sigblock }
174110 AUE_NULL ALL { int nosys(void); } { old sigsetmask }
6d2010ae 175111 AUE_NULL ALL { int sigsuspend(sigset_t mask) NO_SYSCALL_STUB; }
b0d623f7 176112 AUE_NULL ALL { int nosys(void); } { old sigstack }
2d21ac55 177#if SOCKETS
b0d623f7
A
178113 AUE_NULL ALL { int nosys(void); } { old recvmsg }
179114 AUE_NULL ALL { int nosys(void); } { old sendmsg }
2d21ac55 180#else
b0d623f7
A
181113 AUE_NULL ALL { int nosys(void); }
182114 AUE_NULL ALL { int nosys(void); }
2d21ac55 183#endif /* SOCKETS */
b0d623f7 184115 AUE_NULL ALL { int nosys(void); } { old vtrace }
6d2010ae 185116 AUE_GETTIMEOFDAY ALL { int gettimeofday(struct timeval *tp, struct timezone *tzp) NO_SYSCALL_STUB; }
b0d623f7 186117 AUE_GETRUSAGE ALL { int getrusage(int who, struct rusage *rusage); }
2d21ac55 187#if SOCKETS
b0d623f7 188118 AUE_GETSOCKOPT ALL { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
2d21ac55 189#else
b0d623f7 190118 AUE_NULL ALL { int nosys(void); }
2d21ac55 191#endif /* SOCKETS */
b0d623f7
A
192119 AUE_NULL ALL { int nosys(void); } { old resuba }
193120 AUE_READV ALL { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
194121 AUE_WRITEV ALL { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
6d2010ae 195122 AUE_SETTIMEOFDAY ALL { int settimeofday(struct timeval *tv, struct timezone *tzp) NO_SYSCALL_STUB; }
b0d623f7 196123 AUE_FCHOWN ALL { int fchown(int fd, int uid, int gid); }
6d2010ae 197124 AUE_FCHMOD ALL { int fchmod(int fd, int mode) NO_SYSCALL_STUB; }
b0d623f7 198125 AUE_NULL ALL { int nosys(void); } { old recvfrom }
6d2010ae
A
199126 AUE_SETREUID ALL { int setreuid(uid_t ruid, uid_t euid) NO_SYSCALL_STUB; }
200127 AUE_SETREGID ALL { int setregid(gid_t rgid, gid_t egid) NO_SYSCALL_STUB; }
201128 AUE_RENAME ALL { int rename(char *from, char *to) NO_SYSCALL_STUB; }
b0d623f7
A
202129 AUE_NULL ALL { int nosys(void); } { old truncate }
203130 AUE_NULL ALL { int nosys(void); } { old ftruncate }
204131 AUE_FLOCK ALL { int flock(int fd, int how); }
205132 AUE_MKFIFO ALL { int mkfifo(user_addr_t path, int mode); }
2d21ac55 206#if SOCKETS
6d2010ae 207133 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 208134 AUE_SHUTDOWN ALL { int shutdown(int s, int how); }
6d2010ae 209135 AUE_SOCKETPAIR ALL { int socketpair(int domain, int type, int protocol, int *rsv) NO_SYSCALL_STUB; }
2d21ac55 210#else
b0d623f7
A
211133 AUE_NULL ALL { int nosys(void); }
212134 AUE_NULL ALL { int nosys(void); }
213135 AUE_NULL ALL { int nosys(void); }
2d21ac55 214#endif /* SOCKETS */
b0d623f7 215136 AUE_MKDIR ALL { int mkdir(user_addr_t path, int mode); }
6d2010ae 216137 AUE_RMDIR ALL { int rmdir(char *path) NO_SYSCALL_STUB; }
b0d623f7
A
217138 AUE_UTIMES ALL { int utimes(char *path, struct timeval *tptr); }
218139 AUE_FUTIMES ALL { int futimes(int fd, struct timeval *tptr); }
219140 AUE_ADJTIME ALL { int adjtime(struct timeval *delta, struct timeval *olddelta); }
220141 AUE_NULL ALL { int nosys(void); } { old getpeername }
39236c6e 221142 AUE_SYSCTL ALL { int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp, int spi) NO_SYSCALL_STUB; }
b0d623f7
A
222143 AUE_NULL ALL { int nosys(void); } { old sethostid }
223144 AUE_NULL ALL { int nosys(void); } { old getrlimit }
224145 AUE_NULL ALL { int nosys(void); } { old setrlimit }
225146 AUE_NULL ALL { int nosys(void); } { old killpg }
226147 AUE_SETSID ALL { int setsid(void); }
227148 AUE_NULL ALL { int nosys(void); } { old setquota }
228149 AUE_NULL ALL { int nosys(void); } { old qquota }
229150 AUE_NULL ALL { int nosys(void); } { old getsockname }
230151 AUE_GETPGID ALL { int getpgid(pid_t pid); }
231152 AUE_SETPRIVEXEC ALL { int setprivexec(int flag); }
232153 AUE_PREAD ALL { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
233154 AUE_PWRITE ALL { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
91447636
A
234
235#if NFSSERVER
b0d623f7 236155 AUE_NFS_SVC ALL { int nfssvc(int flag, caddr_t argp); }
91447636 237#else
b0d623f7 238155 AUE_NULL ALL { int nosys(void); }
91447636
A
239#endif
240
b0d623f7
A
241156 AUE_NULL ALL { int nosys(void); } { old getdirentries }
242157 AUE_STATFS ALL { int statfs(char *path, struct statfs *buf); }
243158 AUE_FSTATFS ALL { int fstatfs(int fd, struct statfs *buf); }
244159 AUE_UNMOUNT ALL { int unmount(user_addr_t path, int flags); }
245160 AUE_NULL ALL { int nosys(void); } { old async_daemon }
91447636 246
2d21ac55 247#if NFSSERVER
b0d623f7 248161 AUE_NFS_GETFH ALL { int getfh(char *fname, fhandle_t *fhp); }
91447636 249#else
b0d623f7 250161 AUE_NULL ALL { int nosys(void); }
91447636
A
251#endif
252
b0d623f7
A
253162 AUE_NULL ALL { int nosys(void); } { old getdomainname }
254163 AUE_NULL ALL { int nosys(void); } { old setdomainname }
255164 AUE_NULL ALL { int nosys(void); }
256165 AUE_QUOTACTL ALL { int quotactl(const char *path, int cmd, int uid, caddr_t arg); }
257166 AUE_NULL ALL { int nosys(void); } { old exportfs }
258167 AUE_MOUNT ALL { int mount(char *type, char *path, int flags, caddr_t data); }
259168 AUE_NULL ALL { int nosys(void); } { old ustat }
260169 AUE_CSOPS ALL { int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); }
316670eb 261170 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
262171 AUE_NULL ALL { int nosys(void); } { old wait3 }
263172 AUE_NULL ALL { int nosys(void); } { old rpause }
264173 AUE_WAITID ALL { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
265174 AUE_NULL ALL { int nosys(void); } { old getdents }
266175 AUE_NULL ALL { int nosys(void); } { old gc_control }
316670eb 267176 AUE_NULL ALL { int nosys(void); } { old add_profil }
b0d623f7
A
268177 AUE_NULL ALL { int nosys(void); }
269178 AUE_NULL ALL { int nosys(void); }
a1c7dba1
A
270179 AUE_KDEBUGTRACE ALL { int kdebug_trace64(uint32_t code, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4) NO_SYSCALL_STUB; }
271180 AUE_KDEBUGTRACE ALL { int kdebug_trace(uint32_t code, u_long arg1, u_long arg2, u_long arg3, u_long arg4) NO_SYSCALL_STUB; }
b0d623f7
A
272181 AUE_SETGID ALL { int setgid(gid_t gid); }
273182 AUE_SETEGID ALL { int setegid(gid_t egid); }
274183 AUE_SETEUID ALL { int seteuid(uid_t euid); }
275184 AUE_SIGRETURN ALL { int sigreturn(struct ucontext *uctx, int infostyle) NO_SYSCALL_STUB; }
276185 AUE_CHUD ALL { int chud(uint64_t code, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5) NO_SYSCALL_STUB; }
277186 AUE_NULL ALL { int nosys(void); }
278187 AUE_FDATASYNC ALL { int fdatasync(int fd); }
279188 AUE_STAT ALL { int stat(user_addr_t path, user_addr_t ub); }
280189 AUE_FSTAT ALL { int fstat(int fd, user_addr_t ub); }
281190 AUE_LSTAT ALL { int lstat(user_addr_t path, user_addr_t ub); }
282191 AUE_PATHCONF ALL { int pathconf(char *path, int name); }
283192 AUE_FPATHCONF ALL { int fpathconf(int fd, int name); }
284193 AUE_NULL ALL { int nosys(void); }
6d2010ae
A
285194 AUE_GETRLIMIT ALL { int getrlimit(u_int which, struct rlimit *rlp) NO_SYSCALL_STUB; }
286195 AUE_SETRLIMIT ALL { int setrlimit(u_int which, struct rlimit *rlp) NO_SYSCALL_STUB; }
b0d623f7 287196 AUE_GETDIRENTRIES ALL { int getdirentries(int fd, char *buf, u_int count, long *basep); }
6d2010ae 288197 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; }
b0d623f7
A
289198 AUE_NULL ALL { int nosys(void); } { __syscall }
290199 AUE_LSEEK ALL { off_t lseek(int fd, off_t offset, int whence); }
291200 AUE_TRUNCATE ALL { int truncate(char *path, off_t length); }
292201 AUE_FTRUNCATE ALL { int ftruncate(int fd, off_t length); }
fe8ab488 293202 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
294203 AUE_MLOCK ALL { int mlock(caddr_t addr, size_t len); }
295204 AUE_MUNLOCK ALL { int munlock(caddr_t addr, size_t len); }
296205 AUE_UNDELETE ALL { int undelete(user_addr_t path); }
91447636 297
39236c6e
A
298206 AUE_NULL ALL { int nosys(void); } { old ATsocket }
299207 AUE_NULL ALL { int nosys(void); } { old ATgetmsg }
300208 AUE_NULL ALL { int nosys(void); } { old ATputmsg }
301209 AUE_NULL ALL { int nosys(void); } { old ATsndreq }
302210 AUE_NULL ALL { int nosys(void); } { old ATsndrsp }
303211 AUE_NULL ALL { int nosys(void); } { old ATgetreq }
304212 AUE_NULL ALL { int nosys(void); } { old ATgetrsp }
b0d623f7 305213 AUE_NULL ALL { int nosys(void); } { Reserved for AppleTalk }
91447636 306
b0d623f7
A
307214 AUE_NULL ALL { int nosys(void); }
308215 AUE_NULL ALL { int nosys(void); }
91447636
A
309
310; System Calls 216 - 230 are reserved for calls to support HFS/HFS Plus
311; file system semantics. Currently, we only use 215-227. The rest is
312; for future expansion in anticipation of new MacOS APIs for HFS Plus.
2d21ac55 313; These calls are not conditionalized because while they are specific
91447636
A
314; to HFS semantics, they are not specific to the HFS filesystem.
315; We expect all filesystems to recognize the call and report that it is
316; not supported or to actually implement it.
316670eb
A
317
318; 216-> 219 used to be mkcomplex and {f,l}statv variants. They are gone now.
319216 AUE_NULL ALL { int open_dprotected_np(user_addr_t path, int flags, int class, int dpflags, int mode) NO_SYSCALL_STUB; }
320217 AUE_NULL ALL { int nosys(void); }
321218 AUE_NULL ALL { int nosys(void); }
322219 AUE_NULL ALL { int nosys(void); }
6d2010ae
A
323220 AUE_GETATTRLIST ALL { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options) NO_SYSCALL_STUB; }
324221 AUE_SETATTRLIST ALL { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options) NO_SYSCALL_STUB; }
b0d623f7
A
325222 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); }
326223 AUE_EXCHANGEDATA ALL { int exchangedata(const char *path1, const char *path2, u_long options); }
327224 AUE_NULL ALL { int nosys(void); } { old checkuseraccess / fsgetpath (which moved to 427) }
328225 AUE_SEARCHFS ALL { int searchfs(const char *path, struct fssearchblock *searchblock, uint32_t *nummatches, uint32_t scriptcode, uint32_t options, struct searchstate *state); }
329226 AUE_DELETE ALL { int delete(user_addr_t path) NO_SYSCALL_STUB; } { private delete (Carbon semantics) }
330227 AUE_COPYFILE ALL { int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; }
331228 AUE_FGETATTRLIST ALL { int fgetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
332229 AUE_FSETATTRLIST ALL { int fsetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
333230 AUE_POLL ALL { int poll(struct pollfd *fds, u_int nfds, int timeout); }
334231 AUE_WATCHEVENT ALL { int watchevent(struct eventreq *u_req, int u_eventmask); }
335232 AUE_WAITEVENT ALL { int waitevent(struct eventreq *u_req, struct timeval *tv); }
336233 AUE_MODWATCH ALL { int modwatch(struct eventreq *u_req, int u_eventmask); }
337234 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); }
338235 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); }
339236 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); }
340237 AUE_FSETXATTR ALL { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
341238 AUE_REMOVEXATTR ALL { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
342239 AUE_FREMOVEXATTR ALL { int fremovexattr(int fd, user_addr_t attrname, int options); }
343240 AUE_LISTXATTR ALL { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
344241 AUE_FLISTXATTR ALL { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
345242 AUE_FSCTL ALL { int fsctl(const char *path, u_long cmd, caddr_t data, u_int options); }
6d2010ae
A
346243 AUE_INITGROUPS ALL { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid) NO_SYSCALL_STUB; }
347244 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
348245 AUE_FFSCTL ALL { int ffsctl(int fd, u_long cmd, caddr_t data, u_int options); }
349246 AUE_NULL ALL { int nosys(void); }
91447636 350
2d21ac55 351#if NFSCLIENT
b0d623f7 352247 AUE_NULL ALL { int nfsclnt(int flag, caddr_t argp); }
91447636 353#else
b0d623f7 354247 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
355#endif
356#if NFSSERVER
b0d623f7 357248 AUE_FHOPEN ALL { int fhopen(const struct fhandle *u_fhp, int flags); }
2d21ac55 358#else
b0d623f7 359248 AUE_NULL ALL { int nosys(void); }
2d21ac55 360#endif
91447636 361
b0d623f7
A
362249 AUE_NULL ALL { int nosys(void); }
363250 AUE_MINHERIT ALL { int minherit(void *addr, size_t len, int inherit); }
2d21ac55 364#if SYSV_SEM
39236c6e 365251 AUE_SEMSYS ALL { int semsys(u_int which, int a2, int a3, int a4, int a5) NO_SYSCALL_STUB; }
2d21ac55 366#else
b0d623f7 367251 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
368#endif
369#if SYSV_MSG
39236c6e 370252 AUE_MSGSYS ALL { int msgsys(u_int which, int a2, int a3, int a4, int a5) NO_SYSCALL_STUB; }
2d21ac55 371#else
b0d623f7 372252 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
373#endif
374#if SYSV_SHM
39236c6e 375253 AUE_SHMSYS ALL { int shmsys(u_int which, int a2, int a3, int a4) NO_SYSCALL_STUB; }
2d21ac55 376#else
b0d623f7 377253 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
378#endif
379#if SYSV_SEM
6d2010ae 380254 AUE_SEMCTL ALL { int semctl(int semid, int semnum, int cmd, semun_t arg) NO_SYSCALL_STUB; }
b0d623f7
A
381255 AUE_SEMGET ALL { int semget(key_t key, int nsems, int semflg); }
382256 AUE_SEMOP ALL { int semop(int semid, struct sembuf *sops, int nsops); }
383257 AUE_NULL ALL { int nosys(void); }
2d21ac55 384#else
b0d623f7
A
385254 AUE_NULL ALL { int nosys(void); }
386255 AUE_NULL ALL { int nosys(void); }
387256 AUE_NULL ALL { int nosys(void); }
388257 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
389#endif
390#if SYSV_MSG
6d2010ae 391258 AUE_MSGCTL ALL { int msgctl(int msqid, int cmd, struct msqid_ds *buf) NO_SYSCALL_STUB; }
b0d623f7
A
392259 AUE_MSGGET ALL { int msgget(key_t key, int msgflg); }
393260 AUE_MSGSND ALL { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
394261 AUE_MSGRCV ALL { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
2d21ac55 395#else
b0d623f7
A
396258 AUE_NULL ALL { int nosys(void); }
397259 AUE_NULL ALL { int nosys(void); }
398260 AUE_NULL ALL { int nosys(void); }
399261 AUE_NULL ALL { int nosys(void); }
2d21ac55
A
400#endif
401#if SYSV_SHM
b0d623f7 402262 AUE_SHMAT ALL { user_addr_t shmat(int shmid, void *shmaddr, int shmflg); }
6d2010ae 403263 AUE_SHMCTL ALL { int shmctl(int shmid, int cmd, struct shmid_ds *buf) NO_SYSCALL_STUB; }
b0d623f7
A
404264 AUE_SHMDT ALL { int shmdt(void *shmaddr); }
405265 AUE_SHMGET ALL { int shmget(key_t key, size_t size, int shmflg); }
2d21ac55 406#else
b0d623f7
A
407262 AUE_NULL ALL { int nosys(void); }
408263 AUE_NULL ALL { int nosys(void); }
409264 AUE_NULL ALL { int nosys(void); }
410265 AUE_NULL ALL { int nosys(void); }
2d21ac55 411#endif
39236c6e 412266 AUE_SHMOPEN ALL { int shm_open(const char *name, int oflag, int mode) NO_SYSCALL_STUB; }
b0d623f7 413267 AUE_SHMUNLINK ALL { int shm_unlink(const char *name); }
316670eb 414268 AUE_SEMOPEN ALL { user_addr_t sem_open(const char *name, int oflag, int mode, int value) NO_SYSCALL_STUB; }
b0d623f7
A
415269 AUE_SEMCLOSE ALL { int sem_close(sem_t *sem); }
416270 AUE_SEMUNLINK ALL { int sem_unlink(const char *name); }
417271 AUE_SEMWAIT ALL { int sem_wait(sem_t *sem); }
418272 AUE_SEMTRYWAIT ALL { int sem_trywait(sem_t *sem); }
419273 AUE_SEMPOST ALL { int sem_post(sem_t *sem); }
fe8ab488
A
420274 AUE_SYSCTL ALL { int sysctlbyname(const char *name, size_t namelen, void *old, size_t *oldlenp, void *new, size_t newlen) NO_SYSCALL_STUB; }
421275 AUE_NULL ALL { int enosys(void); } { old sem_init }
422276 AUE_NULL ALL { int enosys(void); } { old sem_destroy }
b0d623f7
A
423277 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; }
424278 AUE_UMASK_EXTENDED ALL { int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; }
425279 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; }
426280 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; }
427281 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; }
428282 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; }
429283 AUE_FCHMOD_EXTENDED ALL { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
430284 AUE_ACCESS_EXTENDED ALL { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; }
431285 AUE_SETTID ALL { int settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; }
432286 AUE_GETTID ALL { int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; }
433287 AUE_SETSGROUPS ALL { int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
434288 AUE_GETSGROUPS ALL { int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
435289 AUE_SETWGROUPS ALL { int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
436290 AUE_GETWGROUPS ALL { int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
437291 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; }
438292 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 439#if CONFIG_EXT_RESOLVER
b0d623f7 440293 AUE_IDENTITYSVC ALL { int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; }
316670eb
A
441#else
442293 AUE_NULL ALL { int nosys(void); }
443#endif
b0d623f7 444294 AUE_NULL ALL { int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; }
6d2010ae 445295 AUE_NULL ALL { int nosys(void); } { old shared_region_map_np }
b0d623f7
A
446296 AUE_NULL ALL { int vm_pressure_monitor(int wait_for_pressure, int nsecs_monitored, uint32_t *pages_reclaimed); }
447#if PSYNCH
448297 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; }
449298 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; }
450299 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; }
451300 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; }
452301 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; }
453302 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
454303 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; }
455304 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; }
456305 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
457306 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; }
458307 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; }
459308 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; }
460309 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 461#else
b0d623f7
A
462297 AUE_NULL ALL { int nosys(void); } { old reset_shared_file }
463298 AUE_NULL ALL { int nosys(void); } { old new_system_shared_regions }
464299 AUE_NULL ALL { int enosys(void); } { old shared_region_map_file_np }
465300 AUE_NULL ALL { int enosys(void); } { old shared_region_make_private_np }
466301 AUE_NULL ALL { int nosys(void); }
467302 AUE_NULL ALL { int nosys(void); }
468303 AUE_NULL ALL { int nosys(void); }
469304 AUE_NULL ALL { int nosys(void); }
470305 AUE_NULL ALL { int nosys(void); }
471306 AUE_NULL ALL { int nosys(void); }
472307 AUE_NULL ALL { int nosys(void); }
473308 AUE_NULL ALL { int nosys(void); }
474309 AUE_NULL ALL { int nosys(void); }
2d21ac55 475#endif
b0d623f7
A
476310 AUE_GETSID ALL { int getsid(pid_t pid); }
477311 AUE_SETTIDWITHPID ALL { int settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; }
6d2010ae
A
478#if PSYNCH
479312 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; }
480#else
b0d623f7 481312 AUE_NULL ALL { int nosys(void); } { old __pthread_cond_timedwait }
6d2010ae 482#endif
b0d623f7
A
483313 AUE_NULL ALL { int aio_fsync(int op, user_addr_t aiocbp); }
484314 AUE_NULL ALL { user_ssize_t aio_return(user_addr_t aiocbp); }
485315 AUE_NULL ALL { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
486316 AUE_NULL ALL { int aio_cancel(int fd, user_addr_t aiocbp); }
487317 AUE_NULL ALL { int aio_error(user_addr_t aiocbp); }
488318 AUE_NULL ALL { int aio_read(user_addr_t aiocbp); }
489319 AUE_NULL ALL { int aio_write(user_addr_t aiocbp); }
490320 AUE_LIOLISTIO ALL { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
491321 AUE_NULL ALL { int nosys(void); } { old __pthread_cond_wait }
492322 AUE_IOPOLICYSYS ALL { int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; }
6d2010ae 493323 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
494324 AUE_MLOCKALL ALL { int mlockall(int how); }
495325 AUE_MUNLOCKALL ALL { int munlockall(int how); }
496326 AUE_NULL ALL { int nosys(void); }
497327 AUE_ISSETUGID ALL { int issetugid(void); }
498328 AUE_PTHREADKILL ALL { int __pthread_kill(int thread_port, int sig); }
499329 AUE_PTHREADSIGMASK ALL { int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
500330 AUE_SIGWAIT ALL { int __sigwait(user_addr_t set, user_addr_t sig); }
501331 AUE_NULL ALL { int __disable_threadsignal(int value); }
502332 AUE_NULL ALL { int __pthread_markcancel(int thread_port); }
503333 AUE_NULL ALL { int __pthread_canceled(int action); }
504
505;#if OLD_SEMWAIT_SIGNAL
506;334 AUE_NULL ALL { int nosys(void); } { old __semwait_signal }
507;#else
508334 AUE_SEMWAITSIGNAL ALL { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, int64_t tv_sec, int32_t tv_nsec); }
509;#endif
2d21ac55 510
b0d623f7
A
511335 AUE_NULL ALL { int nosys(void); } { old utrace }
512336 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; }
513#if SENDFILE
514337 AUE_SENDFILE ALL { int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); }
515#else /* !SENDFILE */
516337 AUE_NULL ALL { int nosys(void); }
517#endif /* SENDFILE */
518338 AUE_STAT64 ALL { int stat64(user_addr_t path, user_addr_t ub); }
519339 AUE_FSTAT64 ALL { int fstat64(int fd, user_addr_t ub); }
520340 AUE_LSTAT64 ALL { int lstat64(user_addr_t path, user_addr_t ub); }
521341 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; }
522342 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; }
523343 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; }
524344 AUE_GETDIRENTRIES64 ALL { user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; }
525345 AUE_STATFS64 ALL { int statfs64(char *path, struct statfs64 *buf); }
526346 AUE_FSTATFS64 ALL { int fstatfs64(int fd, struct statfs64 *buf); }
527347 AUE_GETFSSTAT64 ALL { int getfsstat64(user_addr_t buf, int bufsize, int flags); }
528348 AUE_NULL ALL { int __pthread_chdir(user_addr_t path); }
529349 AUE_NULL ALL { int __pthread_fchdir(int fd); }
530350 AUE_AUDIT ALL { int audit(void *record, int length); }
531351 AUE_AUDITON ALL { int auditon(int cmd, void *data, int length); }
532352 AUE_NULL ALL { int nosys(void); }
533353 AUE_GETAUID ALL { int getauid(au_id_t *auid); }
534354 AUE_SETAUID ALL { int setauid(au_id_t *auid); }
316670eb
A
535355 AUE_NULL ALL { int nosys(void); } { old getaudit }
536356 AUE_NULL ALL { int nosys(void); } { old setaudit }
b0d623f7
A
537357 AUE_GETAUDIT_ADDR ALL { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
538358 AUE_SETAUDIT_ADDR ALL { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
539359 AUE_AUDITCTL ALL { int auditctl(char *path); }
593a1d5f 540#if CONFIG_WORKQUEUE
b0d623f7
A
541360 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; }
542361 AUE_NULL ALL { int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, uint32_t sem) NO_SYSCALL_STUB; }
593a1d5f 543#else
b0d623f7
A
544360 AUE_NULL ALL { int nosys(void); }
545361 AUE_NULL ALL { int nosys(void); }
546#endif /* CONFIG_WORKQUEUE */
547362 AUE_KQUEUE ALL { int kqueue(void); }
548363 AUE_NULL ALL { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
6d2010ae 549364 AUE_LCHOWN ALL { int lchown(user_addr_t path, uid_t owner, gid_t group) NO_SYSCALL_STUB; }
b7266188 550365 AUE_STACKSNAPSHOT ALL { int stack_snapshot(pid_t pid, user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t flags, uint32_t dispatch_offset) NO_SYSCALL_STUB; }
593a1d5f 551#if CONFIG_WORKQUEUE
fe8ab488 552366 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
553367 AUE_WORKQOPEN ALL { int workq_open(void) NO_SYSCALL_STUB; }
554368 AUE_WORKQOPS ALL { int workq_kernreturn(int options, user_addr_t item, int affinity, int prio) NO_SYSCALL_STUB; }
555#else
556366 AUE_NULL ALL { int nosys(void); }
557367 AUE_NULL ALL { int nosys(void); }
558368 AUE_NULL ALL { int nosys(void); }
559#endif /* CONFIG_WORKQUEUE */
560369 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); }
561#if OLD_SEMWAIT_SIGNAL
562370 AUE_SEMWAITSIGNAL ALL { int __old_semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, const struct timespec *ts); }
563371 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 564#else
b0d623f7
A
565370 AUE_NULL ALL { int nosys(void); } { old __semwait_signal }
566371 AUE_NULL ALL { int nosys(void); } { old __semwait_signal }
593a1d5f 567#endif
d1ecb069 568372 AUE_NULL ALL { uint64_t thread_selfid (void) NO_SYSCALL_STUB; }
316670eb 569373 AUE_LEDGER ALL { int ledger(int cmd, caddr_t arg1, caddr_t arg2, caddr_t arg3); }
b0d623f7
A
570374 AUE_NULL ALL { int nosys(void); }
571375 AUE_NULL ALL { int nosys(void); }
572376 AUE_NULL ALL { int nosys(void); }
573377 AUE_NULL ALL { int nosys(void); }
574378 AUE_NULL ALL { int nosys(void); }
575379 AUE_NULL ALL { int nosys(void); }
576380 AUE_MAC_EXECVE ALL { int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); }
39236c6e 577#if CONFIG_MACF
b0d623f7
A
578381 AUE_MAC_SYSCALL ALL { int __mac_syscall(char *policy, int call, user_addr_t arg); }
579382 AUE_MAC_GET_FILE ALL { int __mac_get_file(char *path_p, struct mac *mac_p); }
580383 AUE_MAC_SET_FILE ALL { int __mac_set_file(char *path_p, struct mac *mac_p); }
581384 AUE_MAC_GET_LINK ALL { int __mac_get_link(char *path_p, struct mac *mac_p); }
582385 AUE_MAC_SET_LINK ALL { int __mac_set_link(char *path_p, struct mac *mac_p); }
583386 AUE_MAC_GET_PROC ALL { int __mac_get_proc(struct mac *mac_p); }
584387 AUE_MAC_SET_PROC ALL { int __mac_set_proc(struct mac *mac_p); }
585388 AUE_MAC_GET_FD ALL { int __mac_get_fd(int fd, struct mac *mac_p); }
586389 AUE_MAC_SET_FD ALL { int __mac_set_fd(int fd, struct mac *mac_p); }
587390 AUE_MAC_GET_PID ALL { int __mac_get_pid(pid_t pid, struct mac *mac_p); }
588391 AUE_MAC_GET_LCID ALL { int __mac_get_lcid(pid_t lcid, struct mac *mac_p); }
589392 AUE_MAC_GET_LCTX ALL { int __mac_get_lctx(struct mac *mac_p); }
590393 AUE_MAC_SET_LCTX ALL { int __mac_set_lctx(struct mac *mac_p); }
39236c6e
A
591#else
592381 AUE_MAC_SYSCALL ALL { int enosys(void); }
593382 AUE_MAC_GET_FILE ALL { int nosys(void); }
594383 AUE_MAC_SET_FILE ALL { int nosys(void); }
595384 AUE_MAC_GET_LINK ALL { int nosys(void); }
596385 AUE_MAC_SET_LINK ALL { int nosys(void); }
597386 AUE_MAC_GET_PROC ALL { int nosys(void); }
598387 AUE_MAC_SET_PROC ALL { int nosys(void); }
599388 AUE_MAC_GET_FD ALL { int nosys(void); }
600389 AUE_MAC_SET_FD ALL { int nosys(void); }
601390 AUE_MAC_GET_PID ALL { int nosys(void); }
602391 AUE_MAC_GET_LCID ALL { int nosys(void); }
603392 AUE_MAC_GET_LCTX ALL { int nosys(void); }
604393 AUE_MAC_SET_LCTX ALL { int nosys(void); }
605#endif
b0d623f7
A
606394 AUE_SETLCID ALL { int setlcid(pid_t pid, pid_t lcid) NO_SYSCALL_STUB; }
607395 AUE_GETLCID ALL { int getlcid(pid_t pid) NO_SYSCALL_STUB; }
608396 AUE_NULL ALL { user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
609397 AUE_NULL ALL { user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
610398 AUE_OPEN_RWTC ALL { int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
611399 AUE_CLOSE ALL { int close_nocancel(int fd) NO_SYSCALL_STUB; }
612400 AUE_WAIT4 ALL { int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
2d21ac55 613#if SOCKETS
b0d623f7
A
614401 AUE_RECVMSG ALL { int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
615402 AUE_SENDMSG ALL { int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
616403 AUE_RECVFROM ALL { int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
617404 AUE_ACCEPT ALL { int accept_nocancel(int s, caddr_t name, socklen_t *anamelen) NO_SYSCALL_STUB; }
2d21ac55 618#else
b0d623f7
A
619401 AUE_NULL ALL { int nosys(void); }
620402 AUE_NULL ALL { int nosys(void); }
621403 AUE_NULL ALL { int nosys(void); }
622404 AUE_NULL ALL { int nosys(void); }
2d21ac55 623#endif /* SOCKETS */
b0d623f7
A
624405 AUE_MSYNC ALL { int msync_nocancel(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; }
625406 AUE_FCNTL ALL { int fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
626407 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; }
627408 AUE_FSYNC ALL { int fsync_nocancel(int fd) NO_SYSCALL_STUB; }
2d21ac55 628#if SOCKETS
b0d623f7 629409 AUE_CONNECT ALL { int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
2d21ac55 630#else
b0d623f7 631409 AUE_NULL ALL { int nosys(void); }
2d21ac55 632#endif /* SOCKETS */
b0d623f7
A
633410 AUE_NULL ALL { int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; }
634411 AUE_READV ALL { user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
635412 AUE_WRITEV ALL { user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
2d21ac55 636#if SOCKETS
b0d623f7 637413 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 638#else
b0d623f7 639413 AUE_NULL ALL { int nosys(void); }
2d21ac55 640#endif /* SOCKETS */
b0d623f7
A
641414 AUE_PREAD ALL { user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
642415 AUE_PWRITE ALL { user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
643416 AUE_WAITID ALL { int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; }
644417 AUE_POLL ALL { int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; }
2d21ac55 645#if SYSV_MSG
b0d623f7
A
646418 AUE_MSGSND ALL { int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; }
647419 AUE_MSGRCV ALL { user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; }
91447636 648#else
b0d623f7
A
649418 AUE_NULL ALL { int nosys(void); }
650419 AUE_NULL ALL { int nosys(void); }
91447636 651#endif
b0d623f7
A
652420 AUE_SEMWAIT ALL { int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; }
653421 AUE_NULL ALL { int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; }
654422 AUE_SIGWAIT ALL { int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; }
655;#if OLD_SEMWAIT_SIGNAL
656;423 AUE_NULL ALL { int nosys(void); } { old __semwait_signal_nocancel }
657;#else
6d2010ae 658423 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
659;#endif
660424 AUE_MAC_MOUNT ALL { int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); }
39236c6e 661#if CONFIG_MACF
b0d623f7 662425 AUE_MAC_GET_MOUNT ALL { int __mac_get_mount(char *path, struct mac *mac_p); }
39236c6e
A
663#else
664425 AUE_MAC_GET_MOUNT ALL { int nosys(void); }
665#endif
b0d623f7
A
666426 AUE_MAC_GETFSSTAT ALL { int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); }
667427 AUE_FSGETPATH ALL { user_ssize_t fsgetpath(user_addr_t buf, size_t bufsize, user_addr_t fsid, uint64_t objid) NO_SYSCALL_STUB; } { private fsgetpath (File Manager SPI) }
668428 AUE_NULL ALL { mach_port_name_t audit_session_self(void); }
669429 AUE_NULL ALL { int audit_session_join(mach_port_name_t port); }
6d2010ae
A
670430 AUE_NULL ALL { int fileport_makeport(int fd, user_addr_t portnamep); }
671431 AUE_NULL ALL { int fileport_makefd(mach_port_name_t port); }
672432 AUE_NULL ALL { int audit_session_port(au_asid_t asid, user_addr_t portnamep); }
673433 AUE_NULL ALL { int pid_suspend(int pid); }
674434 AUE_NULL ALL { int pid_resume(int pid); }
39236c6e 675435 AUE_NULL ALL { int nosys(void); }
6d2010ae 676436 AUE_NULL ALL { int nosys(void); }
6d2010ae
A
677437 AUE_NULL ALL { int nosys(void); } { old shared_region_slide_np }
678438 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 679439 AUE_NULL ALL { int kas_info(int selector, void *value, size_t *size); }
39236c6e
A
680#if CONFIG_MEMORYSTATUS
681440 AUE_NULL ALL { int memorystatus_control(uint32_t command, int32_t pid, uint32_t flags, user_addr_t buffer, size_t buffersize); }
682#else
683440 AUE_NULL ALL { int nosys(void); }
684#endif
685441 AUE_OPEN_RWTC ALL { int guarded_open_np(const char *path, const guardid_t *guard, u_int guardflags, int flags, int mode) NO_SYSCALL_STUB; }
686442 AUE_CLOSE ALL { int guarded_close_np(int fd, const guardid_t *guard); }
687443 AUE_KQUEUE ALL { int guarded_kqueue_np(const guardid_t *guard, u_int guardflags); }
688444 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); }
689445 AUE_NULL ALL { int nosys(void); } { old __proc_suppress }
690446 AUE_NULL ALL { int proc_rlimit_control(pid_t pid, int flavor, void *arg); }
691#if SOCKETS
692447 AUE_CONNECT ALL { int connectx(int s, struct sockaddr *src, socklen_t srclen, struct sockaddr *dsts, socklen_t dstlen, uint32_t ifscope, associd_t aid, connid_t *cid); }
693448 AUE_NULL ALL { int disconnectx(int s, associd_t aid, connid_t cid); }
694449 AUE_NULL ALL { int peeloff(int s, associd_t aid); }
695450 AUE_SOCKET ALL { int socket_delegate(int domain, int type, int protocol, pid_t epid); }
696#else
697447 AUE_NULL ALL { int nosys(void); }
698448 AUE_NULL ALL { int nosys(void); }
699449 AUE_NULL ALL { int nosys(void); }
700450 AUE_NULL ALL { int nosys(void); }
701#endif /* SOCKETS */
39236c6e 702451 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
703#if CONFIG_PROC_UUID_POLICY
704452 AUE_NULL ALL { int proc_uuid_policy(uint32_t operation, uuid_t uuid, size_t uuidlen, uint32_t flags); }
705#else
706452 AUE_NULL ALL { int nosys(void); }
707#endif
708#if CONFIG_MEMORYSTATUS
709453 AUE_NULL ALL { int memorystatus_get_level(user_addr_t level); }
710#else
711453 AUE_NULL ALL { int nosys(void); }
712#endif
713454 AUE_NULL ALL { int system_override(uint64_t timeout, uint64_t flags); }
714455 AUE_NULL ALL { int vfs_purge(void); }
fe8ab488
A
715456 AUE_NULL ALL { int sfi_ctl(uint32_t operation, uint32_t sfi_class, uint64_t time, uint64_t *out_time) NO_SYSCALL_STUB; }
716457 AUE_NULL ALL { int sfi_pidctl(uint32_t operation, pid_t pid, uint32_t sfi_flags, uint32_t *out_sfi_flags) NO_SYSCALL_STUB; }
717#if CONFIG_COALITIONS
718458 AUE_NULL ALL { int coalition(uint32_t operation, uint64_t *cid, uint32_t flags) NO_SYSCALL_STUB; }
719459 AUE_NULL ALL { int coalition_info(uint32_t flavor, uint64_t *cid, void *buffer, size_t *bufsize) NO_SYSCALL_STUB; }
720#else
721458 AUE_NULL ALL { int enosys(void); }
722459 AUE_NULL ALL { int enosys(void); }
723#endif /* COALITIONS */
724#if NECP
725460 AUE_NULL ALL { int necp_match_policy(uint8_t *parameters, size_t parameters_size, struct necp_aggregate_result *returned_result); }
726#else
727460 AUE_NULL ALL { int nosys(void); }
728#endif /* NECP */
729461 AUE_GETATTRLISTBULK ALL { int getattrlistbulk(int dirfd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, uint64_t options); }
730462 AUE_NULL ALL { int enosys(void); } /* PLACEHOLDER for CLONEFILE */
731463 AUE_OPENAT_RWTC ALL { int openat(int fd, user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
732464 AUE_OPENAT_RWTC ALL { int openat_nocancel(int fd, user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
733465 AUE_RENAMEAT ALL { int renameat(int fromfd, char *from, int tofd, char *to) NO_SYSCALL_STUB; }
734466 AUE_FACCESSAT ALL { int faccessat(int fd, user_addr_t path, int amode, int flag); }
735467 AUE_FCHMODAT ALL { int fchmodat(int fd, user_addr_t path, int mode, int flag); }
736468 AUE_FCHOWNAT ALL { int fchownat(int fd, user_addr_t path, uid_t uid,gid_t gid, int flag); }
737469 AUE_FSTATAT ALL { int fstatat(int fd, user_addr_t path, user_addr_t ub, int flag); }
738470 AUE_FSTATAT ALL { int fstatat64(int fd, user_addr_t path, user_addr_t ub, int flag); }
739471 AUE_LINKAT ALL { int linkat(int fd1, user_addr_t path, int fd2, user_addr_t link, int flag); }
740472 AUE_UNLINKAT ALL { int unlinkat(int fd, user_addr_t path, int flag) NO_SYSCALL_STUB; }
741473 AUE_READLINKAT ALL { int readlinkat(int fd, user_addr_t path, user_addr_t buf, size_t bufsize); }
742474 AUE_SYMLINKAT ALL { int symlinkat(user_addr_t *path1, int fd, user_addr_t path2); }
743475 AUE_MKDIRAT ALL { int mkdirat(int fd, user_addr_t path, int mode); }
744476 AUE_GETATTRLISTAT ALL { int getattrlistat(int fd, const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
745477 AUE_NULL ALL { int proc_trace_log(pid_t pid, uint64_t uniqueid); }
746478 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; }
747479 AUE_OPENBYID_RWT ALL { int openbyid_np(user_addr_t fsid, user_addr_t objid, int oflags); }
748#if SOCKETS
749480 AUE_NULL ALL { user_ssize_t recvmsg_x(int s, struct msghdr_x *msgp, u_int cnt, int flags); }
750481 AUE_NULL ALL { user_ssize_t sendmsg_x(int s, struct msghdr_x *msgp, u_int cnt, int flags); }
751#else
752480 AUE_NULL ALL { int nosys(void); }
753481 AUE_NULL ALL { int nosys(void); }
754#endif /* SOCKETS */
755482 AUE_NULL ALL { uint64_t thread_selfusage(void) NO_SYSCALL_STUB; }
756#if CONFIG_CSR
757483 AUE_NULL ALL { int csrctl(uint32_t op, user_addr_t useraddr, user_addr_t usersize) NO_SYSCALL_STUB; }
758#else
759483 AUE_NULL ALL { int enosys(void); }
760#endif /* CSR */
761484 AUE_NULL ALL { int guarded_open_dprotected_np(const char *path, const guardid_t *guard, u_int guardflags, int flags, int dpclass, int dpflags, int mode) NO_SYSCALL_STUB; }
762485 AUE_NULL ALL { user_ssize_t guarded_write_np(int fd, const guardid_t *guard, user_addr_t cbuf, user_size_t nbyte); }
763486 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); }
764487 AUE_WRITEV ALL { user_ssize_t guarded_writev_np(int fd, const guardid_t *guard, struct iovec *iovp, u_int iovcnt); }
765#if CONFIG_SECLUDED_RENAME
766488 AUE_RENAME ALL { int rename_ext(char *from, char *to, u_int flags) NO_SYSCALL_STUB; }
767#else
768488 AUE_NULL ALL { int enosys(void); }
769#endif
770#if CONFIG_CODE_DECRYPTION
771489 AUE_MPROTECT ALL { int mremap_encrypted(caddr_t addr, size_t len, uint32_t cryptid, uint32_t cputype, uint32_t cpusubtype); }
772#else
773489 AUE_NULL ALL { int enosys(void); }
774#endif