Loading

Apple XNU syscalls.master

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <!-- saved from url=(0081)http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/kern/syscalls.master -->
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  4. <title>syscalls.master</title>
  5. <style type="text/css">
  6. .enscript-comment { font-style: italic; color: rgb(178,34,34); }
  7. .enscript-function-name { font-weight: bold; color: rgb(0,0,255); }
  8. .enscript-variable-name { font-weight: bold; color: rgb(184,134,11); }
  9. .enscript-keyword { font-weight: bold; color: rgb(160,32,240); }
  10. .enscript-reference { font-weight: bold; color: rgb(95,158,160); }
  11. .enscript-string { font-weight: bold; color: rgb(188,143,143); }
  12. .enscript-builtin { font-weight: bold; color: rgb(218,112,214); }
  13. .enscript-type { font-weight: bold; color: rgb(34,139,34); }
  14. .enscript-highlight { text-decoration: underline; color: 0; }
  15. <style type="text/css"></style></head>
  16. <body id="top">
  17. <h1 style="margin:8px;" id="f1">syscalls.master&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; font-size: 0.5em;">[<a href="http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/kern/syscalls.master?txt">plain text</a>]</span></h1>
  18. <hr>
  19. <div></div>
  20. <pre>;  derived from: FreeBSD @(#)syscalls.master   8.2 (Berkeley) 1/13/94
  21. ;
  22. ; System call name/number master file.
  23. ; This is file processed by .../xnu/bsd/kern/makesyscalls.sh and creates:
  24. ;   .../xnu/bsd/kern/init_sysent.c
  25. ;   .../xnu/bsd/kern/syscalls.c
  26. ;   .../xnu/bsd/sys/syscall.h
  27. ;   .../xnu/bsd/sys/sysproto.h
  28. ;   .../xnu/bsd/security/audit_syscalls.c
  29.  
  30. ; Columns -&gt; | Number Audit Files | { Name and Args } | { Comments }
  31. ;   Number:     system call number, must be in order
  32. ;   Audit:      the audit event associated with the system call
  33. ;           A value of AUE_NULL means no auditing, but it also means that
  34. ;           there is no audit event for the call at this time. For the
  35. ;           case where the event exists, but we don't want auditing, the
  36. ;           event should be #defined to AUE_NULL in audit_kevents.h.
  37. ;   Files:      with files to generate - "ALL" or any combo of:
  38. ;                   "T" for syscall table (in init_sysent.c)
  39. ;                   "N" for syscall names (in syscalls.c)
  40. ;                   "H" for syscall headers (in syscall.h)
  41. ;                   "P" for syscall prototypes (in sysproto.h)
  42. ;   Name and Args:  function prototype, optionally followed by
  43. ;           NO_SYSCALL_STUB (which mean no system call stub will
  44. ;           be generated in libSystem) and ending with a semicolon.
  45. ;           (Note: functions prefixed by double-underbar are
  46. ;           automatically given the NO_SYSCALL_STUB attribute.)
  47. ;   Comments:   additional comments about the sys call copied to output files
  48.  
  49. ; #ifdef's, #include's, #if's etc. are copied to all output files.
  50. ; N.B.: makesyscalls.sh and createsyscalls.pl must be updated to account
  51. ; for any new argument types.
  52.  
  53. #include &lt;sys/appleapiopts.h&gt;
  54. #include &lt;sys/param.h&gt;
  55. #include &lt;sys/systm.h&gt;
  56. #include &lt;sys/types.h&gt;
  57. #include &lt;sys/sysent.h&gt;
  58. #include &lt;sys/sysproto.h&gt;
  59.  
  60. 0   AUE_NULL    ALL { int nosys(void); }   { indirect syscall }
  61. 1   AUE_EXIT    ALL { void exit(int rval); }
  62. 2   AUE_FORK    ALL { int fork(void); }
  63. 3   AUE_NULL    ALL { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); }
  64. 4   AUE_NULL    ALL { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); }
  65. 5   AUE_OPEN_RWTC   ALL { int open(user_addr_t path, int flags, int mode); }
  66. 6   AUE_CLOSE   ALL { int close(int fd); }
  67. 7   AUE_WAIT4   ALL { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage); }
  68. 8   AUE_NULL    ALL { int nosys(void); }   { old creat }
  69. 9   AUE_LINK    ALL { int link(user_addr_t path, user_addr_t link); }
  70. 10  AUE_UNLINK  ALL { int unlink(user_addr_t path); }
  71. 11  AUE_NULL    ALL { int nosys(void); }   { old execv }
  72. 12  AUE_CHDIR   ALL { int chdir(user_addr_t path); }
  73. 13  AUE_FCHDIR  ALL { int fchdir(int fd); }
  74. 14  AUE_MKNOD   ALL { int mknod(user_addr_t path, int mode, int dev); }
  75. 15  AUE_CHMOD   ALL { int chmod(user_addr_t path, int mode); }
  76. 16  AUE_CHOWN   ALL { int chown(user_addr_t path, int uid, int gid); }
  77. 17  AUE_NULL    ALL { int nosys(void); }   { old break }
  78. 18  AUE_GETFSSTAT   ALL { int getfsstat(user_addr_t buf, int bufsize, int flags); }
  79. 19  AUE_NULL    ALL { int nosys(void); }   { old lseek }
  80. 20  AUE_GETPID  ALL { int getpid(void); }
  81. 21  AUE_NULL    ALL { int nosys(void); }   { old mount }
  82. 22  AUE_NULL    ALL { int nosys(void); }   { old umount }
  83. 23  AUE_SETUID  ALL { int setuid(uid_t uid); }
  84. 24  AUE_GETUID  ALL { int getuid(void); }
  85. 25  AUE_GETEUID ALL { int geteuid(void); }
  86. 26  AUE_PTRACE  ALL { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
  87. #if SOCKETS
  88. 27  AUE_RECVMSG ALL { int recvmsg(int s, struct msghdr *msg, int flags); }
  89. 28  AUE_SENDMSG ALL { int sendmsg(int s, caddr_t msg, int flags); }
  90. 29  AUE_RECVFROM    ALL { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr); }
  91. 30  AUE_ACCEPT  ALL { int accept(int s, caddr_t name, socklen_t *anamelen); }
  92. 31  AUE_GETPEERNAME ALL { int getpeername(int fdes, caddr_t asa, socklen_t *alen); }
  93. 32  AUE_GETSOCKNAME ALL { int getsockname(int fdes, caddr_t asa, socklen_t *alen); }
  94. #else
  95. 27  AUE_NULL    ALL { int nosys(void); }
  96. 28  AUE_NULL    ALL { int nosys(void); }
  97. 29  AUE_NULL    ALL { int nosys(void); }
  98. 30  AUE_NULL    ALL { int nosys(void); }
  99. 31  AUE_NULL    ALL { int nosys(void); }
  100. 32  AUE_NULL    ALL { int nosys(void); }
  101. #endif /* SOCKETS */
  102. 33  AUE_ACCESS  ALL { int access(user_addr_t path, int flags); }
  103. 34  AUE_CHFLAGS ALL { int chflags(char *path, int flags); }
  104. 35  AUE_FCHFLAGS    ALL { int fchflags(int fd, int flags); }
  105. 36  AUE_SYNC    ALL { int sync(void); }
  106. 37  AUE_KILL    ALL { int kill(int pid, int signum, int posix); }
  107. 38  AUE_NULL    ALL { int nosys(void); }   { old stat  }
  108. 39  AUE_GETPPID ALL { int getppid(void); }
  109. 40  AUE_NULL    ALL { int nosys(void); }   { old lstat }
  110. 41  AUE_DUP     ALL { int dup(u_int fd); }
  111. 42  AUE_PIPE    ALL { int pipe(void); }
  112. 43  AUE_GETEGID ALL { int getegid(void); }
  113. 44  AUE_PROFILE ALL { int profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
  114. 45  AUE_NULL    ALL { int nosys(void); } { old ktrace }
  115. 46  AUE_SIGACTION   ALL { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa); }
  116. 47  AUE_GETGID  ALL { int getgid(void); }
  117. 48  AUE_SIGPROCMASK ALL { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); }
  118. 49  AUE_GETLOGIN    ALL { int getlogin(char *namebuf, u_int namelen); }
  119. 50  AUE_SETLOGIN    ALL { int setlogin(char *namebuf); }
  120. 51  AUE_ACCT    ALL { int acct(char *path); }
  121. 52  AUE_SIGPENDING  ALL { int sigpending(struct sigvec *osv); }
  122. 53  AUE_SIGALTSTACK ALL { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss); }
  123. 54  AUE_IOCTL   ALL { int ioctl(int fd, u_long com, caddr_t data); }
  124. 55  AUE_REBOOT  ALL { int reboot(int opt, char *command); }
  125. 56  AUE_REVOKE  ALL { int revoke(char *path); }
  126. 57  AUE_SYMLINK ALL { int symlink(char *path, char *link); }
  127. 58  AUE_READLINK    ALL { int readlink(char *path, char *buf, int count); }
  128. 59  AUE_EXECVE  ALL { int execve(char *fname, char **argp, char **envp); }
  129. 60  AUE_UMASK   ALL { int umask(int newmask); }
  130. 61  AUE_CHROOT  ALL { int chroot(user_addr_t path); }
  131. 62  AUE_NULL    ALL { int nosys(void); }   { old fstat }
  132. 63  AUE_NULL    ALL { int nosys(void); }   { used internally, reserved }
  133. 64  AUE_NULL    ALL { int nosys(void); }   { old getpagesize }
  134. 65  AUE_MSYNC   ALL { int msync(caddr_t addr, size_t len, int flags); }
  135. 66  AUE_VFORK   ALL { int vfork(void); }
  136. 67  AUE_NULL    ALL { int nosys(void); }   { old vread }
  137. 68  AUE_NULL    ALL { int nosys(void); }   { old vwrite }
  138. 69  AUE_NULL    ALL { int nosys(void); }   { old sbrk }
  139. 70  AUE_NULL    ALL { int nosys(void); }   { old sstk }
  140. 71  AUE_NULL    ALL { int nosys(void); }   { old mmap }
  141. 72  AUE_NULL    ALL { int nosys(void); }   { old vadvise }
  142. 73  AUE_MUNMAP  ALL { int munmap(caddr_t addr, size_t len); }
  143. 74  AUE_MPROTECT    ALL { int mprotect(caddr_t addr, size_t len, int prot); }
  144. 75  AUE_MADVISE ALL { int madvise(caddr_t addr, size_t len, int behav); }
  145. 76  AUE_NULL    ALL { int nosys(void); }   { old vhangup }
  146. 77  AUE_NULL    ALL { int nosys(void); }   { old vlimit }
  147. 78  AUE_MINCORE ALL { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); }
  148. 79  AUE_GETGROUPS   ALL { int getgroups(u_int gidsetsize, gid_t *gidset); }
  149. 80  AUE_SETGROUPS   ALL { int setgroups(u_int gidsetsize, gid_t *gidset); }
  150. 81  AUE_GETPGRP ALL { int getpgrp(void); }
  151. 82  AUE_SETPGRP ALL { int setpgid(int pid, int pgid); }
  152. 83  AUE_SETITIMER   ALL { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
  153. 84  AUE_NULL    ALL { int nosys(void); }   { old wait }
  154. 85  AUE_SWAPON  ALL { int swapon(void); }
  155. 86  AUE_GETITIMER   ALL { int getitimer(u_int which, struct itimerval *itv); }
  156. 87  AUE_NULL    ALL { int nosys(void); }   { old gethostname }
  157. 88  AUE_NULL    ALL { int nosys(void); }   { old sethostname }
  158. 89  AUE_GETDTABLESIZE   ALL { int getdtablesize(void); }
  159. 90  AUE_DUP2    ALL { int dup2(u_int from, u_int to); }
  160. 91  AUE_NULL    ALL { int nosys(void); }   { old getdopt }
  161. 92  AUE_FCNTL   ALL { int fcntl(int fd, int cmd, long arg); }
  162. 93  AUE_SELECT  ALL { int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv); }
  163. 94  AUE_NULL    ALL { int nosys(void); }   { old setdopt }
  164. 95  AUE_FSYNC   ALL { int fsync(int fd); }
  165. 96  AUE_SETPRIORITY ALL { int setpriority(int which, id_t who, int prio); }
  166. #if SOCKETS
  167. 97  AUE_SOCKET  ALL { int socket(int domain, int type, int protocol); }
  168. 98  AUE_CONNECT ALL { int connect(int s, caddr_t name, socklen_t namelen); }
  169. #else
  170. 97  AUE_NULL    ALL { int nosys(void); }
  171. 98  AUE_NULL    ALL { int nosys(void); }
  172. #endif /* SOCKETS */
  173. 99  AUE_NULL    ALL { int nosys(void); }   { old accept }
  174. 100 AUE_GETPRIORITY ALL { int getpriority(int which, id_t who); }
  175. 101 AUE_NULL    ALL { int nosys(void); }   { old send }
  176. 102 AUE_NULL    ALL { int nosys(void); }   { old recv }
  177. 103 AUE_NULL    ALL { int nosys(void); }   { old sigreturn }
  178. #if SOCKETS
  179. 104 AUE_BIND    ALL { int bind(int s, caddr_t name, socklen_t namelen); }
  180. 105 AUE_SETSOCKOPT  ALL { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); }
  181. 106 AUE_LISTEN  ALL { int listen(int s, int backlog); }
  182. #else
  183. 104 AUE_NULL    ALL { int nosys(void); }
  184. 105 AUE_NULL    ALL { int nosys(void); }
  185. 106 AUE_NULL    ALL { int nosys(void); }
  186. #endif /* SOCKETS */
  187. 107 AUE_NULL    ALL { int nosys(void); }   { old vtimes }
  188. 108 AUE_NULL    ALL { int nosys(void); }   { old sigvec }
  189. 109 AUE_NULL    ALL { int nosys(void); }   { old sigblock }
  190. 110 AUE_NULL    ALL { int nosys(void); }   { old sigsetmask }
  191. 111 AUE_NULL    ALL { int sigsuspend(sigset_t mask); }
  192. 112 AUE_NULL    ALL { int nosys(void); }   { old sigstack }
  193. #if SOCKETS
  194. 113 AUE_NULL    ALL { int nosys(void); }   { old recvmsg }
  195. 114 AUE_NULL    ALL { int nosys(void); }   { old sendmsg } 
  196. #else
  197. 113 AUE_NULL    ALL { int nosys(void); }
  198. 114 AUE_NULL    ALL { int nosys(void); }
  199. #endif /* SOCKETS */
  200. 115 AUE_NULL    ALL { int nosys(void); }   { old vtrace }
  201. 116 AUE_GETTIMEOFDAY    ALL { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
  202. 117 AUE_GETRUSAGE   ALL { int getrusage(int who, struct rusage *rusage); }
  203. #if SOCKETS
  204. 118 AUE_GETSOCKOPT  ALL { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); }
  205. #else
  206. 118 AUE_NULL    ALL { int nosys(void); }
  207. #endif /* SOCKETS */
  208. 119 AUE_NULL    ALL { int nosys(void); }   { old resuba }
  209. 120 AUE_READV   ALL { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); }
  210. 121 AUE_WRITEV  ALL { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); }
  211. 122 AUE_SETTIMEOFDAY    ALL { int settimeofday(struct timeval *tv, struct timezone *tzp); }
  212. 123 AUE_FCHOWN  ALL { int fchown(int fd, int uid, int gid); }
  213. 124 AUE_FCHMOD  ALL { int fchmod(int fd, int mode); }
  214. 125 AUE_NULL    ALL { int nosys(void); }   { old recvfrom }
  215. 126 AUE_SETREUID    ALL { int setreuid(uid_t ruid, uid_t euid); }
  216. 127 AUE_SETREGID    ALL { int setregid(gid_t rgid, gid_t egid); }
  217. 128 AUE_RENAME  ALL { int rename(char *from, char *to); }
  218. 129 AUE_NULL    ALL { int nosys(void); }   { old truncate }
  219. 130 AUE_NULL    ALL { int nosys(void); }   { old ftruncate }
  220. 131 AUE_FLOCK   ALL { int flock(int fd, int how); }
  221. 132 AUE_MKFIFO  ALL { int mkfifo(user_addr_t path, int mode); }
  222. #if SOCKETS
  223. 133 AUE_SENDTO  ALL { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen); }
  224. 134 AUE_SHUTDOWN    ALL { int shutdown(int s, int how); }
  225. 135 AUE_SOCKETPAIR  ALL { int socketpair(int domain, int type, int protocol, int *rsv); }
  226. #else
  227. 133 AUE_NULL    ALL { int nosys(void); }
  228. 134 AUE_NULL    ALL { int nosys(void); }
  229. 135 AUE_NULL    ALL { int nosys(void); }
  230. #endif /* SOCKETS */
  231. 136 AUE_MKDIR   ALL { int mkdir(user_addr_t path, int mode); }
  232. 137 AUE_RMDIR   ALL { int rmdir(char *path); }
  233. 138 AUE_UTIMES  ALL { int utimes(char *path, struct timeval *tptr); }
  234. 139 AUE_FUTIMES ALL { int futimes(int fd, struct timeval *tptr); }
  235. 140 AUE_ADJTIME ALL { int adjtime(struct timeval *delta, struct timeval *olddelta); }
  236. 141 AUE_NULL    ALL { int nosys(void); }   { old getpeername }
  237. 142 AUE_SYSCTL  ALL { int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp); }
  238. 143 AUE_NULL    ALL { int nosys(void); }   { old sethostid  }
  239. 144 AUE_NULL    ALL { int nosys(void); }   { old getrlimit }
  240. 145 AUE_NULL    ALL { int nosys(void); }   { old setrlimit }
  241. 146 AUE_NULL    ALL { int nosys(void); }   { old killpg }
  242. 147 AUE_SETSID  ALL { int setsid(void); }
  243. 148 AUE_NULL    ALL { int nosys(void); }   { old setquota }
  244. 149 AUE_NULL    ALL { int nosys(void); }   { old qquota }
  245. 150 AUE_NULL    ALL { int nosys(void); }   { old getsockname }
  246. 151 AUE_GETPGID ALL { int getpgid(pid_t pid); }
  247. 152 AUE_SETPRIVEXEC ALL { int setprivexec(int flag); }
  248. 153 AUE_PREAD   ALL { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
  249. 154 AUE_PWRITE  ALL { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); }
  250.  
  251. #if NFSSERVER
  252. 155 AUE_NFS_SVC ALL { int nfssvc(int flag, caddr_t argp); }
  253. #else
  254. 155 AUE_NULL    ALL { int nosys(void); }
  255. #endif
  256.  
  257. 156 AUE_NULL    ALL { int nosys(void); }   { old getdirentries }
  258. 157 AUE_STATFS  ALL { int statfs(char *path, struct statfs *buf); }
  259. 158 AUE_FSTATFS ALL { int fstatfs(int fd, struct statfs *buf); }
  260. 159 AUE_UNMOUNT ALL { int unmount(user_addr_t path, int flags); }
  261. 160 AUE_NULL    ALL { int nosys(void); }   { old async_daemon }
  262.  
  263. #if NFSSERVER
  264. 161 AUE_NFS_GETFH   ALL { int getfh(char *fname, fhandle_t *fhp); }
  265. #else
  266. 161 AUE_NULL    ALL { int nosys(void); }
  267. #endif
  268.  
  269. 162 AUE_NULL    ALL { int nosys(void); }   { old getdomainname }
  270. 163 AUE_NULL    ALL { int nosys(void); }   { old setdomainname }
  271. 164 AUE_NULL    ALL { int nosys(void); }
  272. 165 AUE_QUOTACTL    ALL { int quotactl(const char *path, int cmd, int uid, caddr_t arg); }
  273. 166 AUE_NULL    ALL { int nosys(void); }   { old exportfs }
  274. 167 AUE_MOUNT   ALL { int mount(char *type, char *path, int flags, caddr_t data); }
  275. 168 AUE_NULL    ALL { int nosys(void); }   { old ustat }
  276. 169 AUE_CSOPS   ALL { int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); }
  277. 170 AUE_NULL    HN  { int nosys(void); }   { old table }
  278. 171 AUE_NULL    ALL { int nosys(void); }   { old wait3 }
  279. 172 AUE_NULL    ALL { int nosys(void); }   { old rpause }  
  280. 173 AUE_WAITID  ALL { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); }
  281. 174 AUE_NULL    ALL { int nosys(void); }   { old getdents }
  282. 175 AUE_NULL    ALL { int nosys(void); }   { old gc_control }
  283. 176 AUE_ADDPROFILE  ALL { int add_profil(short *bufbase, size_t bufsize, u_long pcoffset, u_int pcscale); }
  284. 177 AUE_NULL    ALL { int nosys(void); }
  285. 178 AUE_NULL    ALL { int nosys(void); }
  286. 179 AUE_NULL    ALL { int nosys(void); }
  287. 180 AUE_KDEBUGTRACE ALL     { int kdebug_trace(int code, int arg1, int arg2, int arg3, int arg4, int arg5) NO_SYSCALL_STUB; }
  288. 181 AUE_SETGID  ALL { int setgid(gid_t gid); }
  289. 182 AUE_SETEGID ALL { int setegid(gid_t egid); }
  290. 183 AUE_SETEUID ALL { int seteuid(uid_t euid); }
  291. 184 AUE_SIGRETURN   ALL { int sigreturn(struct ucontext *uctx, int infostyle) NO_SYSCALL_STUB; }
  292. 185 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; }
  293. 186 AUE_NULL    ALL { int nosys(void); }
  294. 187 AUE_FDATASYNC   ALL { int fdatasync(int fd); }
  295. 188 AUE_STAT    ALL { int stat(user_addr_t path, user_addr_t ub); }
  296. 189 AUE_FSTAT   ALL { int fstat(int fd, user_addr_t ub); }
  297. 190 AUE_LSTAT   ALL { int lstat(user_addr_t path, user_addr_t ub); }
  298. 191 AUE_PATHCONF    ALL { int pathconf(char *path, int name); }
  299. 192 AUE_FPATHCONF   ALL { int fpathconf(int fd, int name); }
  300. 193 AUE_NULL    ALL { int nosys(void); }
  301. 194 AUE_GETRLIMIT   ALL { int getrlimit(u_int which, struct rlimit *rlp); }
  302. 195 AUE_SETRLIMIT   ALL { int setrlimit(u_int which, struct rlimit *rlp); }
  303. 196 AUE_GETDIRENTRIES   ALL { int getdirentries(int fd, char *buf, u_int count, long *basep); }
  304. 197 AUE_MMAP    ALL { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); }
  305. 198 AUE_NULL    ALL { int nosys(void); }    { __syscall }
  306. 199 AUE_LSEEK   ALL { off_t lseek(int fd, off_t offset, int whence); }
  307. 200 AUE_TRUNCATE    ALL { int truncate(char *path, off_t length); }
  308. 201 AUE_FTRUNCATE   ALL { int ftruncate(int fd, off_t length); }
  309. 202 AUE_SYSCTL  ALL     { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
  310. 203 AUE_MLOCK   ALL { int mlock(caddr_t addr, size_t len); }
  311. 204 AUE_MUNLOCK ALL { int munlock(caddr_t addr, size_t len); }
  312. 205 AUE_UNDELETE    ALL { int undelete(user_addr_t path); }
  313.  
  314. #if NETAT
  315. 206 AUE_ATSOCKET    ALL { int ATsocket(int proto); }
  316. 207 AUE_ATGETMSG    UALL    { int ATgetmsg(int fd, void *ctlptr, void *datptr, int *flags); }
  317. 208 AUE_ATPUTMSG    UALL    { int ATputmsg(int fd, void *ctlptr, void *datptr, int flags); }
  318. 209 AUE_ATPSNDREQ   UALL    { int ATPsndreq(int fd, unsigned char *buf, int len, int nowait); }
  319. 210 AUE_ATPSNDRSP   UALL    { int ATPsndrsp(int fd, unsigned char *respbuff, int resplen, int datalen); }
  320. 211 AUE_ATPGETREQ   UALL    { int ATPgetreq(int fd, unsigned char *buf, int buflen); }
  321. 212 AUE_ATPGETRSP   UALL    { int ATPgetrsp(int fd, unsigned char *bdsp); }
  322. 213 AUE_NULL    ALL { int nosys(void); }    { Reserved for AppleTalk }
  323. #else
  324. 206 AUE_NULL    ALL { int nosys(void); }
  325. 207 AUE_NULL    ALL { int nosys(void); }
  326. 208 AUE_NULL    ALL { int nosys(void); }
  327. 209 AUE_NULL    ALL { int nosys(void); }
  328. 210 AUE_NULL    ALL { int nosys(void); }
  329. 211 AUE_NULL    ALL { int nosys(void); }
  330. 212 AUE_NULL    ALL { int nosys(void); }
  331. 213 AUE_NULL    ALL { int nosys(void); }    { Reserved for AppleTalk }
  332. #endif /* NETAT */
  333.  
  334. 214 AUE_NULL    ALL { int nosys(void); }
  335. 215 AUE_NULL    ALL { int nosys(void); }
  336.  
  337. ; System Calls 216 - 230 are reserved for calls to support HFS/HFS Plus
  338. ; file system semantics. Currently, we only use 215-227.  The rest is
  339. ; for future expansion in anticipation of new MacOS APIs for HFS Plus.
  340. ; These calls are not conditionalized because while they are specific
  341. ; to HFS semantics, they are not specific to the HFS filesystem.
  342. ; We expect all filesystems to recognize the call and report that it is
  343. ; not supported or to actually implement it.
  344. 216 AUE_MKCOMPLEX   UHN { int mkcomplex(const char *path, mode_t mode, u_long type); }  { soon to be obsolete }
  345. 217 AUE_STATV   UHN { int statv(const char *path, struct vstat *vsb); }     { soon to be obsolete }
  346. 218 AUE_LSTATV  UHN { int lstatv(const char *path, struct vstat *vsb); }    { soon to be obsolete }
  347. 219 AUE_FSTATV  UHN { int fstatv(int fd, struct vstat *vsb); }  { soon to be obsolete }
  348. 220 AUE_GETATTRLIST ALL { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
  349. 221 AUE_SETATTRLIST ALL { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
  350. 222 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); }
  351. 223 AUE_EXCHANGEDATA    ALL { int exchangedata(const char *path1, const char *path2, u_long options); }
  352. 224 AUE_NULL        ALL { int nosys(void); } { old checkuseraccess / fsgetpath (which moved to 427) }
  353. 225 AUE_SEARCHFS    ALL { int searchfs(const char *path, struct fssearchblock *searchblock, uint32_t *nummatches, uint32_t scriptcode, uint32_t options, struct searchstate *state); }
  354. 226 AUE_DELETE  ALL { int delete(user_addr_t path) NO_SYSCALL_STUB; }       { private delete (Carbon semantics) }
  355. 227 AUE_COPYFILE    ALL { int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; }
  356. 228 AUE_FGETATTRLIST    ALL { int fgetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
  357. 229 AUE_FSETATTRLIST    ALL { int fsetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); }
  358. 230 AUE_POLL    ALL { int poll(struct pollfd *fds, u_int nfds, int timeout); }
  359. 231 AUE_WATCHEVENT  ALL { int watchevent(struct eventreq *u_req, int u_eventmask); }
  360. 232 AUE_WAITEVENT   ALL { int waitevent(struct eventreq *u_req, struct timeval *tv); }
  361. 233 AUE_MODWATCH    ALL { int modwatch(struct eventreq *u_req, int u_eventmask); }
  362. 234 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); }
  363. 235 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); }
  364. 236 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); }
  365. 237 AUE_FSETXATTR   ALL { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); }
  366. 238 AUE_REMOVEXATTR ALL { int removexattr(user_addr_t path, user_addr_t attrname, int options); }
  367. 239 AUE_FREMOVEXATTR    ALL { int fremovexattr(int fd, user_addr_t attrname, int options); }
  368. 240 AUE_LISTXATTR   ALL { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); }
  369. 241 AUE_FLISTXATTR  ALL { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); }
  370. 242 AUE_FSCTL   ALL { int fsctl(const char *path, u_long cmd, caddr_t data, u_int options); }
  371. 243 AUE_INITGROUPS  ALL { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid); }
  372. 244 AUE_POSIX_SPAWN ALL { int posix_spawn(pid_t *pid, const char *path, const struct _posix_spawn_args_desc *adesc, char **argv, char **envp); }
  373. 245 AUE_FFSCTL  ALL { int ffsctl(int fd, u_long cmd, caddr_t data, u_int options); }
  374. 246 AUE_NULL    ALL { int nosys(void); }
  375.  
  376. #if NFSCLIENT
  377. 247 AUE_NULL    ALL { int nfsclnt(int flag, caddr_t argp); }
  378. #else
  379. 247 AUE_NULL    ALL { int nosys(void); }
  380. #endif
  381. #if NFSSERVER
  382. 248 AUE_FHOPEN  ALL { int fhopen(const struct fhandle *u_fhp, int flags); }
  383. #else
  384. 248 AUE_NULL    ALL { int nosys(void); }
  385. #endif
  386.  
  387. 249 AUE_NULL    ALL { int nosys(void); }
  388. 250 AUE_MINHERIT    ALL { int minherit(void *addr, size_t len, int inherit); }
  389. #if SYSV_SEM
  390. 251 AUE_SEMSYS  ALL { int semsys(u_int which, int a2, int a3, int a4, int a5); }
  391. #else
  392. 251 AUE_NULL    ALL { int nosys(void); }
  393. #endif
  394. #if SYSV_MSG
  395. 252 AUE_MSGSYS  ALL { int msgsys(u_int which, int a2, int a3, int a4, int a5); }
  396. #else
  397. 252 AUE_NULL    ALL { int nosys(void); }
  398. #endif
  399. #if SYSV_SHM
  400. 253 AUE_SHMSYS  ALL { int shmsys(u_int which, int a2, int a3, int a4); }
  401. #else
  402. 253 AUE_NULL    ALL { int nosys(void); }
  403. #endif
  404. #if SYSV_SEM
  405. 254 AUE_SEMCTL  ALL { int semctl(int semid, int semnum, int cmd, semun_t arg); }
  406. 255 AUE_SEMGET  ALL { int semget(key_t key, int nsems, int semflg); }
  407. 256 AUE_SEMOP   ALL { int semop(int semid, struct sembuf *sops, int nsops); }
  408. 257 AUE_NULL    ALL { int nosys(void); }
  409. #else
  410. 254 AUE_NULL    ALL { int nosys(void); }
  411. 255 AUE_NULL    ALL { int nosys(void); }
  412. 256 AUE_NULL    ALL { int nosys(void); }
  413. 257 AUE_NULL    ALL { int nosys(void); }
  414. #endif
  415. #if SYSV_MSG
  416. 258 AUE_MSGCTL  ALL { int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
  417. 259 AUE_MSGGET  ALL { int msgget(key_t key, int msgflg); }
  418. 260 AUE_MSGSND  ALL { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); }
  419. 261 AUE_MSGRCV  ALL { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
  420. #else
  421. 258 AUE_NULL    ALL { int nosys(void); }
  422. 259 AUE_NULL    ALL { int nosys(void); }
  423. 260 AUE_NULL    ALL { int nosys(void); }
  424. 261 AUE_NULL    ALL { int nosys(void); }
  425. #endif
  426. #if SYSV_SHM
  427. 262 AUE_SHMAT   ALL { user_addr_t shmat(int shmid, void *shmaddr, int shmflg); }
  428. 263 AUE_SHMCTL  ALL { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
  429. 264 AUE_SHMDT   ALL { int shmdt(void *shmaddr); }
  430. 265 AUE_SHMGET  ALL { int shmget(key_t key, size_t size, int shmflg); }
  431. #else
  432. 262 AUE_NULL    ALL { int nosys(void); }
  433. 263 AUE_NULL    ALL { int nosys(void); }
  434. 264 AUE_NULL    ALL { int nosys(void); }
  435. 265 AUE_NULL    ALL { int nosys(void); }
  436. #endif
  437. 266 AUE_SHMOPEN ALL { int shm_open(const char *name, int oflag, int mode); }
  438. 267 AUE_SHMUNLINK   ALL { int shm_unlink(const char *name); }
  439. 268 AUE_SEMOPEN ALL { user_addr_t sem_open(const char *name, int oflag, int mode, int value); }
  440. 269 AUE_SEMCLOSE    ALL { int sem_close(sem_t *sem); }
  441. 270 AUE_SEMUNLINK   ALL { int sem_unlink(const char *name); }
  442. 271 AUE_SEMWAIT ALL { int sem_wait(sem_t *sem); }
  443. 272 AUE_SEMTRYWAIT  ALL { int sem_trywait(sem_t *sem); }
  444. 273 AUE_SEMPOST ALL { int sem_post(sem_t *sem); }
  445. 274 AUE_SEMGETVALUE ALL { int sem_getvalue(sem_t *sem, int *sval); }
  446. 275 AUE_SEMINIT ALL { int sem_init(sem_t *sem, int phsared, u_int value); }
  447. 276 AUE_SEMDESTROY  ALL { int sem_destroy(sem_t *sem); }
  448. 277 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; }
  449. 278 AUE_UMASK_EXTENDED  ALL { int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; }
  450. 279 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; }
  451. 280 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; }
  452. 281 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; }
  453. 282 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; }
  454. 283 AUE_FCHMOD_EXTENDED ALL { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; }
  455. 284 AUE_ACCESS_EXTENDED ALL { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; }
  456. 285 AUE_SETTID  ALL { int settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; }
  457. 286 AUE_GETTID  ALL { int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; }
  458. 287 AUE_SETSGROUPS  ALL { int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
  459. 288 AUE_GETSGROUPS  ALL { int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
  460. 289 AUE_SETWGROUPS  ALL { int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
  461. 290 AUE_GETWGROUPS  ALL { int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; }
  462. 291 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; }
  463. 292 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; }
  464. 293 AUE_IDENTITYSVC ALL { int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; }
  465. 294 AUE_NULL    ALL { int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; }
  466. 295 AUE_NULL    ALL { int shared_region_map_np(int fd, uint32_t count, const struct shared_file_mapping_np *mappings) NO_SYSCALL_STUB; }
  467. 296 AUE_NULL    ALL { int vm_pressure_monitor(int wait_for_pressure, int nsecs_monitored, uint32_t *pages_reclaimed); }
  468. #if PSYNCH
  469. 297 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; }
  470. 298 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; }
  471. 299 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; }
  472. 300 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; }
  473. 301 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; }
  474. 302 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; }
  475. 303 AUE_NULL    ALL { int psynch_cvbroad(user_addr_t cv, uint32_t cvgen, uint32_t diffgen, user_addr_t mutex,  uint32_t mgen, uint32_t ugen, uint64_t tid, uint32_t flags) NO_SYSCALL_STUB; }
  476. 304 AUE_NULL    ALL { int psynch_cvsignal(user_addr_t cv, uint32_t cvgen, uint32_t cvugen, user_addr_t mutex,  uint32_t mgen, uint32_t ugen, int thread_port, uint32_t flags) NO_SYSCALL_STUB; }
  477. 305 AUE_NULL    ALL { uint32_t psynch_cvwait(user_addr_t cv, uint32_t cvgen, uint32_t cvugen, user_addr_t mutex,  uint32_t mgen, uint32_t ugen, uint64_t sec, uint64_t usec) NO_SYSCALL_STUB; }
  478. 306 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; }
  479. 307 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; }
  480. 308 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; }
  481. 309 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; }
  482. #else
  483. 297 AUE_NULL    ALL { int nosys(void); } { old reset_shared_file }
  484. 298 AUE_NULL    ALL { int nosys(void); } { old new_system_shared_regions }
  485. 299 AUE_NULL    ALL { int enosys(void); } { old shared_region_map_file_np }
  486. 300 AUE_NULL    ALL { int enosys(void); } { old shared_region_make_private_np }
  487. 301 AUE_NULL    ALL { int nosys(void); }
  488. 302 AUE_NULL    ALL { int nosys(void); }
  489. 303 AUE_NULL    ALL { int nosys(void); }
  490. 304 AUE_NULL    ALL { int nosys(void); }
  491. 305 AUE_NULL    ALL { int nosys(void); }
  492. 306 AUE_NULL    ALL { int nosys(void); }
  493. 307 AUE_NULL    ALL { int nosys(void); }
  494. 308 AUE_NULL    ALL { int nosys(void); }
  495. 309 AUE_NULL    ALL { int nosys(void); }
  496. #endif
  497. 310 AUE_GETSID  ALL { int getsid(pid_t pid); }
  498. 311 AUE_SETTIDWITHPID   ALL { int settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; }
  499. 312 AUE_NULL    ALL { int nosys(void); } { old __pthread_cond_timedwait }
  500. 313 AUE_NULL    ALL { int aio_fsync(int op, user_addr_t aiocbp); }
  501. 314     AUE_NULL    ALL { user_ssize_t aio_return(user_addr_t aiocbp); }
  502. 315 AUE_NULL    ALL { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); }
  503. 316 AUE_NULL    ALL { int aio_cancel(int fd, user_addr_t aiocbp); }
  504. 317 AUE_NULL    ALL { int aio_error(user_addr_t aiocbp); }
  505. 318 AUE_NULL    ALL { int aio_read(user_addr_t aiocbp); }
  506. 319 AUE_NULL    ALL { int aio_write(user_addr_t aiocbp); }
  507. 320 AUE_LIOLISTIO   ALL { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); }
  508. 321 AUE_NULL    ALL { int nosys(void); } { old __pthread_cond_wait }
  509. 322 AUE_IOPOLICYSYS ALL { int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; }
  510. 323 AUE_NULL    ALL { int nosys(void); }
  511. 324 AUE_MLOCKALL    ALL { int mlockall(int how); }
  512. 325 AUE_MUNLOCKALL  ALL { int munlockall(int how); }
  513. 326 AUE_NULL    ALL { int nosys(void); }
  514. 327 AUE_ISSETUGID   ALL { int issetugid(void); }
  515. 328 AUE_PTHREADKILL ALL { int __pthread_kill(int thread_port, int sig); }
  516. 329 AUE_PTHREADSIGMASK  ALL { int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); }
  517. 330 AUE_SIGWAIT ALL { int __sigwait(user_addr_t set, user_addr_t sig); }
  518. 331 AUE_NULL    ALL { int __disable_threadsignal(int value); }
  519. 332 AUE_NULL    ALL { int __pthread_markcancel(int thread_port); }
  520. 333 AUE_NULL    ALL { int __pthread_canceled(int  action); }
  521.  
  522. ;#if OLD_SEMWAIT_SIGNAL
  523. ;334    AUE_NULL    ALL { int nosys(void); }   { old __semwait_signal }
  524. ;#else
  525. 334     AUE_SEMWAITSIGNAL       ALL     { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, int64_t tv_sec, int32_t tv_nsec); }
  526. ;#endif
  527.  
  528. 335 AUE_NULL    ALL { int nosys(void); }   { old utrace }
  529. 336 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; }
  530. #if SENDFILE
  531. 337 AUE_SENDFILE    ALL { int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); }
  532. #else /* !SENDFILE */
  533. 337 AUE_NULL    ALL { int nosys(void); }
  534. #endif /* SENDFILE */
  535. 338 AUE_STAT64  ALL { int stat64(user_addr_t path, user_addr_t ub); }
  536. 339 AUE_FSTAT64 ALL { int fstat64(int fd, user_addr_t ub); }
  537. 340 AUE_LSTAT64 ALL { int lstat64(user_addr_t path, user_addr_t ub); }
  538. 341 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; }
  539. 342 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; }
  540. 343 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; }
  541. 344 AUE_GETDIRENTRIES64 ALL { user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; }
  542. 345 AUE_STATFS64    ALL { int statfs64(char *path, struct statfs64 *buf); }
  543. 346 AUE_FSTATFS64   ALL { int fstatfs64(int fd, struct statfs64 *buf); }
  544. 347 AUE_GETFSSTAT64 ALL { int getfsstat64(user_addr_t buf, int bufsize, int flags); }
  545. 348 AUE_NULL    ALL { int __pthread_chdir(user_addr_t path); }
  546. 349 AUE_NULL    ALL { int __pthread_fchdir(int fd); }
  547. 350 AUE_AUDIT   ALL { int audit(void *record, int length); }
  548. 351 AUE_AUDITON ALL { int auditon(int cmd, void *data, int length); }
  549. 352 AUE_NULL    ALL { int nosys(void); }
  550. 353 AUE_GETAUID ALL { int getauid(au_id_t *auid); }
  551. 354 AUE_SETAUID ALL { int setauid(au_id_t *auid); }
  552. 355 AUE_GETAUDIT    ALL { int getaudit(struct auditinfo *auditinfo); }
  553. 356 AUE_SETAUDIT    ALL { int setaudit(struct auditinfo *auditinfo); }
  554. 357 AUE_GETAUDIT_ADDR   ALL { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
  555. 358 AUE_SETAUDIT_ADDR   ALL { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); }
  556. 359 AUE_AUDITCTL    ALL { int auditctl(char *path); }
  557. #if CONFIG_WORKQUEUE
  558. 360 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; }
  559. 361 AUE_NULL    ALL { int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, uint32_t sem) NO_SYSCALL_STUB; }
  560. #else
  561. 360 AUE_NULL    ALL { int nosys(void); }
  562. 361 AUE_NULL    ALL { int nosys(void); }
  563. #endif /* CONFIG_WORKQUEUE */
  564. 362 AUE_KQUEUE  ALL { int kqueue(void); }
  565. 363 AUE_NULL    ALL { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
  566. 364 AUE_LCHOWN  ALL { int lchown(user_addr_t path, uid_t owner, gid_t group); }
  567. 365 AUE_STACKSNAPSHOT   ALL { int stack_snapshot(pid_t pid, user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t options) NO_SYSCALL_STUB; }
  568. #if CONFIG_WORKQUEUE
  569. 366 AUE_NULL    ALL { int bsdthread_register(user_addr_t threadstart, user_addr_t wqthread, int pthsize,user_addr_t dummy_value, user_addr_t targetconc_ptr, uint64_t dispatchqueue_offset) NO_SYSCALL_STUB; }
  570. 367 AUE_WORKQOPEN   ALL { int workq_open(void) NO_SYSCALL_STUB; }
  571. 368 AUE_WORKQOPS    ALL { int workq_kernreturn(int options, user_addr_t item, int affinity, int prio) NO_SYSCALL_STUB; }
  572. #else
  573. 366 AUE_NULL    ALL { int nosys(void); }
  574. 367 AUE_NULL    ALL { int nosys(void); }
  575. 368 AUE_NULL    ALL { int nosys(void); }
  576. #endif /* CONFIG_WORKQUEUE */
  577. 369 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); }
  578. #if OLD_SEMWAIT_SIGNAL
  579. 370     AUE_SEMWAITSIGNAL       ALL     { int __old_semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, const struct timespec *ts); }
  580. 371     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; }
  581. #else
  582. 370     AUE_NULL        ALL     { int nosys(void); }   { old __semwait_signal }
  583. 371     AUE_NULL        ALL     { int nosys(void); }   { old __semwait_signal }
  584. #endif
  585. 372 AUE_NULL    ALL { user_addr_t thread_selfid (void) NO_SYSCALL_STUB; }
  586. 373 AUE_NULL    ALL { int nosys(void); }
  587. 374 AUE_NULL    ALL { int nosys(void); }
  588. 375 AUE_NULL    ALL { int nosys(void); }
  589. 376 AUE_NULL    ALL { int nosys(void); }
  590. 377 AUE_NULL    ALL { int nosys(void); }
  591. 378 AUE_NULL    ALL { int nosys(void); }
  592. 379 AUE_NULL    ALL { int nosys(void); }
  593. 380 AUE_MAC_EXECVE  ALL { int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); }
  594. 381 AUE_MAC_SYSCALL ALL { int __mac_syscall(char *policy, int call, user_addr_t arg); }
  595. 382 AUE_MAC_GET_FILE    ALL { int __mac_get_file(char *path_p, struct mac *mac_p); }
  596. 383 AUE_MAC_SET_FILE    ALL { int __mac_set_file(char *path_p, struct mac *mac_p); }
  597. 384 AUE_MAC_GET_LINK    ALL { int __mac_get_link(char *path_p, struct mac *mac_p); }
  598. 385 AUE_MAC_SET_LINK    ALL { int __mac_set_link(char *path_p, struct mac *mac_p); }
  599. 386 AUE_MAC_GET_PROC    ALL { int __mac_get_proc(struct mac *mac_p); }
  600. 387 AUE_MAC_SET_PROC    ALL { int __mac_set_proc(struct mac *mac_p); }
  601. 388 AUE_MAC_GET_FD  ALL { int __mac_get_fd(int fd, struct mac *mac_p); }
  602. 389 AUE_MAC_SET_FD  ALL { int __mac_set_fd(int fd, struct mac *mac_p); }
  603. 390 AUE_MAC_GET_PID ALL { int __mac_get_pid(pid_t pid, struct mac *mac_p); }
  604. 391 AUE_MAC_GET_LCID    ALL { int __mac_get_lcid(pid_t lcid, struct mac *mac_p); }
  605. 392 AUE_MAC_GET_LCTX    ALL { int __mac_get_lctx(struct mac *mac_p); }
  606. 393 AUE_MAC_SET_LCTX    ALL { int __mac_set_lctx(struct mac *mac_p); }
  607. 394 AUE_SETLCID ALL { int setlcid(pid_t pid, pid_t lcid) NO_SYSCALL_STUB; }
  608. 395 AUE_GETLCID ALL { int getlcid(pid_t pid) NO_SYSCALL_STUB; }
  609. 396 AUE_NULL    ALL { user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
  610. 397 AUE_NULL    ALL { user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; }
  611. 398 AUE_OPEN_RWTC   ALL { int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; }
  612. 399 AUE_CLOSE   ALL { int close_nocancel(int fd) NO_SYSCALL_STUB; }
  613. 400 AUE_WAIT4   ALL { int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; }
  614. #if SOCKETS
  615. 401 AUE_RECVMSG ALL { int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; }
  616. 402 AUE_SENDMSG ALL { int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; }
  617. 403 AUE_RECVFROM    ALL { int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; }
  618. 404 AUE_ACCEPT  ALL { int accept_nocancel(int s, caddr_t name, socklen_t    *anamelen) NO_SYSCALL_STUB; }
  619. #else
  620. 401 AUE_NULL    ALL { int nosys(void); }
  621. 402 AUE_NULL    ALL { int nosys(void); }
  622. 403 AUE_NULL    ALL { int nosys(void); }
  623. 404 AUE_NULL    ALL { int nosys(void); }
  624. #endif /* SOCKETS */
  625. 405 AUE_MSYNC   ALL { int msync_nocancel(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; }
  626. 406 AUE_FCNTL   ALL { int fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; }
  627. 407 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; }
  628. 408 AUE_FSYNC   ALL { int fsync_nocancel(int fd) NO_SYSCALL_STUB; }
  629. #if SOCKETS
  630. 409 AUE_CONNECT ALL { int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; }
  631. #else
  632. 409 AUE_NULL    ALL { int nosys(void); }
  633. #endif /* SOCKETS */
  634. 410 AUE_NULL    ALL { int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; }
  635. 411 AUE_READV   ALL { user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
  636. 412 AUE_WRITEV  ALL { user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; }
  637. #if SOCKETS
  638. 413 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; }
  639. #else
  640. 413 AUE_NULL    ALL { int nosys(void); }
  641. #endif /* SOCKETS */
  642. 414 AUE_PREAD   ALL { user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
  643. 415 AUE_PWRITE  ALL { user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; }
  644. 416 AUE_WAITID  ALL { int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; }
  645. 417 AUE_POLL    ALL { int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; }
  646. #if SYSV_MSG
  647. 418 AUE_MSGSND  ALL { int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; }
  648. 419 AUE_MSGRCV  ALL { user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; }
  649. #else
  650. 418 AUE_NULL    ALL { int nosys(void); }
  651. 419 AUE_NULL    ALL { int nosys(void); }
  652. #endif
  653. 420 AUE_SEMWAIT ALL { int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; }
  654. 421 AUE_NULL    ALL { int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; }
  655. 422 AUE_SIGWAIT ALL { int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; }
  656. ;#if OLD_SEMWAIT_SIGNAL
  657. ;423    AUE_NULL    ALL { int nosys(void); }   { old __semwait_signal_nocancel }
  658. ;#else
  659. 423     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) NO_SYSCALL_STUB;}
  660. ;#endif
  661. 424 AUE_MAC_MOUNT   ALL { int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); }
  662. 425 AUE_MAC_GET_MOUNT   ALL { int __mac_get_mount(char *path, struct mac *mac_p); }
  663. 426 AUE_MAC_GETFSSTAT   ALL { int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); }
  664. 427 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) }
  665. 428 AUE_NULL    ALL { mach_port_name_t audit_session_self(void); }
  666. 429 AUE_NULL    ALL { int audit_session_join(mach_port_name_t port); }
  667. </pre>
  668. <hr>
  669. </body></html>