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