zsysnum_darwin_amd64.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. // mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/syscall.h
  2. // MACHINE GENERATED BY THE ABOVE COMMAND; 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_TRACE64 = 179
  122. SYS_KDEBUG_TRACE = 180
  123. SYS_SETGID = 181
  124. SYS_SETEGID = 182
  125. SYS_SETEUID = 183
  126. SYS_SIGRETURN = 184
  127. SYS_CHUD = 185
  128. SYS_FDATASYNC = 187
  129. SYS_STAT = 188
  130. SYS_FSTAT = 189
  131. SYS_LSTAT = 190
  132. SYS_PATHCONF = 191
  133. SYS_FPATHCONF = 192
  134. SYS_GETRLIMIT = 194
  135. SYS_SETRLIMIT = 195
  136. SYS_GETDIRENTRIES = 196
  137. SYS_MMAP = 197
  138. SYS_LSEEK = 199
  139. SYS_TRUNCATE = 200
  140. SYS_FTRUNCATE = 201
  141. SYS_SYSCTL = 202
  142. SYS_MLOCK = 203
  143. SYS_MUNLOCK = 204
  144. SYS_UNDELETE = 205
  145. SYS_OPEN_DPROTECTED_NP = 216
  146. SYS_GETATTRLIST = 220
  147. SYS_SETATTRLIST = 221
  148. SYS_GETDIRENTRIESATTR = 222
  149. SYS_EXCHANGEDATA = 223
  150. SYS_SEARCHFS = 225
  151. SYS_DELETE = 226
  152. SYS_COPYFILE = 227
  153. SYS_FGETATTRLIST = 228
  154. SYS_FSETATTRLIST = 229
  155. SYS_POLL = 230
  156. SYS_WATCHEVENT = 231
  157. SYS_WAITEVENT = 232
  158. SYS_MODWATCH = 233
  159. SYS_GETXATTR = 234
  160. SYS_FGETXATTR = 235
  161. SYS_SETXATTR = 236
  162. SYS_FSETXATTR = 237
  163. SYS_REMOVEXATTR = 238
  164. SYS_FREMOVEXATTR = 239
  165. SYS_LISTXATTR = 240
  166. SYS_FLISTXATTR = 241
  167. SYS_FSCTL = 242
  168. SYS_INITGROUPS = 243
  169. SYS_POSIX_SPAWN = 244
  170. SYS_FFSCTL = 245
  171. SYS_NFSCLNT = 247
  172. SYS_FHOPEN = 248
  173. SYS_MINHERIT = 250
  174. SYS_SEMSYS = 251
  175. SYS_MSGSYS = 252
  176. SYS_SHMSYS = 253
  177. SYS_SEMCTL = 254
  178. SYS_SEMGET = 255
  179. SYS_SEMOP = 256
  180. SYS_MSGCTL = 258
  181. SYS_MSGGET = 259
  182. SYS_MSGSND = 260
  183. SYS_MSGRCV = 261
  184. SYS_SHMAT = 262
  185. SYS_SHMCTL = 263
  186. SYS_SHMDT = 264
  187. SYS_SHMGET = 265
  188. SYS_SHM_OPEN = 266
  189. SYS_SHM_UNLINK = 267
  190. SYS_SEM_OPEN = 268
  191. SYS_SEM_CLOSE = 269
  192. SYS_SEM_UNLINK = 270
  193. SYS_SEM_WAIT = 271
  194. SYS_SEM_TRYWAIT = 272
  195. SYS_SEM_POST = 273
  196. SYS_SYSCTLBYNAME = 274
  197. SYS_OPEN_EXTENDED = 277
  198. SYS_UMASK_EXTENDED = 278
  199. SYS_STAT_EXTENDED = 279
  200. SYS_LSTAT_EXTENDED = 280
  201. SYS_FSTAT_EXTENDED = 281
  202. SYS_CHMOD_EXTENDED = 282
  203. SYS_FCHMOD_EXTENDED = 283
  204. SYS_ACCESS_EXTENDED = 284
  205. SYS_SETTID = 285
  206. SYS_GETTID = 286
  207. SYS_SETSGROUPS = 287
  208. SYS_GETSGROUPS = 288
  209. SYS_SETWGROUPS = 289
  210. SYS_GETWGROUPS = 290
  211. SYS_MKFIFO_EXTENDED = 291
  212. SYS_MKDIR_EXTENDED = 292
  213. SYS_IDENTITYSVC = 293
  214. SYS_SHARED_REGION_CHECK_NP = 294
  215. SYS_VM_PRESSURE_MONITOR = 296
  216. SYS_PSYNCH_RW_LONGRDLOCK = 297
  217. SYS_PSYNCH_RW_YIELDWRLOCK = 298
  218. SYS_PSYNCH_RW_DOWNGRADE = 299
  219. SYS_PSYNCH_RW_UPGRADE = 300
  220. SYS_PSYNCH_MUTEXWAIT = 301
  221. SYS_PSYNCH_MUTEXDROP = 302
  222. SYS_PSYNCH_CVBROAD = 303
  223. SYS_PSYNCH_CVSIGNAL = 304
  224. SYS_PSYNCH_CVWAIT = 305
  225. SYS_PSYNCH_RW_RDLOCK = 306
  226. SYS_PSYNCH_RW_WRLOCK = 307
  227. SYS_PSYNCH_RW_UNLOCK = 308
  228. SYS_PSYNCH_RW_UNLOCK2 = 309
  229. SYS_GETSID = 310
  230. SYS_SETTID_WITH_PID = 311
  231. SYS_PSYNCH_CVCLRPREPOST = 312
  232. SYS_AIO_FSYNC = 313
  233. SYS_AIO_RETURN = 314
  234. SYS_AIO_SUSPEND = 315
  235. SYS_AIO_CANCEL = 316
  236. SYS_AIO_ERROR = 317
  237. SYS_AIO_READ = 318
  238. SYS_AIO_WRITE = 319
  239. SYS_LIO_LISTIO = 320
  240. SYS_IOPOLICYSYS = 322
  241. SYS_PROCESS_POLICY = 323
  242. SYS_MLOCKALL = 324
  243. SYS_MUNLOCKALL = 325
  244. SYS_ISSETUGID = 327
  245. SYS___PTHREAD_KILL = 328
  246. SYS___PTHREAD_SIGMASK = 329
  247. SYS___SIGWAIT = 330
  248. SYS___DISABLE_THREADSIGNAL = 331
  249. SYS___PTHREAD_MARKCANCEL = 332
  250. SYS___PTHREAD_CANCELED = 333
  251. SYS___SEMWAIT_SIGNAL = 334
  252. SYS_PROC_INFO = 336
  253. SYS_SENDFILE = 337
  254. SYS_STAT64 = 338
  255. SYS_FSTAT64 = 339
  256. SYS_LSTAT64 = 340
  257. SYS_STAT64_EXTENDED = 341
  258. SYS_LSTAT64_EXTENDED = 342
  259. SYS_FSTAT64_EXTENDED = 343
  260. SYS_GETDIRENTRIES64 = 344
  261. SYS_STATFS64 = 345
  262. SYS_FSTATFS64 = 346
  263. SYS_GETFSSTAT64 = 347
  264. SYS___PTHREAD_CHDIR = 348
  265. SYS___PTHREAD_FCHDIR = 349
  266. SYS_AUDIT = 350
  267. SYS_AUDITON = 351
  268. SYS_GETAUID = 353
  269. SYS_SETAUID = 354
  270. SYS_GETAUDIT_ADDR = 357
  271. SYS_SETAUDIT_ADDR = 358
  272. SYS_AUDITCTL = 359
  273. SYS_BSDTHREAD_CREATE = 360
  274. SYS_BSDTHREAD_TERMINATE = 361
  275. SYS_KQUEUE = 362
  276. SYS_KEVENT = 363
  277. SYS_LCHOWN = 364
  278. SYS_STACK_SNAPSHOT = 365
  279. SYS_BSDTHREAD_REGISTER = 366
  280. SYS_WORKQ_OPEN = 367
  281. SYS_WORKQ_KERNRETURN = 368
  282. SYS_KEVENT64 = 369
  283. SYS___OLD_SEMWAIT_SIGNAL = 370
  284. SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
  285. SYS_THREAD_SELFID = 372
  286. SYS_LEDGER = 373
  287. SYS___MAC_EXECVE = 380
  288. SYS___MAC_SYSCALL = 381
  289. SYS___MAC_GET_FILE = 382
  290. SYS___MAC_SET_FILE = 383
  291. SYS___MAC_GET_LINK = 384
  292. SYS___MAC_SET_LINK = 385
  293. SYS___MAC_GET_PROC = 386
  294. SYS___MAC_SET_PROC = 387
  295. SYS___MAC_GET_FD = 388
  296. SYS___MAC_SET_FD = 389
  297. SYS___MAC_GET_PID = 390
  298. SYS___MAC_GET_LCID = 391
  299. SYS___MAC_GET_LCTX = 392
  300. SYS___MAC_SET_LCTX = 393
  301. SYS_SETLCID = 394
  302. SYS_GETLCID = 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_PROC_RLIMIT_CONTROL = 446
  352. SYS_CONNECTX = 447
  353. SYS_DISCONNECTX = 448
  354. SYS_PEELOFF = 449
  355. SYS_SOCKET_DELEGATE = 450
  356. SYS_TELEMETRY = 451
  357. SYS_PROC_UUID_POLICY = 452
  358. SYS_MEMORYSTATUS_GET_LEVEL = 453
  359. SYS_SYSTEM_OVERRIDE = 454
  360. SYS_VFS_PURGE = 455
  361. SYS_SFI_CTL = 456
  362. SYS_SFI_PIDCTL = 457
  363. SYS_COALITION = 458
  364. SYS_COALITION_INFO = 459
  365. SYS_NECP_MATCH_POLICY = 460
  366. SYS_GETATTRLISTBULK = 461
  367. SYS_OPENAT = 463
  368. SYS_OPENAT_NOCANCEL = 464
  369. SYS_RENAMEAT = 465
  370. SYS_FACCESSAT = 466
  371. SYS_FCHMODAT = 467
  372. SYS_FCHOWNAT = 468
  373. SYS_FSTATAT = 469
  374. SYS_FSTATAT64 = 470
  375. SYS_LINKAT = 471
  376. SYS_UNLINKAT = 472
  377. SYS_READLINKAT = 473
  378. SYS_SYMLINKAT = 474
  379. SYS_MKDIRAT = 475
  380. SYS_GETATTRLISTAT = 476
  381. SYS_PROC_TRACE_LOG = 477
  382. SYS_BSDTHREAD_CTL = 478
  383. SYS_OPENBYID_NP = 479
  384. SYS_RECVMSG_X = 480
  385. SYS_SENDMSG_X = 481
  386. SYS_THREAD_SELFUSAGE = 482
  387. SYS_CSRCTL = 483
  388. SYS_GUARDED_OPEN_DPROTECTED_NP = 484
  389. SYS_GUARDED_WRITE_NP = 485
  390. SYS_GUARDED_PWRITE_NP = 486
  391. SYS_GUARDED_WRITEV_NP = 487
  392. SYS_RENAME_EXT = 488
  393. SYS_MREMAP_ENCRYPTED = 489
  394. SYS_MAXSYSCALL = 490
  395. )