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 /bsd.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 = crossarch_trap */
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#if CONFIG_VFORK
120 AUE_VFORK, /* 66 = vfork */
121#else
122 AUE_NULL, /* 66 = nosys old vfork */
123#endif
124 AUE_NULL, /* 67 = nosys old vread */
125 AUE_NULL, /* 68 = nosys old vwrite */
126 AUE_NULL, /* 69 = nosys old sbrk */
127 AUE_NULL, /* 70 = nosys old sstk */
128 AUE_NULL, /* 71 = nosys old mmap */
129 AUE_NULL, /* 72 = nosys old vadvise */
130 AUE_MUNMAP, /* 73 = munmap */
131 AUE_MPROTECT, /* 74 = mprotect */
132 AUE_MADVISE, /* 75 = madvise */
133 AUE_NULL, /* 76 = nosys old vhangup */
134 AUE_NULL, /* 77 = nosys old vlimit */
135 AUE_MINCORE, /* 78 = mincore */
136 AUE_GETGROUPS, /* 79 = getgroups */
137 AUE_SETGROUPS, /* 80 = setgroups */
138 AUE_GETPGRP, /* 81 = getpgrp */
139 AUE_SETPGRP, /* 82 = setpgid */
140 AUE_SETITIMER, /* 83 = setitimer */
141 AUE_NULL, /* 84 = nosys old wait */
142 AUE_SWAPON, /* 85 = swapon */
143 AUE_GETITIMER, /* 86 = getitimer */
144 AUE_NULL, /* 87 = nosys old gethostname */
145 AUE_NULL, /* 88 = nosys old sethostname */
146 AUE_GETDTABLESIZE, /* 89 = getdtablesize */
147 AUE_DUP2, /* 90 = dup2 */
148 AUE_NULL, /* 91 = nosys old getdopt */
149 AUE_FCNTL, /* 92 = fcntl */
150 AUE_SELECT, /* 93 = select */
151 AUE_NULL, /* 94 = nosys old setdopt */
152 AUE_FSYNC, /* 95 = fsync */
153 AUE_SETPRIORITY, /* 96 = setpriority */
154#if SOCKETS
155 AUE_SOCKET, /* 97 = socket */
156 AUE_CONNECT, /* 98 = connect */
157#else
158 AUE_NULL, /* 97 = nosys */
159 AUE_NULL, /* 98 = nosys */
160#endif /* SOCKETS */
161 AUE_NULL, /* 99 = nosys old accept */
162 AUE_GETPRIORITY, /* 100 = getpriority */
163 AUE_NULL, /* 101 = nosys old send */
164 AUE_NULL, /* 102 = nosys old recv */
165 AUE_NULL, /* 103 = nosys old sigreturn */
166#if SOCKETS
167 AUE_BIND, /* 104 = bind */
168 AUE_SETSOCKOPT, /* 105 = setsockopt */
169 AUE_LISTEN, /* 106 = listen */
170#else
171 AUE_NULL, /* 104 = nosys */
172 AUE_NULL, /* 105 = nosys */
173 AUE_NULL, /* 106 = nosys */
174#endif /* SOCKETS */
175 AUE_NULL, /* 107 = nosys old vtimes */
176 AUE_NULL, /* 108 = nosys old sigvec */
177 AUE_NULL, /* 109 = nosys old sigblock */
178 AUE_NULL, /* 110 = nosys old sigsetmask */
179 AUE_NULL, /* 111 = sigsuspend */
180 AUE_NULL, /* 112 = nosys old sigstack */
181#if SOCKETS
182 AUE_NULL, /* 113 = nosys old recvmsg */
183 AUE_NULL, /* 114 = nosys old sendmsg */
184#else
185 AUE_NULL, /* 113 = nosys */
186 AUE_NULL, /* 114 = nosys */
187#endif /* SOCKETS */
188 AUE_NULL, /* 115 = nosys old vtrace */
189 AUE_GETTIMEOFDAY, /* 116 = gettimeofday */
190 AUE_GETRUSAGE, /* 117 = getrusage */
191#if SOCKETS
192 AUE_GETSOCKOPT, /* 118 = getsockopt */
193#else
194 AUE_NULL, /* 118 = nosys */
195#endif /* SOCKETS */
196 AUE_NULL, /* 119 = nosys old resuba */
197 AUE_READV, /* 120 = readv */
198 AUE_WRITEV, /* 121 = writev */
199 AUE_SETTIMEOFDAY, /* 122 = settimeofday */
200 AUE_FCHOWN, /* 123 = fchown */
201 AUE_FCHMOD, /* 124 = fchmod */
202 AUE_NULL, /* 125 = nosys old recvfrom */
203 AUE_SETREUID, /* 126 = setreuid */
204 AUE_SETREGID, /* 127 = setregid */
205 AUE_RENAME, /* 128 = rename */
206 AUE_NULL, /* 129 = nosys old truncate */
207 AUE_NULL, /* 130 = nosys old ftruncate */
208 AUE_FLOCK, /* 131 = flock */
209 AUE_MKFIFO, /* 132 = mkfifo */
210#if SOCKETS
211 AUE_SENDTO, /* 133 = sendto */
212 AUE_SHUTDOWN, /* 134 = shutdown */
213 AUE_SOCKETPAIR, /* 135 = socketpair */
214#else
215 AUE_NULL, /* 133 = nosys */
216 AUE_NULL, /* 134 = nosys */
217 AUE_NULL, /* 135 = nosys */
218#endif /* SOCKETS */
219 AUE_MKDIR, /* 136 = mkdir */
220 AUE_RMDIR, /* 137 = rmdir */
221 AUE_UTIMES, /* 138 = utimes */
222 AUE_FUTIMES, /* 139 = futimes */
223 AUE_ADJTIME, /* 140 = adjtime */
224 AUE_NULL, /* 141 = nosys old getpeername */
225 AUE_SYSCTL, /* 142 = gethostuuid */
226 AUE_NULL, /* 143 = nosys old sethostid */
227 AUE_NULL, /* 144 = nosys old getrlimit */
228 AUE_NULL, /* 145 = nosys old setrlimit */
229 AUE_NULL, /* 146 = nosys old killpg */
230 AUE_SETSID, /* 147 = setsid */
231 AUE_NULL, /* 148 = nosys old setquota */
232 AUE_NULL, /* 149 = nosys old qquota */
233 AUE_NULL, /* 150 = nosys old getsockname */
234 AUE_GETPGID, /* 151 = getpgid */
235 AUE_SETPRIVEXEC, /* 152 = setprivexec */
236 AUE_PREAD, /* 153 = pread */
237 AUE_PWRITE, /* 154 = pwrite */
238#if NFSSERVER /* XXX */
239 AUE_NFS_SVC, /* 155 = nfssvc */
240#else
241 AUE_NULL, /* 155 = nosys */
242#endif
243 AUE_NULL, /* 156 = nosys old getdirentries */
244 AUE_STATFS, /* 157 = statfs */
245 AUE_FSTATFS, /* 158 = fstatfs */
246 AUE_UNMOUNT, /* 159 = unmount */
247 AUE_NULL, /* 160 = nosys old async_daemon */
248#if NFSSERVER /* XXX */
249 AUE_NFS_GETFH, /* 161 = getfh */
250#else
251 AUE_NULL, /* 161 = nosys */
252#endif
253 AUE_NULL, /* 162 = nosys old getdomainname */
254 AUE_NULL, /* 163 = nosys old setdomainname */
255 AUE_NULL, /* 164 = nosys */
256 AUE_QUOTACTL, /* 165 = quotactl */
257 AUE_NULL, /* 166 = nosys old exportfs */
258 AUE_MOUNT, /* 167 = mount */
259 AUE_NULL, /* 168 = nosys old ustat */
260 AUE_CSOPS, /* 169 = csops */
261 AUE_CSOPS, /* 170 = csops_audittoken */
262 AUE_NULL, /* 171 = nosys old wait3 */
263 AUE_NULL, /* 172 = nosys old rpause */
264 AUE_WAITID, /* 173 = waitid */
265 AUE_NULL, /* 174 = nosys old getdents */
266 AUE_NULL, /* 175 = nosys old gc_control */
267 AUE_NULL, /* 176 = nosys old add_profil */
268 AUE_NULL, /* 177 = kdebug_typefilter */
269 AUE_NULL, /* 178 = kdebug_trace_string */
270 AUE_NULL, /* 179 = kdebug_trace64 */
271 AUE_NULL, /* 180 = kdebug_trace */
272 AUE_SETGID, /* 181 = setgid */
273 AUE_SETEGID, /* 182 = setegid */
274 AUE_SETEUID, /* 183 = seteuid */
275 AUE_SIGRETURN, /* 184 = sigreturn */
276 AUE_NULL, /* 185 = panic_with_data */
277 AUE_NULL, /* 186 = thread_selfcounts */
278 AUE_FDATASYNC, /* 187 = fdatasync */
279 AUE_STAT, /* 188 = stat */
280 AUE_FSTAT, /* 189 = fstat */
281 AUE_LSTAT, /* 190 = lstat */
282 AUE_PATHCONF, /* 191 = pathconf */
283 AUE_FPATHCONF, /* 192 = fpathconf */
284 AUE_NULL, /* 193 = nosys old getfsstat */
285 AUE_GETRLIMIT, /* 194 = getrlimit */
286 AUE_SETRLIMIT, /* 195 = setrlimit */
287 AUE_GETDIRENTRIES, /* 196 = getdirentries */
288 AUE_MMAP, /* 197 = mmap */
289 AUE_NULL, /* 198 = nosys old __syscall */
290 AUE_LSEEK, /* 199 = lseek */
291 AUE_TRUNCATE, /* 200 = truncate */
292 AUE_FTRUNCATE, /* 201 = ftruncate */
293 AUE_SYSCTL, /* 202 = sysctl */
294 AUE_MLOCK, /* 203 = mlock */
295 AUE_MUNLOCK, /* 204 = munlock */
296 AUE_UNDELETE, /* 205 = undelete */
297 AUE_NULL, /* 206 = nosys old ATsocket */
298 AUE_NULL, /* 207 = nosys old ATgetmsg */
299 AUE_NULL, /* 208 = nosys old ATputmsg */
300 AUE_NULL, /* 209 = nosys old ATsndreq */
301 AUE_NULL, /* 210 = nosys old ATsndrsp */
302 AUE_NULL, /* 211 = nosys old ATgetreq */
303 AUE_NULL, /* 212 = nosys old ATgetrsp */
304 AUE_NULL, /* 213 = nosys Reserved for AppleTalk */
305 AUE_NULL, /* 214 = nosys */
306 AUE_NULL, /* 215 = nosys */
307 AUE_NULL, /* 216 = open_dprotected_np */
308 AUE_FSGETPATH_EXTENDED, /* 217 = fsgetpath_ext */
309 AUE_NULL, /* 218 = openat_dprotected_np */
310 AUE_NULL, /* 219 = nosys old fstatv */
311 AUE_GETATTRLIST, /* 220 = getattrlist */
312 AUE_SETATTRLIST, /* 221 = setattrlist */
313 AUE_GETDIRENTRIESATTR, /* 222 = getdirentriesattr */
314 AUE_EXCHANGEDATA, /* 223 = exchangedata */
315 AUE_NULL, /* 224 = nosys old checkuseraccess or fsgetpath */
316 AUE_SEARCHFS, /* 225 = searchfs */
317 AUE_DELETE, /* 226 = delete private delete ( Carbon semantics ) */
318 AUE_COPYFILE, /* 227 = copyfile */
319 AUE_FGETATTRLIST, /* 228 = fgetattrlist */
320 AUE_FSETATTRLIST, /* 229 = fsetattrlist */
321 AUE_POLL, /* 230 = poll */
322 AUE_NULL, /* 231 = nosys old watchevent */
323 AUE_NULL, /* 232 = nosys old waitevent */
324 AUE_NULL, /* 233 = nosys old modwatch */
325 AUE_GETXATTR, /* 234 = getxattr */
326 AUE_FGETXATTR, /* 235 = fgetxattr */
327 AUE_SETXATTR, /* 236 = setxattr */
328 AUE_FSETXATTR, /* 237 = fsetxattr */
329 AUE_REMOVEXATTR, /* 238 = removexattr */
330 AUE_FREMOVEXATTR, /* 239 = fremovexattr */
331 AUE_LISTXATTR, /* 240 = listxattr */
332 AUE_FLISTXATTR, /* 241 = flistxattr */
333 AUE_FSCTL, /* 242 = fsctl */
334 AUE_INITGROUPS, /* 243 = initgroups */
335 AUE_POSIX_SPAWN, /* 244 = posix_spawn */
336 AUE_FFSCTL, /* 245 = ffsctl */
337 AUE_NULL, /* 246 = nosys */
338 AUE_NULL, /* 247 = nosys old nfsclnt */
339#if NFSSERVER /* XXX */
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 AUE_NULL, /* 360 = bsdthread_create */
517 AUE_NULL, /* 361 = bsdthread_terminate */
518 AUE_KQUEUE, /* 362 = kqueue */
519 AUE_NULL, /* 363 = kevent */
520 AUE_LCHOWN, /* 364 = lchown */
521 AUE_NULL, /* 365 = nosys old stack_snapshot */
522 AUE_NULL, /* 366 = bsdthread_register */
523 AUE_WORKQOPEN, /* 367 = workq_open */
524 AUE_WORKQOPS, /* 368 = workq_kernreturn */
525 AUE_NULL, /* 369 = kevent64 */
526 AUE_NULL, /* 370 = nosys old __semwait_signal */
527 AUE_NULL, /* 371 = nosys old __semwait_signal */
528 AUE_NULL, /* 372 = thread_selfid */
529 AUE_LEDGER, /* 373 = ledger */
530 AUE_NULL, /* 374 = kevent_qos */
531 AUE_NULL, /* 375 = kevent_id */
532 AUE_NULL, /* 376 = nosys */
533 AUE_NULL, /* 377 = nosys */
534 AUE_NULL, /* 378 = nosys */
535 AUE_NULL, /* 379 = nosys */
536 AUE_MAC_EXECVE, /* 380 = __mac_execve */
537#if CONFIG_MACF
538 AUE_MAC_SYSCALL, /* 381 = __mac_syscall */
539 AUE_MAC_GET_FILE, /* 382 = __mac_get_file */
540 AUE_MAC_SET_FILE, /* 383 = __mac_set_file */
541 AUE_MAC_GET_LINK, /* 384 = __mac_get_link */
542 AUE_MAC_SET_LINK, /* 385 = __mac_set_link */
543 AUE_MAC_GET_PROC, /* 386 = __mac_get_proc */
544 AUE_MAC_SET_PROC, /* 387 = __mac_set_proc */
545 AUE_MAC_GET_FD, /* 388 = __mac_get_fd */
546 AUE_MAC_SET_FD, /* 389 = __mac_set_fd */
547 AUE_MAC_GET_PID, /* 390 = __mac_get_pid */
548#else
549 AUE_MAC_SYSCALL, /* 381 = enosys */
550 AUE_MAC_GET_FILE, /* 382 = nosys */
551 AUE_MAC_SET_FILE, /* 383 = nosys */
552 AUE_MAC_GET_LINK, /* 384 = nosys */
553 AUE_MAC_SET_LINK, /* 385 = nosys */
554 AUE_MAC_GET_PROC, /* 386 = nosys */
555 AUE_MAC_SET_PROC, /* 387 = nosys */
556 AUE_MAC_GET_FD, /* 388 = nosys */
557 AUE_MAC_SET_FD, /* 389 = nosys */
558 AUE_MAC_GET_PID, /* 390 = nosys */
559#endif
560 AUE_NULL, /* 391 = enosys */
561 AUE_NULL, /* 392 = enosys */
562 AUE_NULL, /* 393 = enosys */
563 AUE_SELECT, /* 394 = pselect */
564 AUE_SELECT, /* 395 = pselect_nocancel */
565 AUE_NULL, /* 396 = read_nocancel */
566 AUE_NULL, /* 397 = write_nocancel */
567 AUE_OPEN_RWTC, /* 398 = open_nocancel */
568 AUE_CLOSE, /* 399 = close_nocancel */
569 AUE_WAIT4, /* 400 = wait4_nocancel */
570#if SOCKETS
571 AUE_RECVMSG, /* 401 = recvmsg_nocancel */
572 AUE_SENDMSG, /* 402 = sendmsg_nocancel */
573 AUE_RECVFROM, /* 403 = recvfrom_nocancel */
574 AUE_ACCEPT, /* 404 = accept_nocancel */
575#else
576 AUE_NULL, /* 401 = nosys */
577 AUE_NULL, /* 402 = nosys */
578 AUE_NULL, /* 403 = nosys */
579 AUE_NULL, /* 404 = nosys */
580#endif /* SOCKETS */
581 AUE_MSYNC, /* 405 = msync_nocancel */
582 AUE_FCNTL, /* 406 = fcntl_nocancel */
583 AUE_SELECT, /* 407 = select_nocancel */
584 AUE_FSYNC, /* 408 = fsync_nocancel */
585#if SOCKETS
586 AUE_CONNECT, /* 409 = connect_nocancel */
587#else
588 AUE_NULL, /* 409 = nosys */
589#endif /* SOCKETS */
590 AUE_NULL, /* 410 = sigsuspend_nocancel */
591 AUE_READV, /* 411 = readv_nocancel */
592 AUE_WRITEV, /* 412 = writev_nocancel */
593#if SOCKETS
594 AUE_SENDTO, /* 413 = sendto_nocancel */
595#else
596 AUE_NULL, /* 413 = nosys */
597#endif /* SOCKETS */
598 AUE_PREAD, /* 414 = pread_nocancel */
599 AUE_PWRITE, /* 415 = pwrite_nocancel */
600 AUE_WAITID, /* 416 = waitid_nocancel */
601 AUE_POLL, /* 417 = poll_nocancel */
602#if SYSV_MSG
603 AUE_MSGSND, /* 418 = msgsnd_nocancel */
604 AUE_MSGRCV, /* 419 = msgrcv_nocancel */
605#else
606 AUE_NULL, /* 418 = nosys */
607 AUE_NULL, /* 419 = nosys */
608#endif
609 AUE_SEMWAIT, /* 420 = sem_wait_nocancel */
610 AUE_NULL, /* 421 = aio_suspend_nocancel */
611 AUE_SIGWAIT, /* 422 = __sigwait_nocancel */
612 AUE_SEMWAITSIGNAL, /* 423 = __semwait_signal_nocancel */
613 AUE_MAC_MOUNT, /* 424 = __mac_mount */
614#if CONFIG_MACF
615 AUE_MAC_GET_MOUNT, /* 425 = __mac_get_mount */
616#else
617 AUE_MAC_GET_MOUNT, /* 425 = nosys */
618#endif
619 AUE_MAC_GETFSSTAT, /* 426 = __mac_getfsstat */
620 AUE_FSGETPATH, /* 427 = fsgetpath private fsgetpath ( File Manager SPI ) */
621 AUE_NULL, /* 428 = audit_session_self */
622 AUE_NULL, /* 429 = audit_session_join */
623 AUE_NULL, /* 430 = fileport_makeport */
624 AUE_NULL, /* 431 = fileport_makefd */
625 AUE_NULL, /* 432 = audit_session_port */
626 AUE_NULL, /* 433 = pid_suspend */
627 AUE_NULL, /* 434 = pid_resume */
628#if CONFIG_EMBEDDED
629 AUE_NULL, /* 435 = pid_hibernate */
630#else
631 AUE_NULL, /* 435 = nosys */
632#endif
633#if SOCKETS
634 AUE_NULL, /* 436 = pid_shutdown_sockets */
635#else
636 AUE_NULL, /* 436 = nosys */
637#endif
638 AUE_NULL, /* 437 = nosys old shared_region_slide_np */
639 AUE_NULL, /* 438 = nosys old shared_region_map_and_slide_np */
640 AUE_NULL, /* 439 = kas_info */
641#if CONFIG_MEMORYSTATUS
642 AUE_NULL, /* 440 = memorystatus_control */
643#else
644 AUE_NULL, /* 440 = nosys */
645#endif
646 AUE_OPEN_RWTC, /* 441 = guarded_open_np */
647 AUE_CLOSE, /* 442 = guarded_close_np */
648 AUE_KQUEUE, /* 443 = guarded_kqueue_np */
649 AUE_NULL, /* 444 = change_fdguard_np */
650 AUE_USRCTL, /* 445 = usrctl */
651 AUE_NULL, /* 446 = proc_rlimit_control */
652#if SOCKETS
653 AUE_CONNECT, /* 447 = connectx */
654 AUE_NULL, /* 448 = disconnectx */
655 AUE_NULL, /* 449 = peeloff */
656 AUE_SOCKET, /* 450 = socket_delegate */
657#else
658 AUE_NULL, /* 447 = nosys */
659 AUE_NULL, /* 448 = nosys */
660 AUE_NULL, /* 449 = nosys */
661 AUE_NULL, /* 450 = nosys */
662#endif /* SOCKETS */
663 AUE_NULL, /* 451 = telemetry */
664#if CONFIG_PROC_UUID_POLICY
665 AUE_NULL, /* 452 = proc_uuid_policy */
666#else
667 AUE_NULL, /* 452 = nosys */
668#endif
669#if CONFIG_MEMORYSTATUS
670 AUE_NULL, /* 453 = memorystatus_get_level */
671#else
672 AUE_NULL, /* 453 = nosys */
673#endif
674 AUE_NULL, /* 454 = system_override */
675 AUE_NULL, /* 455 = vfs_purge */
676 AUE_NULL, /* 456 = sfi_ctl */
677 AUE_NULL, /* 457 = sfi_pidctl */
678#if CONFIG_COALITIONS
679 AUE_NULL, /* 458 = coalition */
680 AUE_NULL, /* 459 = coalition_info */
681#else
682 AUE_NULL, /* 458 = enosys */
683 AUE_NULL, /* 459 = enosys */
684#endif /* COALITIONS */
685#if NECP
686 AUE_NECP, /* 460 = necp_match_policy */
687#else
688 AUE_NULL, /* 460 = nosys */
689#endif /* NECP */
690 AUE_GETATTRLISTBULK, /* 461 = getattrlistbulk */
691 AUE_CLONEFILEAT, /* 462 = clonefileat */
692 AUE_OPENAT_RWTC, /* 463 = openat */
693 AUE_OPENAT_RWTC, /* 464 = openat_nocancel */
694 AUE_RENAMEAT, /* 465 = renameat */
695 AUE_FACCESSAT, /* 466 = faccessat */
696 AUE_FCHMODAT, /* 467 = fchmodat */
697 AUE_FCHOWNAT, /* 468 = fchownat */
698 AUE_FSTATAT, /* 469 = fstatat */
699 AUE_FSTATAT, /* 470 = fstatat64 */
700 AUE_LINKAT, /* 471 = linkat */
701 AUE_UNLINKAT, /* 472 = unlinkat */
702 AUE_READLINKAT, /* 473 = readlinkat */
703 AUE_SYMLINKAT, /* 474 = symlinkat */
704 AUE_MKDIRAT, /* 475 = mkdirat */
705 AUE_GETATTRLISTAT, /* 476 = getattrlistat */
706 AUE_NULL, /* 477 = proc_trace_log */
707 AUE_NULL, /* 478 = bsdthread_ctl */
708 AUE_OPENBYID_RWT, /* 479 = openbyid_np */
709#if SOCKETS
710 AUE_NULL, /* 480 = recvmsg_x */
711 AUE_NULL, /* 481 = sendmsg_x */
712#else
713 AUE_NULL, /* 480 = nosys */
714 AUE_NULL, /* 481 = nosys */
715#endif /* SOCKETS */
716 AUE_NULL, /* 482 = thread_selfusage */
717#if CONFIG_CSR
718 AUE_NULL, /* 483 = csrctl */
719#else
720 AUE_NULL, /* 483 = enosys */
721#endif /* CSR */
722 AUE_NULL, /* 484 = guarded_open_dprotected_np */
723 AUE_NULL, /* 485 = guarded_write_np */
724 AUE_PWRITE, /* 486 = guarded_pwrite_np */
725 AUE_WRITEV, /* 487 = guarded_writev_np */
726 AUE_RENAMEAT, /* 488 = renameatx_np */
727#if CONFIG_CODE_DECRYPTION
728 AUE_MPROTECT, /* 489 = mremap_encrypted */
729#else
730 AUE_NULL, /* 489 = enosys */
731#endif
732#if NETWORKING
733 AUE_NETAGENT, /* 490 = netagent_trigger */
734#else
735 AUE_NULL, /* 490 = nosys */
736#endif /* NETWORKING */
737 AUE_STACKSNAPSHOT, /* 491 = stack_snapshot_with_config */
738#if CONFIG_TELEMETRY
739 AUE_STACKSNAPSHOT, /* 492 = microstackshot */
740#else
741 AUE_NULL, /* 492 = enosys */
742#endif /* CONFIG_TELEMETRY */
743#if PGO
744 AUE_NULL, /* 493 = grab_pgo_data */
745#else
746 AUE_NULL, /* 493 = enosys */
747#endif
748#if CONFIG_PERSONAS
749 AUE_PERSONA, /* 494 = persona */
750#else
751 AUE_NULL, /* 494 = enosys */
752#endif
753 AUE_NULL, /* 495 = enosys */
754 AUE_NULL, /* 496 = mach_eventlink_signal */
755 AUE_NULL, /* 497 = mach_eventlink_wait_until */
756 AUE_NULL, /* 498 = mach_eventlink_signal_wait_until */
757 AUE_NULL, /* 499 = work_interval_ctl */
758 AUE_NULL, /* 500 = getentropy */
759#if NECP
760 AUE_NECP, /* 501 = necp_open */
761 AUE_NECP, /* 502 = necp_client_action */
762#else
763 AUE_NULL, /* 501 = enosys */
764 AUE_NULL, /* 502 = enosys */
765#endif /* NECP */
766#if SKYWALK
767 AUE_NEXUS, /* 503 = __nexus_open */
768 AUE_NEXUS, /* 504 = __nexus_register */
769 AUE_NEXUS, /* 505 = __nexus_deregister */
770 AUE_NEXUS, /* 506 = __nexus_create */
771 AUE_NEXUS, /* 507 = __nexus_destroy */
772 AUE_NEXUS, /* 508 = __nexus_get_opt */
773 AUE_NEXUS, /* 509 = __nexus_set_opt */
774 AUE_CHANNEL, /* 510 = __channel_open */
775 AUE_CHANNEL, /* 511 = __channel_get_info */
776 AUE_CHANNEL, /* 512 = __channel_sync */
777 AUE_CHANNEL, /* 513 = __channel_get_opt */
778 AUE_CHANNEL, /* 514 = __channel_set_opt */
779#else
780 AUE_NULL, /* 503 = enosys */
781 AUE_NULL, /* 504 = enosys */
782 AUE_NULL, /* 505 = enosys */
783 AUE_NULL, /* 506 = enosys */
784 AUE_NULL, /* 507 = enosys */
785 AUE_NULL, /* 508 = enosys */
786 AUE_NULL, /* 509 = enosys */
787 AUE_NULL, /* 510 = enosys */
788 AUE_NULL, /* 511 = enosys */
789 AUE_NULL, /* 512 = enosys */
790 AUE_NULL, /* 513 = enosys */
791 AUE_NULL, /* 514 = enosys */
792#endif /* !SKYWALK */
793 AUE_NULL, /* 515 = ulock_wait */
794 AUE_NULL, /* 516 = ulock_wake */
795 AUE_FCLONEFILEAT, /* 517 = fclonefileat */
796 AUE_NULL, /* 518 = fs_snapshot */
797 AUE_NULL, /* 519 = enosys */
798 AUE_KILL, /* 520 = terminate_with_payload */
799 AUE_EXIT, /* 521 = abort_with_payload */
800#if NECP
801 AUE_NECP, /* 522 = necp_session_open */
802 AUE_NECP, /* 523 = necp_session_action */
803#else /* NECP */
804 AUE_NULL, /* 522 = enosys */
805 AUE_NULL, /* 523 = enosys */
806#endif /* NECP */
807 AUE_SETATTRLISTAT, /* 524 = setattrlistat */
808 AUE_NET, /* 525 = net_qos_guideline */
809 AUE_FMOUNT, /* 526 = fmount */
810 AUE_NULL, /* 527 = ntp_adjtime */
811 AUE_NULL, /* 528 = ntp_gettime */
812 AUE_NULL, /* 529 = os_fault_with_payload */
813 AUE_WORKLOOPCTL, /* 530 = kqueue_workloop_ctl */
814 AUE_NULL, /* 531 = __mach_bridge_remote_time */
815#if CONFIG_COALITIONS
816 AUE_NULL, /* 532 = coalition_ledger */
817#else
818 AUE_NULL, /* 532 = enosys */
819#endif // CONFIG_COALITIONS
820 AUE_NULL, /* 533 = log_data */
821 AUE_NULL, /* 534 = memorystatus_available_memory */
822 AUE_NULL, /* 535 = enosys */
823 AUE_NULL, /* 536 = shared_region_map_and_slide_2_np */
824 AUE_NULL, /* 537 = pivot_root */
825 AUE_TASKINSPECTFORPID, /* 538 = task_inspect_for_pid */
826 AUE_TASKREADFORPID, /* 539 = task_read_for_pid */
827 AUE_PREADV, /* 540 = preadv */
828 AUE_PWRITEV, /* 541 = pwritev */
829 AUE_PREADV, /* 542 = preadv_nocancel */
830 AUE_PWRITEV, /* 543 = pwritev_nocancel */
831 AUE_NULL, /* 544 = ulock_wait2 */
832 AUE_PROCINFO, /* 545 = proc_info_extended_id */
833#if SOCKETS
834 AUE_TRACKERACTION, /* 546 = tracker_action */
835#else
836 AUE_NULL, /* 546 = nosys */
837#endif /* SOCKETS */
838 AUE_DEBUG_SYSCALL_REJECT, /* 547 = debug_syscall_reject */
839 AUE_DEBUG_SYSCALL_REJECT_CONFIG, /* 548 = debug_syscall_reject_config */
840 AUE_NULL, /* 549 = graftdmg */
841 AUE_NULL, /* 550 = map_with_linking_np */
842 AUE_FREADLINK, /* 551 = freadlink */
843 AUE_NULL, /* 552 = record_system_event */
844 AUE_MKFIFOAT, /* 553 = mkfifoat */
845 AUE_MKNODAT, /* 554 = mknodat */
846 AUE_NULL, /* 555 = ungraftdmg */
847};
848
849#endif /* AUDIT */
850