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