zsysnum_darwin_arm64.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. // go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build arm64 && darwin
  4. // +build arm64,darwin
  5. package unix
  6. // Deprecated: Use libSystem wrappers instead of direct syscalls.
  7. const (
  8. SYS_SYSCALL = 0
  9. SYS_EXIT = 1
  10. SYS_FORK = 2
  11. SYS_READ = 3
  12. SYS_WRITE = 4
  13. SYS_OPEN = 5
  14. SYS_CLOSE = 6
  15. SYS_WAIT4 = 7
  16. SYS_LINK = 9
  17. SYS_UNLINK = 10
  18. SYS_CHDIR = 12
  19. SYS_FCHDIR = 13
  20. SYS_MKNOD = 14
  21. SYS_CHMOD = 15
  22. SYS_CHOWN = 16
  23. SYS_GETFSSTAT = 18
  24. SYS_GETPID = 20
  25. SYS_SETUID = 23
  26. SYS_GETUID = 24
  27. SYS_GETEUID = 25
  28. SYS_PTRACE = 26
  29. SYS_RECVMSG = 27
  30. SYS_SENDMSG = 28
  31. SYS_RECVFROM = 29
  32. SYS_ACCEPT = 30
  33. SYS_GETPEERNAME = 31
  34. SYS_GETSOCKNAME = 32
  35. SYS_ACCESS = 33
  36. SYS_CHFLAGS = 34
  37. SYS_FCHFLAGS = 35
  38. SYS_SYNC = 36
  39. SYS_KILL = 37
  40. SYS_GETPPID = 39
  41. SYS_DUP = 41
  42. SYS_PIPE = 42
  43. SYS_GETEGID = 43
  44. SYS_SIGACTION = 46
  45. SYS_GETGID = 47
  46. SYS_SIGPROCMASK = 48
  47. SYS_GETLOGIN = 49
  48. SYS_SETLOGIN = 50
  49. SYS_ACCT = 51
  50. SYS_SIGPENDING = 52
  51. SYS_SIGALTSTACK = 53
  52. SYS_IOCTL = 54
  53. SYS_REBOOT = 55
  54. SYS_REVOKE = 56
  55. SYS_SYMLINK = 57
  56. SYS_READLINK = 58
  57. SYS_EXECVE = 59
  58. SYS_UMASK = 60
  59. SYS_CHROOT = 61
  60. SYS_MSYNC = 65
  61. SYS_VFORK = 66
  62. SYS_MUNMAP = 73
  63. SYS_MPROTECT = 74
  64. SYS_MADVISE = 75
  65. SYS_MINCORE = 78
  66. SYS_GETGROUPS = 79
  67. SYS_SETGROUPS = 80
  68. SYS_GETPGRP = 81
  69. SYS_SETPGID = 82
  70. SYS_SETITIMER = 83
  71. SYS_SWAPON = 85
  72. SYS_GETITIMER = 86
  73. SYS_GETDTABLESIZE = 89
  74. SYS_DUP2 = 90
  75. SYS_FCNTL = 92
  76. SYS_SELECT = 93
  77. SYS_FSYNC = 95
  78. SYS_SETPRIORITY = 96
  79. SYS_SOCKET = 97
  80. SYS_CONNECT = 98
  81. SYS_GETPRIORITY = 100
  82. SYS_BIND = 104
  83. SYS_SETSOCKOPT = 105
  84. SYS_LISTEN = 106
  85. SYS_SIGSUSPEND = 111
  86. SYS_GETTIMEOFDAY = 116
  87. SYS_GETRUSAGE = 117
  88. SYS_GETSOCKOPT = 118
  89. SYS_READV = 120
  90. SYS_WRITEV = 121
  91. SYS_SETTIMEOFDAY = 122
  92. SYS_FCHOWN = 123
  93. SYS_FCHMOD = 124
  94. SYS_SETREUID = 126
  95. SYS_SETREGID = 127
  96. SYS_RENAME = 128
  97. SYS_FLOCK = 131
  98. SYS_MKFIFO = 132
  99. SYS_SENDTO = 133
  100. SYS_SHUTDOWN = 134
  101. SYS_SOCKETPAIR = 135
  102. SYS_MKDIR = 136
  103. SYS_RMDIR = 137
  104. SYS_UTIMES = 138
  105. SYS_FUTIMES = 139
  106. SYS_ADJTIME = 140
  107. SYS_GETHOSTUUID = 142
  108. SYS_SETSID = 147
  109. SYS_GETPGID = 151
  110. SYS_SETPRIVEXEC = 152
  111. SYS_PREAD = 153
  112. SYS_PWRITE = 154
  113. SYS_NFSSVC = 155
  114. SYS_STATFS = 157
  115. SYS_FSTATFS = 158
  116. SYS_UNMOUNT = 159
  117. SYS_GETFH = 161
  118. SYS_QUOTACTL = 165
  119. SYS_MOUNT = 167
  120. SYS_CSOPS = 169
  121. SYS_CSOPS_AUDITTOKEN = 170
  122. SYS_WAITID = 173
  123. SYS_KDEBUG_TYPEFILTER = 177
  124. SYS_KDEBUG_TRACE_STRING = 178
  125. SYS_KDEBUG_TRACE64 = 179
  126. SYS_KDEBUG_TRACE = 180
  127. SYS_SETGID = 181
  128. SYS_SETEGID = 182
  129. SYS_SETEUID = 183
  130. SYS_SIGRETURN = 184
  131. SYS_THREAD_SELFCOUNTS = 186
  132. SYS_FDATASYNC = 187
  133. SYS_STAT = 188
  134. SYS_FSTAT = 189
  135. SYS_LSTAT = 190
  136. SYS_PATHCONF = 191
  137. SYS_FPATHCONF = 192
  138. SYS_GETRLIMIT = 194
  139. SYS_SETRLIMIT = 195
  140. SYS_GETDIRENTRIES = 196
  141. SYS_MMAP = 197
  142. SYS_LSEEK = 199
  143. SYS_TRUNCATE = 200
  144. SYS_FTRUNCATE = 201
  145. SYS_SYSCTL = 202
  146. SYS_MLOCK = 203
  147. SYS_MUNLOCK = 204
  148. SYS_UNDELETE = 205
  149. SYS_OPEN_DPROTECTED_NP = 216
  150. SYS_GETATTRLIST = 220
  151. SYS_SETATTRLIST = 221
  152. SYS_GETDIRENTRIESATTR = 222
  153. SYS_EXCHANGEDATA = 223
  154. SYS_SEARCHFS = 225
  155. SYS_DELETE = 226
  156. SYS_COPYFILE = 227
  157. SYS_FGETATTRLIST = 228
  158. SYS_FSETATTRLIST = 229
  159. SYS_POLL = 230
  160. SYS_WATCHEVENT = 231
  161. SYS_WAITEVENT = 232
  162. SYS_MODWATCH = 233
  163. SYS_GETXATTR = 234
  164. SYS_FGETXATTR = 235
  165. SYS_SETXATTR = 236
  166. SYS_FSETXATTR = 237
  167. SYS_REMOVEXATTR = 238
  168. SYS_FREMOVEXATTR = 239
  169. SYS_LISTXATTR = 240
  170. SYS_FLISTXATTR = 241
  171. SYS_FSCTL = 242
  172. SYS_INITGROUPS = 243
  173. SYS_POSIX_SPAWN = 244
  174. SYS_FFSCTL = 245
  175. SYS_NFSCLNT = 247
  176. SYS_FHOPEN = 248
  177. SYS_MINHERIT = 250
  178. SYS_SEMSYS = 251
  179. SYS_MSGSYS = 252
  180. SYS_SHMSYS = 253
  181. SYS_SEMCTL = 254
  182. SYS_SEMGET = 255
  183. SYS_SEMOP = 256
  184. SYS_MSGCTL = 258
  185. SYS_MSGGET = 259
  186. SYS_MSGSND = 260
  187. SYS_MSGRCV = 261
  188. SYS_SHMAT = 262
  189. SYS_SHMCTL = 263
  190. SYS_SHMDT = 264
  191. SYS_SHMGET = 265
  192. SYS_SHM_OPEN = 266
  193. SYS_SHM_UNLINK = 267
  194. SYS_SEM_OPEN = 268
  195. SYS_SEM_CLOSE = 269
  196. SYS_SEM_UNLINK = 270
  197. SYS_SEM_WAIT = 271
  198. SYS_SEM_TRYWAIT = 272
  199. SYS_SEM_POST = 273
  200. SYS_SYSCTLBYNAME = 274
  201. SYS_OPEN_EXTENDED = 277
  202. SYS_UMASK_EXTENDED = 278
  203. SYS_STAT_EXTENDED = 279
  204. SYS_LSTAT_EXTENDED = 280
  205. SYS_FSTAT_EXTENDED = 281
  206. SYS_CHMOD_EXTENDED = 282
  207. SYS_FCHMOD_EXTENDED = 283
  208. SYS_ACCESS_EXTENDED = 284
  209. SYS_SETTID = 285
  210. SYS_GETTID = 286
  211. SYS_SETSGROUPS = 287
  212. SYS_GETSGROUPS = 288
  213. SYS_SETWGROUPS = 289
  214. SYS_GETWGROUPS = 290
  215. SYS_MKFIFO_EXTENDED = 291
  216. SYS_MKDIR_EXTENDED = 292
  217. SYS_IDENTITYSVC = 293
  218. SYS_SHARED_REGION_CHECK_NP = 294
  219. SYS_VM_PRESSURE_MONITOR = 296
  220. SYS_PSYNCH_RW_LONGRDLOCK = 297
  221. SYS_PSYNCH_RW_YIELDWRLOCK = 298
  222. SYS_PSYNCH_RW_DOWNGRADE = 299
  223. SYS_PSYNCH_RW_UPGRADE = 300
  224. SYS_PSYNCH_MUTEXWAIT = 301
  225. SYS_PSYNCH_MUTEXDROP = 302
  226. SYS_PSYNCH_CVBROAD = 303
  227. SYS_PSYNCH_CVSIGNAL = 304
  228. SYS_PSYNCH_CVWAIT = 305
  229. SYS_PSYNCH_RW_RDLOCK = 306
  230. SYS_PSYNCH_RW_WRLOCK = 307
  231. SYS_PSYNCH_RW_UNLOCK = 308
  232. SYS_PSYNCH_RW_UNLOCK2 = 309
  233. SYS_GETSID = 310
  234. SYS_SETTID_WITH_PID = 311
  235. SYS_PSYNCH_CVCLRPREPOST = 312
  236. SYS_AIO_FSYNC = 313
  237. SYS_AIO_RETURN = 314
  238. SYS_AIO_SUSPEND = 315
  239. SYS_AIO_CANCEL = 316
  240. SYS_AIO_ERROR = 317
  241. SYS_AIO_READ = 318
  242. SYS_AIO_WRITE = 319
  243. SYS_LIO_LISTIO = 320
  244. SYS_IOPOLICYSYS = 322
  245. SYS_PROCESS_POLICY = 323
  246. SYS_MLOCKALL = 324
  247. SYS_MUNLOCKALL = 325
  248. SYS_ISSETUGID = 327
  249. SYS___PTHREAD_KILL = 328
  250. SYS___PTHREAD_SIGMASK = 329
  251. SYS___SIGWAIT = 330
  252. SYS___DISABLE_THREADSIGNAL = 331
  253. SYS___PTHREAD_MARKCANCEL = 332
  254. SYS___PTHREAD_CANCELED = 333
  255. SYS___SEMWAIT_SIGNAL = 334
  256. SYS_PROC_INFO = 336
  257. SYS_SENDFILE = 337
  258. SYS_STAT64 = 338
  259. SYS_FSTAT64 = 339
  260. SYS_LSTAT64 = 340
  261. SYS_STAT64_EXTENDED = 341
  262. SYS_LSTAT64_EXTENDED = 342
  263. SYS_FSTAT64_EXTENDED = 343
  264. SYS_GETDIRENTRIES64 = 344
  265. SYS_STATFS64 = 345
  266. SYS_FSTATFS64 = 346
  267. SYS_GETFSSTAT64 = 347
  268. SYS___PTHREAD_CHDIR = 348
  269. SYS___PTHREAD_FCHDIR = 349
  270. SYS_AUDIT = 350
  271. SYS_AUDITON = 351
  272. SYS_GETAUID = 353
  273. SYS_SETAUID = 354
  274. SYS_GETAUDIT_ADDR = 357
  275. SYS_SETAUDIT_ADDR = 358
  276. SYS_AUDITCTL = 359
  277. SYS_BSDTHREAD_CREATE = 360
  278. SYS_BSDTHREAD_TERMINATE = 361
  279. SYS_KQUEUE = 362
  280. SYS_KEVENT = 363
  281. SYS_LCHOWN = 364
  282. SYS_BSDTHREAD_REGISTER = 366
  283. SYS_WORKQ_OPEN = 367
  284. SYS_WORKQ_KERNRETURN = 368
  285. SYS_KEVENT64 = 369
  286. SYS___OLD_SEMWAIT_SIGNAL = 370
  287. SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
  288. SYS_THREAD_SELFID = 372
  289. SYS_LEDGER = 373
  290. SYS_KEVENT_QOS = 374
  291. SYS_KEVENT_ID = 375
  292. SYS___MAC_EXECVE = 380
  293. SYS___MAC_SYSCALL = 381
  294. SYS___MAC_GET_FILE = 382
  295. SYS___MAC_SET_FILE = 383
  296. SYS___MAC_GET_LINK = 384
  297. SYS___MAC_SET_LINK = 385
  298. SYS___MAC_GET_PROC = 386
  299. SYS___MAC_SET_PROC = 387
  300. SYS___MAC_GET_FD = 388
  301. SYS___MAC_SET_FD = 389
  302. SYS___MAC_GET_PID = 390
  303. SYS_PSELECT = 394
  304. SYS_PSELECT_NOCANCEL = 395
  305. SYS_READ_NOCANCEL = 396
  306. SYS_WRITE_NOCANCEL = 397
  307. SYS_OPEN_NOCANCEL = 398
  308. SYS_CLOSE_NOCANCEL = 399
  309. SYS_WAIT4_NOCANCEL = 400
  310. SYS_RECVMSG_NOCANCEL = 401
  311. SYS_SENDMSG_NOCANCEL = 402
  312. SYS_RECVFROM_NOCANCEL = 403
  313. SYS_ACCEPT_NOCANCEL = 404
  314. SYS_MSYNC_NOCANCEL = 405
  315. SYS_FCNTL_NOCANCEL = 406
  316. SYS_SELECT_NOCANCEL = 407
  317. SYS_FSYNC_NOCANCEL = 408
  318. SYS_CONNECT_NOCANCEL = 409
  319. SYS_SIGSUSPEND_NOCANCEL = 410
  320. SYS_READV_NOCANCEL = 411
  321. SYS_WRITEV_NOCANCEL = 412
  322. SYS_SENDTO_NOCANCEL = 413
  323. SYS_PREAD_NOCANCEL = 414
  324. SYS_PWRITE_NOCANCEL = 415
  325. SYS_WAITID_NOCANCEL = 416
  326. SYS_POLL_NOCANCEL = 417
  327. SYS_MSGSND_NOCANCEL = 418
  328. SYS_MSGRCV_NOCANCEL = 419
  329. SYS_SEM_WAIT_NOCANCEL = 420
  330. SYS_AIO_SUSPEND_NOCANCEL = 421
  331. SYS___SIGWAIT_NOCANCEL = 422
  332. SYS___SEMWAIT_SIGNAL_NOCANCEL = 423
  333. SYS___MAC_MOUNT = 424
  334. SYS___MAC_GET_MOUNT = 425
  335. SYS___MAC_GETFSSTAT = 426
  336. SYS_FSGETPATH = 427
  337. SYS_AUDIT_SESSION_SELF = 428
  338. SYS_AUDIT_SESSION_JOIN = 429
  339. SYS_FILEPORT_MAKEPORT = 430
  340. SYS_FILEPORT_MAKEFD = 431
  341. SYS_AUDIT_SESSION_PORT = 432
  342. SYS_PID_SUSPEND = 433
  343. SYS_PID_RESUME = 434
  344. SYS_PID_HIBERNATE = 435
  345. SYS_PID_SHUTDOWN_SOCKETS = 436
  346. SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
  347. SYS_KAS_INFO = 439
  348. SYS_MEMORYSTATUS_CONTROL = 440
  349. SYS_GUARDED_OPEN_NP = 441
  350. SYS_GUARDED_CLOSE_NP = 442
  351. SYS_GUARDED_KQUEUE_NP = 443
  352. SYS_CHANGE_FDGUARD_NP = 444
  353. SYS_USRCTL = 445
  354. SYS_PROC_RLIMIT_CONTROL = 446
  355. SYS_CONNECTX = 447
  356. SYS_DISCONNECTX = 448
  357. SYS_PEELOFF = 449
  358. SYS_SOCKET_DELEGATE = 450
  359. SYS_TELEMETRY = 451
  360. SYS_PROC_UUID_POLICY = 452
  361. SYS_MEMORYSTATUS_GET_LEVEL = 453
  362. SYS_SYSTEM_OVERRIDE = 454
  363. SYS_VFS_PURGE = 455
  364. SYS_SFI_CTL = 456
  365. SYS_SFI_PIDCTL = 457
  366. SYS_COALITION = 458
  367. SYS_COALITION_INFO = 459
  368. SYS_NECP_MATCH_POLICY = 460
  369. SYS_GETATTRLISTBULK = 461
  370. SYS_CLONEFILEAT = 462
  371. SYS_OPENAT = 463
  372. SYS_OPENAT_NOCANCEL = 464
  373. SYS_RENAMEAT = 465
  374. SYS_FACCESSAT = 466
  375. SYS_FCHMODAT = 467
  376. SYS_FCHOWNAT = 468
  377. SYS_FSTATAT = 469
  378. SYS_FSTATAT64 = 470
  379. SYS_LINKAT = 471
  380. SYS_UNLINKAT = 472
  381. SYS_READLINKAT = 473
  382. SYS_SYMLINKAT = 474
  383. SYS_MKDIRAT = 475
  384. SYS_GETATTRLISTAT = 476
  385. SYS_PROC_TRACE_LOG = 477
  386. SYS_BSDTHREAD_CTL = 478
  387. SYS_OPENBYID_NP = 479
  388. SYS_RECVMSG_X = 480
  389. SYS_SENDMSG_X = 481
  390. SYS_THREAD_SELFUSAGE = 482
  391. SYS_CSRCTL = 483
  392. SYS_GUARDED_OPEN_DPROTECTED_NP = 484
  393. SYS_GUARDED_WRITE_NP = 485
  394. SYS_GUARDED_PWRITE_NP = 486
  395. SYS_GUARDED_WRITEV_NP = 487
  396. SYS_RENAMEATX_NP = 488
  397. SYS_MREMAP_ENCRYPTED = 489
  398. SYS_NETAGENT_TRIGGER = 490
  399. SYS_STACK_SNAPSHOT_WITH_CONFIG = 491
  400. SYS_MICROSTACKSHOT = 492
  401. SYS_GRAB_PGO_DATA = 493
  402. SYS_PERSONA = 494
  403. SYS_WORK_INTERVAL_CTL = 499
  404. SYS_GETENTROPY = 500
  405. SYS_NECP_OPEN = 501
  406. SYS_NECP_CLIENT_ACTION = 502
  407. SYS___NEXUS_OPEN = 503
  408. SYS___NEXUS_REGISTER = 504
  409. SYS___NEXUS_DEREGISTER = 505
  410. SYS___NEXUS_CREATE = 506
  411. SYS___NEXUS_DESTROY = 507
  412. SYS___NEXUS_GET_OPT = 508
  413. SYS___NEXUS_SET_OPT = 509
  414. SYS___CHANNEL_OPEN = 510
  415. SYS___CHANNEL_GET_INFO = 511
  416. SYS___CHANNEL_SYNC = 512
  417. SYS___CHANNEL_GET_OPT = 513
  418. SYS___CHANNEL_SET_OPT = 514
  419. SYS_ULOCK_WAIT = 515
  420. SYS_ULOCK_WAKE = 516
  421. SYS_FCLONEFILEAT = 517
  422. SYS_FS_SNAPSHOT = 518
  423. SYS_TERMINATE_WITH_PAYLOAD = 520
  424. SYS_ABORT_WITH_PAYLOAD = 521
  425. SYS_NECP_SESSION_OPEN = 522
  426. SYS_NECP_SESSION_ACTION = 523
  427. SYS_SETATTRLISTAT = 524
  428. SYS_NET_QOS_GUIDELINE = 525
  429. SYS_FMOUNT = 526
  430. SYS_NTP_ADJTIME = 527
  431. SYS_NTP_GETTIME = 528
  432. SYS_OS_FAULT_WITH_PAYLOAD = 529
  433. SYS_MAXSYSCALL = 530
  434. SYS_INVALID = 63
  435. )