1/*
2 * Copyright (c) 2004-2008 Apple Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 *
28 *
29 * System call switch table.
30 *
31 * DO NOT EDIT-- this file is automatically generated.
32 * created from /Users/nafod/Desktop/woboqcode/xnu-4903.221.2/bsd/kern/syscalls.master
33 */
34
35#include <sys/param.h>
36#include <sys/types.h>
37
38#include <bsm/audit.h>
39#include <bsm/audit_kevents.h>
40
41#if CONFIG_AUDIT
42
43au_event_t sys_au_event[] = {
44 AUE_NULL, /* 0 = syscall indirect syscall */
45 AUE_EXIT, /* 1 = exit */
46 AUE_FORK, /* 2 = fork */
47 AUE_NULL, /* 3 = read */
48 AUE_NULL, /* 4 = write */
49 AUE_OPEN_RWTC, /* 5 = open */
50 AUE_CLOSE, /* 6 = close */
51 AUE_WAIT4, /* 7 = wait4 */
52 AUE_NULL, /* 8 = enosys old creat */
53 AUE_LINK, /* 9 = link */
54 AUE_UNLINK, /* 10 = unlink */
55 AUE_NULL, /* 11 = enosys old execv */
56 AUE_CHDIR, /* 12 = chdir */
57 AUE_FCHDIR, /* 13 = fchdir */
58 AUE_MKNOD, /* 14 = mknod */
59 AUE_CHMOD, /* 15 = chmod */
60 AUE_CHOWN, /* 16 = chown */
61 AUE_NULL, /* 17 = enosys old break */
62 AUE_GETFSSTAT, /* 18 = getfsstat */
63 AUE_NULL, /* 19 = enosys old lseek */
64 AUE_GETPID, /* 20 = getpid */
65 AUE_NULL, /* 21 = enosys old mount */
66 AUE_NULL, /* 22 = enosys old umount */
67 AUE_SETUID, /* 23 = setuid */
68 AUE_GETUID, /* 24 = getuid */
69 AUE_GETEUID, /* 25 = geteuid */
70 AUE_PTRACE, /* 26 = ptrace */
71#if SOCKETS
72 AUE_RECVMSG, /* 27 = recvmsg */
73 AUE_SENDMSG, /* 28 = sendmsg */
74 AUE_RECVFROM, /* 29 = recvfrom */
75 AUE_ACCEPT, /* 30 = accept */
76 AUE_GETPEERNAME, /* 31 = getpeername */
77 AUE_GETSOCKNAME, /* 32 = getsockname */
78#else
79 AUE_NULL, /* 27 = nosys */
80 AUE_NULL, /* 28 = nosys */
81 AUE_NULL, /* 29 = nosys */
82 AUE_NULL, /* 30 = nosys */
83 AUE_NULL, /* 31 = nosys */
84 AUE_NULL, /* 32 = nosys */
85#endif /* SOCKETS */
86 AUE_ACCESS, /* 33 = access */
87 AUE_CHFLAGS, /* 34 = chflags */
88 AUE_FCHFLAGS, /* 35 = fchflags */
89 AUE_SYNC, /* 36 = sync */
90 AUE_KILL, /* 37 = kill */
91 AUE_NULL, /* 38 = nosys old stat */
92 AUE_GETPPID, /* 39 = getppid */
93 AUE_NULL, /* 40 = nosys old lstat */
94 AUE_DUP, /* 41 = dup */
95 AUE_PIPE, /* 42 = pipe */
96 AUE_GETEGID, /* 43 = getegid */
97 AUE_NULL, /* 44 = nosys old profil */
98 AUE_NULL, /* 45 = nosys old ktrace */
99 AUE_SIGACTION, /* 46 = sigaction */
100 AUE_GETGID, /* 47 = getgid */
101 AUE_SIGPROCMASK, /* 48 = sigprocmask */
102 AUE_GETLOGIN, /* 49 = getlogin */
103 AUE_SETLOGIN, /* 50 = setlogin */
104 AUE_ACCT, /* 51 = acct */
105 AUE_SIGPENDING, /* 52 = sigpending */
106 AUE_SIGALTSTACK, /* 53 = sigaltstack */
107 AUE_IOCTL, /* 54 = ioctl */
108 AUE_REBOOT, /* 55 = reboot */
109 AUE_REVOKE, /* 56 = revoke */
110 AUE_SYMLINK, /* 57 = symlink */
111 AUE_READLINK, /* 58 = readlink */
112 AUE_EXECVE, /* 59 = execve */
113 AUE_UMASK, /* 60 = umask */
114 AUE_CHROOT, /* 61 = chroot */
115 AUE_NULL, /* 62 = nosys old fstat */
116 AUE_NULL, /* 63 = nosys used internally and reserved */
117 AUE_NULL, /* 64 = nosys old getpagesize */
118 AUE_MSYNC, /* 65 = msync */
119 AUE_VFORK, /* 66 = vfork */
120 AUE_NULL, /* 67 = nosys old vread */
121 AUE_NULL, /* 68 = nosys old vwrite */
122 AUE_NULL, /* 69 = nosys old sbrk */
123 AUE_NULL, /* 70 = nosys old sstk */
124 AUE_NULL, /* 71 = nosys old mmap */
125 AUE_NULL, /* 72 = nosys old vadvise */
126 AUE_MUNMAP, /* 73 = munmap */
127 AUE_MPROTECT, /* 74 = mprotect */
128 AUE_MADVISE, /* 75 = madvise */
129 AUE_NULL, /* 76 = nosys old vhangup */
130 AUE_NULL, /* 77 = nosys old vlimit */
131 AUE_MINCORE, /* 78 = mincore */
132 AUE_GETGROUPS, /* 79 = getgroups */
133 AUE_SETGROUPS, /* 80 = setgroups */
134 AUE_GETPGRP, /* 81 = getpgrp */
135 AUE_SETPGRP, /* 82 = setpgid */
136 AUE_SETITIMER, /* 83 = setitimer */
137 AUE_NULL, /* 84 = nosys old wait */
138 AUE_SWAPON, /* 85 = swapon */
139 AUE_GETITIMER, /* 86 = getitimer */
140 AUE_NULL, /* 87 = nosys old gethostname */
141 AUE_NULL, /* 88 = nosys old sethostname */
142 AUE_GETDTABLESIZE, /* 89 = getdtablesize */
143 AUE_DUP2, /* 90 = dup2 */
144 AUE_NULL, /* 91 = nosys old getdopt */
145 AUE_FCNTL, /* 92 = fcntl */
146 AUE_SELECT, /* 93 = select */
147 AUE_NULL, /* 94 = nosys old setdopt */
148 AUE_FSYNC, /* 95 = fsync */
149 AUE_SETPRIORITY, /* 96 = setpriority */
150#if SOCKETS
151 AUE_SOCKET, /* 97 = socket */
152 AUE_CONNECT, /* 98 = connect */
153#else
154 AUE_NULL, /* 97 = nosys */
155 AUE_NULL, /* 98 = nosys */
156#endif /* SOCKETS */
157 AUE_NULL, /* 99 = nosys old accept */
158 AUE_GETPRIORITY, /* 100 = getpriority */
159 AUE_NULL, /* 101 = nosys old send */
160 AUE_NULL, /* 102 = nosys old recv */
161 AUE_NULL, /* 103 = nosys old sigreturn */
162#if SOCKETS
163 AUE_BIND, /* 104 = bind */
164 AUE_SETSOCKOPT, /* 105 = setsockopt */
165 AUE_LISTEN, /* 106 = listen */
166#else
167 AUE_NULL, /* 104 = nosys */
168 AUE_NULL, /* 105 = nosys */
169 AUE_NULL, /* 106 = nosys */
170#endif /* SOCKETS */
171 AUE_NULL, /* 107 = nosys old vtimes */
172 AUE_NULL, /* 108 = nosys old sigvec */
173 AUE_NULL, /* 109 = nosys old sigblock */
174 AUE_NULL, /* 110 = nosys old sigsetmask */
175 AUE_NULL, /* 111 = sigsuspend */
176 AUE_NULL, /* 112 = nosys old sigstack */
177#if SOCKETS
178 AUE_NULL, /* 113 = nosys old recvmsg */
179 AUE_NULL, /* 114 = nosys old sendmsg */
180#else
181 AUE_NULL, /* 113 = nosys */
182 AUE_NULL, /* 114 = nosys */
183#endif /* SOCKETS */
184 AUE_NULL, /* 115 = nosys old vtrace */
185 AUE_GETTIMEOFDAY, /* 116 = gettimeofday */
186 AUE_GETRUSAGE, /* 117 = getrusage */
187#if SOCKETS
188 AUE_GETSOCKOPT, /* 118 = getsockopt */
189#else
190 AUE_NULL, /* 118 = nosys */
191#endif /* SOCKETS */
192 AUE_NULL, /* 119 = nosys old resuba */
193 AUE_READV, /* 120 = readv */
194 AUE_WRITEV, /* 121 = writev */
195 AUE_SETTIMEOFDAY, /* 122 = settimeofday */
196 AUE_FCHOWN, /* 123 = fchown */
197 AUE_FCHMOD, /* 124 = fchmod */
198 AUE_NULL, /* 125 = nosys old recvfrom */
199 AUE_SETREUID, /* 126 = setreuid */
200 AUE_SETREGID, /* 127 = setregid */
201 AUE_RENAME, /* 128 = rename */
202 AUE_NULL, /* 129 = nosys old truncate */
203 AUE_NULL, /* 130 = nosys old ftruncate */
204 AUE_FLOCK, /* 131 = flock */
205 AUE_MKFIFO, /* 132 = mkfifo */
206#if SOCKETS
207 AUE_SENDTO, /* 133 = sendto */
208 AUE_SHUTDOWN, /* 134 = shutdown */
209 AUE_SOCKETPAIR, /* 135 = socketpair */
210#else
211 AUE_NULL, /* 133 = nosys */
212 AUE_NULL, /* 134 = nosys */
213 AUE_NULL, /* 135 = nosys */
214#endif /* SOCKETS */
215 AUE_MKDIR, /* 136 = mkdir */
216 AUE_RMDIR, /* 137 = rmdir */
217 AUE_UTIMES, /* 138 = utimes */
218 AUE_FUTIMES, /* 139 = futimes */
219 AUE_ADJTIME, /* 140 = adjtime */
220 AUE_NULL, /* 141 = nosys old getpeername */
221 AUE_SYSCTL, /* 142 = gethostuuid */
222 AUE_NULL, /* 143 = nosys old sethostid */
223 AUE_NULL, /* 144 = nosys old getrlimit */
224 AUE_NULL, /* 145 = nosys old setrlimit */
225 AUE_NULL, /* 146 = nosys old killpg */
226 AUE_SETSID, /* 147 = setsid */
227 AUE_NULL, /* 148 = nosys old setquota */
228 AUE_NULL, /* 149 = nosys old qquota */
229 AUE_NULL, /* 150 = nosys old getsockname */
230 AUE_GETPGID, /* 151 = getpgid */
231 AUE_SETPRIVEXEC, /* 152 = setprivexec */
232 AUE_PREAD, /* 153 = pread */
233 AUE_PWRITE, /* 154 = pwrite */
234#if NFSSERVER
235 AUE_NFS_SVC, /* 155 = nfssvc */
236#else
237 AUE_NULL, /* 155 = nosys */
238#endif
239 AUE_NULL, /* 156 = nosys old getdirentries */
240 AUE_STATFS, /* 157 = statfs */
241 AUE_FSTATFS, /* 158 = fstatfs */
242 AUE_UNMOUNT, /* 159 = unmount */
243 AUE_NULL, /* 160 = nosys old async_daemon */
244#if NFSSERVER
245 AUE_NFS_GETFH, /* 161 = getfh */
246#else
247 AUE_NULL, /* 161 = nosys */
248#endif
249 AUE_NULL, /* 162 = nosys old getdomainname */
250 AUE_NULL, /* 163 = nosys old setdomainname */
251 AUE_NULL, /* 164 = nosys */
252 AUE_QUOTACTL, /* 165 = quotactl */
253 AUE_NULL, /* 166 = nosys old exportfs */
254 AUE_MOUNT, /* 167 = mount */
255 AUE_NULL, /* 168 = nosys old ustat */
256 AUE_CSOPS, /* 169 = csops */
257 AUE_CSOPS, /* 170 = csops_audittoken */
258 AUE_NULL, /* 171 = nosys old wait3 */
259 AUE_NULL, /* 172 = nosys old rpause */
260 AUE_WAITID, /* 173 = waitid */
261 AUE_NULL, /* 174 = nosys old getdents */
262 AUE_NULL, /* 175 = nosys old gc_control */
263 AUE_NULL, /* 176 = nosys old add_profil */
264 AUE_NULL, /* 177 = kdebug_typefilter */
265 AUE_NULL, /* 178 = kdebug_trace_string */
266 AUE_NULL, /* 179 = kdebug_trace64 */
267 AUE_NULL, /* 180 = kdebug_trace */
268 AUE_SETGID, /* 181 = setgid */
269 AUE_SETEGID, /* 182 = setegid */
270 AUE_SETEUID, /* 183 = seteuid */
271 AUE_SIGRETURN, /* 184 = sigreturn */
272 AUE_NULL, /* 185 = enosys old chud */
273 AUE_NULL, /* 186 = thread_selfcounts */
274 AUE_FDATASYNC, /* 187 = fdatasync */
275 AUE_STAT, /* 188 = stat */
276 AUE_FSTAT, /* 189 = fstat */
277 AUE_LSTAT, /* 190 = lstat */
278 AUE_PATHCONF, /* 191 = pathconf */
279 AUE_FPATHCONF, /* 192 = fpathconf */
280 AUE_NULL, /* 193 = nosys old getfsstat */
281 AUE_GETRLIMIT, /* 194 = getrlimit */
282 AUE_SETRLIMIT, /* 195 = setrlimit */
283 AUE_GETDIRENTRIES, /* 196 = getdirentries */
284 AUE_MMAP, /* 197 = mmap */
285 AUE_NULL, /* 198 = nosys old __syscall */
286 AUE_LSEEK, /* 199 = lseek */
287 AUE_TRUNCATE, /* 200 = truncate */
288 AUE_FTRUNCATE, /* 201 = ftruncate */
289 AUE_SYSCTL, /* 202 = sysctl */
290 AUE_MLOCK, /* 203 = mlock */
291 AUE_MUNLOCK, /* 204 = munlock */
292 AUE_UNDELETE, /* 205 = undelete */
293 AUE_NULL, /* 206 = nosys old ATsocket */
294 AUE_NULL, /* 207 = nosys old ATgetmsg */
295 AUE_NULL, /* 208 = nosys old ATputmsg */
296 AUE_NULL, /* 209 = nosys old ATsndreq */
297 AUE_NULL, /* 210 = nosys old ATsndrsp */
298 AUE_NULL, /* 211 = nosys old ATgetreq */
299 AUE_NULL, /* 212 = nosys old ATgetrsp */
300 AUE_NULL, /* 213 = nosys Reserved for AppleTalk */
301 AUE_NULL, /* 214 = nosys */
302 AUE_NULL, /* 215 = nosys */
303 AUE_NULL, /* 216 = open_dprotected_np */
304 AUE_NULL, /* 217 = nosys old statv */
305 AUE_NULL, /* 218 = nosys old lstatv */
306 AUE_NULL, /* 219 = nosys old fstatv */
307 AUE_GETATTRLIST, /* 220 = getattrlist */
308 AUE_SETATTRLIST, /* 221 = setattrlist */
309 AUE_GETDIRENTRIESATTR, /* 222 = getdirentriesattr */
310 AUE_EXCHANGEDATA, /* 223 = exchangedata */
311 AUE_NULL, /* 224 = nosys old checkuseraccess or fsgetpath */
312 AUE_SEARCHFS, /* 225 = searchfs */
313 AUE_DELETE, /* 226 = delete private delete ( Carbon semantics ) */
314 AUE_COPYFILE, /* 227 = copyfile */
315 AUE_FGETATTRLIST, /* 228 = fgetattrlist */
316 AUE_FSETATTRLIST, /* 229 = fsetattrlist */
317 AUE_POLL, /* 230 = poll */
318 AUE_WATCHEVENT, /* 231 = watchevent */
319 AUE_WAITEVENT, /* 232 = waitevent */
320 AUE_MODWATCH, /* 233 = modwatch */
321 AUE_GETXATTR, /* 234 = getxattr */
322 AUE_FGETXATTR, /* 235 = fgetxattr */
323 AUE_SETXATTR, /* 236 = setxattr */
324 AUE_FSETXATTR, /* 237 = fsetxattr */
325 AUE_REMOVEXATTR, /* 238 = removexattr */
326 AUE_FREMOVEXATTR, /* 239 = fremovexattr */
327 AUE_LISTXATTR, /* 240 = listxattr */
328 AUE_FLISTXATTR, /* 241 = flistxattr */
329 AUE_FSCTL, /* 242 = fsctl */
330 AUE_INITGROUPS, /* 243 = initgroups */
331 AUE_POSIX_SPAWN, /* 244 = posix_spawn */
332 AUE_FFSCTL, /* 245 = ffsctl */
333 AUE_NULL, /* 246 = nosys */
334#if NFSCLIENT
335 AUE_NULL, /* 247 = nfsclnt */
336#else
337 AUE_NULL, /* 247 = nosys */
338#endif
339#if NFSSERVER
340 AUE_FHOPEN, /* 248 = fhopen */
341#else
342 AUE_NULL, /* 248 = nosys */
343#endif
344 AUE_NULL, /* 249 = nosys */
345 AUE_MINHERIT, /* 250 = minherit */
346#if SYSV_SEM
347 AUE_SEMSYS, /* 251 = semsys */
348#else
349 AUE_NULL, /* 251 = nosys */
350#endif
351#if SYSV_MSG
352 AUE_MSGSYS, /* 252 = msgsys */
353#else
354 AUE_NULL, /* 252 = nosys */
355#endif
356#if SYSV_SHM
357 AUE_SHMSYS, /* 253 = shmsys */
358#else
359 AUE_NULL, /* 253 = nosys */
360#endif
361#if SYSV_SEM
362 AUE_SEMCTL, /* 254 = semctl */
363 AUE_SEMGET, /* 255 = semget */
364 AUE_SEMOP, /* 256 = semop */
365 AUE_NULL, /* 257 = nosys old semconfig */
366#else
367 AUE_NULL, /* 254 = nosys */
368 AUE_NULL, /* 255 = nosys */
369 AUE_NULL, /* 256 = nosys */
370 AUE_NULL, /* 257 = nosys */
371#endif
372#if SYSV_MSG
373 AUE_MSGCTL, /* 258 = msgctl */
374 AUE_MSGGET, /* 259 = msgget */
375 AUE_MSGSND, /* 260 = msgsnd */
376 AUE_MSGRCV, /* 261 = msgrcv */
377#else
378 AUE_NULL, /* 258 = nosys */
379 AUE_NULL, /* 259 = nosys */
380 AUE_NULL, /* 260 = nosys */
381 AUE_NULL, /* 261 = nosys */
382#endif
383#if SYSV_SHM
384 AUE_SHMAT, /* 262 = shmat */
385 AUE_SHMCTL, /* 263 = shmctl */
386 AUE_SHMDT, /* 264 = shmdt */
387 AUE_SHMGET, /* 265 = shmget */
388#else
389 AUE_NULL, /* 262 = nosys */
390 AUE_NULL, /* 263 = nosys */
391 AUE_NULL, /* 264 = nosys */
392 AUE_NULL, /* 265 = nosys */
393#endif
394 AUE_SHMOPEN, /* 266 = shm_open */
395 AUE_SHMUNLINK, /* 267 = shm_unlink */
396 AUE_SEMOPEN, /* 268 = sem_open */
397 AUE_SEMCLOSE, /* 269 = sem_close */
398 AUE_SEMUNLINK, /* 270 = sem_unlink */
399 AUE_SEMWAIT, /* 271 = sem_wait */
400 AUE_SEMTRYWAIT, /* 272 = sem_trywait */
401 AUE_SEMPOST, /* 273 = sem_post */
402 AUE_SYSCTL, /* 274 = sysctlbyname */
403 AUE_NULL, /* 275 = enosys old sem_init */
404 AUE_NULL, /* 276 = enosys old sem_destroy */
405 AUE_OPEN_EXTENDED_RWTC, /* 277 = open_extended */
406 AUE_UMASK_EXTENDED, /* 278 = umask_extended */
407 AUE_STAT_EXTENDED, /* 279 = stat_extended */
408 AUE_LSTAT_EXTENDED, /* 280 = lstat_extended */
409 AUE_FSTAT_EXTENDED, /* 281 = fstat_extended */
410 AUE_CHMOD_EXTENDED, /* 282 = chmod_extended */
411 AUE_FCHMOD_EXTENDED, /* 283 = fchmod_extended */
412 AUE_ACCESS_EXTENDED, /* 284 = access_extended */
413 AUE_SETTID, /* 285 = settid */
414 AUE_GETTID, /* 286 = gettid */
415 AUE_SETSGROUPS, /* 287 = setsgroups */
416 AUE_GETSGROUPS, /* 288 = getsgroups */
417 AUE_SETWGROUPS, /* 289 = setwgroups */
418 AUE_GETWGROUPS, /* 290 = getwgroups */
419 AUE_MKFIFO_EXTENDED, /* 291 = mkfifo_extended */
420 AUE_MKDIR_EXTENDED, /* 292 = mkdir_extended */
421#if CONFIG_EXT_RESOLVER
422 AUE_IDENTITYSVC, /* 293 = identitysvc */
423#else
424 AUE_NULL, /* 293 = nosys */
425#endif
426 AUE_NULL, /* 294 = shared_region_check_np */
427 AUE_NULL, /* 295 = nosys old shared_region_map_np */
428 AUE_NULL, /* 296 = vm_pressure_monitor */
429#if PSYNCH
430 AUE_NULL, /* 297 = psynch_rw_longrdlock */
431 AUE_NULL, /* 298 = psynch_rw_yieldwrlock */
432 AUE_NULL, /* 299 = psynch_rw_downgrade */
433 AUE_NULL, /* 300 = psynch_rw_upgrade */
434 AUE_NULL, /* 301 = psynch_mutexwait */
435 AUE_NULL, /* 302 = psynch_mutexdrop */
436 AUE_NULL, /* 303 = psynch_cvbroad */
437 AUE_NULL, /* 304 = psynch_cvsignal */
438 AUE_NULL, /* 305 = psynch_cvwait */
439 AUE_NULL, /* 306 = psynch_rw_rdlock */
440 AUE_NULL, /* 307 = psynch_rw_wrlock */
441 AUE_NULL, /* 308 = psynch_rw_unlock */
442 AUE_NULL, /* 309 = psynch_rw_unlock2 */
443#else
444 AUE_NULL, /* 297 = nosys old reset_shared_file */
445 AUE_NULL, /* 298 = nosys old new_system_shared_regions */
446 AUE_NULL, /* 299 = enosys old shared_region_map_file_np */
447 AUE_NULL, /* 300 = enosys old shared_region_make_private_np */
448 AUE_NULL, /* 301 = nosys */
449 AUE_NULL, /* 302 = nosys */
450 AUE_NULL, /* 303 = nosys */
451 AUE_NULL, /* 304 = nosys */
452 AUE_NULL, /* 305 = nosys */
453 AUE_NULL, /* 306 = nosys */
454 AUE_NULL, /* 307 = nosys */
455 AUE_NULL, /* 308 = nosys */
456 AUE_NULL, /* 309 = nosys */
457#endif
458 AUE_GETSID, /* 310 = getsid */
459 AUE_SETTIDWITHPID, /* 311 = settid_with_pid */
460#if PSYNCH
461 AUE_NULL, /* 312 = psynch_cvclrprepost */
462#else
463 AUE_NULL, /* 312 = nosys old __pthread_cond_timedwait */
464#endif
465 AUE_NULL, /* 313 = aio_fsync */
466 AUE_NULL, /* 314 = aio_return */
467 AUE_NULL, /* 315 = aio_suspend */
468 AUE_NULL, /* 316 = aio_cancel */
469 AUE_NULL, /* 317 = aio_error */
470 AUE_NULL, /* 318 = aio_read */
471 AUE_NULL, /* 319 = aio_write */
472 AUE_LIOLISTIO, /* 320 = lio_listio */
473 AUE_NULL, /* 321 = nosys old __pthread_cond_wait */
474 AUE_IOPOLICYSYS, /* 322 = iopolicysys */
475 AUE_NULL, /* 323 = process_policy */
476 AUE_MLOCKALL, /* 324 = mlockall */
477 AUE_MUNLOCKALL, /* 325 = munlockall */
478 AUE_NULL, /* 326 = nosys */
479 AUE_ISSETUGID, /* 327 = issetugid */
480 AUE_PTHREADKILL, /* 328 = __pthread_kill */
481 AUE_PTHREADSIGMASK, /* 329 = __pthread_sigmask */
482 AUE_SIGWAIT, /* 330 = __sigwait */
483 AUE_NULL, /* 331 = __disable_threadsignal */
484 AUE_NULL, /* 332 = __pthread_markcancel */
485 AUE_NULL, /* 333 = __pthread_canceled */
486 AUE_SEMWAITSIGNAL, /* 334 = __semwait_signal */
487 AUE_NULL, /* 335 = nosys old utrace */
488 AUE_PROCINFO, /* 336 = proc_info */
489#if SENDFILE
490 AUE_SENDFILE, /* 337 = sendfile */
491#else /* !SENDFILE */
492 AUE_NULL, /* 337 = nosys */
493#endif /* SENDFILE */
494 AUE_STAT64, /* 338 = stat64 */
495 AUE_FSTAT64, /* 339 = fstat64 */
496 AUE_LSTAT64, /* 340 = lstat64 */
497 AUE_STAT64_EXTENDED, /* 341 = stat64_extended */
498 AUE_LSTAT64_EXTENDED, /* 342 = lstat64_extended */
499 AUE_FSTAT64_EXTENDED, /* 343 = fstat64_extended */
500 AUE_GETDIRENTRIES64, /* 344 = getdirentries64 */
501 AUE_STATFS64, /* 345 = statfs64 */
502 AUE_FSTATFS64, /* 346 = fstatfs64 */
503 AUE_GETFSSTAT64, /* 347 = getfsstat64 */
504 AUE_NULL, /* 348 = __pthread_chdir */
505 AUE_NULL, /* 349 = __pthread_fchdir */
506 AUE_AUDIT, /* 350 = audit */
507 AUE_AUDITON, /* 351 = auditon */
508 AUE_NULL, /* 352 = nosys */
509 AUE_GETAUID, /* 353 = getauid */
510 AUE_SETAUID, /* 354 = setauid */
511 AUE_NULL, /* 355 = nosys old getaudit */
512 AUE_NULL, /* 356 = nosys old setaudit */
513 AUE_GETAUDIT_ADDR, /* 357 = getaudit_addr */
514 AUE_SETAUDIT_ADDR, /* 358 = setaudit_addr */
515 AUE_AUDITCTL, /* 359 = auditctl */
516#if CONFIG_WORKQUEUE
517 AUE_NULL, /* 360 = bsdthread_create */
518 AUE_NULL, /* 361 = bsdthread_terminate */
519#else
520 AUE_NULL, /* 360 = nosys */
521 AUE_NULL, /* 361 = nosys */
522#endif /* CONFIG_WORKQUEUE */
523 AUE_KQUEUE, /* 362 = kqueue */
524 AUE_NULL, /* 363 = kevent */
525 AUE_LCHOWN, /* 364 = lchown */
526 AUE_NULL, /* 365 = nosys old stack_snapshot */
527#if CONFIG_WORKQUEUE
528 AUE_NULL, /* 366 = bsdthread_register */
529 AUE_WORKQOPEN, /* 367 = workq_open */
530 AUE_WORKQOPS, /* 368 = workq_kernreturn */
531#else
532 AUE_NULL, /* 366 = nosys */
533 AUE_NULL, /* 367 = nosys */
534 AUE_NULL, /* 368 = nosys */
535#endif /* CONFIG_WORKQUEUE */
536 AUE_NULL, /* 369 = kevent64 */
537#if OLD_SEMWAIT_SIGNAL
538 AUE_SEMWAITSIGNAL, /* 370 = __old_semwait_signal */
539 AUE_SEMWAITSIGNAL, /* 371 = __old_semwait_signal_nocancel */
540#else
541 AUE_NULL, /* 370 = nosys old __semwait_signal */
542 AUE_NULL, /* 371 = nosys old __semwait_signal */
543#endif
544 AUE_NULL, /* 372 = thread_selfid */
545 AUE_LEDGER, /* 373 = ledger */
546 AUE_NULL, /* 374 = kevent_qos */
547 AUE_NULL, /* 375 = kevent_id */
548 AUE_NULL, /* 376 = nosys */
549 AUE_NULL, /* 377 = nosys */
550 AUE_NULL, /* 378 = nosys */
551 AUE_NULL, /* 379 = nosys */
552 AUE_MAC_EXECVE, /* 380 = __mac_execve */
553#if CONFIG_MACF
554 AUE_MAC_SYSCALL, /* 381 = __mac_syscall */
555 AUE_MAC_GET_FILE, /* 382 = __mac_get_file */
556 AUE_MAC_SET_FILE, /* 383 = __mac_set_file */
557 AUE_MAC_GET_LINK, /* 384 = __mac_get_link */
558 AUE_MAC_SET_LINK, /* 385 = __mac_set_link */
559 AUE_MAC_GET_PROC, /* 386 = __mac_get_proc */
560 AUE_MAC_SET_PROC, /* 387 = __mac_set_proc */
561 AUE_MAC_GET_FD, /* 388 = __mac_get_fd */
562 AUE_MAC_SET_FD, /* 389 = __mac_set_fd */
563 AUE_MAC_GET_PID, /* 390 = __mac_get_pid */
564#else
565 AUE_MAC_SYSCALL, /* 381 = enosys */
566 AUE_MAC_GET_FILE, /* 382 = nosys */
567 AUE_MAC_SET_FILE, /* 383 = nosys */
568 AUE_MAC_GET_LINK, /* 384 = nosys */
569 AUE_MAC_SET_LINK, /* 385 = nosys */
570 AUE_MAC_GET_PROC, /* 386 = nosys */
571 AUE_MAC_SET_PROC, /* 387 = nosys */
572 AUE_MAC_GET_FD, /* 388 = nosys */
573 AUE_MAC_SET_FD, /* 389 = nosys */
574 AUE_MAC_GET_PID, /* 390 = nosys */
575#endif
576 AUE_NULL, /* 391 = enosys */
577 AUE_NULL, /* 392 = enosys */
578 AUE_NULL, /* 393 = enosys */
579 AUE_SELECT, /* 394 = pselect */
580 AUE_SELECT, /* 395 = pselect_nocancel */
581 AUE_NULL, /* 396 = read_nocancel */
582 AUE_NULL, /* 397 = write_nocancel */
583 AUE_OPEN_RWTC, /* 398 = open_nocancel */
584 AUE_CLOSE, /* 399 = close_nocancel */
585 AUE_WAIT4, /* 400 = wait4_nocancel */
586#if SOCKETS
587 AUE_RECVMSG, /* 401 = recvmsg_nocancel */
588 AUE_SENDMSG, /* 402 = sendmsg_nocancel */
589 AUE_RECVFROM, /* 403 = recvfrom_nocancel */
590 AUE_ACCEPT, /* 404 = accept_nocancel */
591#else
592 AUE_NULL, /* 401 = nosys */
593 AUE_NULL, /* 402 = nosys */
594 AUE_NULL, /* 403 = nosys */
595 AUE_NULL, /* 404 = nosys */
596#endif /* SOCKETS */
597 AUE_MSYNC, /* 405 = msync_nocancel */
598 AUE_FCNTL, /* 406 = fcntl_nocancel */
599 AUE_SELECT, /* 407 = select_nocancel */
600 AUE_FSYNC, /* 408 = fsync_nocancel */
601#if SOCKETS
602 AUE_CONNECT, /* 409 = connect_nocancel */
603#else
604 AUE_NULL, /* 409 = nosys */
605#endif /* SOCKETS */
606 AUE_NULL, /* 410 = sigsuspend_nocancel */
607 AUE_READV, /* 411 = readv_nocancel */
608 AUE_WRITEV, /* 412 = writev_nocancel */
609#if SOCKETS
610 AUE_SENDTO, /* 413 = sendto_nocancel */
611#else
612 AUE_NULL, /* 413 = nosys */
613#endif /* SOCKETS */
614 AUE_PREAD, /* 414 = pread_nocancel */
615 AUE_PWRITE, /* 415 = pwrite_nocancel */
616 AUE_WAITID, /* 416 = waitid_nocancel */
617 AUE_POLL, /* 417 = poll_nocancel */
618#if SYSV_MSG
619 AUE_MSGSND, /* 418 = msgsnd_nocancel */
620 AUE_MSGRCV, /* 419 = msgrcv_nocancel */
621#else
622 AUE_NULL, /* 418 = nosys */
623 AUE_NULL, /* 419 = nosys */
624#endif
625 AUE_SEMWAIT, /* 420 = sem_wait_nocancel */
626 AUE_NULL, /* 421 = aio_suspend_nocancel */
627 AUE_SIGWAIT, /* 422 = __sigwait_nocancel */
628 AUE_SEMWAITSIGNAL, /* 423 = __semwait_signal_nocancel */
629 AUE_MAC_MOUNT, /* 424 = __mac_mount */
630#if CONFIG_MACF
631 AUE_MAC_GET_MOUNT, /* 425 = __mac_get_mount */
632#else
633 AUE_MAC_GET_MOUNT, /* 425 = nosys */
634#endif
635 AUE_MAC_GETFSSTAT, /* 426 = __mac_getfsstat */
636 AUE_FSGETPATH, /* 427 = fsgetpath private fsgetpath ( File Manager SPI ) */
637 AUE_NULL, /* 428 = audit_session_self */
638 AUE_NULL, /* 429 = audit_session_join */
639 AUE_NULL, /* 430 = fileport_makeport */
640 AUE_NULL, /* 431 = fileport_makefd */
641 AUE_NULL, /* 432 = audit_session_port */
642 AUE_NULL, /* 433 = pid_suspend */
643 AUE_NULL, /* 434 = pid_resume */
644#if CONFIG_EMBEDDED
645 AUE_NULL, /* 435 = pid_hibernate */
646#else
647 AUE_NULL, /* 435 = nosys */
648#endif
649#if SOCKETS
650 AUE_NULL, /* 436 = pid_shutdown_sockets */
651#else
652 AUE_NULL, /* 436 = nosys */
653#endif
654 AUE_NULL, /* 437 = nosys old shared_region_slide_np */
655 AUE_NULL, /* 438 = shared_region_map_and_slide_np */
656 AUE_NULL, /* 439 = kas_info */
657#if CONFIG_MEMORYSTATUS
658 AUE_NULL, /* 440 = memorystatus_control */
659#else
660 AUE_NULL, /* 440 = nosys */
661#endif
662 AUE_OPEN_RWTC, /* 441 = guarded_open_np */
663 AUE_CLOSE, /* 442 = guarded_close_np */
664 AUE_KQUEUE, /* 443 = guarded_kqueue_np */
665 AUE_NULL, /* 444 = change_fdguard_np */
666 AUE_USRCTL, /* 445 = usrctl */
667 AUE_NULL, /* 446 = proc_rlimit_control */
668#if SOCKETS
669 AUE_CONNECT, /* 447 = connectx */
670 AUE_NULL, /* 448 = disconnectx */
671 AUE_NULL, /* 449 = peeloff */
672 AUE_SOCKET, /* 450 = socket_delegate */
673#else
674 AUE_NULL, /* 447 = nosys */
675 AUE_NULL, /* 448 = nosys */
676 AUE_NULL, /* 449 = nosys */
677 AUE_NULL, /* 450 = nosys */
678#endif /* SOCKETS */
679 AUE_NULL, /* 451 = telemetry */
680#if CONFIG_PROC_UUID_POLICY
681 AUE_NULL, /* 452 = proc_uuid_policy */
682#else
683 AUE_NULL, /* 452 = nosys */
684#endif
685#if CONFIG_MEMORYSTATUS
686 AUE_NULL, /* 453 = memorystatus_get_level */
687#else
688 AUE_NULL, /* 453 = nosys */
689#endif
690 AUE_NULL, /* 454 = system_override */
691 AUE_NULL, /* 455 = vfs_purge */
692 AUE_NULL, /* 456 = sfi_ctl */
693 AUE_NULL, /* 457 = sfi_pidctl */
694#if CONFIG_COALITIONS
695 AUE_NULL, /* 458 = coalition */
696 AUE_NULL, /* 459 = coalition_info */
697#else
698 AUE_NULL, /* 458 = enosys */
699 AUE_NULL, /* 459 = enosys */
700#endif /* COALITIONS */
701#if NECP
702 AUE_NECP, /* 460 = necp_match_policy */
703#else
704 AUE_NULL, /* 460 = nosys */
705#endif /* NECP */
706 AUE_GETATTRLISTBULK, /* 461 = getattrlistbulk */
707 AUE_CLONEFILEAT, /* 462 = clonefileat */
708 AUE_OPENAT_RWTC, /* 463 = openat */
709 AUE_OPENAT_RWTC, /* 464 = openat_nocancel */
710 AUE_RENAMEAT, /* 465 = renameat */
711 AUE_FACCESSAT, /* 466 = faccessat */
712 AUE_FCHMODAT, /* 467 = fchmodat */
713 AUE_FCHOWNAT, /* 468 = fchownat */
714 AUE_FSTATAT, /* 469 = fstatat */
715 AUE_FSTATAT, /* 470 = fstatat64 */
716 AUE_LINKAT, /* 471 = linkat */
717 AUE_UNLINKAT, /* 472 = unlinkat */
718 AUE_READLINKAT, /* 473 = readlinkat */
719 AUE_SYMLINKAT, /* 474 = symlinkat */
720 AUE_MKDIRAT, /* 475 = mkdirat */
721 AUE_GETATTRLISTAT, /* 476 = getattrlistat */
722 AUE_NULL, /* 477 = proc_trace_log */
723 AUE_NULL, /* 478 = bsdthread_ctl */
724 AUE_OPENBYID_RWT, /* 479 = openbyid_np */
725#if SOCKETS
726 AUE_NULL, /* 480 = recvmsg_x */
727 AUE_NULL, /* 481 = sendmsg_x */
728#else
729 AUE_NULL, /* 480 = nosys */
730 AUE_NULL, /* 481 = nosys */
731#endif /* SOCKETS */
732 AUE_NULL, /* 482 = thread_selfusage */
733#if CONFIG_CSR
734 AUE_NULL, /* 483 = csrctl */
735#else
736 AUE_NULL, /* 483 = enosys */
737#endif /* CSR */
738 AUE_NULL, /* 484 = guarded_open_dprotected_np */
739 AUE_NULL, /* 485 = guarded_write_np */
740 AUE_PWRITE, /* 486 = guarded_pwrite_np */
741 AUE_WRITEV, /* 487 = guarded_writev_np */
742 AUE_RENAMEAT, /* 488 = renameatx_np */
743#if CONFIG_CODE_DECRYPTION
744 AUE_MPROTECT, /* 489 = mremap_encrypted */
745#else
746 AUE_NULL, /* 489 = enosys */
747#endif
748#if NETWORKING
749 AUE_NETAGENT, /* 490 = netagent_trigger */
750#else
751 AUE_NULL, /* 490 = nosys */
752#endif /* NETWORKING */
753 AUE_STACKSNAPSHOT, /* 491 = stack_snapshot_with_config */
754#if CONFIG_TELEMETRY
755 AUE_STACKSNAPSHOT, /* 492 = microstackshot */
756#else
757 AUE_NULL, /* 492 = enosys */
758#endif /* CONFIG_TELEMETRY */
759#if PGO
760 AUE_NULL, /* 493 = grab_pgo_data */
761#else
762 AUE_NULL, /* 493 = enosys */
763#endif
764#if CONFIG_PERSONAS
765 AUE_PERSONA, /* 494 = persona */
766#else
767 AUE_NULL, /* 494 = enosys */
768#endif
769 AUE_NULL, /* 495 = enosys */
770 AUE_NULL, /* 496 = enosys */
771 AUE_NULL, /* 497 = enosys */
772 AUE_NULL, /* 498 = enosys */
773 AUE_NULL, /* 499 = work_interval_ctl */
774 AUE_NULL, /* 500 = getentropy */
775#if NECP
776 AUE_NECP, /* 501 = necp_open */
777 AUE_NECP, /* 502 = necp_client_action */
778#else
779 AUE_NULL, /* 501 = enosys */
780 AUE_NULL, /* 502 = enosys */
781#endif /* NECP */
782 AUE_NULL, /* 503 = enosys */
783 AUE_NULL, /* 504 = enosys */
784 AUE_NULL, /* 505 = enosys */
785 AUE_NULL, /* 506 = enosys */
786 AUE_NULL, /* 507 = enosys */
787 AUE_NULL, /* 508 = enosys */
788 AUE_NULL, /* 509 = enosys */
789 AUE_NULL, /* 510 = enosys */
790 AUE_NULL, /* 511 = enosys */
791 AUE_NULL, /* 512 = enosys */
792 AUE_NULL, /* 513 = enosys */
793 AUE_NULL, /* 514 = enosys */
794 AUE_NULL, /* 515 = ulock_wait */
795 AUE_NULL, /* 516 = ulock_wake */
796 AUE_FCLONEFILEAT, /* 517 = fclonefileat */
797 AUE_NULL, /* 518 = fs_snapshot */
798 AUE_NULL, /* 519 = enosys */
799 AUE_KILL, /* 520 = terminate_with_payload */
800 AUE_EXIT, /* 521 = abort_with_payload */
801#if NECP
802 AUE_NECP, /* 522 = necp_session_open */
803 AUE_NECP, /* 523 = necp_session_action */
804#else /* NECP */
805 AUE_NULL, /* 522 = enosys */
806 AUE_NULL, /* 523 = enosys */
807#endif /* NECP */
808 AUE_SETATTRLISTAT, /* 524 = setattrlistat */
809 AUE_NET, /* 525 = net_qos_guideline */
810 AUE_FMOUNT, /* 526 = fmount */
811 AUE_NULL, /* 527 = ntp_adjtime */
812 AUE_NULL, /* 528 = ntp_gettime */
813 AUE_NULL, /* 529 = os_fault_with_payload */
814#if CONFIG_WORKQUEUE
815 AUE_WORKLOOPCTL, /* 530 = kqueue_workloop_ctl */
816#else
817 AUE_NULL, /* 530 = enosys */
818#endif // CONFIG_WORKQUEUE
819 AUE_NULL, /* 531 = enosys */
820};
821
822#endif /* AUDIT */
823