Skip to main content

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