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