#![allow(non_upper_case_globals)]

use core::ffi::c_long;

/// Returns `true` if `number` is a valid system call number.
#[must_use]
pub fn is_valid_sys_call_number(number: c_long) -> bool {
    crate::is_valid_sys_call_number(SYS_CALL_NAME, SYS_CALL_BASE_INDEX, number)
}

/// Returns the name of a system call, given its number.
#[must_use]
pub fn sys_call_name(number: c_long) -> Option<&'static str> {
    crate::sys_call_name(SYS_CALL_NAME, SYS_CALL_BASE_INDEX, number)
}

pub const SYS_read: c_long = 0x4000_0000;
pub const SYS_write: c_long = 0x4000_0001;
pub const SYS_open: c_long = 0x4000_0002;
pub const SYS_close: c_long = 0x4000_0003;
pub const SYS_stat: c_long = 0x4000_0004;
pub const SYS_fstat: c_long = 0x4000_0005;
pub const SYS_lstat: c_long = 0x4000_0006;
pub const SYS_poll: c_long = 0x4000_0007;
pub const SYS_lseek: c_long = 0x4000_0008;
pub const SYS_mmap: c_long = 0x4000_0009;
pub const SYS_mprotect: c_long = 0x4000_000a;
pub const SYS_munmap: c_long = 0x4000_000b;
pub const SYS_brk: c_long = 0x4000_000c;
pub const SYS_rt_sigprocmask: c_long = 0x4000_000e;
pub const SYS_pread64: c_long = 0x4000_0011;
pub const SYS_pwrite64: c_long = 0x4000_0012;
pub const SYS_access: c_long = 0x4000_0015;
pub const SYS_pipe: c_long = 0x4000_0016;
pub const SYS_select: c_long = 0x4000_0017;
pub const SYS_sched_yield: c_long = 0x4000_0018;
pub const SYS_mremap: c_long = 0x4000_0019;
pub const SYS_msync: c_long = 0x4000_001a;
pub const SYS_mincore: c_long = 0x4000_001b;
pub const SYS_madvise: c_long = 0x4000_001c;
pub const SYS_shmget: c_long = 0x4000_001d;
pub const SYS_shmat: c_long = 0x4000_001e;
pub const SYS_shmctl: c_long = 0x4000_001f;
pub const SYS_dup: c_long = 0x4000_0020;
pub const SYS_dup2: c_long = 0x4000_0021;
pub const SYS_pause: c_long = 0x4000_0022;
pub const SYS_nanosleep: c_long = 0x4000_0023;
pub const SYS_getitimer: c_long = 0x4000_0024;
pub const SYS_alarm: c_long = 0x4000_0025;
pub const SYS_setitimer: c_long = 0x4000_0026;
pub const SYS_getpid: c_long = 0x4000_0027;
pub const SYS_sendfile: c_long = 0x4000_0028;
pub const SYS_socket: c_long = 0x4000_0029;
pub const SYS_connect: c_long = 0x4000_002a;
pub const SYS_accept: c_long = 0x4000_002b;
pub const SYS_sendto: c_long = 0x4000_002c;
pub const SYS_shutdown: c_long = 0x4000_0030;
pub const SYS_bind: c_long = 0x4000_0031;
pub const SYS_listen: c_long = 0x4000_0032;
pub const SYS_getsockname: c_long = 0x4000_0033;
pub const SYS_getpeername: c_long = 0x4000_0034;
pub const SYS_socketpair: c_long = 0x4000_0035;
pub const SYS_clone: c_long = 0x4000_0038;
pub const SYS_fork: c_long = 0x4000_0039;
pub const SYS_vfork: c_long = 0x4000_003a;
pub const SYS_exit: c_long = 0x4000_003c;
pub const SYS_wait4: c_long = 0x4000_003d;
pub const SYS_kill: c_long = 0x4000_003e;
pub const SYS_uname: c_long = 0x4000_003f;
pub const SYS_semget: c_long = 0x4000_0040;
pub const SYS_semop: c_long = 0x4000_0041;
pub const SYS_semctl: c_long = 0x4000_0042;
pub const SYS_shmdt: c_long = 0x4000_0043;
pub const SYS_msgget: c_long = 0x4000_0044;
pub const SYS_msgsnd: c_long = 0x4000_0045;
pub const SYS_msgrcv: c_long = 0x4000_0046;
pub const SYS_msgctl: c_long = 0x4000_0047;
pub const SYS_fcntl: c_long = 0x4000_0048;
pub const SYS_flock: c_long = 0x4000_0049;
pub const SYS_fsync: c_long = 0x4000_004a;
pub const SYS_fdatasync: c_long = 0x4000_004b;
pub const SYS_truncate: c_long = 0x4000_004c;
pub const SYS_ftruncate: c_long = 0x4000_004d;
pub const SYS_getdents: c_long = 0x4000_004e;
pub const SYS_getcwd: c_long = 0x4000_004f;
pub const SYS_chdir: c_long = 0x4000_0050;
pub const SYS_fchdir: c_long = 0x4000_0051;
pub const SYS_rename: c_long = 0x4000_0052;
pub const SYS_mkdir: c_long = 0x4000_0053;
pub const SYS_rmdir: c_long = 0x4000_0054;
pub const SYS_creat: c_long = 0x4000_0055;
pub const SYS_link: c_long = 0x4000_0056;
pub const SYS_unlink: c_long = 0x4000_0057;
pub const SYS_symlink: c_long = 0x4000_0058;
pub const SYS_readlink: c_long = 0x4000_0059;
pub const SYS_chmod: c_long = 0x4000_005a;
pub const SYS_fchmod: c_long = 0x4000_005b;
pub const SYS_chown: c_long = 0x4000_005c;
pub const SYS_fchown: c_long = 0x4000_005d;
pub const SYS_lchown: c_long = 0x4000_005e;
pub const SYS_umask: c_long = 0x4000_005f;
pub const SYS_gettimeofday: c_long = 0x4000_0060;
pub const SYS_getrlimit: c_long = 0x4000_0061;
pub const SYS_getrusage: c_long = 0x4000_0062;
pub const SYS_sysinfo: c_long = 0x4000_0063;
pub const SYS_times: c_long = 0x4000_0064;
pub const SYS_getuid: c_long = 0x4000_0066;
pub const SYS_syslog: c_long = 0x4000_0067;
pub const SYS_getgid: c_long = 0x4000_0068;
pub const SYS_setuid: c_long = 0x4000_0069;
pub const SYS_setgid: c_long = 0x4000_006a;
pub const SYS_geteuid: c_long = 0x4000_006b;
pub const SYS_getegid: c_long = 0x4000_006c;
pub const SYS_setpgid: c_long = 0x4000_006d;
pub const SYS_getppid: c_long = 0x4000_006e;
pub const SYS_getpgrp: c_long = 0x4000_006f;
pub const SYS_setsid: c_long = 0x4000_0070;
pub const SYS_setreuid: c_long = 0x4000_0071;
pub const SYS_setregid: c_long = 0x4000_0072;
pub const SYS_getgroups: c_long = 0x4000_0073;
pub const SYS_setgroups: c_long = 0x4000_0074;
pub const SYS_setresuid: c_long = 0x4000_0075;
pub const SYS_getresuid: c_long = 0x4000_0076;
pub const SYS_setresgid: c_long = 0x4000_0077;
pub const SYS_getresgid: c_long = 0x4000_0078;
pub const SYS_getpgid: c_long = 0x4000_0079;
pub const SYS_setfsuid: c_long = 0x4000_007a;
pub const SYS_setfsgid: c_long = 0x4000_007b;
pub const SYS_getsid: c_long = 0x4000_007c;
pub const SYS_capget: c_long = 0x4000_007d;
pub const SYS_capset: c_long = 0x4000_007e;
pub const SYS_rt_sigsuspend: c_long = 0x4000_0082;
pub const SYS_utime: c_long = 0x4000_0084;
pub const SYS_mknod: c_long = 0x4000_0085;
pub const SYS_personality: c_long = 0x4000_0087;
pub const SYS_ustat: c_long = 0x4000_0088;
pub const SYS_statfs: c_long = 0x4000_0089;
pub const SYS_fstatfs: c_long = 0x4000_008a;
pub const SYS_sysfs: c_long = 0x4000_008b;
pub const SYS_getpriority: c_long = 0x4000_008c;
pub const SYS_setpriority: c_long = 0x4000_008d;
pub const SYS_sched_setparam: c_long = 0x4000_008e;
pub const SYS_sched_getparam: c_long = 0x4000_008f;
pub const SYS_sched_setscheduler: c_long = 0x4000_0090;
pub const SYS_sched_getscheduler: c_long = 0x4000_0091;
pub const SYS_sched_get_priority_max: c_long = 0x4000_0092;
pub const SYS_sched_get_priority_min: c_long = 0x4000_0093;
pub const SYS_sched_rr_get_interval: c_long = 0x4000_0094;
pub const SYS_mlock: c_long = 0x4000_0095;
pub const SYS_munlock: c_long = 0x4000_0096;
pub const SYS_mlockall: c_long = 0x4000_0097;
pub const SYS_munlockall: c_long = 0x4000_0098;
pub const SYS_vhangup: c_long = 0x4000_0099;
pub const SYS_modify_ldt: c_long = 0x4000_009a;
pub const SYS_pivot_root: c_long = 0x4000_009b;
pub const SYS_prctl: c_long = 0x4000_009d;
pub const SYS_arch_prctl: c_long = 0x4000_009e;
pub const SYS_adjtimex: c_long = 0x4000_009f;
pub const SYS_setrlimit: c_long = 0x4000_00a0;
pub const SYS_chroot: c_long = 0x4000_00a1;
pub const SYS_sync: c_long = 0x4000_00a2;
pub const SYS_acct: c_long = 0x4000_00a3;
pub const SYS_settimeofday: c_long = 0x4000_00a4;
pub const SYS_mount: c_long = 0x4000_00a5;
pub const SYS_umount2: c_long = 0x4000_00a6;
pub const SYS_swapon: c_long = 0x4000_00a7;
pub const SYS_swapoff: c_long = 0x4000_00a8;
pub const SYS_reboot: c_long = 0x4000_00a9;
pub const SYS_sethostname: c_long = 0x4000_00aa;
pub const SYS_setdomainname: c_long = 0x4000_00ab;
pub const SYS_iopl: c_long = 0x4000_00ac;
pub const SYS_ioperm: c_long = 0x4000_00ad;
pub const SYS_init_module: c_long = 0x4000_00af;
pub const SYS_delete_module: c_long = 0x4000_00b0;
pub const SYS_quotactl: c_long = 0x4000_00b3;
pub const SYS_getpmsg: c_long = 0x4000_00b5;
pub const SYS_putpmsg: c_long = 0x4000_00b6;
pub const SYS_afs_syscall: c_long = 0x4000_00b7;
pub const SYS_tuxcall: c_long = 0x4000_00b8;
pub const SYS_security: c_long = 0x4000_00b9;
pub const SYS_gettid: c_long = 0x4000_00ba;
pub const SYS_readahead: c_long = 0x4000_00bb;
pub const SYS_setxattr: c_long = 0x4000_00bc;
pub const SYS_lsetxattr: c_long = 0x4000_00bd;
pub const SYS_fsetxattr: c_long = 0x4000_00be;
pub const SYS_getxattr: c_long = 0x4000_00bf;
pub const SYS_lgetxattr: c_long = 0x4000_00c0;
pub const SYS_fgetxattr: c_long = 0x4000_00c1;
pub const SYS_listxattr: c_long = 0x4000_00c2;
pub const SYS_llistxattr: c_long = 0x4000_00c3;
pub const SYS_flistxattr: c_long = 0x4000_00c4;
pub const SYS_removexattr: c_long = 0x4000_00c5;
pub const SYS_lremovexattr: c_long = 0x4000_00c6;
pub const SYS_fremovexattr: c_long = 0x4000_00c7;
pub const SYS_tkill: c_long = 0x4000_00c8;
pub const SYS_time: c_long = 0x4000_00c9;
pub const SYS_futex: c_long = 0x4000_00ca;
pub const SYS_sched_setaffinity: c_long = 0x4000_00cb;
pub const SYS_sched_getaffinity: c_long = 0x4000_00cc;
pub const SYS_io_destroy: c_long = 0x4000_00cf;
pub const SYS_io_getevents: c_long = 0x4000_00d0;
pub const SYS_io_cancel: c_long = 0x4000_00d2;
pub const SYS_lookup_dcookie: c_long = 0x4000_00d4;
pub const SYS_epoll_create: c_long = 0x4000_00d5;
pub const SYS_remap_file_pages: c_long = 0x4000_00d8;
pub const SYS_getdents64: c_long = 0x4000_00d9;
pub const SYS_set_tid_address: c_long = 0x4000_00da;
pub const SYS_restart_syscall: c_long = 0x4000_00db;
pub const SYS_semtimedop: c_long = 0x4000_00dc;
pub const SYS_fadvise64: c_long = 0x4000_00dd;
pub const SYS_timer_settime: c_long = 0x4000_00df;
pub const SYS_timer_gettime: c_long = 0x4000_00e0;
pub const SYS_timer_getoverrun: c_long = 0x4000_00e1;
pub const SYS_timer_delete: c_long = 0x4000_00e2;
pub const SYS_clock_settime: c_long = 0x4000_00e3;
pub const SYS_clock_gettime: c_long = 0x4000_00e4;
pub const SYS_clock_getres: c_long = 0x4000_00e5;
pub const SYS_clock_nanosleep: c_long = 0x4000_00e6;
pub const SYS_exit_group: c_long = 0x4000_00e7;
pub const SYS_epoll_wait: c_long = 0x4000_00e8;
pub const SYS_epoll_ctl: c_long = 0x4000_00e9;
pub const SYS_tgkill: c_long = 0x4000_00ea;
pub const SYS_utimes: c_long = 0x4000_00eb;
pub const SYS_mbind: c_long = 0x4000_00ed;
pub const SYS_set_mempolicy: c_long = 0x4000_00ee;
pub const SYS_get_mempolicy: c_long = 0x4000_00ef;
pub const SYS_mq_open: c_long = 0x4000_00f0;
pub const SYS_mq_unlink: c_long = 0x4000_00f1;
pub const SYS_mq_timedsend: c_long = 0x4000_00f2;
pub const SYS_mq_timedreceive: c_long = 0x4000_00f3;
pub const SYS_mq_getsetattr: c_long = 0x4000_00f5;
pub const SYS_add_key: c_long = 0x4000_00f8;
pub const SYS_request_key: c_long = 0x4000_00f9;
pub const SYS_keyctl: c_long = 0x4000_00fa;
pub const SYS_ioprio_set: c_long = 0x4000_00fb;
pub const SYS_ioprio_get: c_long = 0x4000_00fc;
pub const SYS_inotify_init: c_long = 0x4000_00fd;
pub const SYS_inotify_add_watch: c_long = 0x4000_00fe;
pub const SYS_inotify_rm_watch: c_long = 0x4000_00ff;
pub const SYS_migrate_pages: c_long = 0x4000_0100;
pub const SYS_openat: c_long = 0x4000_0101;
pub const SYS_mkdirat: c_long = 0x4000_0102;
pub const SYS_mknodat: c_long = 0x4000_0103;
pub const SYS_fchownat: c_long = 0x4000_0104;
pub const SYS_futimesat: c_long = 0x4000_0105;
pub const SYS_newfstatat: c_long = 0x4000_0106;
pub const SYS_unlinkat: c_long = 0x4000_0107;
pub const SYS_renameat: c_long = 0x4000_0108;
pub const SYS_linkat: c_long = 0x4000_0109;
pub const SYS_symlinkat: c_long = 0x4000_010a;
pub const SYS_readlinkat: c_long = 0x4000_010b;
pub const SYS_fchmodat: c_long = 0x4000_010c;
pub const SYS_faccessat: c_long = 0x4000_010d;
pub const SYS_pselect6: c_long = 0x4000_010e;
pub const SYS_ppoll: c_long = 0x4000_010f;
pub const SYS_unshare: c_long = 0x4000_0110;
pub const SYS_splice: c_long = 0x4000_0113;
pub const SYS_tee: c_long = 0x4000_0114;
pub const SYS_sync_file_range: c_long = 0x4000_0115;
pub const SYS_utimensat: c_long = 0x4000_0118;
pub const SYS_epoll_pwait: c_long = 0x4000_0119;
pub const SYS_signalfd: c_long = 0x4000_011a;
pub const SYS_timerfd_create: c_long = 0x4000_011b;
pub const SYS_eventfd: c_long = 0x4000_011c;
pub const SYS_fallocate: c_long = 0x4000_011d;
pub const SYS_timerfd_settime: c_long = 0x4000_011e;
pub const SYS_timerfd_gettime: c_long = 0x4000_011f;
pub const SYS_accept4: c_long = 0x4000_0120;
pub const SYS_signalfd4: c_long = 0x4000_0121;
pub const SYS_eventfd2: c_long = 0x4000_0122;
pub const SYS_epoll_create1: c_long = 0x4000_0123;
pub const SYS_dup3: c_long = 0x4000_0124;
pub const SYS_pipe2: c_long = 0x4000_0125;
pub const SYS_inotify_init1: c_long = 0x4000_0126;
pub const SYS_perf_event_open: c_long = 0x4000_012a;
pub const SYS_fanotify_init: c_long = 0x4000_012c;
pub const SYS_fanotify_mark: c_long = 0x4000_012d;
pub const SYS_prlimit64: c_long = 0x4000_012e;
pub const SYS_name_to_handle_at: c_long = 0x4000_012f;
pub const SYS_open_by_handle_at: c_long = 0x4000_0130;
pub const SYS_clock_adjtime: c_long = 0x4000_0131;
pub const SYS_syncfs: c_long = 0x4000_0132;
pub const SYS_setns: c_long = 0x4000_0134;
pub const SYS_getcpu: c_long = 0x4000_0135;
pub const SYS_kcmp: c_long = 0x4000_0138;
pub const SYS_finit_module: c_long = 0x4000_0139;
pub const SYS_sched_setattr: c_long = 0x4000_013a;
pub const SYS_sched_getattr: c_long = 0x4000_013b;
pub const SYS_renameat2: c_long = 0x4000_013c;
pub const SYS_seccomp: c_long = 0x4000_013d;
pub const SYS_getrandom: c_long = 0x4000_013e;
pub const SYS_memfd_create: c_long = 0x4000_013f;
pub const SYS_kexec_file_load: c_long = 0x4000_0140;
pub const SYS_bpf: c_long = 0x4000_0141;
pub const SYS_userfaultfd: c_long = 0x4000_0143;
pub const SYS_membarrier: c_long = 0x4000_0144;
pub const SYS_mlock2: c_long = 0x4000_0145;
pub const SYS_copy_file_range: c_long = 0x4000_0146;
pub const SYS_pkey_mprotect: c_long = 0x4000_0149;
pub const SYS_pkey_alloc: c_long = 0x4000_014a;
pub const SYS_pkey_free: c_long = 0x4000_014b;
pub const SYS_statx: c_long = 0x4000_014c;
pub const SYS_io_pgetevents: c_long = 0x4000_014d;
pub const SYS_rseq: c_long = 0x4000_014e;
pub const SYS_uretprobe: c_long = 0x4000_014f;
pub const SYS_uprobe: c_long = 0x4000_0150;
pub const SYS_pidfd_send_signal: c_long = 0x4000_01a8;
pub const SYS_io_uring_setup: c_long = 0x4000_01a9;
pub const SYS_io_uring_enter: c_long = 0x4000_01aa;
pub const SYS_io_uring_register: c_long = 0x4000_01ab;
pub const SYS_open_tree: c_long = 0x4000_01ac;
pub const SYS_move_mount: c_long = 0x4000_01ad;
pub const SYS_fsopen: c_long = 0x4000_01ae;
pub const SYS_fsconfig: c_long = 0x4000_01af;
pub const SYS_fsmount: c_long = 0x4000_01b0;
pub const SYS_fspick: c_long = 0x4000_01b1;
pub const SYS_pidfd_open: c_long = 0x4000_01b2;
pub const SYS_clone3: c_long = 0x4000_01b3;
pub const SYS_close_range: c_long = 0x4000_01b4;
pub const SYS_openat2: c_long = 0x4000_01b5;
pub const SYS_pidfd_getfd: c_long = 0x4000_01b6;
pub const SYS_faccessat2: c_long = 0x4000_01b7;
pub const SYS_process_madvise: c_long = 0x4000_01b8;
pub const SYS_epoll_pwait2: c_long = 0x4000_01b9;
pub const SYS_mount_setattr: c_long = 0x4000_01ba;
pub const SYS_quotactl_fd: c_long = 0x4000_01bb;
pub const SYS_landlock_create_ruleset: c_long = 0x4000_01bc;
pub const SYS_landlock_add_rule: c_long = 0x4000_01bd;
pub const SYS_landlock_restrict_self: c_long = 0x4000_01be;
pub const SYS_memfd_secret: c_long = 0x4000_01bf;
pub const SYS_process_mrelease: c_long = 0x4000_01c0;
pub const SYS_futex_waitv: c_long = 0x4000_01c1;
pub const SYS_set_mempolicy_home_node: c_long = 0x4000_01c2;
pub const SYS_cachestat: c_long = 0x4000_01c3;
pub const SYS_fchmodat2: c_long = 0x4000_01c4;
pub const SYS_map_shadow_stack: c_long = 0x4000_01c5;
pub const SYS_futex_wake: c_long = 0x4000_01c6;
pub const SYS_futex_wait: c_long = 0x4000_01c7;
pub const SYS_futex_requeue: c_long = 0x4000_01c8;
pub const SYS_statmount: c_long = 0x4000_01c9;
pub const SYS_listmount: c_long = 0x4000_01ca;
pub const SYS_lsm_get_self_attr: c_long = 0x4000_01cb;
pub const SYS_lsm_set_self_attr: c_long = 0x4000_01cc;
pub const SYS_lsm_list_modules: c_long = 0x4000_01cd;
pub const SYS_mseal: c_long = 0x4000_01ce;
pub const SYS_setxattrat: c_long = 0x4000_01cf;
pub const SYS_getxattrat: c_long = 0x4000_01d0;
pub const SYS_listxattrat: c_long = 0x4000_01d1;
pub const SYS_removexattrat: c_long = 0x4000_01d2;
pub const SYS_open_tree_attr: c_long = 0x4000_01d3;
pub const SYS_file_getattr: c_long = 0x4000_01d4;
pub const SYS_file_setattr: c_long = 0x4000_01d5;
pub const SYS_listns: c_long = 0x4000_01d6;
pub const SYS_rt_sigaction: c_long = 0x4000_0200;
pub const SYS_rt_sigreturn: c_long = 0x4000_0201;
pub const SYS_ioctl: c_long = 0x4000_0202;
pub const SYS_readv: c_long = 0x4000_0203;
pub const SYS_writev: c_long = 0x4000_0204;
pub const SYS_recvfrom: c_long = 0x4000_0205;
pub const SYS_sendmsg: c_long = 0x4000_0206;
pub const SYS_recvmsg: c_long = 0x4000_0207;
pub const SYS_execve: c_long = 0x4000_0208;
pub const SYS_ptrace: c_long = 0x4000_0209;
pub const SYS_rt_sigpending: c_long = 0x4000_020a;
pub const SYS_rt_sigtimedwait: c_long = 0x4000_020b;
pub const SYS_rt_sigqueueinfo: c_long = 0x4000_020c;
pub const SYS_sigaltstack: c_long = 0x4000_020d;
pub const SYS_timer_create: c_long = 0x4000_020e;
pub const SYS_mq_notify: c_long = 0x4000_020f;
pub const SYS_kexec_load: c_long = 0x4000_0210;
pub const SYS_waitid: c_long = 0x4000_0211;
pub const SYS_set_robust_list: c_long = 0x4000_0212;
pub const SYS_get_robust_list: c_long = 0x4000_0213;
pub const SYS_vmsplice: c_long = 0x4000_0214;
pub const SYS_move_pages: c_long = 0x4000_0215;
pub const SYS_preadv: c_long = 0x4000_0216;
pub const SYS_pwritev: c_long = 0x4000_0217;
pub const SYS_rt_tgsigqueueinfo: c_long = 0x4000_0218;
pub const SYS_recvmmsg: c_long = 0x4000_0219;
pub const SYS_sendmmsg: c_long = 0x4000_021a;
pub const SYS_process_vm_readv: c_long = 0x4000_021b;
pub const SYS_process_vm_writev: c_long = 0x4000_021c;
pub const SYS_setsockopt: c_long = 0x4000_021d;
pub const SYS_getsockopt: c_long = 0x4000_021e;
pub const SYS_io_setup: c_long = 0x4000_021f;
pub const SYS_io_submit: c_long = 0x4000_0220;
pub const SYS_execveat: c_long = 0x4000_0221;
pub const SYS_preadv2: c_long = 0x4000_0222;
pub const SYS_pwritev2: c_long = 0x4000_0223;

