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