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