Skip to main content

syscall_numbers/
x86.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_restart_syscall: c_long = 0x0;
18pub const SYS_exit: c_long = 0x1;
19pub const SYS_fork: c_long = 0x2;
20pub const SYS_read: c_long = 0x3;
21pub const SYS_write: c_long = 0x4;
22pub const SYS_open: c_long = 0x5;
23pub const SYS_close: c_long = 0x6;
24pub const SYS_waitpid: c_long = 0x7;
25pub const SYS_creat: c_long = 0x8;
26pub const SYS_link: c_long = 0x9;
27pub const SYS_unlink: c_long = 0xa;
28pub const SYS_execve: c_long = 0xb;
29pub const SYS_chdir: c_long = 0xc;
30pub const SYS_time: c_long = 0xd;
31pub const SYS_mknod: c_long = 0xe;
32pub const SYS_chmod: c_long = 0xf;
33pub const SYS_lchown: c_long = 0x10;
34pub const SYS_break: c_long = 0x11;
35pub const SYS_oldstat: c_long = 0x12;
36pub const SYS_lseek: c_long = 0x13;
37pub const SYS_getpid: c_long = 0x14;
38pub const SYS_mount: c_long = 0x15;
39pub const SYS_umount: c_long = 0x16;
40pub const SYS_setuid: c_long = 0x17;
41pub const SYS_getuid: c_long = 0x18;
42pub const SYS_stime: c_long = 0x19;
43pub const SYS_ptrace: c_long = 0x1a;
44pub const SYS_alarm: c_long = 0x1b;
45pub const SYS_oldfstat: c_long = 0x1c;
46pub const SYS_pause: c_long = 0x1d;
47pub const SYS_utime: c_long = 0x1e;
48pub const SYS_stty: c_long = 0x1f;
49pub const SYS_gtty: c_long = 0x20;
50pub const SYS_access: c_long = 0x21;
51pub const SYS_nice: c_long = 0x22;
52pub const SYS_ftime: c_long = 0x23;
53pub const SYS_sync: c_long = 0x24;
54pub const SYS_kill: c_long = 0x25;
55pub const SYS_rename: c_long = 0x26;
56pub const SYS_mkdir: c_long = 0x27;
57pub const SYS_rmdir: c_long = 0x28;
58pub const SYS_dup: c_long = 0x29;
59pub const SYS_pipe: c_long = 0x2a;
60pub const SYS_times: c_long = 0x2b;
61pub const SYS_prof: c_long = 0x2c;
62pub const SYS_brk: c_long = 0x2d;
63pub const SYS_setgid: c_long = 0x2e;
64pub const SYS_getgid: c_long = 0x2f;
65pub const SYS_signal: c_long = 0x30;
66pub const SYS_geteuid: c_long = 0x31;
67pub const SYS_getegid: c_long = 0x32;
68pub const SYS_acct: c_long = 0x33;
69pub const SYS_umount2: c_long = 0x34;
70pub const SYS_lock: c_long = 0x35;
71pub const SYS_ioctl: c_long = 0x36;
72pub const SYS_fcntl: c_long = 0x37;
73pub const SYS_mpx: c_long = 0x38;
74pub const SYS_setpgid: c_long = 0x39;
75pub const SYS_ulimit: c_long = 0x3a;
76pub const SYS_oldolduname: c_long = 0x3b;
77pub const SYS_umask: c_long = 0x3c;
78pub const SYS_chroot: c_long = 0x3d;
79pub const SYS_ustat: c_long = 0x3e;
80pub const SYS_dup2: c_long = 0x3f;
81pub const SYS_getppid: c_long = 0x40;
82pub const SYS_getpgrp: c_long = 0x41;
83pub const SYS_setsid: c_long = 0x42;
84pub const SYS_sigaction: c_long = 0x43;
85pub const SYS_sgetmask: c_long = 0x44;
86pub const SYS_ssetmask: c_long = 0x45;
87pub const SYS_setreuid: c_long = 0x46;
88pub const SYS_setregid: c_long = 0x47;
89pub const SYS_sigsuspend: c_long = 0x48;
90pub const SYS_sigpending: c_long = 0x49;
91pub const SYS_sethostname: c_long = 0x4a;
92pub const SYS_setrlimit: c_long = 0x4b;
93pub const SYS_getrusage: c_long = 0x4d;
94pub const SYS_gettimeofday_time32: c_long = 0x4e;
95pub const SYS_settimeofday_time32: c_long = 0x4f;
96pub const SYS_getgroups: c_long = 0x50;
97pub const SYS_setgroups: c_long = 0x51;
98pub const SYS_select: c_long = 0x52;
99pub const SYS_symlink: c_long = 0x53;
100pub const SYS_oldlstat: c_long = 0x54;
101pub const SYS_readlink: c_long = 0x55;
102pub const SYS_uselib: c_long = 0x56;
103pub const SYS_swapon: c_long = 0x57;
104pub const SYS_reboot: c_long = 0x58;
105pub const SYS_readdir: c_long = 0x59;
106pub const SYS_mmap: c_long = 0x5a;
107pub const SYS_munmap: c_long = 0x5b;
108pub const SYS_truncate: c_long = 0x5c;
109pub const SYS_ftruncate: c_long = 0x5d;
110pub const SYS_fchmod: c_long = 0x5e;
111pub const SYS_fchown: c_long = 0x5f;
112pub const SYS_getpriority: c_long = 0x60;
113pub const SYS_setpriority: c_long = 0x61;
114pub const SYS_profil: c_long = 0x62;
115pub const SYS_statfs: c_long = 0x63;
116pub const SYS_fstatfs: c_long = 0x64;
117pub const SYS_ioperm: c_long = 0x65;
118pub const SYS_socketcall: c_long = 0x66;
119pub const SYS_syslog: c_long = 0x67;
120pub const SYS_setitimer: c_long = 0x68;
121pub const SYS_getitimer: c_long = 0x69;
122pub const SYS_stat: c_long = 0x6a;
123pub const SYS_lstat: c_long = 0x6b;
124pub const SYS_fstat: c_long = 0x6c;
125pub const SYS_olduname: c_long = 0x6d;
126pub const SYS_iopl: c_long = 0x6e;
127pub const SYS_vhangup: c_long = 0x6f;
128pub const SYS_idle: c_long = 0x70;
129pub const SYS_vm86old: c_long = 0x71;
130pub const SYS_wait4: c_long = 0x72;
131pub const SYS_swapoff: c_long = 0x73;
132pub const SYS_sysinfo: c_long = 0x74;
133pub const SYS_ipc: c_long = 0x75;
134pub const SYS_fsync: c_long = 0x76;
135pub const SYS_sigreturn: c_long = 0x77;
136pub const SYS_clone: c_long = 0x78;
137pub const SYS_setdomainname: c_long = 0x79;
138pub const SYS_uname: c_long = 0x7a;
139pub const SYS_modify_ldt: c_long = 0x7b;
140pub const SYS_adjtimex: c_long = 0x7c;
141pub const SYS_mprotect: c_long = 0x7d;
142pub const SYS_sigprocmask: c_long = 0x7e;
143pub const SYS_create_module: c_long = 0x7f;
144pub const SYS_init_module: c_long = 0x80;
145pub const SYS_delete_module: c_long = 0x81;
146pub const SYS_get_kernel_syms: c_long = 0x82;
147pub const SYS_quotactl: c_long = 0x83;
148pub const SYS_getpgid: c_long = 0x84;
149pub const SYS_fchdir: c_long = 0x85;
150pub const SYS_bdflush: c_long = 0x86;
151pub const SYS_sysfs: c_long = 0x87;
152pub const SYS_personality: c_long = 0x88;
153pub const SYS_afs_syscall: c_long = 0x89;
154pub const SYS_setfsuid: c_long = 0x8a;
155pub const SYS_setfsgid: c_long = 0x8b;
156pub const SYS__llseek: c_long = 0x8c;
157pub const SYS_getdents: c_long = 0x8d;
158pub const SYS__newselect: c_long = 0x8e;
159pub const SYS_flock: c_long = 0x8f;
160pub const SYS_msync: c_long = 0x90;
161pub const SYS_readv: c_long = 0x91;
162pub const SYS_writev: c_long = 0x92;
163pub const SYS_getsid: c_long = 0x93;
164pub const SYS_fdatasync: c_long = 0x94;
165pub const SYS__sysctl: c_long = 0x95;
166pub const SYS_mlock: c_long = 0x96;
167pub const SYS_munlock: c_long = 0x97;
168pub const SYS_mlockall: c_long = 0x98;
169pub const SYS_munlockall: c_long = 0x99;
170pub const SYS_sched_setparam: c_long = 0x9a;
171pub const SYS_sched_getparam: c_long = 0x9b;
172pub const SYS_sched_setscheduler: c_long = 0x9c;
173pub const SYS_sched_getscheduler: c_long = 0x9d;
174pub const SYS_sched_yield: c_long = 0x9e;
175pub const SYS_sched_get_priority_max: c_long = 0x9f;
176pub const SYS_sched_get_priority_min: c_long = 0xa0;
177pub const SYS_sched_rr_get_interval: c_long = 0xa1;
178pub const SYS_nanosleep: c_long = 0xa2;
179pub const SYS_mremap: c_long = 0xa3;
180pub const SYS_setresuid: c_long = 0xa4;
181pub const SYS_getresuid: c_long = 0xa5;
182pub const SYS_vm86: c_long = 0xa6;
183pub const SYS_query_module: c_long = 0xa7;
184pub const SYS_poll: c_long = 0xa8;
185pub const SYS_nfsservctl: c_long = 0xa9;
186pub const SYS_setresgid: c_long = 0xaa;
187pub const SYS_getresgid: c_long = 0xab;
188pub const SYS_prctl: c_long = 0xac;
189pub const SYS_rt_sigreturn: c_long = 0xad;
190pub const SYS_rt_sigaction: c_long = 0xae;
191pub const SYS_rt_sigprocmask: c_long = 0xaf;
192pub const SYS_rt_sigpending: c_long = 0xb0;
193pub const SYS_rt_sigtimedwait: c_long = 0xb1;
194pub const SYS_rt_sigqueueinfo: c_long = 0xb2;
195pub const SYS_rt_sigsuspend: c_long = 0xb3;
196pub const SYS_pread64: c_long = 0xb4;
197pub const SYS_pwrite64: c_long = 0xb5;
198pub const SYS_chown: c_long = 0xb6;
199pub const SYS_getcwd: c_long = 0xb7;
200pub const SYS_capget: c_long = 0xb8;
201pub const SYS_capset: c_long = 0xb9;
202pub const SYS_sigaltstack: c_long = 0xba;
203pub const SYS_sendfile: c_long = 0xbb;
204pub const SYS_getpmsg: c_long = 0xbc;
205pub const SYS_putpmsg: c_long = 0xbd;
206pub const SYS_vfork: c_long = 0xbe;
207pub const SYS_ugetrlimit: c_long = 0xbf;
208pub const SYS_mmap2: c_long = 0xc0;
209pub const SYS_truncate64: c_long = 0xc1;
210pub const SYS_ftruncate64: c_long = 0xc2;
211pub const SYS_stat64: c_long = 0xc3;
212pub const SYS_lstat64: c_long = 0xc4;
213pub const SYS_fstat64: c_long = 0xc5;
214pub const SYS_lchown32: c_long = 0xc6;
215pub const SYS_getuid32: c_long = 0xc7;
216pub const SYS_getgid32: c_long = 0xc8;
217pub const SYS_geteuid32: c_long = 0xc9;
218pub const SYS_getegid32: c_long = 0xca;
219pub const SYS_setreuid32: c_long = 0xcb;
220pub const SYS_setregid32: c_long = 0xcc;
221pub const SYS_getgroups32: c_long = 0xcd;
222pub const SYS_setgroups32: c_long = 0xce;
223pub const SYS_fchown32: c_long = 0xcf;
224pub const SYS_setresuid32: c_long = 0xd0;
225pub const SYS_getresuid32: c_long = 0xd1;
226pub const SYS_setresgid32: c_long = 0xd2;
227pub const SYS_getresgid32: c_long = 0xd3;
228pub const SYS_chown32: c_long = 0xd4;
229pub const SYS_setuid32: c_long = 0xd5;
230pub const SYS_setgid32: c_long = 0xd6;
231pub const SYS_setfsuid32: c_long = 0xd7;
232pub const SYS_setfsgid32: c_long = 0xd8;
233pub const SYS_pivot_root: c_long = 0xd9;
234pub const SYS_mincore: c_long = 0xda;
235pub const SYS_madvise: c_long = 0xdb;
236pub const SYS_getdents64: c_long = 0xdc;
237pub const SYS_fcntl64: c_long = 0xdd;
238pub const SYS_gettid: c_long = 0xe0;
239pub const SYS_readahead: c_long = 0xe1;
240pub const SYS_setxattr: c_long = 0xe2;
241pub const SYS_lsetxattr: c_long = 0xe3;
242pub const SYS_fsetxattr: c_long = 0xe4;
243pub const SYS_getxattr: c_long = 0xe5;
244pub const SYS_lgetxattr: c_long = 0xe6;
245pub const SYS_fgetxattr: c_long = 0xe7;
246pub const SYS_listxattr: c_long = 0xe8;
247pub const SYS_llistxattr: c_long = 0xe9;
248pub const SYS_flistxattr: c_long = 0xea;
249pub const SYS_removexattr: c_long = 0xeb;
250pub const SYS_lremovexattr: c_long = 0xec;
251pub const SYS_fremovexattr: c_long = 0xed;
252pub const SYS_tkill: c_long = 0xee;
253pub const SYS_sendfile64: c_long = 0xef;
254pub const SYS_futex: c_long = 0xf0;
255pub const SYS_sched_setaffinity: c_long = 0xf1;
256pub const SYS_sched_getaffinity: c_long = 0xf2;
257pub const SYS_set_thread_area: c_long = 0xf3;
258pub const SYS_get_thread_area: c_long = 0xf4;
259pub const SYS_io_setup: c_long = 0xf5;
260pub const SYS_io_destroy: c_long = 0xf6;
261pub const SYS_io_getevents: c_long = 0xf7;
262pub const SYS_io_submit: c_long = 0xf8;
263pub const SYS_io_cancel: c_long = 0xf9;
264pub const SYS_fadvise64: c_long = 0xfa;
265pub const SYS_exit_group: c_long = 0xfc;
266pub const SYS_lookup_dcookie: c_long = 0xfd;
267pub const SYS_epoll_create: c_long = 0xfe;
268pub const SYS_epoll_ctl: c_long = 0xff;
269pub const SYS_epoll_wait: c_long = 0x100;
270pub const SYS_remap_file_pages: c_long = 0x101;
271pub const SYS_set_tid_address: c_long = 0x102;
272pub const SYS_timer_create: c_long = 0x103;
273pub const SYS_statfs64: c_long = 0x10c;
274pub const SYS_fstatfs64: c_long = 0x10d;
275pub const SYS_tgkill: c_long = 0x10e;
276pub const SYS_utimes: c_long = 0x10f;
277pub const SYS_fadvise64_64: c_long = 0x110;
278pub const SYS_vserver: c_long = 0x111;
279pub const SYS_mbind: c_long = 0x112;
280pub const SYS_get_mempolicy: c_long = 0x113;
281pub const SYS_set_mempolicy: c_long = 0x114;
282pub const SYS_mq_open: c_long = 0x115;
283pub const SYS_kexec_load: c_long = 0x11b;
284pub const SYS_waitid: c_long = 0x11c;
285pub const SYS_add_key: c_long = 0x11e;
286pub const SYS_request_key: c_long = 0x11f;
287pub const SYS_keyctl: c_long = 0x120;
288pub const SYS_ioprio_set: c_long = 0x121;
289pub const SYS_ioprio_get: c_long = 0x122;
290pub const SYS_inotify_init: c_long = 0x123;
291pub const SYS_inotify_add_watch: c_long = 0x124;
292pub const SYS_inotify_rm_watch: c_long = 0x125;
293pub const SYS_migrate_pages: c_long = 0x126;
294pub const SYS_openat: c_long = 0x127;
295pub const SYS_mkdirat: c_long = 0x128;
296pub const SYS_mknodat: c_long = 0x129;
297pub const SYS_fchownat: c_long = 0x12a;
298pub const SYS_futimesat: c_long = 0x12b;
299pub const SYS_fstatat64: c_long = 0x12c;
300pub const SYS_unlinkat: c_long = 0x12d;
301pub const SYS_renameat: c_long = 0x12e;
302pub const SYS_linkat: c_long = 0x12f;
303pub const SYS_symlinkat: c_long = 0x130;
304pub const SYS_readlinkat: c_long = 0x131;
305pub const SYS_fchmodat: c_long = 0x132;
306pub const SYS_faccessat: c_long = 0x133;
307pub const SYS_pselect6: c_long = 0x134;
308pub const SYS_ppoll: c_long = 0x135;
309pub const SYS_unshare: c_long = 0x136;
310pub const SYS_set_robust_list: c_long = 0x137;
311pub const SYS_get_robust_list: c_long = 0x138;
312pub const SYS_splice: c_long = 0x139;
313pub const SYS_sync_file_range: c_long = 0x13a;
314pub const SYS_tee: c_long = 0x13b;
315pub const SYS_vmsplice: c_long = 0x13c;
316pub const SYS_move_pages: c_long = 0x13d;
317pub const SYS_getcpu: c_long = 0x13e;
318pub const SYS_epoll_pwait: c_long = 0x13f;
319pub const SYS_utimensat: c_long = 0x140;
320pub const SYS_signalfd: c_long = 0x141;
321pub const SYS_timerfd_create: c_long = 0x142;
322pub const SYS_eventfd: c_long = 0x143;
323pub const SYS_fallocate: c_long = 0x144;
324pub const SYS_timerfd_settime32: c_long = 0x145;
325pub const SYS_timerfd_gettime32: c_long = 0x146;
326pub const SYS_signalfd4: c_long = 0x147;
327pub const SYS_eventfd2: c_long = 0x148;
328pub const SYS_epoll_create1: c_long = 0x149;
329pub const SYS_dup3: c_long = 0x14a;
330pub const SYS_pipe2: c_long = 0x14b;
331pub const SYS_inotify_init1: c_long = 0x14c;
332pub const SYS_preadv: c_long = 0x14d;
333pub const SYS_pwritev: c_long = 0x14e;
334pub const SYS_rt_tgsigqueueinfo: c_long = 0x14f;
335pub const SYS_perf_event_open: c_long = 0x150;
336pub const SYS_recvmmsg: c_long = 0x151;
337pub const SYS_fanotify_init: c_long = 0x152;
338pub const SYS_fanotify_mark: c_long = 0x153;
339pub const SYS_prlimit64: c_long = 0x154;
340pub const SYS_name_to_handle_at: c_long = 0x155;
341pub const SYS_open_by_handle_at: c_long = 0x156;
342pub const SYS_clock_adjtime: c_long = 0x157;
343pub const SYS_syncfs: c_long = 0x158;
344pub const SYS_sendmmsg: c_long = 0x159;
345pub const SYS_setns: c_long = 0x15a;
346pub const SYS_process_vm_readv: c_long = 0x15b;
347pub const SYS_process_vm_writev: c_long = 0x15c;
348pub const SYS_kcmp: c_long = 0x15d;
349pub const SYS_finit_module: c_long = 0x15e;
350pub const SYS_sched_setattr: c_long = 0x15f;
351pub const SYS_sched_getattr: c_long = 0x160;
352pub const SYS_renameat2: c_long = 0x161;
353pub const SYS_seccomp: c_long = 0x162;
354pub const SYS_getrandom: c_long = 0x163;
355pub const SYS_memfd_create: c_long = 0x164;
356pub const SYS_bpf: c_long = 0x165;
357pub const SYS_execveat: c_long = 0x166;
358pub const SYS_socket: c_long = 0x167;
359pub const SYS_socketpair: c_long = 0x168;
360pub const SYS_bind: c_long = 0x169;
361pub const SYS_connect: c_long = 0x16a;
362pub const SYS_listen: c_long = 0x16b;
363pub const SYS_accept4: c_long = 0x16c;
364pub const SYS_getsockopt: c_long = 0x16d;
365pub const SYS_setsockopt: c_long = 0x16e;
366pub const SYS_getsockname: c_long = 0x16f;
367pub const SYS_getpeername: c_long = 0x170;
368pub const SYS_sendto: c_long = 0x171;
369pub const SYS_sendmsg: c_long = 0x172;
370pub const SYS_recvfrom: c_long = 0x173;
371pub const SYS_recvmsg: c_long = 0x174;
372pub const SYS_shutdown: c_long = 0x175;
373pub const SYS_userfaultfd: c_long = 0x176;
374pub const SYS_membarrier: c_long = 0x177;
375pub const SYS_mlock2: c_long = 0x178;
376pub const SYS_copy_file_range: c_long = 0x179;
377pub const SYS_preadv2: c_long = 0x17a;
378pub const SYS_pwritev2: c_long = 0x17b;
379pub const SYS_pkey_mprotect: c_long = 0x17c;
380pub const SYS_pkey_alloc: c_long = 0x17d;
381pub const SYS_pkey_free: c_long = 0x17e;
382pub const SYS_statx: c_long = 0x17f;
383pub const SYS_arch_prctl: c_long = 0x180;
384pub const SYS_io_pgetevents: c_long = 0x181;
385pub const SYS_rseq: c_long = 0x182;
386pub const SYS_semget: c_long = 0x189;
387pub const SYS_semctl: c_long = 0x18a;
388pub const SYS_shmget: c_long = 0x18b;
389pub const SYS_shmctl: c_long = 0x18c;
390pub const SYS_shmat: c_long = 0x18d;
391pub const SYS_shmdt: c_long = 0x18e;
392pub const SYS_msgget: c_long = 0x18f;
393pub const SYS_msgsnd: c_long = 0x190;
394pub const SYS_msgrcv: c_long = 0x191;
395pub const SYS_msgctl: c_long = 0x192;
396pub const SYS_clock_gettime64: c_long = 0x193;
397pub const SYS_clock_settime64: c_long = 0x194;
398pub const SYS_clock_adjtime64: c_long = 0x195;
399pub const SYS_clock_getres_time64: c_long = 0x196;
400pub const SYS_clock_nanosleep_time64: c_long = 0x197;
401pub const SYS_timer_gettime64: c_long = 0x198;
402pub const SYS_timer_settime64: c_long = 0x199;
403pub const SYS_timerfd_gettime64: c_long = 0x19a;
404pub const SYS_timerfd_settime64: c_long = 0x19b;
405pub const SYS_utimensat_time64: c_long = 0x19c;
406pub const SYS_pselect6_time64: c_long = 0x19d;
407pub const SYS_ppoll_time64: c_long = 0x19e;
408pub const SYS_io_pgetevents_time64: c_long = 0x1a0;
409pub const SYS_recvmmsg_time64: c_long = 0x1a1;
410pub const SYS_mq_timedsend_time64: c_long = 0x1a2;
411pub const SYS_mq_timedreceive_time64: c_long = 0x1a3;
412pub const SYS_semtimedop_time64: c_long = 0x1a4;
413pub const SYS_rt_sigtimedwait_time64: c_long = 0x1a5;
414pub const SYS_futex_time64: c_long = 0x1a6;
415pub const SYS_sched_rr_get_interval_time64: c_long = 0x1a7;
416pub const SYS_pidfd_send_signal: c_long = 0x1a8;
417pub const SYS_io_uring_setup: c_long = 0x1a9;
418pub const SYS_io_uring_enter: c_long = 0x1aa;
419pub const SYS_io_uring_register: c_long = 0x1ab;
420pub const SYS_open_tree: c_long = 0x1ac;
421pub const SYS_move_mount: c_long = 0x1ad;
422pub const SYS_fsopen: c_long = 0x1ae;
423pub const SYS_fsconfig: c_long = 0x1af;
424pub const SYS_fsmount: c_long = 0x1b0;
425pub const SYS_fspick: c_long = 0x1b1;
426pub const SYS_pidfd_open: c_long = 0x1b2;
427pub const SYS_clone3: c_long = 0x1b3;
428pub const SYS_close_range: c_long = 0x1b4;
429pub const SYS_openat2: c_long = 0x1b5;
430pub const SYS_pidfd_getfd: c_long = 0x1b6;
431pub const SYS_faccessat2: c_long = 0x1b7;
432pub const SYS_process_madvise: c_long = 0x1b8;
433pub const SYS_epoll_pwait2: c_long = 0x1b9;
434pub const SYS_mount_setattr: c_long = 0x1ba;
435pub const SYS_quotactl_fd: c_long = 0x1bb;
436pub const SYS_landlock_create_ruleset: c_long = 0x1bc;
437pub const SYS_landlock_add_rule: c_long = 0x1bd;
438pub const SYS_landlock_restrict_self: c_long = 0x1be;
439pub const SYS_memfd_secret: c_long = 0x1bf;
440pub const SYS_process_mrelease: c_long = 0x1c0;
441pub const SYS_futex_waitv: c_long = 0x1c1;
442pub const SYS_set_mempolicy_home_node: c_long = 0x1c2;
443pub const SYS_cachestat: c_long = 0x1c3;
444pub const SYS_fchmodat2: c_long = 0x1c4;
445pub const SYS_map_shadow_stack: c_long = 0x1c5;
446pub const SYS_futex_wake: c_long = 0x1c6;
447pub const SYS_futex_wait: c_long = 0x1c7;
448pub const SYS_futex_requeue: c_long = 0x1c8;
449pub const SYS_statmount: c_long = 0x1c9;
450pub const SYS_listmount: c_long = 0x1ca;
451pub const SYS_lsm_get_self_attr: c_long = 0x1cb;
452pub const SYS_lsm_set_self_attr: c_long = 0x1cc;
453pub const SYS_lsm_list_modules: c_long = 0x1cd;
454pub const SYS_mseal: c_long = 0x1ce;
455pub const SYS_setxattrat: c_long = 0x1cf;
456pub const SYS_getxattrat: c_long = 0x1d0;
457pub const SYS_listxattrat: c_long = 0x1d1;
458pub const SYS_removexattrat: c_long = 0x1d2;
459pub const SYS_open_tree_attr: c_long = 0x1d3;
460pub const SYS_file_getattr: c_long = 0x1d4;
461pub const SYS_file_setattr: c_long = 0x1d5;
462pub const SYS_listns: c_long = 0x1d6;
463
464/// Minimum valid system call number.
465pub(crate) const SYS_CALL_BASE_INDEX: c_long = 0x0;
466
467/// String table of system calls names.
468pub(crate) static SYS_CALL_NAME: &[&str] = &[
469    "restart_syscall",
470    "exit",
471    "fork",
472    "read",
473    "write",
474    "open",
475    "close",
476    "waitpid",
477    "creat",
478    "link",
479    "unlink",
480    "execve",
481    "chdir",
482    "time",
483    "mknod",
484    "chmod",
485    "lchown",
486    "break",
487    "oldstat",
488    "lseek",
489    "getpid",
490    "mount",
491    "umount",
492    "setuid",
493    "getuid",
494    "stime",
495    "ptrace",
496    "alarm",
497    "oldfstat",
498    "pause",
499    "utime",
500    "stty",
501    "gtty",
502    "access",
503    "nice",
504    "ftime",
505    "sync",
506    "kill",
507    "rename",
508    "mkdir",
509    "rmdir",
510    "dup",
511    "pipe",
512    "times",
513    "prof",
514    "brk",
515    "setgid",
516    "getgid",
517    "signal",
518    "geteuid",
519    "getegid",
520    "acct",
521    "umount2",
522    "lock",
523    "ioctl",
524    "fcntl",
525    "mpx",
526    "setpgid",
527    "ulimit",
528    "oldolduname",
529    "umask",
530    "chroot",
531    "ustat",
532    "dup2",
533    "getppid",
534    "getpgrp",
535    "setsid",
536    "sigaction",
537    "sgetmask",
538    "ssetmask",
539    "setreuid",
540    "setregid",
541    "sigsuspend",
542    "sigpending",
543    "sethostname",
544    "setrlimit",
545    "",
546    "getrusage",
547    "gettimeofday_time32",
548    "settimeofday_time32",
549    "getgroups",
550    "setgroups",
551    "select",
552    "symlink",
553    "oldlstat",
554    "readlink",
555    "uselib",
556    "swapon",
557    "reboot",
558    "readdir",
559    "mmap",
560    "munmap",
561    "truncate",
562    "ftruncate",
563    "fchmod",
564    "fchown",
565    "getpriority",
566    "setpriority",
567    "profil",
568    "statfs",
569    "fstatfs",
570    "ioperm",
571    "socketcall",
572    "syslog",
573    "setitimer",
574    "getitimer",
575    "stat",
576    "lstat",
577    "fstat",
578    "olduname",
579    "iopl",
580    "vhangup",
581    "idle",
582    "vm86old",
583    "wait4",
584    "swapoff",
585    "sysinfo",
586    "ipc",
587    "fsync",
588    "sigreturn",
589    "clone",
590    "setdomainname",
591    "uname",
592    "modify_ldt",
593    "adjtimex",
594    "mprotect",
595    "sigprocmask",
596    "create_module",
597    "init_module",
598    "delete_module",
599    "get_kernel_syms",
600    "quotactl",
601    "getpgid",
602    "fchdir",
603    "bdflush",
604    "sysfs",
605    "personality",
606    "afs_syscall",
607    "setfsuid",
608    "setfsgid",
609    "_llseek",
610    "getdents",
611    "_newselect",
612    "flock",
613    "msync",
614    "readv",
615    "writev",
616    "getsid",
617    "fdatasync",
618    "_sysctl",
619    "mlock",
620    "munlock",
621    "mlockall",
622    "munlockall",
623    "sched_setparam",
624    "sched_getparam",
625    "sched_setscheduler",
626    "sched_getscheduler",
627    "sched_yield",
628    "sched_get_priority_max",
629    "sched_get_priority_min",
630    "sched_rr_get_interval",
631    "nanosleep",
632    "mremap",
633    "setresuid",
634    "getresuid",
635    "vm86",
636    "query_module",
637    "poll",
638    "nfsservctl",
639    "setresgid",
640    "getresgid",
641    "prctl",
642    "rt_sigreturn",
643    "rt_sigaction",
644    "rt_sigprocmask",
645    "rt_sigpending",
646    "rt_sigtimedwait",
647    "rt_sigqueueinfo",
648    "rt_sigsuspend",
649    "pread64",
650    "pwrite64",
651    "chown",
652    "getcwd",
653    "capget",
654    "capset",
655    "sigaltstack",
656    "sendfile",
657    "getpmsg",
658    "putpmsg",
659    "vfork",
660    "ugetrlimit",
661    "mmap2",
662    "truncate64",
663    "ftruncate64",
664    "stat64",
665    "lstat64",
666    "fstat64",
667    "lchown32",
668    "getuid32",
669    "getgid32",
670    "geteuid32",
671    "getegid32",
672    "setreuid32",
673    "setregid32",
674    "getgroups32",
675    "setgroups32",
676    "fchown32",
677    "setresuid32",
678    "getresuid32",
679    "setresgid32",
680    "getresgid32",
681    "chown32",
682    "setuid32",
683    "setgid32",
684    "setfsuid32",
685    "setfsgid32",
686    "pivot_root",
687    "mincore",
688    "madvise",
689    "getdents64",
690    "fcntl64",
691    "",
692    "",
693    "gettid",
694    "readahead",
695    "setxattr",
696    "lsetxattr",
697    "fsetxattr",
698    "getxattr",
699    "lgetxattr",
700    "fgetxattr",
701    "listxattr",
702    "llistxattr",
703    "flistxattr",
704    "removexattr",
705    "lremovexattr",
706    "fremovexattr",
707    "tkill",
708    "sendfile64",
709    "futex",
710    "sched_setaffinity",
711    "sched_getaffinity",
712    "set_thread_area",
713    "get_thread_area",
714    "io_setup",
715    "io_destroy",
716    "io_getevents",
717    "io_submit",
718    "io_cancel",
719    "fadvise64",
720    "",
721    "exit_group",
722    "lookup_dcookie",
723    "epoll_create",
724    "epoll_ctl",
725    "epoll_wait",
726    "remap_file_pages",
727    "set_tid_address",
728    "timer_create",
729    "",
730    "",
731    "",
732    "",
733    "",
734    "",
735    "",
736    "",
737    "statfs64",
738    "fstatfs64",
739    "tgkill",
740    "utimes",
741    "fadvise64_64",
742    "vserver",
743    "mbind",
744    "get_mempolicy",
745    "set_mempolicy",
746    "mq_open",
747    "",
748    "",
749    "",
750    "",
751    "",
752    "kexec_load",
753    "waitid",
754    "",
755    "add_key",
756    "request_key",
757    "keyctl",
758    "ioprio_set",
759    "ioprio_get",
760    "inotify_init",
761    "inotify_add_watch",
762    "inotify_rm_watch",
763    "migrate_pages",
764    "openat",
765    "mkdirat",
766    "mknodat",
767    "fchownat",
768    "futimesat",
769    "fstatat64",
770    "unlinkat",
771    "renameat",
772    "linkat",
773    "symlinkat",
774    "readlinkat",
775    "fchmodat",
776    "faccessat",
777    "pselect6",
778    "ppoll",
779    "unshare",
780    "set_robust_list",
781    "get_robust_list",
782    "splice",
783    "sync_file_range",
784    "tee",
785    "vmsplice",
786    "move_pages",
787    "getcpu",
788    "epoll_pwait",
789    "utimensat",
790    "signalfd",
791    "timerfd_create",
792    "eventfd",
793    "fallocate",
794    "timerfd_settime32",
795    "timerfd_gettime32",
796    "signalfd4",
797    "eventfd2",
798    "epoll_create1",
799    "dup3",
800    "pipe2",
801    "inotify_init1",
802    "preadv",
803    "pwritev",
804    "rt_tgsigqueueinfo",
805    "perf_event_open",
806    "recvmmsg",
807    "fanotify_init",
808    "fanotify_mark",
809    "prlimit64",
810    "name_to_handle_at",
811    "open_by_handle_at",
812    "clock_adjtime",
813    "syncfs",
814    "sendmmsg",
815    "setns",
816    "process_vm_readv",
817    "process_vm_writev",
818    "kcmp",
819    "finit_module",
820    "sched_setattr",
821    "sched_getattr",
822    "renameat2",
823    "seccomp",
824    "getrandom",
825    "memfd_create",
826    "bpf",
827    "execveat",
828    "socket",
829    "socketpair",
830    "bind",
831    "connect",
832    "listen",
833    "accept4",
834    "getsockopt",
835    "setsockopt",
836    "getsockname",
837    "getpeername",
838    "sendto",
839    "sendmsg",
840    "recvfrom",
841    "recvmsg",
842    "shutdown",
843    "userfaultfd",
844    "membarrier",
845    "mlock2",
846    "copy_file_range",
847    "preadv2",
848    "pwritev2",
849    "pkey_mprotect",
850    "pkey_alloc",
851    "pkey_free",
852    "statx",
853    "arch_prctl",
854    "io_pgetevents",
855    "rseq",
856    "",
857    "",
858    "",
859    "",
860    "",
861    "",
862    "semget",
863    "semctl",
864    "shmget",
865    "shmctl",
866    "shmat",
867    "shmdt",
868    "msgget",
869    "msgsnd",
870    "msgrcv",
871    "msgctl",
872    "clock_gettime64",
873    "clock_settime64",
874    "clock_adjtime64",
875    "clock_getres_time64",
876    "clock_nanosleep_time64",
877    "timer_gettime64",
878    "timer_settime64",
879    "timerfd_gettime64",
880    "timerfd_settime64",
881    "utimensat_time64",
882    "pselect6_time64",
883    "ppoll_time64",
884    "",
885    "io_pgetevents_time64",
886    "recvmmsg_time64",
887    "mq_timedsend_time64",
888    "mq_timedreceive_time64",
889    "semtimedop_time64",
890    "rt_sigtimedwait_time64",
891    "futex_time64",
892    "sched_rr_get_interval_time64",
893    "pidfd_send_signal",
894    "io_uring_setup",
895    "io_uring_enter",
896    "io_uring_register",
897    "open_tree",
898    "move_mount",
899    "fsopen",
900    "fsconfig",
901    "fsmount",
902    "fspick",
903    "pidfd_open",
904    "clone3",
905    "close_range",
906    "openat2",
907    "pidfd_getfd",
908    "faccessat2",
909    "process_madvise",
910    "epoll_pwait2",
911    "mount_setattr",
912    "quotactl_fd",
913    "landlock_create_ruleset",
914    "landlock_add_rule",
915    "landlock_restrict_self",
916    "memfd_secret",
917    "process_mrelease",
918    "futex_waitv",
919    "set_mempolicy_home_node",
920    "cachestat",
921    "fchmodat2",
922    "map_shadow_stack",
923    "futex_wake",
924    "futex_wait",
925    "futex_requeue",
926    "statmount",
927    "listmount",
928    "lsm_get_self_attr",
929    "lsm_set_self_attr",
930    "lsm_list_modules",
931    "mseal",
932    "setxattrat",
933    "getxattrat",
934    "listxattrat",
935    "removexattrat",
936    "open_tree_attr",
937    "file_getattr",
938    "file_setattr",
939    "listns",
940];