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