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