zsysnum_darwin_amd64.go 18 KB

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