1
2
3
4
5
6 package unix
7
8 const (
9 SYS_SYSCALL_MASK = 0
10 SYS_RESTART_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_CREAT = 8
18 SYS_LINK = 9
19 SYS_UNLINK = 10
20 SYS_EXECVE = 11
21 SYS_CHDIR = 12
22 SYS_MKNOD = 14
23 SYS_CHMOD = 15
24 SYS_LCHOWN = 16
25 SYS_LSEEK = 19
26 SYS_GETPID = 20
27 SYS_MOUNT = 21
28 SYS_SETUID = 23
29 SYS_GETUID = 24
30 SYS_PTRACE = 26
31 SYS_PAUSE = 29
32 SYS_ACCESS = 33
33 SYS_NICE = 34
34 SYS_SYNC = 36
35 SYS_KILL = 37
36 SYS_RENAME = 38
37 SYS_MKDIR = 39
38 SYS_RMDIR = 40
39 SYS_DUP = 41
40 SYS_PIPE = 42
41 SYS_TIMES = 43
42 SYS_BRK = 45
43 SYS_SETGID = 46
44 SYS_GETGID = 47
45 SYS_GETEUID = 49
46 SYS_GETEGID = 50
47 SYS_ACCT = 51
48 SYS_UMOUNT2 = 52
49 SYS_IOCTL = 54
50 SYS_FCNTL = 55
51 SYS_SETPGID = 57
52 SYS_UMASK = 60
53 SYS_CHROOT = 61
54 SYS_USTAT = 62
55 SYS_DUP2 = 63
56 SYS_GETPPID = 64
57 SYS_GETPGRP = 65
58 SYS_SETSID = 66
59 SYS_SIGACTION = 67
60 SYS_SETREUID = 70
61 SYS_SETREGID = 71
62 SYS_SIGSUSPEND = 72
63 SYS_SIGPENDING = 73
64 SYS_SETHOSTNAME = 74
65 SYS_SETRLIMIT = 75
66 SYS_GETRUSAGE = 77
67 SYS_GETTIMEOFDAY = 78
68 SYS_SETTIMEOFDAY = 79
69 SYS_GETGROUPS = 80
70 SYS_SETGROUPS = 81
71 SYS_SYMLINK = 83
72 SYS_READLINK = 85
73 SYS_USELIB = 86
74 SYS_SWAPON = 87
75 SYS_REBOOT = 88
76 SYS_MUNMAP = 91
77 SYS_TRUNCATE = 92
78 SYS_FTRUNCATE = 93
79 SYS_FCHMOD = 94
80 SYS_FCHOWN = 95
81 SYS_GETPRIORITY = 96
82 SYS_SETPRIORITY = 97
83 SYS_STATFS = 99
84 SYS_FSTATFS = 100
85 SYS_SYSLOG = 103
86 SYS_SETITIMER = 104
87 SYS_GETITIMER = 105
88 SYS_STAT = 106
89 SYS_LSTAT = 107
90 SYS_FSTAT = 108
91 SYS_VHANGUP = 111
92 SYS_WAIT4 = 114
93 SYS_SWAPOFF = 115
94 SYS_SYSINFO = 116
95 SYS_FSYNC = 118
96 SYS_SIGRETURN = 119
97 SYS_CLONE = 120
98 SYS_SETDOMAINNAME = 121
99 SYS_UNAME = 122
100 SYS_ADJTIMEX = 124
101 SYS_MPROTECT = 125
102 SYS_SIGPROCMASK = 126
103 SYS_INIT_MODULE = 128
104 SYS_DELETE_MODULE = 129
105 SYS_QUOTACTL = 131
106 SYS_GETPGID = 132
107 SYS_FCHDIR = 133
108 SYS_BDFLUSH = 134
109 SYS_SYSFS = 135
110 SYS_PERSONALITY = 136
111 SYS_SETFSUID = 138
112 SYS_SETFSGID = 139
113 SYS__LLSEEK = 140
114 SYS_GETDENTS = 141
115 SYS__NEWSELECT = 142
116 SYS_FLOCK = 143
117 SYS_MSYNC = 144
118 SYS_READV = 145
119 SYS_WRITEV = 146
120 SYS_GETSID = 147
121 SYS_FDATASYNC = 148
122 SYS__SYSCTL = 149
123 SYS_MLOCK = 150
124 SYS_MUNLOCK = 151
125 SYS_MLOCKALL = 152
126 SYS_MUNLOCKALL = 153
127 SYS_SCHED_SETPARAM = 154
128 SYS_SCHED_GETPARAM = 155
129 SYS_SCHED_SETSCHEDULER = 156
130 SYS_SCHED_GETSCHEDULER = 157
131 SYS_SCHED_YIELD = 158
132 SYS_SCHED_GET_PRIORITY_MAX = 159
133 SYS_SCHED_GET_PRIORITY_MIN = 160
134 SYS_SCHED_RR_GET_INTERVAL = 161
135 SYS_NANOSLEEP = 162
136 SYS_MREMAP = 163
137 SYS_SETRESUID = 164
138 SYS_GETRESUID = 165
139 SYS_POLL = 168
140 SYS_NFSSERVCTL = 169
141 SYS_SETRESGID = 170
142 SYS_GETRESGID = 171
143 SYS_PRCTL = 172
144 SYS_RT_SIGRETURN = 173
145 SYS_RT_SIGACTION = 174
146 SYS_RT_SIGPROCMASK = 175
147 SYS_RT_SIGPENDING = 176
148 SYS_RT_SIGTIMEDWAIT = 177
149 SYS_RT_SIGQUEUEINFO = 178
150 SYS_RT_SIGSUSPEND = 179
151 SYS_PREAD64 = 180
152 SYS_PWRITE64 = 181
153 SYS_CHOWN = 182
154 SYS_GETCWD = 183
155 SYS_CAPGET = 184
156 SYS_CAPSET = 185
157 SYS_SIGALTSTACK = 186
158 SYS_SENDFILE = 187
159 SYS_VFORK = 190
160 SYS_UGETRLIMIT = 191
161 SYS_MMAP2 = 192
162 SYS_TRUNCATE64 = 193
163 SYS_FTRUNCATE64 = 194
164 SYS_STAT64 = 195
165 SYS_LSTAT64 = 196
166 SYS_FSTAT64 = 197
167 SYS_LCHOWN32 = 198
168 SYS_GETUID32 = 199
169 SYS_GETGID32 = 200
170 SYS_GETEUID32 = 201
171 SYS_GETEGID32 = 202
172 SYS_SETREUID32 = 203
173 SYS_SETREGID32 = 204
174 SYS_GETGROUPS32 = 205
175 SYS_SETGROUPS32 = 206
176 SYS_FCHOWN32 = 207
177 SYS_SETRESUID32 = 208
178 SYS_GETRESUID32 = 209
179 SYS_SETRESGID32 = 210
180 SYS_GETRESGID32 = 211
181 SYS_CHOWN32 = 212
182 SYS_SETUID32 = 213
183 SYS_SETGID32 = 214
184 SYS_SETFSUID32 = 215
185 SYS_SETFSGID32 = 216
186 SYS_GETDENTS64 = 217
187 SYS_PIVOT_ROOT = 218
188 SYS_MINCORE = 219
189 SYS_MADVISE = 220
190 SYS_FCNTL64 = 221
191 SYS_GETTID = 224
192 SYS_READAHEAD = 225
193 SYS_SETXATTR = 226
194 SYS_LSETXATTR = 227
195 SYS_FSETXATTR = 228
196 SYS_GETXATTR = 229
197 SYS_LGETXATTR = 230
198 SYS_FGETXATTR = 231
199 SYS_LISTXATTR = 232
200 SYS_LLISTXATTR = 233
201 SYS_FLISTXATTR = 234
202 SYS_REMOVEXATTR = 235
203 SYS_LREMOVEXATTR = 236
204 SYS_FREMOVEXATTR = 237
205 SYS_TKILL = 238
206 SYS_SENDFILE64 = 239
207 SYS_FUTEX = 240
208 SYS_SCHED_SETAFFINITY = 241
209 SYS_SCHED_GETAFFINITY = 242
210 SYS_IO_SETUP = 243
211 SYS_IO_DESTROY = 244
212 SYS_IO_GETEVENTS = 245
213 SYS_IO_SUBMIT = 246
214 SYS_IO_CANCEL = 247
215 SYS_EXIT_GROUP = 248
216 SYS_LOOKUP_DCOOKIE = 249
217 SYS_EPOLL_CREATE = 250
218 SYS_EPOLL_CTL = 251
219 SYS_EPOLL_WAIT = 252
220 SYS_REMAP_FILE_PAGES = 253
221 SYS_SET_TID_ADDRESS = 256
222 SYS_TIMER_CREATE = 257
223 SYS_TIMER_SETTIME = 258
224 SYS_TIMER_GETTIME = 259
225 SYS_TIMER_GETOVERRUN = 260
226 SYS_TIMER_DELETE = 261
227 SYS_CLOCK_SETTIME = 262
228 SYS_CLOCK_GETTIME = 263
229 SYS_CLOCK_GETRES = 264
230 SYS_CLOCK_NANOSLEEP = 265
231 SYS_STATFS64 = 266
232 SYS_FSTATFS64 = 267
233 SYS_TGKILL = 268
234 SYS_UTIMES = 269
235 SYS_ARM_FADVISE64_64 = 270
236 SYS_PCICONFIG_IOBASE = 271
237 SYS_PCICONFIG_READ = 272
238 SYS_PCICONFIG_WRITE = 273
239 SYS_MQ_OPEN = 274
240 SYS_MQ_UNLINK = 275
241 SYS_MQ_TIMEDSEND = 276
242 SYS_MQ_TIMEDRECEIVE = 277
243 SYS_MQ_NOTIFY = 278
244 SYS_MQ_GETSETATTR = 279
245 SYS_WAITID = 280
246 SYS_SOCKET = 281
247 SYS_BIND = 282
248 SYS_CONNECT = 283
249 SYS_LISTEN = 284
250 SYS_ACCEPT = 285
251 SYS_GETSOCKNAME = 286
252 SYS_GETPEERNAME = 287
253 SYS_SOCKETPAIR = 288
254 SYS_SEND = 289
255 SYS_SENDTO = 290
256 SYS_RECV = 291
257 SYS_RECVFROM = 292
258 SYS_SHUTDOWN = 293
259 SYS_SETSOCKOPT = 294
260 SYS_GETSOCKOPT = 295
261 SYS_SENDMSG = 296
262 SYS_RECVMSG = 297
263 SYS_SEMOP = 298
264 SYS_SEMGET = 299
265 SYS_SEMCTL = 300
266 SYS_MSGSND = 301
267 SYS_MSGRCV = 302
268 SYS_MSGGET = 303
269 SYS_MSGCTL = 304
270 SYS_SHMAT = 305
271 SYS_SHMDT = 306
272 SYS_SHMGET = 307
273 SYS_SHMCTL = 308
274 SYS_ADD_KEY = 309
275 SYS_REQUEST_KEY = 310
276 SYS_KEYCTL = 311
277 SYS_SEMTIMEDOP = 312
278 SYS_VSERVER = 313
279 SYS_IOPRIO_SET = 314
280 SYS_IOPRIO_GET = 315
281 SYS_INOTIFY_INIT = 316
282 SYS_INOTIFY_ADD_WATCH = 317
283 SYS_INOTIFY_RM_WATCH = 318
284 SYS_MBIND = 319
285 SYS_GET_MEMPOLICY = 320
286 SYS_SET_MEMPOLICY = 321
287 SYS_OPENAT = 322
288 SYS_MKDIRAT = 323
289 SYS_MKNODAT = 324
290 SYS_FCHOWNAT = 325
291 SYS_FUTIMESAT = 326
292 SYS_FSTATAT64 = 327
293 SYS_UNLINKAT = 328
294 SYS_RENAMEAT = 329
295 SYS_LINKAT = 330
296 SYS_SYMLINKAT = 331
297 SYS_READLINKAT = 332
298 SYS_FCHMODAT = 333
299 SYS_FACCESSAT = 334
300 SYS_PSELECT6 = 335
301 SYS_PPOLL = 336
302 SYS_UNSHARE = 337
303 SYS_SET_ROBUST_LIST = 338
304 SYS_GET_ROBUST_LIST = 339
305 SYS_SPLICE = 340
306 SYS_ARM_SYNC_FILE_RANGE = 341
307 SYS_TEE = 342
308 SYS_VMSPLICE = 343
309 SYS_MOVE_PAGES = 344
310 SYS_GETCPU = 345
311 SYS_EPOLL_PWAIT = 346
312 SYS_KEXEC_LOAD = 347
313 SYS_UTIMENSAT = 348
314 SYS_SIGNALFD = 349
315 SYS_TIMERFD_CREATE = 350
316 SYS_EVENTFD = 351
317 SYS_FALLOCATE = 352
318 SYS_TIMERFD_SETTIME = 353
319 SYS_TIMERFD_GETTIME = 354
320 SYS_SIGNALFD4 = 355
321 SYS_EVENTFD2 = 356
322 SYS_EPOLL_CREATE1 = 357
323 SYS_DUP3 = 358
324 SYS_PIPE2 = 359
325 SYS_INOTIFY_INIT1 = 360
326 SYS_PREADV = 361
327 SYS_PWRITEV = 362
328 SYS_RT_TGSIGQUEUEINFO = 363
329 SYS_PERF_EVENT_OPEN = 364
330 SYS_RECVMMSG = 365
331 SYS_ACCEPT4 = 366
332 SYS_FANOTIFY_INIT = 367
333 SYS_FANOTIFY_MARK = 368
334 SYS_PRLIMIT64 = 369
335 SYS_NAME_TO_HANDLE_AT = 370
336 SYS_OPEN_BY_HANDLE_AT = 371
337 SYS_CLOCK_ADJTIME = 372
338 SYS_SYNCFS = 373
339 SYS_SENDMMSG = 374
340 SYS_SETNS = 375
341 SYS_PROCESS_VM_READV = 376
342 SYS_PROCESS_VM_WRITEV = 377
343 SYS_KCMP = 378
344 SYS_FINIT_MODULE = 379
345 SYS_SCHED_SETATTR = 380
346 SYS_SCHED_GETATTR = 381
347 SYS_RENAMEAT2 = 382
348 SYS_SECCOMP = 383
349 SYS_GETRANDOM = 384
350 SYS_MEMFD_CREATE = 385
351 SYS_BPF = 386
352 SYS_EXECVEAT = 387
353 SYS_USERFAULTFD = 388
354 SYS_MEMBARRIER = 389
355 SYS_MLOCK2 = 390
356 SYS_COPY_FILE_RANGE = 391
357 SYS_PREADV2 = 392
358 SYS_PWRITEV2 = 393
359 SYS_PKEY_MPROTECT = 394
360 SYS_PKEY_ALLOC = 395
361 SYS_PKEY_FREE = 396
362 SYS_STATX = 397
363 SYS_RSEQ = 398
364 SYS_IO_PGETEVENTS = 399
365 SYS_MIGRATE_PAGES = 400
366 SYS_KEXEC_FILE_LOAD = 401
367 SYS_CLOCK_GETTIME64 = 403
368 SYS_CLOCK_SETTIME64 = 404
369 SYS_CLOCK_ADJTIME64 = 405
370 SYS_CLOCK_GETRES_TIME64 = 406
371 SYS_CLOCK_NANOSLEEP_TIME64 = 407
372 SYS_TIMER_GETTIME64 = 408
373 SYS_TIMER_SETTIME64 = 409
374 SYS_TIMERFD_GETTIME64 = 410
375 SYS_TIMERFD_SETTIME64 = 411
376 SYS_UTIMENSAT_TIME64 = 412
377 SYS_PSELECT6_TIME64 = 413
378 SYS_PPOLL_TIME64 = 414
379 SYS_IO_PGETEVENTS_TIME64 = 416
380 SYS_RECVMMSG_TIME64 = 417
381 SYS_MQ_TIMEDSEND_TIME64 = 418
382 SYS_MQ_TIMEDRECEIVE_TIME64 = 419
383 SYS_SEMTIMEDOP_TIME64 = 420
384 SYS_RT_SIGTIMEDWAIT_TIME64 = 421
385 SYS_FUTEX_TIME64 = 422
386 SYS_SCHED_RR_GET_INTERVAL_TIME64 = 423
387 SYS_PIDFD_SEND_SIGNAL = 424
388 SYS_IO_URING_SETUP = 425
389 SYS_IO_URING_ENTER = 426
390 SYS_IO_URING_REGISTER = 427
391 SYS_OPEN_TREE = 428
392 SYS_MOVE_MOUNT = 429
393 SYS_FSOPEN = 430
394 SYS_FSCONFIG = 431
395 SYS_FSMOUNT = 432
396 SYS_FSPICK = 433
397 SYS_PIDFD_OPEN = 434
398 SYS_CLONE3 = 435
399 SYS_CLOSE_RANGE = 436
400 SYS_OPENAT2 = 437
401 SYS_PIDFD_GETFD = 438
402 SYS_FACCESSAT2 = 439
403 SYS_PROCESS_MADVISE = 440
404 SYS_EPOLL_PWAIT2 = 441
405 SYS_MOUNT_SETATTR = 442
406 SYS_QUOTACTL_FD = 443
407 SYS_LANDLOCK_CREATE_RULESET = 444
408 SYS_LANDLOCK_ADD_RULE = 445
409 SYS_LANDLOCK_RESTRICT_SELF = 446
410 SYS_PROCESS_MRELEASE = 448
411 SYS_FUTEX_WAITV = 449
412 SYS_SET_MEMPOLICY_HOME_NODE = 450
413 SYS_CACHESTAT = 451
414 SYS_FCHMODAT2 = 452
415 SYS_MAP_SHADOW_STACK = 453
416 SYS_FUTEX_WAKE = 454
417 SYS_FUTEX_WAIT = 455
418 SYS_FUTEX_REQUEUE = 456
419 SYS_STATMOUNT = 457
420 SYS_LISTMOUNT = 458
421 SYS_LSM_GET_SELF_ATTR = 459
422 SYS_LSM_SET_SELF_ATTR = 460
423 SYS_LSM_LIST_MODULES = 461
424 )
425
View as plain text