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