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