Skip to main content

syscall_numbers/
mips.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_syscall: c_long = 0xfa0;
18pub const SYS_exit: c_long = 0xfa1;
19pub const SYS_fork: c_long = 0xfa2;
20pub const SYS_read: c_long = 0xfa3;
21pub const SYS_write: c_long = 0xfa4;
22pub const SYS_open: c_long = 0xfa5;
23pub const SYS_close: c_long = 0xfa6;
24pub const SYS_waitpid: c_long = 0xfa7;
25pub const SYS_creat: c_long = 0xfa8;
26pub const SYS_link: c_long = 0xfa9;
27pub const SYS_unlink: c_long = 0xfaa;
28pub const SYS_execve: c_long = 0xfab;
29pub const SYS_chdir: c_long = 0xfac;
30pub const SYS_time: c_long = 0xfad;
31pub const SYS_mknod: c_long = 0xfae;
32pub const SYS_chmod: c_long = 0xfaf;
33pub const SYS_lchown: c_long = 0xfb0;
34pub const SYS_break: c_long = 0xfb1;
35pub const SYS_unused18: c_long = 0xfb2;
36pub const SYS_lseek: c_long = 0xfb3;
37pub const SYS_getpid: c_long = 0xfb4;
38pub const SYS_mount: c_long = 0xfb5;
39pub const SYS_umount: c_long = 0xfb6;
40pub const SYS_setuid: c_long = 0xfb7;
41pub const SYS_getuid: c_long = 0xfb8;
42pub const SYS_stime: c_long = 0xfb9;
43pub const SYS_ptrace: c_long = 0xfba;
44pub const SYS_alarm: c_long = 0xfbb;
45pub const SYS_unused28: c_long = 0xfbc;
46pub const SYS_pause: c_long = 0xfbd;
47pub const SYS_utime: c_long = 0xfbe;
48pub const SYS_stty: c_long = 0xfbf;
49pub const SYS_gtty: c_long = 0xfc0;
50pub const SYS_access: c_long = 0xfc1;
51pub const SYS_nice: c_long = 0xfc2;
52pub const SYS_ftime: c_long = 0xfc3;
53pub const SYS_sync: c_long = 0xfc4;
54pub const SYS_kill: c_long = 0xfc5;
55pub const SYS_rename: c_long = 0xfc6;
56pub const SYS_mkdir: c_long = 0xfc7;
57pub const SYS_rmdir: c_long = 0xfc8;
58pub const SYS_dup: c_long = 0xfc9;
59pub const SYS_pipe: c_long = 0xfca;
60pub const SYS_times: c_long = 0xfcb;
61pub const SYS_prof: c_long = 0xfcc;
62pub const SYS_brk: c_long = 0xfcd;
63pub const SYS_setgid: c_long = 0xfce;
64pub const SYS_getgid: c_long = 0xfcf;
65pub const SYS_signal: c_long = 0xfd0;
66pub const SYS_geteuid: c_long = 0xfd1;
67pub const SYS_getegid: c_long = 0xfd2;
68pub const SYS_acct: c_long = 0xfd3;
69pub const SYS_umount2: c_long = 0xfd4;
70pub const SYS_lock: c_long = 0xfd5;
71pub const SYS_ioctl: c_long = 0xfd6;
72pub const SYS_fcntl: c_long = 0xfd7;
73pub const SYS_mpx: c_long = 0xfd8;
74pub const SYS_setpgid: c_long = 0xfd9;
75pub const SYS_ulimit: c_long = 0xfda;
76pub const SYS_unused59: c_long = 0xfdb;
77pub const SYS_umask: c_long = 0xfdc;
78pub const SYS_chroot: c_long = 0xfdd;
79pub const SYS_ustat: c_long = 0xfde;
80pub const SYS_dup2: c_long = 0xfdf;
81pub const SYS_getppid: c_long = 0xfe0;
82pub const SYS_getpgrp: c_long = 0xfe1;
83pub const SYS_setsid: c_long = 0xfe2;
84pub const SYS_sigaction: c_long = 0xfe3;
85pub const SYS_sgetmask: c_long = 0xfe4;
86pub const SYS_ssetmask: c_long = 0xfe5;
87pub const SYS_setreuid: c_long = 0xfe6;
88pub const SYS_setregid: c_long = 0xfe7;
89pub const SYS_sigsuspend: c_long = 0xfe8;
90pub const SYS_sigpending: c_long = 0xfe9;
91pub const SYS_sethostname: c_long = 0xfea;
92pub const SYS_setrlimit: c_long = 0xfeb;
93pub const SYS_getrlimit: c_long = 0xfec;
94pub const SYS_getrusage: c_long = 0xfed;
95pub const SYS_gettimeofday_time32: c_long = 0xfee;
96pub const SYS_settimeofday_time32: c_long = 0xfef;
97pub const SYS_getgroups: c_long = 0xff0;
98pub const SYS_setgroups: c_long = 0xff1;
99pub const SYS_reserved82: c_long = 0xff2;
100pub const SYS_symlink: c_long = 0xff3;
101pub const SYS_unused84: c_long = 0xff4;
102pub const SYS_readlink: c_long = 0xff5;
103pub const SYS_uselib: c_long = 0xff6;
104pub const SYS_swapon: c_long = 0xff7;
105pub const SYS_reboot: c_long = 0xff8;
106pub const SYS_readdir: c_long = 0xff9;
107pub const SYS_mmap: c_long = 0xffa;
108pub const SYS_munmap: c_long = 0xffb;
109pub const SYS_truncate: c_long = 0xffc;
110pub const SYS_ftruncate: c_long = 0xffd;
111pub const SYS_fchmod: c_long = 0xffe;
112pub const SYS_fchown: c_long = 0xfff;
113pub const SYS_getpriority: c_long = 0x1000;
114pub const SYS_setpriority: c_long = 0x1001;
115pub const SYS_profil: c_long = 0x1002;
116pub const SYS_statfs: c_long = 0x1003;
117pub const SYS_fstatfs: c_long = 0x1004;
118pub const SYS_ioperm: c_long = 0x1005;
119pub const SYS_socketcall: c_long = 0x1006;
120pub const SYS_syslog: c_long = 0x1007;
121pub const SYS_setitimer: c_long = 0x1008;
122pub const SYS_getitimer: c_long = 0x1009;
123pub const SYS_stat: c_long = 0x100a;
124pub const SYS_lstat: c_long = 0x100b;
125pub const SYS_fstat: c_long = 0x100c;
126pub const SYS_unused109: c_long = 0x100d;
127pub const SYS_iopl: c_long = 0x100e;
128pub const SYS_vhangup: c_long = 0x100f;
129pub const SYS_idle: c_long = 0x1010;
130pub const SYS_vm86: c_long = 0x1011;
131pub const SYS_wait4: c_long = 0x1012;
132pub const SYS_swapoff: c_long = 0x1013;
133pub const SYS_sysinfo: c_long = 0x1014;
134pub const SYS_ipc: c_long = 0x1015;
135pub const SYS_fsync: c_long = 0x1016;
136pub const SYS_sigreturn: c_long = 0x1017;
137pub const SYS_clone: c_long = 0x1018;
138pub const SYS_setdomainname: c_long = 0x1019;
139pub const SYS_uname: c_long = 0x101a;
140pub const SYS_modify_ldt: c_long = 0x101b;
141pub const SYS_adjtimex: c_long = 0x101c;
142pub const SYS_mprotect: c_long = 0x101d;
143pub const SYS_sigprocmask: c_long = 0x101e;
144pub const SYS_create_module: c_long = 0x101f;
145pub const SYS_init_module: c_long = 0x1020;
146pub const SYS_delete_module: c_long = 0x1021;
147pub const SYS_get_kernel_syms: c_long = 0x1022;
148pub const SYS_quotactl: c_long = 0x1023;
149pub const SYS_getpgid: c_long = 0x1024;
150pub const SYS_fchdir: c_long = 0x1025;
151pub const SYS_bdflush: c_long = 0x1026;
152pub const SYS_sysfs: c_long = 0x1027;
153pub const SYS_personality: c_long = 0x1028;
154pub const SYS_afs_syscall: c_long = 0x1029;
155pub const SYS_setfsuid: c_long = 0x102a;
156pub const SYS_setfsgid: c_long = 0x102b;
157pub const SYS__llseek: c_long = 0x102c;
158pub const SYS_getdents: c_long = 0x102d;
159pub const SYS__newselect: c_long = 0x102e;
160pub const SYS_flock: c_long = 0x102f;
161pub const SYS_msync: c_long = 0x1030;
162pub const SYS_readv: c_long = 0x1031;
163pub const SYS_writev: c_long = 0x1032;
164pub const SYS_cacheflush: c_long = 0x1033;
165pub const SYS_cachectl: c_long = 0x1034;
166pub const SYS_sysmips: c_long = 0x1035;
167pub const SYS_unused150: c_long = 0x1036;
168pub const SYS_getsid: c_long = 0x1037;
169pub const SYS_fdatasync: c_long = 0x1038;
170pub const SYS__sysctl: c_long = 0x1039;
171pub const SYS_mlock: c_long = 0x103a;
172pub const SYS_munlock: c_long = 0x103b;
173pub const SYS_mlockall: c_long = 0x103c;
174pub const SYS_munlockall: c_long = 0x103d;
175pub const SYS_sched_setparam: c_long = 0x103e;
176pub const SYS_sched_getparam: c_long = 0x103f;
177pub const SYS_sched_setscheduler: c_long = 0x1040;
178pub const SYS_sched_getscheduler: c_long = 0x1041;
179pub const SYS_sched_yield: c_long = 0x1042;
180pub const SYS_sched_get_priority_max: c_long = 0x1043;
181pub const SYS_sched_get_priority_min: c_long = 0x1044;
182pub const SYS_sched_rr_get_interval: c_long = 0x1045;
183pub const SYS_nanosleep: c_long = 0x1046;
184pub const SYS_mremap: c_long = 0x1047;
185pub const SYS_accept: c_long = 0x1048;
186pub const SYS_bind: c_long = 0x1049;
187pub const SYS_connect: c_long = 0x104a;
188pub const SYS_getpeername: c_long = 0x104b;
189pub const SYS_getsockname: c_long = 0x104c;
190pub const SYS_getsockopt: c_long = 0x104d;
191pub const SYS_listen: c_long = 0x104e;
192pub const SYS_recv: c_long = 0x104f;
193pub const SYS_recvfrom: c_long = 0x1050;
194pub const SYS_recvmsg: c_long = 0x1051;
195pub const SYS_send: c_long = 0x1052;
196pub const SYS_sendmsg: c_long = 0x1053;
197pub const SYS_sendto: c_long = 0x1054;
198pub const SYS_setsockopt: c_long = 0x1055;
199pub const SYS_shutdown: c_long = 0x1056;
200pub const SYS_socket: c_long = 0x1057;
201pub const SYS_socketpair: c_long = 0x1058;
202pub const SYS_setresuid: c_long = 0x1059;
203pub const SYS_getresuid: c_long = 0x105a;
204pub const SYS_query_module: c_long = 0x105b;
205pub const SYS_poll: c_long = 0x105c;
206pub const SYS_nfsservctl: c_long = 0x105d;
207pub const SYS_setresgid: c_long = 0x105e;
208pub const SYS_getresgid: c_long = 0x105f;
209pub const SYS_prctl: c_long = 0x1060;
210pub const SYS_rt_sigreturn: c_long = 0x1061;
211pub const SYS_rt_sigaction: c_long = 0x1062;
212pub const SYS_rt_sigprocmask: c_long = 0x1063;
213pub const SYS_rt_sigpending: c_long = 0x1064;
214pub const SYS_rt_sigtimedwait: c_long = 0x1065;
215pub const SYS_rt_sigqueueinfo: c_long = 0x1066;
216pub const SYS_rt_sigsuspend: c_long = 0x1067;
217pub const SYS_pread64: c_long = 0x1068;
218pub const SYS_pwrite64: c_long = 0x1069;
219pub const SYS_chown: c_long = 0x106a;
220pub const SYS_getcwd: c_long = 0x106b;
221pub const SYS_capget: c_long = 0x106c;
222pub const SYS_capset: c_long = 0x106d;
223pub const SYS_sigaltstack: c_long = 0x106e;
224pub const SYS_sendfile: c_long = 0x106f;
225pub const SYS_getpmsg: c_long = 0x1070;
226pub const SYS_putpmsg: c_long = 0x1071;
227pub const SYS_mmap2: c_long = 0x1072;
228pub const SYS_truncate64: c_long = 0x1073;
229pub const SYS_ftruncate64: c_long = 0x1074;
230pub const SYS_stat64: c_long = 0x1075;
231pub const SYS_lstat64: c_long = 0x1076;
232pub const SYS_fstat64: c_long = 0x1077;
233pub const SYS_pivot_root: c_long = 0x1078;
234pub const SYS_mincore: c_long = 0x1079;
235pub const SYS_madvise: c_long = 0x107a;
236pub const SYS_getdents64: c_long = 0x107b;
237pub const SYS_fcntl64: c_long = 0x107c;
238pub const SYS_reserved221: c_long = 0x107d;
239pub const SYS_gettid: c_long = 0x107e;
240pub const SYS_readahead: c_long = 0x107f;
241pub const SYS_setxattr: c_long = 0x1080;
242pub const SYS_lsetxattr: c_long = 0x1081;
243pub const SYS_fsetxattr: c_long = 0x1082;
244pub const SYS_getxattr: c_long = 0x1083;
245pub const SYS_lgetxattr: c_long = 0x1084;
246pub const SYS_fgetxattr: c_long = 0x1085;
247pub const SYS_listxattr: c_long = 0x1086;
248pub const SYS_llistxattr: c_long = 0x1087;
249pub const SYS_flistxattr: c_long = 0x1088;
250pub const SYS_removexattr: c_long = 0x1089;
251pub const SYS_lremovexattr: c_long = 0x108a;
252pub const SYS_fremovexattr: c_long = 0x108b;
253pub const SYS_tkill: c_long = 0x108c;
254pub const SYS_sendfile64: c_long = 0x108d;
255pub const SYS_futex: c_long = 0x108e;
256pub const SYS_sched_setaffinity: c_long = 0x108f;
257pub const SYS_sched_getaffinity: c_long = 0x1090;
258pub const SYS_io_setup: c_long = 0x1091;
259pub const SYS_io_destroy: c_long = 0x1092;
260pub const SYS_io_getevents: c_long = 0x1093;
261pub const SYS_io_submit: c_long = 0x1094;
262pub const SYS_io_cancel: c_long = 0x1095;
263pub const SYS_exit_group: c_long = 0x1096;
264pub const SYS_lookup_dcookie: c_long = 0x1097;
265pub const SYS_epoll_create: c_long = 0x1098;
266pub const SYS_epoll_ctl: c_long = 0x1099;
267pub const SYS_epoll_wait: c_long = 0x109a;
268pub const SYS_remap_file_pages: c_long = 0x109b;
269pub const SYS_set_tid_address: c_long = 0x109c;
270pub const SYS_restart_syscall: c_long = 0x109d;
271pub const SYS_fadvise64: c_long = 0x109e;
272pub const SYS_statfs64: c_long = 0x109f;
273pub const SYS_fstatfs64: c_long = 0x10a0;
274pub const SYS_timer_create: c_long = 0x10a1;
275pub const SYS_timer_settime32: c_long = 0x10a2;
276pub const SYS_timer_gettime32: c_long = 0x10a3;
277pub const SYS_timer_getoverrun: c_long = 0x10a4;
278pub const SYS_timer_delete: c_long = 0x10a5;
279pub const SYS_clock_settime32: c_long = 0x10a6;
280pub const SYS_clock_gettime32: c_long = 0x10a7;
281pub const SYS_clock_getres_time32: c_long = 0x10a8;
282pub const SYS_clock_nanosleep_time32: c_long = 0x10a9;
283pub const SYS_tgkill: c_long = 0x10aa;
284pub const SYS_utimes: c_long = 0x10ab;
285pub const SYS_mbind: c_long = 0x10ac;
286pub const SYS_get_mempolicy: c_long = 0x10ad;
287pub const SYS_set_mempolicy: c_long = 0x10ae;
288pub const SYS_mq_open: c_long = 0x10af;
289pub const SYS_mq_unlink: c_long = 0x10b0;
290pub const SYS_mq_timedsend: c_long = 0x10b1;
291pub const SYS_mq_timedreceive: c_long = 0x10b2;
292pub const SYS_mq_notify: c_long = 0x10b3;
293pub const SYS_mq_getsetattr: c_long = 0x10b4;
294pub const SYS_vserver: c_long = 0x10b5;
295pub const SYS_waitid: c_long = 0x10b6;
296pub const SYS_add_key: c_long = 0x10b8;
297pub const SYS_request_key: c_long = 0x10b9;
298pub const SYS_keyctl: c_long = 0x10ba;
299pub const SYS_set_thread_area: c_long = 0x10bb;
300pub const SYS_inotify_init: c_long = 0x10bc;
301pub const SYS_inotify_add_watch: c_long = 0x10bd;
302pub const SYS_inotify_rm_watch: c_long = 0x10be;
303pub const SYS_migrate_pages: c_long = 0x10bf;
304pub const SYS_openat: c_long = 0x10c0;
305pub const SYS_mkdirat: c_long = 0x10c1;
306pub const SYS_mknodat: c_long = 0x10c2;
307pub const SYS_fchownat: c_long = 0x10c3;
308pub const SYS_futimesat: c_long = 0x10c4;
309pub const SYS_fstatat64: c_long = 0x10c5;
310pub const SYS_unlinkat: c_long = 0x10c6;
311pub const SYS_renameat: c_long = 0x10c7;
312pub const SYS_linkat: c_long = 0x10c8;
313pub const SYS_symlinkat: c_long = 0x10c9;
314pub const SYS_readlinkat: c_long = 0x10ca;
315pub const SYS_fchmodat: c_long = 0x10cb;
316pub const SYS_faccessat: c_long = 0x10cc;
317pub const SYS_pselect6: c_long = 0x10cd;
318pub const SYS_ppoll: c_long = 0x10ce;
319pub const SYS_unshare: c_long = 0x10cf;
320pub const SYS_splice: c_long = 0x10d0;
321pub const SYS_sync_file_range: c_long = 0x10d1;
322pub const SYS_tee: c_long = 0x10d2;
323pub const SYS_vmsplice: c_long = 0x10d3;
324pub const SYS_move_pages: c_long = 0x10d4;
325pub const SYS_set_robust_list: c_long = 0x10d5;
326pub const SYS_get_robust_list: c_long = 0x10d6;
327pub const SYS_kexec_load: c_long = 0x10d7;
328pub const SYS_getcpu: c_long = 0x10d8;
329pub const SYS_epoll_pwait: c_long = 0x10d9;
330pub const SYS_ioprio_set: c_long = 0x10da;
331pub const SYS_ioprio_get: c_long = 0x10db;
332pub const SYS_utimensat: c_long = 0x10dc;
333pub const SYS_signalfd: c_long = 0x10dd;
334pub const SYS_timerfd: c_long = 0x10de;
335pub const SYS_eventfd: c_long = 0x10df;
336pub const SYS_fallocate: c_long = 0x10e0;
337pub const SYS_timerfd_create: c_long = 0x10e1;
338pub const SYS_timerfd_gettime32: c_long = 0x10e2;
339pub const SYS_timerfd_settime32: c_long = 0x10e3;
340pub const SYS_signalfd4: c_long = 0x10e4;
341pub const SYS_eventfd2: c_long = 0x10e5;
342pub const SYS_epoll_create1: c_long = 0x10e6;
343pub const SYS_dup3: c_long = 0x10e7;
344pub const SYS_pipe2: c_long = 0x10e8;
345pub const SYS_inotify_init1: c_long = 0x10e9;
346pub const SYS_preadv: c_long = 0x10ea;
347pub const SYS_pwritev: c_long = 0x10eb;
348pub const SYS_rt_tgsigqueueinfo: c_long = 0x10ec;
349pub const SYS_perf_event_open: c_long = 0x10ed;
350pub const SYS_accept4: c_long = 0x10ee;
351pub const SYS_recvmmsg: c_long = 0x10ef;
352pub const SYS_fanotify_init: c_long = 0x10f0;
353pub const SYS_fanotify_mark: c_long = 0x10f1;
354pub const SYS_prlimit64: c_long = 0x10f2;
355pub const SYS_name_to_handle_at: c_long = 0x10f3;
356pub const SYS_open_by_handle_at: c_long = 0x10f4;
357pub const SYS_clock_adjtime: c_long = 0x10f5;
358pub const SYS_syncfs: c_long = 0x10f6;
359pub const SYS_sendmmsg: c_long = 0x10f7;
360pub const SYS_setns: c_long = 0x10f8;
361pub const SYS_process_vm_readv: c_long = 0x10f9;
362pub const SYS_process_vm_writev: c_long = 0x10fa;
363pub const SYS_kcmp: c_long = 0x10fb;
364pub const SYS_finit_module: c_long = 0x10fc;
365pub const SYS_sched_setattr: c_long = 0x10fd;
366pub const SYS_sched_getattr: c_long = 0x10fe;
367pub const SYS_renameat2: c_long = 0x10ff;
368pub const SYS_seccomp: c_long = 0x1100;
369pub const SYS_getrandom: c_long = 0x1101;
370pub const SYS_memfd_create: c_long = 0x1102;
371pub const SYS_bpf: c_long = 0x1103;
372pub const SYS_execveat: c_long = 0x1104;
373pub const SYS_userfaultfd: c_long = 0x1105;
374pub const SYS_membarrier: c_long = 0x1106;
375pub const SYS_mlock2: c_long = 0x1107;
376pub const SYS_copy_file_range: c_long = 0x1108;
377pub const SYS_preadv2: c_long = 0x1109;
378pub const SYS_pwritev2: c_long = 0x110a;
379pub const SYS_pkey_mprotect: c_long = 0x110b;
380pub const SYS_pkey_alloc: c_long = 0x110c;
381pub const SYS_pkey_free: c_long = 0x110d;
382pub const SYS_statx: c_long = 0x110e;
383pub const SYS_rseq: c_long = 0x110f;
384pub const SYS_io_pgetevents: c_long = 0x1110;
385pub const SYS_semget: c_long = 0x1129;
386pub const SYS_semctl: c_long = 0x112a;
387pub const SYS_shmget: c_long = 0x112b;
388pub const SYS_shmctl: c_long = 0x112c;
389pub const SYS_shmat: c_long = 0x112d;
390pub const SYS_shmdt: c_long = 0x112e;
391pub const SYS_msgget: c_long = 0x112f;
392pub const SYS_msgsnd: c_long = 0x1130;
393pub const SYS_msgrcv: c_long = 0x1131;
394pub const SYS_msgctl: c_long = 0x1132;
395pub const SYS_clock_gettime64: c_long = 0x1133;
396pub const SYS_clock_settime64: c_long = 0x1134;
397pub const SYS_clock_adjtime64: c_long = 0x1135;
398pub const SYS_clock_getres_time64: c_long = 0x1136;
399pub const SYS_clock_nanosleep_time64: c_long = 0x1137;
400pub const SYS_timer_gettime64: c_long = 0x1138;
401pub const SYS_timer_settime64: c_long = 0x1139;
402pub const SYS_timerfd_gettime64: c_long = 0x113a;
403pub const SYS_timerfd_settime64: c_long = 0x113b;
404pub const SYS_utimensat_time64: c_long = 0x113c;
405pub const SYS_pselect6_time64: c_long = 0x113d;
406pub const SYS_ppoll_time64: c_long = 0x113e;
407pub const SYS_io_pgetevents_time64: c_long = 0x1140;
408pub const SYS_recvmmsg_time64: c_long = 0x1141;
409pub const SYS_mq_timedsend_time64: c_long = 0x1142;
410pub const SYS_mq_timedreceive_time64: c_long = 0x1143;
411pub const SYS_semtimedop_time64: c_long = 0x1144;
412pub const SYS_rt_sigtimedwait_time64: c_long = 0x1145;
413pub const SYS_futex_time64: c_long = 0x1146;
414pub const SYS_sched_rr_get_interval_time64: c_long = 0x1147;
415pub const SYS_pidfd_send_signal: c_long = 0x1148;
416pub const SYS_io_uring_setup: c_long = 0x1149;
417pub const SYS_io_uring_enter: c_long = 0x114a;
418pub const SYS_io_uring_register: c_long = 0x114b;
419pub const SYS_open_tree: c_long = 0x114c;
420pub const SYS_move_mount: c_long = 0x114d;
421pub const SYS_fsopen: c_long = 0x114e;
422pub const SYS_fsconfig: c_long = 0x114f;
423pub const SYS_fsmount: c_long = 0x1150;
424pub const SYS_fspick: c_long = 0x1151;
425pub const SYS_pidfd_open: c_long = 0x1152;
426pub const SYS_clone3: c_long = 0x1153;
427pub const SYS_close_range: c_long = 0x1154;
428pub const SYS_openat2: c_long = 0x1155;
429pub const SYS_pidfd_getfd: c_long = 0x1156;
430pub const SYS_faccessat2: c_long = 0x1157;
431pub const SYS_process_madvise: c_long = 0x1158;
432pub const SYS_epoll_pwait2: c_long = 0x1159;
433pub const SYS_mount_setattr: c_long = 0x115a;
434pub const SYS_quotactl_fd: c_long = 0x115b;
435pub const SYS_landlock_create_ruleset: c_long = 0x115c;
436pub const SYS_landlock_add_rule: c_long = 0x115d;
437pub const SYS_landlock_restrict_self: c_long = 0x115e;
438pub const SYS_process_mrelease: c_long = 0x1160;
439pub const SYS_futex_waitv: c_long = 0x1161;
440pub const SYS_set_mempolicy_home_node: c_long = 0x1162;
441pub const SYS_cachestat: c_long = 0x1163;
442pub const SYS_fchmodat2: c_long = 0x1164;
443pub const SYS_map_shadow_stack: c_long = 0x1165;
444pub const SYS_futex_wake: c_long = 0x1166;
445pub const SYS_futex_wait: c_long = 0x1167;
446pub const SYS_futex_requeue: c_long = 0x1168;
447pub const SYS_statmount: c_long = 0x1169;
448pub const SYS_listmount: c_long = 0x116a;
449pub const SYS_lsm_get_self_attr: c_long = 0x116b;
450pub const SYS_lsm_set_self_attr: c_long = 0x116c;
451pub const SYS_lsm_list_modules: c_long = 0x116d;
452pub const SYS_mseal: c_long = 0x116e;
453pub const SYS_setxattrat: c_long = 0x116f;
454pub const SYS_getxattrat: c_long = 0x1170;
455pub const SYS_listxattrat: c_long = 0x1171;
456pub const SYS_removexattrat: c_long = 0x1172;
457pub const SYS_open_tree_attr: c_long = 0x1173;
458pub const SYS_file_getattr: c_long = 0x1174;
459pub const SYS_file_setattr: c_long = 0x1175;
460pub const SYS_listns: c_long = 0x1176;
461
462/// Minimum valid system call number.
463pub(crate) const SYS_CALL_BASE_INDEX: c_long = 0xFA0;
464
465/// String table of system calls names.
466pub(crate) static SYS_CALL_NAME: &[&str] = &[
467    "syscall",
468    "exit",
469    "fork",
470    "read",
471    "write",
472    "open",
473    "close",
474    "waitpid",
475    "creat",
476    "link",
477    "unlink",
478    "execve",
479    "chdir",
480    "time",
481    "mknod",
482    "chmod",
483    "lchown",
484    "break",
485    "unused18",
486    "lseek",
487    "getpid",
488    "mount",
489    "umount",
490    "setuid",
491    "getuid",
492    "stime",
493    "ptrace",
494    "alarm",
495    "unused28",
496    "pause",
497    "utime",
498    "stty",
499    "gtty",
500    "access",
501    "nice",
502    "ftime",
503    "sync",
504    "kill",
505    "rename",
506    "mkdir",
507    "rmdir",
508    "dup",
509    "pipe",
510    "times",
511    "prof",
512    "brk",
513    "setgid",
514    "getgid",
515    "signal",
516    "geteuid",
517    "getegid",
518    "acct",
519    "umount2",
520    "lock",
521    "ioctl",
522    "fcntl",
523    "mpx",
524    "setpgid",
525    "ulimit",
526    "unused59",
527    "umask",
528    "chroot",
529    "ustat",
530    "dup2",
531    "getppid",
532    "getpgrp",
533    "setsid",
534    "sigaction",
535    "sgetmask",
536    "ssetmask",
537    "setreuid",
538    "setregid",
539    "sigsuspend",
540    "sigpending",
541    "sethostname",
542    "setrlimit",
543    "getrlimit",
544    "getrusage",
545    "gettimeofday_time32",
546    "settimeofday_time32",
547    "getgroups",
548    "setgroups",
549    "reserved82",
550    "symlink",
551    "unused84",
552    "readlink",
553    "uselib",
554    "swapon",
555    "reboot",
556    "readdir",
557    "mmap",
558    "munmap",
559    "truncate",
560    "ftruncate",
561    "fchmod",
562    "fchown",
563    "getpriority",
564    "setpriority",
565    "profil",
566    "statfs",
567    "fstatfs",
568    "ioperm",
569    "socketcall",
570    "syslog",
571    "setitimer",
572    "getitimer",
573    "stat",
574    "lstat",
575    "fstat",
576    "unused109",
577    "iopl",
578    "vhangup",
579    "idle",
580    "vm86",
581    "wait4",
582    "swapoff",
583    "sysinfo",
584    "ipc",
585    "fsync",
586    "sigreturn",
587    "clone",
588    "setdomainname",
589    "uname",
590    "modify_ldt",
591    "adjtimex",
592    "mprotect",
593    "sigprocmask",
594    "create_module",
595    "init_module",
596    "delete_module",
597    "get_kernel_syms",
598    "quotactl",
599    "getpgid",
600    "fchdir",
601    "bdflush",
602    "sysfs",
603    "personality",
604    "afs_syscall",
605    "setfsuid",
606    "setfsgid",
607    "_llseek",
608    "getdents",
609    "_newselect",
610    "flock",
611    "msync",
612    "readv",
613    "writev",
614    "cacheflush",
615    "cachectl",
616    "sysmips",
617    "unused150",
618    "getsid",
619    "fdatasync",
620    "_sysctl",
621    "mlock",
622    "munlock",
623    "mlockall",
624    "munlockall",
625    "sched_setparam",
626    "sched_getparam",
627    "sched_setscheduler",
628    "sched_getscheduler",
629    "sched_yield",
630    "sched_get_priority_max",
631    "sched_get_priority_min",
632    "sched_rr_get_interval",
633    "nanosleep",
634    "mremap",
635    "accept",
636    "bind",
637    "connect",
638    "getpeername",
639    "getsockname",
640    "getsockopt",
641    "listen",
642    "recv",
643    "recvfrom",
644    "recvmsg",
645    "send",
646    "sendmsg",
647    "sendto",
648    "setsockopt",
649    "shutdown",
650    "socket",
651    "socketpair",
652    "setresuid",
653    "getresuid",
654    "query_module",
655    "poll",
656    "nfsservctl",
657    "setresgid",
658    "getresgid",
659    "prctl",
660    "rt_sigreturn",
661    "rt_sigaction",
662    "rt_sigprocmask",
663    "rt_sigpending",
664    "rt_sigtimedwait",
665    "rt_sigqueueinfo",
666    "rt_sigsuspend",
667    "pread64",
668    "pwrite64",
669    "chown",
670    "getcwd",
671    "capget",
672    "capset",
673    "sigaltstack",
674    "sendfile",
675    "getpmsg",
676    "putpmsg",
677    "mmap2",
678    "truncate64",
679    "ftruncate64",
680    "stat64",
681    "lstat64",
682    "fstat64",
683    "pivot_root",
684    "mincore",
685    "madvise",
686    "getdents64",
687    "fcntl64",
688    "reserved221",
689    "gettid",
690    "readahead",
691    "setxattr",
692    "lsetxattr",
693    "fsetxattr",
694    "getxattr",
695    "lgetxattr",
696    "fgetxattr",
697    "listxattr",
698    "llistxattr",
699    "flistxattr",
700    "removexattr",
701    "lremovexattr",
702    "fremovexattr",
703    "tkill",
704    "sendfile64",
705    "futex",
706    "sched_setaffinity",
707    "sched_getaffinity",
708    "io_setup",
709    "io_destroy",
710    "io_getevents",
711    "io_submit",
712    "io_cancel",
713    "exit_group",
714    "lookup_dcookie",
715    "epoll_create",
716    "epoll_ctl",
717    "epoll_wait",
718    "remap_file_pages",
719    "set_tid_address",
720    "restart_syscall",
721    "fadvise64",
722    "statfs64",
723    "fstatfs64",
724    "timer_create",
725    "timer_settime32",
726    "timer_gettime32",
727    "timer_getoverrun",
728    "timer_delete",
729    "clock_settime32",
730    "clock_gettime32",
731    "clock_getres_time32",
732    "clock_nanosleep_time32",
733    "tgkill",
734    "utimes",
735    "mbind",
736    "get_mempolicy",
737    "set_mempolicy",
738    "mq_open",
739    "mq_unlink",
740    "mq_timedsend",
741    "mq_timedreceive",
742    "mq_notify",
743    "mq_getsetattr",
744    "vserver",
745    "waitid",
746    "",
747    "add_key",
748    "request_key",
749    "keyctl",
750    "set_thread_area",
751    "inotify_init",
752    "inotify_add_watch",
753    "inotify_rm_watch",
754    "migrate_pages",
755    "openat",
756    "mkdirat",
757    "mknodat",
758    "fchownat",
759    "futimesat",
760    "fstatat64",
761    "unlinkat",
762    "renameat",
763    "linkat",
764    "symlinkat",
765    "readlinkat",
766    "fchmodat",
767    "faccessat",
768    "pselect6",
769    "ppoll",
770    "unshare",
771    "splice",
772    "sync_file_range",
773    "tee",
774    "vmsplice",
775    "move_pages",
776    "set_robust_list",
777    "get_robust_list",
778    "kexec_load",
779    "getcpu",
780    "epoll_pwait",
781    "ioprio_set",
782    "ioprio_get",
783    "utimensat",
784    "signalfd",
785    "timerfd",
786    "eventfd",
787    "fallocate",
788    "timerfd_create",
789    "timerfd_gettime32",
790    "timerfd_settime32",
791    "signalfd4",
792    "eventfd2",
793    "epoll_create1",
794    "dup3",
795    "pipe2",
796    "inotify_init1",
797    "preadv",
798    "pwritev",
799    "rt_tgsigqueueinfo",
800    "perf_event_open",
801    "accept4",
802    "recvmmsg",
803    "fanotify_init",
804    "fanotify_mark",
805    "prlimit64",
806    "name_to_handle_at",
807    "open_by_handle_at",
808    "clock_adjtime",
809    "syncfs",
810    "sendmmsg",
811    "setns",
812    "process_vm_readv",
813    "process_vm_writev",
814    "kcmp",
815    "finit_module",
816    "sched_setattr",
817    "sched_getattr",
818    "renameat2",
819    "seccomp",
820    "getrandom",
821    "memfd_create",
822    "bpf",
823    "execveat",
824    "userfaultfd",
825    "membarrier",
826    "mlock2",
827    "copy_file_range",
828    "preadv2",
829    "pwritev2",
830    "pkey_mprotect",
831    "pkey_alloc",
832    "pkey_free",
833    "statx",
834    "rseq",
835    "io_pgetevents",
836    "",
837    "",
838    "",
839    "",
840    "",
841    "",
842    "",
843    "",
844    "",
845    "",
846    "",
847    "",
848    "",
849    "",
850    "",
851    "",
852    "",
853    "",
854    "",
855    "",
856    "",
857    "",
858    "",
859    "",
860    "semget",
861    "semctl",
862    "shmget",
863    "shmctl",
864    "shmat",
865    "shmdt",
866    "msgget",
867    "msgsnd",
868    "msgrcv",
869    "msgctl",
870    "clock_gettime64",
871    "clock_settime64",
872    "clock_adjtime64",
873    "clock_getres_time64",
874    "clock_nanosleep_time64",
875    "timer_gettime64",
876    "timer_settime64",
877    "timerfd_gettime64",
878    "timerfd_settime64",
879    "utimensat_time64",
880    "pselect6_time64",
881    "ppoll_time64",
882    "",
883    "io_pgetevents_time64",
884    "recvmmsg_time64",
885    "mq_timedsend_time64",
886    "mq_timedreceive_time64",
887    "semtimedop_time64",
888    "rt_sigtimedwait_time64",
889    "futex_time64",
890    "sched_rr_get_interval_time64",
891    "pidfd_send_signal",
892    "io_uring_setup",
893    "io_uring_enter",
894    "io_uring_register",
895    "open_tree",
896    "move_mount",
897    "fsopen",
898    "fsconfig",
899    "fsmount",
900    "fspick",
901    "pidfd_open",
902    "clone3",
903    "close_range",
904    "openat2",
905    "pidfd_getfd",
906    "faccessat2",
907    "process_madvise",
908    "epoll_pwait2",
909    "mount_setattr",
910    "quotactl_fd",
911    "landlock_create_ruleset",
912    "landlock_add_rule",
913    "landlock_restrict_self",
914    "",
915    "process_mrelease",
916    "futex_waitv",
917    "set_mempolicy_home_node",
918    "cachestat",
919    "fchmodat2",
920    "map_shadow_stack",
921    "futex_wake",
922    "futex_wait",
923    "futex_requeue",
924    "statmount",
925    "listmount",
926    "lsm_get_self_attr",
927    "lsm_set_self_attr",
928    "lsm_list_modules",
929    "mseal",
930    "setxattrat",
931    "getxattrat",
932    "listxattrat",
933    "removexattrat",
934    "open_tree_attr",
935    "file_getattr",
936    "file_setattr",
937    "listns",
938];