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#ifndef _SYS_SYSCALL_H_
36#define _SYS_SYSCALL_H_
37
38#include <sys/appleapiopts.h>
39#ifdef __APPLE_API_PRIVATE
40#define SYS_syscall 0
41#define SYS_exit 1
42#define SYS_fork 2
43#define SYS_read 3
44#define SYS_write 4
45#define SYS_open 5
46#define SYS_close 6
47#define SYS_wait4 7
48 /* 8 old creat */
49#define SYS_link 9
50#define SYS_unlink 10
51 /* 11 old execv */
52#define SYS_chdir 12
53#define SYS_fchdir 13
54#define SYS_mknod 14
55#define SYS_chmod 15
56#define SYS_chown 16
57 /* 17 old break */
58#define SYS_getfsstat 18
59 /* 19 old lseek */
60#define SYS_getpid 20
61 /* 21 old mount */
62 /* 22 old umount */
63#define SYS_setuid 23
64#define SYS_getuid 24
65#define SYS_geteuid 25
66#define SYS_ptrace 26
67#define SYS_recvmsg 27
68#define SYS_sendmsg 28
69#define SYS_recvfrom 29
70#define SYS_accept 30
71#define SYS_getpeername 31
72#define SYS_getsockname 32
73#define SYS_access 33
74#define SYS_chflags 34
75#define SYS_fchflags 35
76#define SYS_sync 36
77#define SYS_kill 37
78#define SYS_crossarch_trap 38
79#define SYS_getppid 39
80 /* 40 old lstat */
81#define SYS_dup 41
82#define SYS_pipe 42
83#define SYS_getegid 43
84 /* 44 old profil */
85 /* 45 old ktrace */
86#define SYS_sigaction 46
87#define SYS_getgid 47
88#define SYS_sigprocmask 48
89#define SYS_getlogin 49
90#define SYS_setlogin 50
91#define SYS_acct 51
92#define SYS_sigpending 52
93#define SYS_sigaltstack 53
94#define SYS_ioctl 54
95#define SYS_reboot 55
96#define SYS_revoke 56
97#define SYS_symlink 57
98#define SYS_readlink 58
99#define SYS_execve 59
100#define SYS_umask 60
101#define SYS_chroot 61
102 /* 62 old fstat */
103 /* 63 used internally and reserved */
104 /* 64 old getpagesize */
105#define SYS_msync 65
106#define SYS_vfork 66
107 /* 67 old vread */
108 /* 68 old vwrite */
109 /* 69 old sbrk */
110 /* 70 old sstk */
111 /* 71 old mmap */
112 /* 72 old vadvise */
113#define SYS_munmap 73
114#define SYS_mprotect 74
115#define SYS_madvise 75
116 /* 76 old vhangup */
117 /* 77 old vlimit */
118#define SYS_mincore 78
119#define SYS_getgroups 79
120#define SYS_setgroups 80
121#define SYS_getpgrp 81
122#define SYS_setpgid 82
123#define SYS_setitimer 83
124 /* 84 old wait */
125#define SYS_swapon 85
126#define SYS_getitimer 86
127 /* 87 old gethostname */
128 /* 88 old sethostname */
129#define SYS_getdtablesize 89
130#define SYS_dup2 90
131 /* 91 old getdopt */
132#define SYS_fcntl 92
133#define SYS_select 93
134 /* 94 old setdopt */
135#define SYS_fsync 95
136#define SYS_setpriority 96
137#define SYS_socket 97
138#define SYS_connect 98
139 /* 99 old accept */
140#define SYS_getpriority 100
141 /* 101 old send */
142 /* 102 old recv */
143 /* 103 old sigreturn */
144#define SYS_bind 104
145#define SYS_setsockopt 105
146#define SYS_listen 106
147 /* 107 old vtimes */
148 /* 108 old sigvec */
149 /* 109 old sigblock */
150 /* 110 old sigsetmask */
151#define SYS_sigsuspend 111
152 /* 112 old sigstack */
153 /* 113 old recvmsg */
154 /* 114 old sendmsg */
155 /* 115 old vtrace */
156#define SYS_gettimeofday 116
157#define SYS_getrusage 117
158#define SYS_getsockopt 118
159 /* 119 old resuba */
160#define SYS_readv 120
161#define SYS_writev 121
162#define SYS_settimeofday 122
163#define SYS_fchown 123
164#define SYS_fchmod 124
165 /* 125 old recvfrom */
166#define SYS_setreuid 126
167#define SYS_setregid 127
168#define SYS_rename 128
169 /* 129 old truncate */
170 /* 130 old ftruncate */
171#define SYS_flock 131
172#define SYS_mkfifo 132
173#define SYS_sendto 133
174#define SYS_shutdown 134
175#define SYS_socketpair 135
176#define SYS_mkdir 136
177#define SYS_rmdir 137
178#define SYS_utimes 138
179#define SYS_futimes 139
180#define SYS_adjtime 140
181 /* 141 old getpeername */
182#define SYS_gethostuuid 142
183 /* 143 old sethostid */
184 /* 144 old getrlimit */
185 /* 145 old setrlimit */
186 /* 146 old killpg */
187#define SYS_setsid 147
188 /* 148 old setquota */
189 /* 149 old qquota */
190 /* 150 old getsockname */
191#define SYS_getpgid 151
192#define SYS_setprivexec 152
193#define SYS_pread 153
194#define SYS_pwrite 154
195#define SYS_nfssvc 155
196 /* 156 old getdirentries */
197#define SYS_statfs 157
198#define SYS_fstatfs 158
199#define SYS_unmount 159
200 /* 160 old async_daemon */
201#define SYS_getfh 161
202 /* 162 old getdomainname */
203 /* 163 old setdomainname */
204 /* 164 */
205#define SYS_quotactl 165
206 /* 166 old exportfs */
207#define SYS_mount 167
208 /* 168 old ustat */
209#define SYS_csops 169
210#define SYS_csops_audittoken 170
211 /* 171 old wait3 */
212 /* 172 old rpause */
213#define SYS_waitid 173
214 /* 174 old getdents */
215 /* 175 old gc_control */
216 /* 176 old add_profil */
217#define SYS_kdebug_typefilter 177
218#define SYS_kdebug_trace_string 178
219#define SYS_kdebug_trace64 179
220#define SYS_kdebug_trace 180
221#define SYS_setgid 181
222#define SYS_setegid 182
223#define SYS_seteuid 183
224#define SYS_sigreturn 184
225#define SYS_panic_with_data 185
226#define SYS_thread_selfcounts 186
227#define SYS_fdatasync 187
228#define SYS_stat 188
229#define SYS_fstat 189
230#define SYS_lstat 190
231#define SYS_pathconf 191
232#define SYS_fpathconf 192
233 /* 193 old getfsstat */
234#define SYS_getrlimit 194
235#define SYS_setrlimit 195
236#define SYS_getdirentries 196
237#define SYS_mmap 197
238 /* 198 old __syscall */
239#define SYS_lseek 199
240#define SYS_truncate 200
241#define SYS_ftruncate 201
242#define SYS_sysctl 202
243#define SYS_mlock 203
244#define SYS_munlock 204
245#define SYS_undelete 205
246 /* 206 old ATsocket */
247 /* 207 old ATgetmsg */
248 /* 208 old ATputmsg */
249 /* 209 old ATsndreq */
250 /* 210 old ATsndrsp */
251 /* 211 old ATgetreq */
252 /* 212 old ATgetrsp */
253 /* 213 Reserved for AppleTalk */
254 /* 214 */
255 /* 215 */
256#define SYS_open_dprotected_np 216
257#define SYS_fsgetpath_ext 217
258#define SYS_openat_dprotected_np 218
259 /* 219 old fstatv */
260#define SYS_getattrlist 220
261#define SYS_setattrlist 221
262#define SYS_getdirentriesattr 222
263#define SYS_exchangedata 223
264 /* 224 old checkuseraccess or fsgetpath */
265#define SYS_searchfs 225
266#define SYS_delete 226
267#define SYS_copyfile 227
268#define SYS_fgetattrlist 228
269#define SYS_fsetattrlist 229
270#define SYS_poll 230
271 /* 231 old watchevent */
272 /* 232 old waitevent */
273 /* 233 old modwatch */
274#define SYS_getxattr 234
275#define SYS_fgetxattr 235
276#define SYS_setxattr 236
277#define SYS_fsetxattr 237
278#define SYS_removexattr 238
279#define SYS_fremovexattr 239
280#define SYS_listxattr 240
281#define SYS_flistxattr 241
282#define SYS_fsctl 242
283#define SYS_initgroups 243
284#define SYS_posix_spawn 244
285#define SYS_ffsctl 245
286 /* 246 */
287 /* 247 old nfsclnt */
288#define SYS_fhopen 248
289 /* 249 */
290#define SYS_minherit 250
291#define SYS_semsys 251
292#define SYS_msgsys 252
293#define SYS_shmsys 253
294#define SYS_semctl 254
295#define SYS_semget 255
296#define SYS_semop 256
297 /* 257 old semconfig */
298#define SYS_msgctl 258
299#define SYS_msgget 259
300#define SYS_msgsnd 260
301#define SYS_msgrcv 261
302#define SYS_shmat 262
303#define SYS_shmctl 263
304#define SYS_shmdt 264
305#define SYS_shmget 265
306#define SYS_shm_open 266
307#define SYS_shm_unlink 267
308#define SYS_sem_open 268
309#define SYS_sem_close 269
310#define SYS_sem_unlink 270
311#define SYS_sem_wait 271
312#define SYS_sem_trywait 272
313#define SYS_sem_post 273
314#define SYS_sysctlbyname 274
315 /* 275 old sem_init */
316 /* 276 old sem_destroy */
317#define SYS_open_extended 277
318#define SYS_umask_extended 278
319#define SYS_stat_extended 279
320#define SYS_lstat_extended 280
321#define SYS_fstat_extended 281
322#define SYS_chmod_extended 282
323#define SYS_fchmod_extended 283
324#define SYS_access_extended 284
325#define SYS_settid 285
326#define SYS_gettid 286
327#define SYS_setsgroups 287
328#define SYS_getsgroups 288
329#define SYS_setwgroups 289
330#define SYS_getwgroups 290
331#define SYS_mkfifo_extended 291
332#define SYS_mkdir_extended 292
333#define SYS_identitysvc 293
334#define SYS_shared_region_check_np 294
335 /* 295 old shared_region_map_np */
336#define SYS_vm_pressure_monitor 296
337#define SYS_psynch_rw_longrdlock 297
338#define SYS_psynch_rw_yieldwrlock 298
339#define SYS_psynch_rw_downgrade 299
340#define SYS_psynch_rw_upgrade 300
341#define SYS_psynch_mutexwait 301
342#define SYS_psynch_mutexdrop 302
343#define SYS_psynch_cvbroad 303
344#define SYS_psynch_cvsignal 304
345#define SYS_psynch_cvwait 305
346#define SYS_psynch_rw_rdlock 306
347#define SYS_psynch_rw_wrlock 307
348#define SYS_psynch_rw_unlock 308
349#define SYS_psynch_rw_unlock2 309
350#define SYS_getsid 310
351#define SYS_settid_with_pid 311
352#define SYS_psynch_cvclrprepost 312
353#define SYS_aio_fsync 313
354#define SYS_aio_return 314
355#define SYS_aio_suspend 315
356#define SYS_aio_cancel 316
357#define SYS_aio_error 317
358#define SYS_aio_read 318
359#define SYS_aio_write 319
360#define SYS_lio_listio 320
361 /* 321 old __pthread_cond_wait */
362#define SYS_iopolicysys 322
363#define SYS_process_policy 323
364#define SYS_mlockall 324
365#define SYS_munlockall 325
366 /* 326 */
367#define SYS_issetugid 327
368#define SYS___pthread_kill 328
369#define SYS___pthread_sigmask 329
370#define SYS___sigwait 330
371#define SYS___disable_threadsignal 331
372#define SYS___pthread_markcancel 332
373#define SYS___pthread_canceled 333
374#define SYS___semwait_signal 334
375 /* 335 old utrace */
376#define SYS_proc_info 336
377#define SYS_sendfile 337
378#define SYS_stat64 338
379#define SYS_fstat64 339
380#define SYS_lstat64 340
381#define SYS_stat64_extended 341
382#define SYS_lstat64_extended 342
383#define SYS_fstat64_extended 343
384#define SYS_getdirentries64 344
385#define SYS_statfs64 345
386#define SYS_fstatfs64 346
387#define SYS_getfsstat64 347
388#define SYS___pthread_chdir 348
389#define SYS___pthread_fchdir 349
390#define SYS_audit 350
391#define SYS_auditon 351
392 /* 352 */
393#define SYS_getauid 353
394#define SYS_setauid 354
395 /* 355 old getaudit */
396 /* 356 old setaudit */
397#define SYS_getaudit_addr 357
398#define SYS_setaudit_addr 358
399#define SYS_auditctl 359
400#define SYS_bsdthread_create 360
401#define SYS_bsdthread_terminate 361
402#define SYS_kqueue 362
403#define SYS_kevent 363
404#define SYS_lchown 364
405 /* 365 old stack_snapshot */
406#define SYS_bsdthread_register 366
407#define SYS_workq_open 367
408#define SYS_workq_kernreturn 368
409#define SYS_kevent64 369
410 /* 370 old __semwait_signal */
411 /* 371 old __semwait_signal */
412#define SYS_thread_selfid 372
413#define SYS_ledger 373
414#define SYS_kevent_qos 374
415#define SYS_kevent_id 375
416 /* 376 */
417 /* 377 */
418 /* 378 */
419 /* 379 */
420#define SYS___mac_execve 380
421#define SYS___mac_syscall 381
422#define SYS___mac_get_file 382
423#define SYS___mac_set_file 383
424#define SYS___mac_get_link 384
425#define SYS___mac_set_link 385
426#define SYS___mac_get_proc 386
427#define SYS___mac_set_proc 387
428#define SYS___mac_get_fd 388
429#define SYS___mac_set_fd 389
430#define SYS___mac_get_pid 390
431 /* 391 */
432 /* 392 */
433 /* 393 */
434#define SYS_pselect 394
435#define SYS_pselect_nocancel 395
436#define SYS_read_nocancel 396
437#define SYS_write_nocancel 397
438#define SYS_open_nocancel 398
439#define SYS_close_nocancel 399
440#define SYS_wait4_nocancel 400
441#define SYS_recvmsg_nocancel 401
442#define SYS_sendmsg_nocancel 402
443#define SYS_recvfrom_nocancel 403
444#define SYS_accept_nocancel 404
445#define SYS_msync_nocancel 405
446#define SYS_fcntl_nocancel 406
447#define SYS_select_nocancel 407
448#define SYS_fsync_nocancel 408
449#define SYS_connect_nocancel 409
450#define SYS_sigsuspend_nocancel 410
451#define SYS_readv_nocancel 411
452#define SYS_writev_nocancel 412
453#define SYS_sendto_nocancel 413
454#define SYS_pread_nocancel 414
455#define SYS_pwrite_nocancel 415
456#define SYS_waitid_nocancel 416
457#define SYS_poll_nocancel 417
458#define SYS_msgsnd_nocancel 418
459#define SYS_msgrcv_nocancel 419
460#define SYS_sem_wait_nocancel 420
461#define SYS_aio_suspend_nocancel 421
462#define SYS___sigwait_nocancel 422
463#define SYS___semwait_signal_nocancel 423
464#define SYS___mac_mount 424
465#define SYS___mac_get_mount 425
466#define SYS___mac_getfsstat 426
467#define SYS_fsgetpath 427
468#define SYS_audit_session_self 428
469#define SYS_audit_session_join 429
470#define SYS_fileport_makeport 430
471#define SYS_fileport_makefd 431
472#define SYS_audit_session_port 432
473#define SYS_pid_suspend 433
474#define SYS_pid_resume 434
475#define SYS_pid_hibernate 435
476#define SYS_pid_shutdown_sockets 436
477 /* 437 old shared_region_slide_np */
478 /* 438 old shared_region_map_and_slide_np */
479#define SYS_kas_info 439
480#define SYS_memorystatus_control 440
481#define SYS_guarded_open_np 441
482#define SYS_guarded_close_np 442
483#define SYS_guarded_kqueue_np 443
484#define SYS_change_fdguard_np 444
485#define SYS_usrctl 445
486#define SYS_proc_rlimit_control 446
487#define SYS_connectx 447
488#define SYS_disconnectx 448
489#define SYS_peeloff 449
490#define SYS_socket_delegate 450
491#define SYS_telemetry 451
492#define SYS_proc_uuid_policy 452
493#define SYS_memorystatus_get_level 453
494#define SYS_system_override 454
495#define SYS_vfs_purge 455
496#define SYS_sfi_ctl 456
497#define SYS_sfi_pidctl 457
498#define SYS_coalition 458
499#define SYS_coalition_info 459
500#define SYS_necp_match_policy 460
501#define SYS_getattrlistbulk 461
502#define SYS_clonefileat 462
503#define SYS_openat 463
504#define SYS_openat_nocancel 464
505#define SYS_renameat 465
506#define SYS_faccessat 466
507#define SYS_fchmodat 467
508#define SYS_fchownat 468
509#define SYS_fstatat 469
510#define SYS_fstatat64 470
511#define SYS_linkat 471
512#define SYS_unlinkat 472
513#define SYS_readlinkat 473
514#define SYS_symlinkat 474
515#define SYS_mkdirat 475
516#define SYS_getattrlistat 476
517#define SYS_proc_trace_log 477
518#define SYS_bsdthread_ctl 478
519#define SYS_openbyid_np 479
520#define SYS_recvmsg_x 480
521#define SYS_sendmsg_x 481
522#define SYS_thread_selfusage 482
523#define SYS_csrctl 483
524#define SYS_guarded_open_dprotected_np 484
525#define SYS_guarded_write_np 485
526#define SYS_guarded_pwrite_np 486
527#define SYS_guarded_writev_np 487
528#define SYS_renameatx_np 488
529#define SYS_mremap_encrypted 489
530#define SYS_netagent_trigger 490
531#define SYS_stack_snapshot_with_config 491
532#define SYS_microstackshot 492
533#define SYS_grab_pgo_data 493
534#define SYS_persona 494
535 /* 495 */
536#define SYS_mach_eventlink_signal 496
537#define SYS_mach_eventlink_wait_until 497
538#define SYS_mach_eventlink_signal_wait_until 498
539#define SYS_work_interval_ctl 499
540#define SYS_getentropy 500
541#define SYS_necp_open 501
542#define SYS_necp_client_action 502
543#define SYS___nexus_open 503
544#define SYS___nexus_register 504
545#define SYS___nexus_deregister 505
546#define SYS___nexus_create 506
547#define SYS___nexus_destroy 507
548#define SYS___nexus_get_opt 508
549#define SYS___nexus_set_opt 509
550#define SYS___channel_open 510
551#define SYS___channel_get_info 511
552#define SYS___channel_sync 512
553#define SYS___channel_get_opt 513
554#define SYS___channel_set_opt 514
555#define SYS_ulock_wait 515
556#define SYS_ulock_wake 516
557#define SYS_fclonefileat 517
558#define SYS_fs_snapshot 518
559 /* 519 */
560#define SYS_terminate_with_payload 520
561#define SYS_abort_with_payload 521
562#define SYS_necp_session_open 522
563#define SYS_necp_session_action 523
564#define SYS_setattrlistat 524
565#define SYS_net_qos_guideline 525
566#define SYS_fmount 526
567#define SYS_ntp_adjtime 527
568#define SYS_ntp_gettime 528
569#define SYS_os_fault_with_payload 529
570#define SYS_kqueue_workloop_ctl 530
571#define SYS___mach_bridge_remote_time 531
572#define SYS_coalition_ledger 532
573#define SYS_log_data 533
574#define SYS_memorystatus_available_memory 534
575 /* 535 */
576#define SYS_shared_region_map_and_slide_2_np 536
577#define SYS_pivot_root 537
578#define SYS_task_inspect_for_pid 538
579#define SYS_task_read_for_pid 539
580#define SYS_preadv 540
581#define SYS_pwritev 541
582#define SYS_preadv_nocancel 542
583#define SYS_pwritev_nocancel 543
584#define SYS_ulock_wait2 544
585#define SYS_proc_info_extended_id 545
586#define SYS_tracker_action 546
587#define SYS_debug_syscall_reject 547
588#define SYS_debug_syscall_reject_config 548
589#define SYS_graftdmg 549
590#define SYS_map_with_linking_np 550
591#define SYS_freadlink 551
592#define SYS_record_system_event 552
593#define SYS_mkfifoat 553
594#define SYS_mknodat 554
595#define SYS_ungraftdmg 555
596#define SYS_MAXSYSCALL 556
597#define SYS_invalid 63
598
599#endif /* __APPLE_API_PRIVATE */
600#endif /* !_SYS_SYSCALL_H_ */
601