/// Minimum valid system call number.
pub(crate) const SYS_CALL_BASE_INDEX: c_long = 0x4000_0000;

/// String table of system calls names.
pub(crate) static SYS_CALL_NAME: &[&str] = &[
    "read",
    "write",
    "open",
    "close",
    "stat",
    "fstat",
    "lstat",
    "poll",
    "lseek",
    "mmap",
    "mprotect",
    "munmap",
    "brk",
    "",
    "rt_sigprocmask",
    "",
    "",
    "pread64",
    "pwrite64",
    "",
    "",
    "access",
    "pipe",
    "select",
    "sched_yield",
    "mremap",
    "msync",
    "mincore",
    "madvise",
    "shmget",
    "shmat",
    "shmctl",
    "dup",
    "dup2",
    "pause",
    "nanosleep",
    "getitimer",
    "alarm",
    "setitimer",
    "getpid",
    "sendfile",
    "socket",
    "connect",
    "accept",
    "sendto",
    "",
    "",
    "",
    "shutdown",
    "bind",
    "listen",
    "getsockname",
    "getpeername",
    "socketpair",
    "",
    "",
    "clone",
    "fork",
    "vfork",
    "",
    "exit",
    "wait4",
    "kill",
    "uname",
    "semget",
    "semop",
    "semctl",
    "shmdt",
    "msgget",
    "msgsnd",
    "msgrcv",
    "msgctl",
    "fcntl",
    "flock",
    "fsync",
    "fdatasync",
    "truncate",
    "ftruncate",
    "getdents",
    "getcwd",
    "chdir",
    "fchdir",
    "rename",
    "mkdir",
    "rmdir",
    "creat",
    "link",
    "unlink",
    "symlink",
    "readlink",
    "chmod",
    "fchmod",
    "chown",
    "fchown",
    "lchown",
    "umask",
    "gettimeofday",
    "getrlimit",
    "getrusage",
    "sysinfo",
    "times",
    "",
    "getuid",
    "syslog",
    "getgid",
    "setuid",
    "setgid",
    "geteuid",
    "getegid",
    "setpgid",
    "getppid",
    "getpgrp",
    "setsid",
    "setreuid",
    "setregid",
    "getgroups",
    "setgroups",
    "setresuid",
    "getresuid",
    "setresgid",
    "getresgid",
    "getpgid",
    "setfsuid",
    "setfsgid",
    "getsid",
    "capget",
    "capset",
    "",
    "",
    "",
    "rt_sigsuspend",
    "",
    "utime",
    "mknod",
    "",
    "personality",
    "ustat",
    "statfs",
    "fstatfs",
    "sysfs",
    "getpriority",
    "setpriority",
    "sched_setparam",
    "sched_getparam",
    "sched_setscheduler",
    "sched_getscheduler",
    "sched_get_priority_max",
    "sched_get_priority_min",
    "sched_rr_get_interval",
    "mlock",
    "munlock",
    "mlockall",
    "munlockall",
    "vhangup",
    "modify_ldt",
    "pivot_root",
    "",
    "prctl",
    "arch_prctl",
    "adjtimex",
    "setrlimit",
    "chroot",
    "sync",
    "acct",
    "settimeofday",
    "mount",
    "umount2",
    "swapon",
    "swapoff",
    "reboot",
    "sethostname",
    "setdomainname",
    "iopl",
    "ioperm",
    "",
    "init_module",
    "delete_module",
    "",
    "",
    "quotactl",
    "",
    "getpmsg",
    "putpmsg",
    "afs_syscall",
    "tuxcall",
    "security",
    "gettid",
    "readahead",
    "setxattr",
    "lsetxattr",
    "fsetxattr",
    "getxattr",
    "lgetxattr",
    "fgetxattr",
    "listxattr",
    "llistxattr",
    "flistxattr",
    "removexattr",
    "lremovexattr",
    "fremovexattr",
    "tkill",
    "time",
    "futex",
    "sched_setaffinity",
    "sched_getaffinity",
    "",
    "",
    "io_destroy",
    "io_getevents",
    "",
    "io_cancel",
    "",
    "lookup_dcookie",
    "epoll_create",
    "",
    "",
    "remap_file_pages",
    "getdents64",
    "set_tid_address",
    "restart_syscall",
    "semtimedop",
    "fadvise64",
    "",
    "timer_settime",
    "timer_gettime",
    "timer_getoverrun",
    "timer_delete",
    "clock_settime",
    "clock_gettime",
    "clock_getres",
    "clock_nanosleep",
    "exit_group",
    "epoll_wait",
    "epoll_ctl",
    "tgkill",
    "utimes",
    "",
    "mbind",
    "set_mempolicy",
    "get_mempolicy",
    "mq_open",
    "mq_unlink",
    "mq_timedsend",
    "mq_timedreceive",
    "",
    "mq_getsetattr",
    "",
    "",
    "add_key",
    "request_key",
    "keyctl",
    "ioprio_set",
    "ioprio_get",
    "inotify_init",
    "inotify_add_watch",
    "inotify_rm_watch",
    "migrate_pages",
    "openat",
    "mkdirat",
    "mknodat",
    "fchownat",
    "futimesat",
    "newfstatat",
    "unlinkat",
    "renameat",
    "linkat",
    "symlinkat",
    "readlinkat",
    "fchmodat",
    "faccessat",
    "pselect6",
    "ppoll",
    "unshare",
    "",
    "",
    "splice",
    "tee",
    "sync_file_range",
    "",
    "",
    "utimensat",
    "epoll_pwait",
    "signalfd",
    "timerfd_create",
    "eventfd",
    "fallocate",
    "timerfd_settime",
    "timerfd_gettime",
    "accept4",
    "signalfd4",
    "eventfd2",
    "epoll_create1",
    "dup3",
    "pipe2",
    "inotify_init1",
    "",
    "",
    "",
    "perf_event_open",
    "",
    "fanotify_init",
    "fanotify_mark",
    "prlimit64",
    "name_to_handle_at",
    "open_by_handle_at",
    "clock_adjtime",
    "syncfs",
    "",
    "setns",
    "getcpu",
    "",
    "",
    "kcmp",
    "finit_module",
    "sched_setattr",
    "sched_getattr",
    "renameat2",
    "seccomp",
    "getrandom",
    "memfd_create",
    "kexec_file_load",
    "bpf",
    "",
    "userfaultfd",
    "membarrier",
    "mlock2",
    "copy_file_range",
    "",
    "",
    "pkey_mprotect",
    "pkey_alloc",
    "pkey_free",
    "statx",
    "io_pgetevents",
    "rseq",
    "uretprobe",
    "uprobe",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "pidfd_send_signal",
    "io_uring_setup",
    "io_uring_enter",
    "io_uring_register",
    "open_tree",
    "move_mount",
    "fsopen",
    "fsconfig",
    "fsmount",
    "fspick",
    "pidfd_open",
    "clone3",
    "close_range",
    "openat2",
    "pidfd_getfd",
    "faccessat2",
    "process_madvise",
    "epoll_pwait2",
    "mount_setattr",
    "quotactl_fd",
    "landlock_create_ruleset",
    "landlock_add_rule",
    "landlock_restrict_self",
    "memfd_secret",
    "process_mrelease",
    "futex_waitv",
    "set_mempolicy_home_node",
    "cachestat",
    "fchmodat2",
    "map_shadow_stack",
    "futex_wake",
    "futex_wait",
    "futex_requeue",
    "statmount",
    "listmount",
    "lsm_get_self_attr",
    "lsm_set_self_attr",
    "lsm_list_modules",
    "mseal",
    "setxattrat",
    "getxattrat",
    "listxattrat",
    "removexattrat",
    "open_tree_attr",
    "file_getattr",
    "file_setattr",
    "listns",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "rt_sigaction",
    "rt_sigreturn",
    "ioctl",
    "readv",
    "writev",
    "recvfrom",
    "sendmsg",
    "recvmsg",
    "execve",
    "ptrace",
    "rt_sigpending",
    "rt_sigtimedwait",
    "rt_sigqueueinfo",
    "sigaltstack",
    "timer_create",
    "mq_notify",
    "kexec_load",
    "waitid",
    "set_robust_list",
    "get_robust_list",
    "vmsplice",
    "move_pages",
    "preadv",
    "pwritev",
    "rt_tgsigqueueinfo",
    "recvmmsg",
    "sendmmsg",
    "process_vm_readv",
    "process_vm_writev",
    "setsockopt",
    "getsockopt",
    "io_setup",
    "io_submit",
    "execveat",
    "preadv2",
    "pwritev2",
];
