Skip to main content

syscall_numbers/
x32.rs

1#![allow(non_upper_case_globals)]
2
3use core::ffi::c_long;
4
5/// Returns `true` if `number` is a valid system call number.
6#[must_use]
7pub fn is_valid_sys_call_number(number: c_long) -> bool {
8    crate::is_valid_sys_call_number(SYS_CALL_NAME, SYS_CALL_BASE_INDEX, number)
9}
10
11/// Returns the name of a system call, given its number.
12#[must_use]
13pub fn sys_call_name(number: c_long) -> Option<&'static str> {
14    crate::sys_call_name(SYS_CALL_NAME, SYS_CALL_BASE_INDEX, number)
15}
16
17pub const SYS_read: c_long = 0x4000_0000;
18pub const SYS_write: c_long = 0x4000_0001;
19pub const SYS_open: c_long = 0x4000_0002;
20pub const SYS_close: c_long = 0x4000_0003;
21pub const SYS_stat: c_long = 0x4000_0004;
22pub const SYS_fstat: c_long = 0x4000_0005;
23pub const SYS_lstat: c_long = 0x4000_0006;
24pub const SYS_poll: c_long = 0x4000_0007;
25pub const SYS_lseek: c_long = 0x4000_0008;
26pub const SYS_mmap: c_long = 0x4000_0009;
27pub const SYS_mprotect: c_long = 0x4000_000a;
28pub const SYS_munmap: c_long = 0x4000_000b;
29pub const SYS_brk: c_long = 0x4000_000c;
30pub const SYS_rt_sigprocmask: c_long = 0x4000_000e;
31pub const SYS_pread64: c_long = 0x4000_0011;
32pub const SYS_pwrite64: c_long = 0x4000_0012;
33pub const SYS_access: c_long = 0x4000_0015;
34pub const SYS_pipe: c_long = 0x4000_0016;
35pub const SYS_select: c_long = 0x4000_0017;
36pub const SYS_sched_yield: c_long = 0x4000_0018;
37pub const SYS_mremap: c_long = 0x4000_0019;
38pub const SYS_msync: c_long = 0x4000_001a;
39pub const SYS_mincore: c_long = 0x4000_001b;
40pub const SYS_madvise: c_long = 0x4000_001c;
41pub const SYS_shmget: c_long = 0x4000_001d;
42pub const SYS_shmat: c_long = 0x4000_001e;
43pub const SYS_shmctl: c_long = 0x4000_001f;
44pub const SYS_dup: c_long = 0x4000_0020;
45pub const SYS_dup2: c_long = 0x4000_0021;
46pub const SYS_pause: c_long = 0x4000_0022;
47pub const SYS_nanosleep: c_long = 0x4000_0023;
48pub const SYS_getitimer: c_long = 0x4000_0024;
49pub const SYS_alarm: c_long = 0x4000_0025;
50pub const SYS_setitimer: c_long = 0x4000_0026;
51pub const SYS_getpid: c_long = 0x4000_0027;
52pub const SYS_sendfile: c_long = 0x4000_0028;
53pub const SYS_socket: c_long = 0x4000_0029;
54pub const SYS_connect: c_long = 0x4000_002a;
55pub const SYS_accept: c_long = 0x4000_002b;
56pub const SYS_sendto: c_long = 0x4000_002c;
57pub const SYS_shutdown: c_long = 0x4000_0030;
58pub const SYS_bind: c_long = 0x4000_0031;
59pub const SYS_listen: c_long = 0x4000_0032;
60pub const SYS_getsockname: c_long = 0x4000_0033;
61pub const SYS_getpeername: c_long = 0x4000_0034;
62pub const SYS_socketpair: c_long = 0x4000_0035;
63pub const SYS_clone: c_long = 0x4000_0038;
64pub const SYS_fork: c_long = 0x4000_0039;
65pub const SYS_vfork: c_long = 0x4000_003a;
66pub const SYS_exit: c_long = 0x4000_003c;
67pub const SYS_wait4: c_long = 0x4000_003d;
68pub const SYS_kill: c_long = 0x4000_003e;
69pub const SYS_uname: c_long = 0x4000_003f;
70pub const SYS_semget: c_long = 0x4000_0040;
71pub const SYS_semop: c_long = 0x4000_0041;
72pub const SYS_semctl: c_long = 0x4000_0042;
73pub const SYS_shmdt: c_long = 0x4000_0043;
74pub const SYS_msgget: c_long = 0x4000_0044;
75pub const SYS_msgsnd: c_long = 0x4000_0045;
76pub const SYS_msgrcv: c_long = 0x4000_0046;
77pub const SYS_msgctl: c_long = 0x4000_0047;
78pub const SYS_fcntl: c_long = 0x4000_0048;
79pub const SYS_flock: c_long = 0x4000_0049;
80pub const SYS_fsync: c_long = 0x4000_004a;
81pub const SYS_fdatasync: c_long = 0x4000_004b;
82pub const SYS_truncate: c_long = 0x4000_004c;
83pub const SYS_ftruncate: c_long = 0x4000_004d;
84pub const SYS_getdents: c_long = 0x4000_004e;
85pub const SYS_getcwd: c_long = 0x4000_004f;
86pub const SYS_chdir: c_long = 0x4000_0050;
87pub const SYS_fchdir: c_long = 0x4000_0051;
88pub const SYS_rename: c_long = 0x4000_0052;
89pub const SYS_mkdir: c_long = 0x4000_0053;
90pub const SYS_rmdir: c_long = 0x4000_0054;
91pub const SYS_creat: c_long = 0x4000_0055;
92pub const SYS_link: c_long = 0x4000_0056;
93pub const SYS_unlink: c_long = 0x4000_0057;
94pub const SYS_symlink: c_long = 0x4000_0058;
95pub const SYS_readlink: c_long = 0x4000_0059;
96pub const SYS_chmod: c_long = 0x4000_005a;
97pub const SYS_fchmod: c_long = 0x4000_005b;
98pub const SYS_chown: c_long = 0x4000_005c;
99pub const SYS_fchown: c_long = 0x4000_005d;
100pub const SYS_lchown: c_long = 0x4000_005e;
101pub const SYS_umask: c_long = 0x4000_005f;
102pub const SYS_gettimeofday: c_long = 0x4000_0060;
103pub const SYS_getrlimit: c_long = 0x4000_0061;
104pub const SYS_getrusage: c_long = 0x4000_0062;
105pub const SYS_sysinfo: c_long = 0x4000_0063;
106pub const SYS_times: c_long = 0x4000_0064;
107pub const SYS_getuid: c_long = 0x4000_0066;
108pub const SYS_syslog: c_long = 0x4000_0067;
109pub const SYS_getgid: c_long = 0x4000_0068;
110pub const SYS_setuid: c_long = 0x4000_0069;
111pub const SYS_setgid: c_long = 0x4000_006a;
112pub const SYS_geteuid: c_long = 0x4000_006b;
113pub const SYS_getegid: c_long = 0x4000_006c;
114pub const SYS_setpgid: c_long = 0x4000_006d;
115pub const SYS_getppid: c_long = 0x4000_006e;
116pub const SYS_getpgrp: c_long = 0x4000_006f;
117pub const SYS_setsid: c_long = 0x4000_0070;
118pub const SYS_setreuid: c_long = 0x4000_0071;
119pub const SYS_setregid: c_long = 0x4000_0072;
120pub const SYS_getgroups: c_long = 0x4000_0073;
121pub const SYS_setgroups: c_long = 0x4000_0074;
122pub const SYS_setresuid: c_long = 0x4000_0075;
123pub const SYS_getresuid: c_long = 0x4000_0076;
124pub const SYS_setresgid: c_long = 0x4000_0077;
125pub const SYS_getresgid: c_long = 0x4000_0078;
126pub const SYS_getpgid: c_long = 0x4000_0079;
127pub const SYS_setfsuid: c_long = 0x4000_007a;
128pub const SYS_setfsgid: c_long = 0x4000_007b;
129pub const SYS_getsid: c_long = 0x4000_007c;
130pub const SYS_capget: c_long = 0x4000_007d;
131pub const SYS_capset: c_long = 0x4000_007e;
132pub const SYS_rt_sigsuspend: c_long = 0x4000_0082;
133pub const SYS_utime: c_long = 0x4000_0084;
134pub const SYS_mknod: c_long = 0x4000_0085;
135pub const SYS_personality: c_long = 0x4000_0087;
136pub const SYS_ustat: c_long = 0x4000_0088;
137pub const SYS_statfs: c_long = 0x4000_0089;
138pub const SYS_fstatfs: c_long = 0x4000_008a;
139pub const SYS_sysfs: c_long = 0x4000_008b;
140pub const SYS_getpriority: c_long = 0x4000_008c;
141pub const SYS_setpriority: c_long = 0x4000_008d;
142pub const SYS_sched_setparam: c_long = 0x4000_008e;
143pub const SYS_sched_getparam: c_long = 0x4000_008f;
144pub const SYS_sched_setscheduler: c_long = 0x4000_0090;
145pub const SYS_sched_getscheduler: c_long = 0x4000_0091;
146pub const SYS_sched_get_priority_max: c_long = 0x4000_0092;
147pub const SYS_sched_get_priority_min: c_long = 0x4000_0093;
148pub const SYS_sched_rr_get_interval: c_long = 0x4000_0094;
149pub const SYS_mlock: c_long = 0x4000_0095;
150pub const SYS_munlock: c_long = 0x4000_0096;
151pub const SYS_mlockall: c_long = 0x4000_0097;
152pub const SYS_munlockall: c_long = 0x4000_0098;
153pub const SYS_vhangup: c_long = 0x4000_0099;
154pub const SYS_modify_ldt: c_long = 0x4000_009a;
155pub const SYS_pivot_root: c_long = 0x4000_009b;
156pub const SYS_prctl: c_long = 0x4000_009d;
157pub const SYS_arch_prctl: c_long = 0x4000_009e;
158pub const SYS_adjtimex: c_long = 0x4000_009f;
159pub const SYS_setrlimit: c_long = 0x4000_00a0;
160pub const SYS_chroot: c_long = 0x4000_00a1;
161pub const SYS_sync: c_long = 0x4000_00a2;
162pub const SYS_acct: c_long = 0x4000_00a3;
163pub const SYS_settimeofday: c_long = 0x4000_00a4;
164pub const SYS_mount: c_long = 0x4000_00a5;
165pub const SYS_umount2: c_long = 0x4000_00a6;
166pub const SYS_swapon: c_long = 0x4000_00a7;
167pub const SYS_swapoff: c_long = 0x4000_00a8;
168pub const SYS_reboot: c_long = 0x4000_00a9;
169pub const SYS_sethostname: c_long = 0x4000_00aa;
170pub const SYS_setdomainname: c_long = 0x4000_00ab;
171pub const SYS_iopl: c_long = 0x4000_00ac;
172pub const SYS_ioperm: c_long = 0x4000_00ad;
173pub const SYS_init_module: c_long = 0x4000_00af;
174pub const SYS_delete_module: c_long = 0x4000_00b0;
175pub const SYS_quotactl: c_long = 0x4000_00b3;
176pub const SYS_getpmsg: c_long = 0x4000_00b5;
177pub const SYS_putpmsg: c_long = 0x4000_00b6;
178pub const SYS_afs_syscall: c_long = 0x4000_00b7;
179pub const SYS_tuxcall: c_long = 0x4000_00b8;
180pub const SYS_security: c_long = 0x4000_00b9;
181pub const SYS_gettid: c_long = 0x4000_00ba;
182pub const SYS_readahead: c_long = 0x4000_00bb;
183pub const SYS_setxattr: c_long = 0x4000_00bc;
184pub const SYS_lsetxattr: c_long = 0x4000_00bd;
185pub const SYS_fsetxattr: c_long = 0x4000_00be;
186pub const SYS_getxattr: c_long = 0x4000_00bf;
187pub const SYS_lgetxattr: c_long = 0x4000_00c0;
188pub const SYS_fgetxattr: c_long = 0x4000_00c1;
189pub const SYS_listxattr: c_long = 0x4000_00c2;
190pub const SYS_llistxattr: c_long = 0x4000_00c3;
191pub const SYS_flistxattr: c_long = 0x4000_00c4;
192pub const SYS_removexattr: c_long = 0x4000_00c5;
193pub const SYS_lremovexattr: c_long = 0x4000_00c6;
194pub const SYS_fremovexattr: c_long = 0x4000_00c7;
195pub const SYS_tkill: c_long = 0x4000_00c8;
196pub const SYS_time: c_long = 0x4000_00c9;
197pub const SYS_futex: c_long = 0x4000_00ca;
198pub const SYS_sched_setaffinity: c_long = 0x4000_00cb;
199pub const SYS_sched_getaffinity: c_long = 0x4000_00cc;
200pub const SYS_io_destroy: c_long = 0x4000_00cf;
201pub const SYS_io_getevents: c_long = 0x4000_00d0;
202pub const SYS_io_cancel: c_long = 0x4000_00d2;
203pub const SYS_lookup_dcookie: c_long = 0x4000_00d4;
204pub const SYS_epoll_create: c_long = 0x4000_00d5;
205pub const SYS_remap_file_pages: c_long = 0x4000_00d8;
206pub const SYS_getdents64: c_long = 0x4000_00d9;
207pub const SYS_set_tid_address: c_long = 0x4000_00da;
208pub const SYS_restart_syscall: c_long = 0x4000_00db;
209pub const SYS_semtimedop: c_long = 0x4000_00dc;
210pub const SYS_fadvise64: c_long = 0x4000_00dd;
211pub const SYS_timer_settime: c_long = 0x4000_00df;
212pub const SYS_timer_gettime: c_long = 0x4000_00e0;
213pub const SYS_timer_getoverrun: c_long = 0x4000_00e1;
214pub const SYS_timer_delete: c_long = 0x4000_00e2;
215pub const SYS_clock_settime: c_long = 0x4000_00e3;
216pub const SYS_clock_gettime: c_long = 0x4000_00e4;
217pub const SYS_clock_getres: c_long = 0x4000_00e5;
218pub const SYS_clock_nanosleep: c_long = 0x4000_00e6;
219pub const SYS_exit_group: c_long = 0x4000_00e7;
220pub const SYS_epoll_wait: c_long = 0x4000_00e8;
221pub const SYS_epoll_ctl: c_long = 0x4000_00e9;
222pub const SYS_tgkill: c_long = 0x4000_00ea;
223pub const SYS_utimes: c_long = 0x4000_00eb;
224pub const SYS_mbind: c_long = 0x4000_00ed;
225pub const SYS_set_mempolicy: c_long = 0x4000_00ee;
226pub const SYS_get_mempolicy: c_long = 0x4000_00ef;
227pub const SYS_mq_open: c_long = 0x4000_00f0;
228pub const SYS_mq_unlink: c_long = 0x4000_00f1;
229pub const SYS_mq_timedsend: c_long = 0x4000_00f2;
230pub const SYS_mq_timedreceive: c_long = 0x4000_00f3;
231pub const SYS_mq_getsetattr: c_long = 0x4000_00f5;
232pub const SYS_add_key: c_long = 0x4000_00f8;
233pub const SYS_request_key: c_long = 0x4000_00f9;
234pub const SYS_keyctl: c_long = 0x4000_00fa;
235pub const SYS_ioprio_set: c_long = 0x4000_00fb;
236pub const SYS_ioprio_get: c_long = 0x4000_00fc;
237pub const SYS_inotify_init: c_long = 0x4000_00fd;
238pub const SYS_inotify_add_watch: c_long = 0x4000_00fe;
239pub const SYS_inotify_rm_watch: c_long = 0x4000_00ff;
240pub const SYS_migrate_pages: c_long = 0x4000_0100;
241pub const SYS_openat: c_long = 0x4000_0101;
242pub const SYS_mkdirat: c_long = 0x4000_0102;
243pub const SYS_mknodat: c_long = 0x4000_0103;
244pub const SYS_fchownat: c_long = 0x4000_0104;
245pub const SYS_futimesat: c_long = 0x4000_0105;
246pub const SYS_newfstatat: c_long = 0x4000_0106;
247pub const SYS_unlinkat: c_long = 0x4000_0107;
248pub const SYS_renameat: c_long = 0x4000_0108;
249pub const SYS_linkat: c_long = 0x4000_0109;
250pub const SYS_symlinkat: c_long = 0x4000_010a;
251pub const SYS_readlinkat: c_long = 0x4000_010b;
252pub const SYS_fchmodat: c_long = 0x4000_010c;
253pub const SYS_faccessat: c_long = 0x4000_010d;
254pub const SYS_pselect6: c_long = 0x4000_010e;
255pub const SYS_ppoll: c_long = 0x4000_010f;
256pub const SYS_unshare: c_long = 0x4000_0110;
257pub const SYS_splice: c_long = 0x4000_0113;
258pub const SYS_tee: c_long = 0x4000_0114;
259pub const SYS_sync_file_range: c_long = 0x4000_0115;
260pub const SYS_utimensat: c_long = 0x4000_0118;
261pub const SYS_epoll_pwait: c_long = 0x4000_0119;
262pub const SYS_signalfd: c_long = 0x4000_011a;
263pub const SYS_timerfd_create: c_long = 0x4000_011b;
264pub const SYS_eventfd: c_long = 0x4000_011c;
265pub const SYS_fallocate: c_long = 0x4000_011d;
266pub const SYS_timerfd_settime: c_long = 0x4000_011e;
267pub const SYS_timerfd_gettime: c_long = 0x4000_011f;
268pub const SYS_accept4: c_long = 0x4000_0120;
269pub const SYS_signalfd4: c_long = 0x4000_0121;
270pub const SYS_eventfd2: c_long = 0x4000_0122;
271pub const SYS_epoll_create1: c_long = 0x4000_0123;
272pub const SYS_dup3: c_long = 0x4000_0124;
273pub const SYS_pipe2: c_long = 0x4000_0125;
274pub const SYS_inotify_init1: c_long = 0x4000_0126;
275pub const SYS_perf_event_open: c_long = 0x4000_012a;
276pub const SYS_fanotify_init: c_long = 0x4000_012c;
277pub const SYS_fanotify_mark: c_long = 0x4000_012d;
278pub const SYS_prlimit64: c_long = 0x4000_012e;
279pub const SYS_name_to_handle_at: c_long = 0x4000_012f;
280pub const SYS_open_by_handle_at: c_long = 0x4000_0130;
281pub const SYS_clock_adjtime: c_long = 0x4000_0131;
282pub const SYS_syncfs: c_long = 0x4000_0132;
283pub const SYS_setns: c_long = 0x4000_0134;
284pub const SYS_getcpu: c_long = 0x4000_0135;
285pub const SYS_kcmp: c_long = 0x4000_0138;
286pub const SYS_finit_module: c_long = 0x4000_0139;
287pub const SYS_sched_setattr: c_long = 0x4000_013a;
288pub const SYS_sched_getattr: c_long = 0x4000_013b;
289pub const SYS_renameat2: c_long = 0x4000_013c;
290pub const SYS_seccomp: c_long = 0x4000_013d;
291pub const SYS_getrandom: c_long = 0x4000_013e;
292pub const SYS_memfd_create: c_long = 0x4000_013f;
293pub const SYS_kexec_file_load: c_long = 0x4000_0140;
294pub const SYS_bpf: c_long = 0x4000_0141;
295pub const SYS_userfaultfd: c_long = 0x4000_0143;
296pub const SYS_membarrier: c_long = 0x4000_0144;
297pub const SYS_mlock2: c_long = 0x4000_0145;
298pub const SYS_copy_file_range: c_long = 0x4000_0146;
299pub const SYS_pkey_mprotect: c_long = 0x4000_0149;
300pub const SYS_pkey_alloc: c_long = 0x4000_014a;
301pub const SYS_pkey_free: c_long = 0x4000_014b;
302pub const SYS_statx: c_long = 0x4000_014c;
303pub const SYS_io_pgetevents: c_long = 0x4000_014d;
304pub const SYS_rseq: c_long = 0x4000_014e;
305pub const SYS_uretprobe: c_long = 0x4000_014f;
306pub const SYS_uprobe: c_long = 0x4000_0150;
307pub const SYS_pidfd_send_signal: c_long = 0x4000_01a8;
308pub const SYS_io_uring_setup: c_long = 0x4000_01a9;
309pub const SYS_io_uring_enter: c_long = 0x4000_01aa;
310pub const SYS_io_uring_register: c_long = 0x4000_01ab;
311pub const SYS_open_tree: c_long = 0x4000_01ac;
312pub const SYS_move_mount: c_long = 0x4000_01ad;
313pub const SYS_fsopen: c_long = 0x4000_01ae;
314pub const SYS_fsconfig: c_long = 0x4000_01af;
315pub const SYS_fsmount: c_long = 0x4000_01b0;
316pub const SYS_fspick: c_long = 0x4000_01b1;
317pub const SYS_pidfd_open: c_long = 0x4000_01b2;
318pub const SYS_clone3: c_long = 0x4000_01b3;
319pub const SYS_close_range: c_long = 0x4000_01b4;
320pub const SYS_openat2: c_long = 0x4000_01b5;
321pub const SYS_pidfd_getfd: c_long = 0x4000_01b6;
322pub const SYS_faccessat2: c_long = 0x4000_01b7;
323pub const SYS_process_madvise: c_long = 0x4000_01b8;
324pub const SYS_epoll_pwait2: c_long = 0x4000_01b9;
325pub const SYS_mount_setattr: c_long = 0x4000_01ba;
326pub const SYS_quotactl_fd: c_long = 0x4000_01bb;
327pub const SYS_landlock_create_ruleset: c_long = 0x4000_01bc;
328pub const SYS_landlock_add_rule: c_long = 0x4000_01bd;
329pub const SYS_landlock_restrict_self: c_long = 0x4000_01be;
330pub const SYS_memfd_secret: c_long = 0x4000_01bf;
331pub const SYS_process_mrelease: c_long = 0x4000_01c0;
332pub const SYS_futex_waitv: c_long = 0x4000_01c1;
333pub const SYS_set_mempolicy_home_node: c_long = 0x4000_01c2;
334pub const SYS_cachestat: c_long = 0x4000_01c3;
335pub const SYS_fchmodat2: c_long = 0x4000_01c4;
336pub const SYS_map_shadow_stack: c_long = 0x4000_01c5;
337pub const SYS_futex_wake: c_long = 0x4000_01c6;
338pub const SYS_futex_wait: c_long = 0x4000_01c7;
339pub const SYS_futex_requeue: c_long = 0x4000_01c8;
340pub const SYS_statmount: c_long = 0x4000_01c9;
341pub const SYS_listmount: c_long = 0x4000_01ca;
342pub const SYS_lsm_get_self_attr: c_long = 0x4000_01cb;
343pub const SYS_lsm_set_self_attr: c_long = 0x4000_01cc;
344pub const SYS_lsm_list_modules: c_long = 0x4000_01cd;
345pub const SYS_mseal: c_long = 0x4000_01ce;
346pub const SYS_setxattrat: c_long = 0x4000_01cf;
347pub const SYS_getxattrat: c_long = 0x4000_01d0;
348pub const SYS_listxattrat: c_long = 0x4000_01d1;
349pub const SYS_removexattrat: c_long = 0x4000_01d2;
350pub const SYS_open_tree_attr: c_long = 0x4000_01d3;
351pub const SYS_file_getattr: c_long = 0x4000_01d4;
352pub const SYS_file_setattr: c_long = 0x4000_01d5;
353pub const SYS_listns: c_long = 0x4000_01d6;
354pub const SYS_rt_sigaction: c_long = 0x4000_0200;
355pub const SYS_rt_sigreturn: c_long = 0x4000_0201;
356pub const SYS_ioctl: c_long = 0x4000_0202;
357pub const SYS_readv: c_long = 0x4000_0203;
358pub const SYS_writev: c_long = 0x4000_0204;
359pub const SYS_recvfrom: c_long = 0x4000_0205;
360pub const SYS_sendmsg: c_long = 0x4000_0206;
361pub const SYS_recvmsg: c_long = 0x4000_0207;
362pub const SYS_execve: c_long = 0x4000_0208;
363pub const SYS_ptrace: c_long = 0x4000_0209;
364pub const SYS_rt_sigpending: c_long = 0x4000_020a;
365pub const SYS_rt_sigtimedwait: c_long = 0x4000_020b;
366pub const SYS_rt_sigqueueinfo: c_long = 0x4000_020c;
367pub const SYS_sigaltstack: c_long = 0x4000_020d;
368pub const SYS_timer_create: c_long = 0x4000_020e;
369pub const SYS_mq_notify: c_long = 0x4000_020f;
370pub const SYS_kexec_load: c_long = 0x4000_0210;
371pub const SYS_waitid: c_long = 0x4000_0211;
372pub const SYS_set_robust_list: c_long = 0x4000_0212;
373pub const SYS_get_robust_list: c_long = 0x4000_0213;
374pub const SYS_vmsplice: c_long = 0x4000_0214;
375pub const SYS_move_pages: c_long = 0x4000_0215;
376pub const SYS_preadv: c_long = 0x4000_0216;
377pub const SYS_pwritev: c_long = 0x4000_0217;
378pub const SYS_rt_tgsigqueueinfo: c_long = 0x4000_0218;
379pub const SYS_recvmmsg: c_long = 0x4000_0219;
380pub const SYS_sendmmsg: c_long = 0x4000_021a;
381pub const SYS_process_vm_readv: c_long = 0x4000_021b;
382pub const SYS_process_vm_writev: c_long = 0x4000_021c;
383pub const SYS_setsockopt: c_long = 0x4000_021d;
384pub const SYS_getsockopt: c_long = 0x4000_021e;
385pub const SYS_io_setup: c_long = 0x4000_021f;
386pub const SYS_io_submit: c_long = 0x4000_0220;
387pub const SYS_execveat: c_long = 0x4000_0221;
388pub const SYS_preadv2: c_long = 0x4000_0222;
389pub const SYS_pwritev2: c_long = 0x4000_0223;
390
391/// Minimum valid system call number.
392pub(crate) const SYS_CALL_BASE_INDEX: c_long = 0x4000_0000;
393
394/// String table of system calls names.
395pub(crate) static SYS_CALL_NAME: &[&str] = &[
396    "read",
397    "write",
398    "open",
399    "close",
400    "stat",
401    "fstat",
402    "lstat",
403    "poll",
404    "lseek",
405    "mmap",
406    "mprotect",
407    "munmap",
408    "brk",
409    "",
410    "rt_sigprocmask",
411    "",
412    "",
413    "pread64",
414    "pwrite64",
415    "",
416    "",
417    "access",
418    "pipe",
419    "select",
420    "sched_yield",
421    "mremap",
422    "msync",
423    "mincore",
424    "madvise",
425    "shmget",
426    "shmat",
427    "shmctl",
428    "dup",
429    "dup2",
430    "pause",
431    "nanosleep",
432    "getitimer",
433    "alarm",
434    "setitimer",
435    "getpid",
436    "sendfile",
437    "socket",
438    "connect",
439    "accept",
440    "sendto",
441    "",
442    "",
443    "",
444    "shutdown",
445    "bind",
446    "listen",
447    "getsockname",
448    "getpeername",
449    "socketpair",
450    "",
451    "",
452    "clone",
453    "fork",
454    "vfork",
455    "",
456    "exit",
457    "wait4",
458    "kill",
459    "uname",
460    "semget",
461    "semop",
462    "semctl",
463    "shmdt",
464    "msgget",
465    "msgsnd",
466    "msgrcv",
467    "msgctl",
468    "fcntl",
469    "flock",
470    "fsync",
471    "fdatasync",
472    "truncate",
473    "ftruncate",
474    "getdents",
475    "getcwd",
476    "chdir",
477    "fchdir",
478    "rename",
479    "mkdir",
480    "rmdir",
481    "creat",
482    "link",
483    "unlink",
484    "symlink",
485    "readlink",
486    "chmod",
487    "fchmod",
488    "chown",
489    "fchown",
490    "lchown",
491    "umask",
492    "gettimeofday",
493    "getrlimit",
494    "getrusage",
495    "sysinfo",
496    "times",
497    "",
498    "getuid",
499    "syslog",
500    "getgid",
501    "setuid",
502    "setgid",
503    "geteuid",
504    "getegid",
505    "setpgid",
506    "getppid",
507    "getpgrp",
508    "setsid",
509    "setreuid",
510    "setregid",
511    "getgroups",
512    "setgroups",
513    "setresuid",
514    "getresuid",
515    "setresgid",
516    "getresgid",
517    "getpgid",
518    "setfsuid",
519    "setfsgid",
520    "getsid",
521    "capget",
522    "capset",
523    "",
524    "",
525    "",
526    "rt_sigsuspend",
527    "",
528    "utime",
529    "mknod",
530    "",
531    "personality",
532    "ustat",
533    "statfs",
534    "fstatfs",
535    "sysfs",
536    "getpriority",
537    "setpriority",
538    "sched_setparam",
539    "sched_getparam",
540    "sched_setscheduler",
541    "sched_getscheduler",
542    "sched_get_priority_max",
543    "sched_get_priority_min",
544    "sched_rr_get_interval",
545    "mlock",
546    "munlock",
547    "mlockall",
548    "munlockall",
549    "vhangup",
550    "modify_ldt",
551    "pivot_root",
552    "",
553    "prctl",
554    "arch_prctl",
555    "adjtimex",
556    "setrlimit",
557    "chroot",
558    "sync",
559    "acct",
560    "settimeofday",
561    "mount",
562    "umount2",
563    "swapon",
564    "swapoff",
565    "reboot",
566    "sethostname",
567    "setdomainname",
568    "iopl",
569    "ioperm",
570    "",
571    "init_module",
572    "delete_module",
573    "",
574    "",
575    "quotactl",
576    "",
577    "getpmsg",
578    "putpmsg",
579    "afs_syscall",
580    "tuxcall",
581    "security",
582    "gettid",
583    "readahead",
584    "setxattr",
585    "lsetxattr",
586    "fsetxattr",
587    "getxattr",
588    "lgetxattr",
589    "fgetxattr",
590    "listxattr",
591    "llistxattr",
592    "flistxattr",
593    "removexattr",
594    "lremovexattr",
595    "fremovexattr",
596    "tkill",
597    "time",
598    "futex",
599    "sched_setaffinity",
600    "sched_getaffinity",
601    "",
602    "",
603    "io_destroy",
604    "io_getevents",
605    "",
606    "io_cancel",
607    "",
608    "lookup_dcookie",
609    "epoll_create",
610    "",
611    "",
612    "remap_file_pages",
613    "getdents64",
614    "set_tid_address",
615    "restart_syscall",
616    "semtimedop",
617    "fadvise64",
618    "",
619    "timer_settime",
620    "timer_gettime",
621    "timer_getoverrun",
622    "timer_delete",
623    "clock_settime",
624    "clock_gettime",
625    "clock_getres",
626    "clock_nanosleep",
627    "exit_group",
628    "epoll_wait",
629    "epoll_ctl",
630    "tgkill",
631    "utimes",
632    "",
633    "mbind",
634    "set_mempolicy",
635    "get_mempolicy",
636    "mq_open",
637    "mq_unlink",
638    "mq_timedsend",
639    "mq_timedreceive",
640    "",
641    "mq_getsetattr",
642    "",
643    "",
644    "add_key",
645    "request_key",
646    "keyctl",
647    "ioprio_set",
648    "ioprio_get",
649    "inotify_init",
650    "inotify_add_watch",
651    "inotify_rm_watch",
652    "migrate_pages",
653    "openat",
654    "mkdirat",
655    "mknodat",
656    "fchownat",
657    "futimesat",
658    "newfstatat",
659    "unlinkat",
660    "renameat",
661    "linkat",
662    "symlinkat",
663    "readlinkat",
664    "fchmodat",
665    "faccessat",
666    "pselect6",
667    "ppoll",
668    "unshare",
669    "",
670    "",
671    "splice",
672    "tee",
673    "sync_file_range",
674    "",
675    "",
676    "utimensat",
677    "epoll_pwait",
678    "signalfd",
679    "timerfd_create",
680    "eventfd",
681    "fallocate",
682    "timerfd_settime",
683    "timerfd_gettime",
684    "accept4",
685    "signalfd4",
686    "eventfd2",
687    "epoll_create1",
688    "dup3",
689    "pipe2",
690    "inotify_init1",
691    "",
692    "",
693    "",
694    "perf_event_open",
695    "",
696    "fanotify_init",
697    "fanotify_mark",
698    "prlimit64",
699    "name_to_handle_at",
700    "open_by_handle_at",
701    "clock_adjtime",
702    "syncfs",
703    "",
704    "setns",
705    "getcpu",
706    "",
707    "",
708    "kcmp",
709    "finit_module",
710    "sched_setattr",
711    "sched_getattr",
712    "renameat2",
713    "seccomp",
714    "getrandom",
715    "memfd_create",
716    "kexec_file_load",
717    "bpf",
718    "",
719    "userfaultfd",
720    "membarrier",
721    "mlock2",
722    "copy_file_range",
723    "",
724    "",
725    "pkey_mprotect",
726    "pkey_alloc",
727    "pkey_free",
728    "statx",
729    "io_pgetevents",
730    "rseq",
731    "uretprobe",
732    "uprobe",
733    "",
734    "",
735    "",
736    "",
737    "",
738    "",
739    "",
740    "",
741    "",
742    "",
743    "",
744    "",
745    "",
746    "",
747    "",
748    "",
749    "",
750    "",
751    "",
752    "",
753    "",
754    "",
755    "",
756    "",
757    "",
758    "",
759    "",
760    "",
761    "",
762    "",
763    "",
764    "",
765    "",
766    "",
767    "",
768    "",
769    "",
770    "",
771    "",
772    "",
773    "",
774    "",
775    "",
776    "",
777    "",
778    "",
779    "",
780    "",
781    "",
782    "",
783    "",
784    "",
785    "",
786    "",
787    "",
788    "",
789    "",
790    "",
791    "",
792    "",
793    "",
794    "",
795    "",
796    "",
797    "",
798    "",
799    "",
800    "",
801    "",
802    "",
803    "",
804    "",
805    "",
806    "",
807    "",
808    "",
809    "",
810    "",
811    "",
812    "",
813    "",
814    "",
815    "",
816    "",
817    "",
818    "",
819    "",
820    "pidfd_send_signal",
821    "io_uring_setup",
822    "io_uring_enter",
823    "io_uring_register",
824    "open_tree",
825    "move_mount",
826    "fsopen",
827    "fsconfig",
828    "fsmount",
829    "fspick",
830    "pidfd_open",
831    "clone3",
832    "close_range",
833    "openat2",
834    "pidfd_getfd",
835    "faccessat2",
836    "process_madvise",
837    "epoll_pwait2",
838    "mount_setattr",
839    "quotactl_fd",
840    "landlock_create_ruleset",
841    "landlock_add_rule",
842    "landlock_restrict_self",
843    "memfd_secret",
844    "process_mrelease",
845    "futex_waitv",
846    "set_mempolicy_home_node",
847    "cachestat",
848    "fchmodat2",
849    "map_shadow_stack",
850    "futex_wake",
851    "futex_wait",
852    "futex_requeue",
853    "statmount",
854    "listmount",
855    "lsm_get_self_attr",
856    "lsm_set_self_attr",
857    "lsm_list_modules",
858    "mseal",
859    "setxattrat",
860    "getxattrat",
861    "listxattrat",
862    "removexattrat",
863    "open_tree_attr",
864    "file_getattr",
865    "file_setattr",
866    "listns",
867    "",
868    "",
869    "",
870    "",
871    "",
872    "",
873    "",
874    "",
875    "",
876    "",
877    "",
878    "",
879    "",
880    "",
881    "",
882    "",
883    "",
884    "",
885    "",
886    "",
887    "",
888    "",
889    "",
890    "",
891    "",
892    "",
893    "",
894    "",
895    "",
896    "",
897    "",
898    "",
899    "",
900    "",
901    "",
902    "",
903    "",
904    "",
905    "",
906    "",
907    "",
908    "rt_sigaction",
909    "rt_sigreturn",
910    "ioctl",
911    "readv",
912    "writev",
913    "recvfrom",
914    "sendmsg",
915    "recvmsg",
916    "execve",
917    "ptrace",
918    "rt_sigpending",
919    "rt_sigtimedwait",
920    "rt_sigqueueinfo",
921    "sigaltstack",
922    "timer_create",
923    "mq_notify",
924    "kexec_load",
925    "waitid",
926    "set_robust_list",
927    "get_robust_list",
928    "vmsplice",
929    "move_pages",
930    "preadv",
931    "pwritev",
932    "rt_tgsigqueueinfo",
933    "recvmmsg",
934    "sendmmsg",
935    "process_vm_readv",
936    "process_vm_writev",
937    "setsockopt",
938    "getsockopt",
939    "io_setup",
940    "io_submit",
941    "execveat",
942    "preadv2",
943    "pwritev2",
944];