linux_syscall/arch/arm/
syscall_tbl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
// Copyright (c) 2022 John Millikin <john@john-millikin.com>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
//
// SPDX-License-Identifier: 0BSD

#![allow(non_upper_case_globals)]

syscall_constants! {
	SYS_exit                         = 1,
	SYS_fork                         = 2,
	SYS_read                         = 3,
	SYS_write                        = 4,
	SYS_open                         = 5,
	SYS_close                        = 6,
	SYS_creat                        = 8,
	SYS_link                         = 9,
	SYS_unlink                       = 10,
	SYS_execve                       = 11,
	SYS_chdir                        = 12,
	SYS_time                         = 13,
	SYS_mknod                        = 14,
	SYS_chmod                        = 15,
	SYS_lchown                       = 16,
	SYS_lseek                        = 19,
	SYS_getpid                       = 20,
	SYS_mount                        = 21,
	SYS_umount                       = 22,
	SYS_setuid                       = 23,
	SYS_getuid                       = 24,
	SYS_stime                        = 25,
	SYS_ptrace                       = 26,
	SYS_alarm                        = 27,
	SYS_pause                        = 29,
	SYS_utime                        = 30,
	SYS_access                       = 33,
	SYS_nice                         = 34,
	SYS_sync                         = 36,
	SYS_kill                         = 37,
	SYS_rename                       = 38,
	SYS_mkdir                        = 39,
	SYS_rmdir                        = 40,
	SYS_dup                          = 41,
	SYS_pipe                         = 42,
	SYS_times                        = 43,
	SYS_brk                          = 45,
	SYS_setgid                       = 46,
	SYS_getgid                       = 47,
	SYS_geteuid                      = 49,
	SYS_getegid                      = 50,
	SYS_acct                         = 51,
	SYS_umount2                      = 52,
	SYS_ioctl                        = 54,
	SYS_fcntl                        = 55,
	SYS_setpgid                      = 57,
	SYS_umask                        = 60,
	SYS_chroot                       = 61,
	SYS_ustat                        = 62,
	SYS_dup2                         = 63,
	SYS_getppid                      = 64,
	SYS_getpgrp                      = 65,
	SYS_setsid                       = 66,
	SYS_sigaction                    = 67,
	SYS_setreuid                     = 70,
	SYS_setregid                     = 71,
	SYS_sigsuspend                   = 72,
	SYS_sigpending                   = 73,
	SYS_sethostname                  = 74,
	SYS_setrlimit                    = 75,
	SYS_getrlimit                    = 76,
	SYS_getrusage                    = 77,
	SYS_gettimeofday                 = 78,
	SYS_settimeofday                 = 79,
	SYS_getgroups                    = 80,
	SYS_setgroups                    = 81,
	SYS_select                       = 82,
	SYS_symlink                      = 83,
	SYS_readlink                     = 85,
	SYS_swapon                       = 87,
	SYS_reboot                       = 88,
	SYS_readdir                      = 89,
	SYS_mmap                         = 90,
	SYS_munmap                       = 91,
	SYS_truncate                     = 92,
	SYS_ftruncate                    = 93,
	SYS_fchmod                       = 94,
	SYS_fchown                       = 95,
	SYS_getpriority                  = 96,
	SYS_setpriority                  = 97,
	SYS_statfs                       = 99,
	SYS_fstatfs                      = 100,
	SYS_socketcall                   = 102,
	SYS_syslog                       = 103,
	SYS_setitimer                    = 104,
	SYS_getitimer                    = 105,
	SYS_stat                         = 106,
	SYS_lstat                        = 107,
	SYS_fstat                        = 108,
	SYS_vhangup                      = 111,
	SYS_syscall                      = 113,
	SYS_wait4                        = 114,
	SYS_swapoff                      = 115,
	SYS_sysinfo                      = 116,
	SYS_ipc                          = 117,
	SYS_fsync                        = 118,
	SYS_sigreturn                    = 119,
	SYS_clone                        = 120,
	SYS_setdomainname                = 121,
	SYS_uname                        = 122,
	SYS_adjtimex                     = 124,
	SYS_mprotect                     = 125,
	SYS_sigprocmask                  = 126,
	SYS_init_module                  = 128,
	SYS_delete_module                = 129,
	SYS_quotactl                     = 131,
	SYS_getpgid                      = 132,
	SYS_fchdir                       = 133,
	SYS_personality                  = 136,
	SYS_setfsuid                     = 138,
	SYS_setfsgid                     = 139,
	SYS__llseek                      = 140,
	SYS_getdents                     = 141,
	SYS__newselect                   = 142,
	SYS_flock                        = 143,
	SYS_msync                        = 144,
	SYS_readv                        = 145,
	SYS_writev                       = 146,
	SYS_getsid                       = 147,
	SYS_fdatasync                    = 148,
	SYS_mlock                        = 150,
	SYS_munlock                      = 151,
	SYS_mlockall                     = 152,
	SYS_munlockall                   = 153,
	SYS_sched_setparam               = 154,
	SYS_sched_getparam               = 155,
	SYS_sched_setscheduler           = 156,
	SYS_sched_getscheduler           = 157,
	SYS_sched_yield                  = 158,
	SYS_sched_get_priority_max       = 159,
	SYS_sched_get_priority_min       = 160,
	SYS_sched_rr_get_interval        = 161,
	SYS_nanosleep                    = 162,
	SYS_mremap                       = 163,
	SYS_setresuid                    = 164,
	SYS_getresuid                    = 165,
	SYS_poll                         = 168,
	SYS_setresgid                    = 170,
	SYS_getresgid                    = 171,
	SYS_prctl                        = 172,
	SYS_rt_sigreturn                 = 173,
	SYS_rt_sigaction                 = 174,
	SYS_rt_sigprocmask               = 175,
	SYS_rt_sigpending                = 176,
	SYS_rt_sigtimedwait              = 177,
	SYS_rt_sigqueueinfo              = 178,
	SYS_rt_sigsuspend                = 179,
	SYS_pread64                      = 180,
	SYS_pwrite64                     = 181,
	SYS_chown                        = 182,
	SYS_getcwd                       = 183,
	SYS_capget                       = 184,
	SYS_capset                       = 185,
	SYS_sigaltstack                  = 186,
	SYS_sendfile                     = 187,
	SYS_vfork                        = 190,
	SYS_ugetrlimit                   = 191,
	SYS_mmap2                        = 192,
	SYS_truncate64                   = 193,
	SYS_ftruncate64                  = 194,
	SYS_stat64                       = 195,
	SYS_lstat64                      = 196,
	SYS_fstat64                      = 197,
	SYS_lchown32                     = 198,
	SYS_getuid32                     = 199,
	SYS_getgid32                     = 200,
	SYS_geteuid32                    = 201,
	SYS_getegid32                    = 202,
	SYS_setreuid32                   = 203,
	SYS_setregid32                   = 204,
	SYS_getgroups32                  = 205,
	SYS_setgroups32                  = 206,
	SYS_fchown32                     = 207,
	SYS_setresuid32                  = 208,
	SYS_getresuid32                  = 209,
	SYS_setresgid32                  = 210,
	SYS_getresgid32                  = 211,
	SYS_chown32                      = 212,
	SYS_setuid32                     = 213,
	SYS_setgid32                     = 214,
	SYS_setfsuid32                   = 215,
	SYS_setfsgid32                   = 216,
	SYS_getdents64                   = 217,
	SYS_pivot_root                   = 218,
	SYS_mincore                      = 219,
	SYS_madvise                      = 220,
	SYS_fcntl64                      = 221,
	SYS_gettid                       = 224,
	SYS_readahead                    = 225,
	SYS_setxattr                     = 226,
	SYS_lsetxattr                    = 227,
	SYS_fsetxattr                    = 228,
	SYS_getxattr                     = 229,
	SYS_lgetxattr                    = 230,
	SYS_fgetxattr                    = 231,
	SYS_listxattr                    = 232,
	SYS_llistxattr                   = 233,
	SYS_flistxattr                   = 234,
	SYS_removexattr                  = 235,
	SYS_lremovexattr                 = 236,
	SYS_fremovexattr                 = 237,
	SYS_tkill                        = 238,
	SYS_sendfile64                   = 239,
	SYS_futex                        = 240,
	SYS_sched_setaffinity            = 241,
	SYS_sched_getaffinity            = 242,
	SYS_io_setup                     = 243,
	SYS_io_destroy                   = 244,
	SYS_io_getevents                 = 245,
	SYS_io_submit                    = 246,
	SYS_io_cancel                    = 247,
	SYS_exit_group                   = 248,
	SYS_lookup_dcookie               = 249,
	SYS_epoll_create                 = 250,
	SYS_epoll_ctl                    = 251,
	SYS_epoll_wait                   = 252,
	SYS_set_tid_address              = 256,
	SYS_timer_create                 = 257,
	SYS_timer_settime                = 258,
	SYS_timer_gettime                = 259,
	SYS_timer_getoverrun             = 260,
	SYS_timer_delete                 = 261,
	SYS_clock_settime                = 262,
	SYS_clock_gettime                = 263,
	SYS_clock_getres                 = 264,
	SYS_clock_nanosleep              = 265,
	SYS_statfs64                     = 266,
	SYS_fstatfs64                    = 267,
	SYS_tgkill                       = 268,
	SYS_utimes                       = 269,
	SYS_arm_fadvise64_64             = 270,
	SYS_pciconfig_iobase             = 271,
	SYS_pciconfig_read               = 272,
	SYS_pciconfig_write              = 273,
	SYS_mq_open                      = 274,
	SYS_mq_unlink                    = 275,
	SYS_mq_timedsend                 = 276,
	SYS_mq_timedreceive              = 277,
	SYS_mq_notify                    = 278,
	SYS_mq_getsetattr                = 279,
	SYS_waitid                       = 280,
	SYS_socket                       = 281,
	SYS_bind                         = 282,
	SYS_connect                      = 283,
	SYS_listen                       = 284,
	SYS_accept                       = 285,
	SYS_getsockname                  = 286,
	SYS_getpeername                  = 287,
	SYS_socketpair                   = 288,
	SYS_send                         = 289,
	SYS_sendto                       = 290,
	SYS_recv                         = 291,
	SYS_recvfrom                     = 292,
	SYS_shutdown                     = 293,
	SYS_setsockopt                   = 294,
	SYS_getsockopt                   = 295,
	SYS_sendmsg                      = 296,
	SYS_recvmsg                      = 297,
	SYS_semop                        = 298,
	SYS_semget                       = 299,
	SYS_semctl                       = 300,
	SYS_msgsnd                       = 301,
	SYS_msgrcv                       = 302,
	SYS_msgget                       = 303,
	SYS_msgctl                       = 304,
	SYS_shmat                        = 305,
	SYS_shmdt                        = 306,
	SYS_shmget                       = 307,
	SYS_shmctl                       = 308,
	SYS_add_key                      = 309,
	SYS_request_key                  = 310,
	SYS_keyctl                       = 311,
	SYS_semtimedop                   = 312,
	SYS_ioprio_set                   = 314,
	SYS_ioprio_get                   = 315,
	SYS_inotify_init                 = 316,
	SYS_inotify_add_watch            = 317,
	SYS_inotify_rm_watch             = 318,
	SYS_mbind                        = 319,
	SYS_get_mempolicy                = 320,
	SYS_set_mempolicy                = 321,
	SYS_openat                       = 322,
	SYS_mkdirat                      = 323,
	SYS_mknodat                      = 324,
	SYS_fchownat                     = 325,
	SYS_futimesat                    = 326,
	SYS_fstatat64                    = 327,
	SYS_unlinkat                     = 328,
	SYS_renameat                     = 329,
	SYS_linkat                       = 330,
	SYS_symlinkat                    = 331,
	SYS_readlinkat                   = 332,
	SYS_fchmodat                     = 333,
	SYS_faccessat                    = 334,
	SYS_pselect6                     = 335,
	SYS_ppoll                        = 336,
	SYS_unshare                      = 337,
	SYS_set_robust_list              = 338,
	SYS_get_robust_list              = 339,
	SYS_splice                       = 340,
	SYS_arm_sync_file_range          = 341,
	SYS_tee                          = 342,
	SYS_vmsplice                     = 343,
	SYS_move_pages                   = 344,
	SYS_getcpu                       = 345,
	SYS_epoll_pwait                  = 346,
	SYS_kexec_load                   = 347,
	SYS_utimensat                    = 348,
	SYS_signalfd                     = 349,
	SYS_timerfd_create               = 350,
	SYS_eventfd                      = 351,
	SYS_fallocate                    = 352,
	SYS_timerfd_settime              = 353,
	SYS_timerfd_gettime              = 354,
	SYS_signalfd4                    = 355,
	SYS_eventfd2                     = 356,
	SYS_epoll_create1                = 357,
	SYS_dup3                         = 358,
	SYS_pipe2                        = 359,
	SYS_inotify_init1                = 360,
	SYS_preadv                       = 361,
	SYS_pwritev                      = 362,
	SYS_rt_tgsigqueueinfo            = 363,
	SYS_perf_event_open              = 364,
	SYS_recvmmsg                     = 365,
	SYS_accept4                      = 366,
	SYS_fanotify_init                = 367,
	SYS_fanotify_mark                = 368,
	SYS_prlimit64                    = 369,
	SYS_name_to_handle_at            = 370,
	SYS_open_by_handle_at            = 371,
	SYS_clock_adjtime                = 372,
	SYS_syncfs                       = 373,
	SYS_sendmmsg                     = 374,
	SYS_setns                        = 375,
	SYS_process_vm_readv             = 376,
	SYS_process_vm_writev            = 377,
	SYS_kcmp                         = 378,
	SYS_finit_module                 = 379,
	SYS_sched_setattr                = 380,
	SYS_sched_getattr                = 381,
	SYS_renameat2                    = 382,
	SYS_seccomp                      = 383,
	SYS_getrandom                    = 384,
	SYS_memfd_create                 = 385,
	SYS_bpf                          = 386,
	SYS_execveat                     = 387,
	SYS_userfaultfd                  = 388,
	SYS_membarrier                   = 389,
	SYS_mlock2                       = 390,
	SYS_copy_file_range              = 391,
	SYS_preadv2                      = 392,
	SYS_pwritev2                     = 393,
	SYS_pkey_mprotect                = 394,
	SYS_pkey_alloc                   = 395,
	SYS_pkey_free                    = 396,
	SYS_statx                        = 397,
	SYS_rseq                         = 398,
	SYS_io_pgetevents                = 399,
	SYS_migrate_pages                = 400,
	SYS_kexec_file_load              = 401,
	SYS_clock_gettime64              = 403,
	SYS_clock_settime64              = 404,
	SYS_clock_adjtime64              = 405,
	SYS_clock_getres_time64          = 406,
	SYS_clock_nanosleep_time64       = 407,
	SYS_timer_gettime64              = 408,
	SYS_timer_settime64              = 409,
	SYS_timerfd_gettime64            = 410,
	SYS_timerfd_settime64            = 411,
	SYS_utimensat_time64             = 412,
	SYS_pselect6_time64              = 413,
	SYS_ppoll_time64                 = 414,
	SYS_io_pgetevents_time64         = 416,
	SYS_recvmmsg_time64              = 417,
	SYS_mq_timedsend_time64          = 418,
	SYS_mq_timedreceive_time64       = 419,
	SYS_semtimedop_time64            = 420,
	SYS_rt_sigtimedwait_time64       = 421,
	SYS_futex_time64                 = 422,
	SYS_sched_rr_get_interval_time64 = 423,
	SYS_pidfd_send_signal            = 424,
	SYS_io_uring_setup               = 425,
	SYS_io_uring_enter               = 426,
	SYS_io_uring_register            = 427,
	SYS_open_tree                    = 428,
	SYS_move_mount                   = 429,
	SYS_fsopen                       = 430,
	SYS_fsconfig                     = 431,
	SYS_fsmount                      = 432,
	SYS_fspick                       = 433,
	SYS_pidfd_open                   = 434,
	SYS_clone3                       = 435,
	SYS_close_range                  = 436,
	SYS_openat2                      = 437,
	SYS_pidfd_getfd                  = 438,
	SYS_faccessat2                   = 439,
	SYS_process_madvise              = 440,
	SYS_epoll_pwait2                 = 441,
	SYS_mount_setattr                = 442,
	SYS_quotactl_fd                  = 443,
	SYS_landlock_create_ruleset      = 444,
	SYS_landlock_add_rule            = 445,
	SYS_landlock_restrict_self       = 446,
	SYS_process_mrelease             = 448,
	SYS_futex_waitv                  = 449,
	SYS_set_mempolicy_home_node      = 450,
}