Skip to content

Commit 16f3cc7

Browse files
committed
linux/uclibc: resync syscall tables
This adds some missing syscall constants for uclibc on `arm` and `mips32`. The two syscall tables are now again in sync with the musl ones that they are based on.
1 parent 68ad935 commit 16f3cc7

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

src/unix/linux_like/linux/uclibc/arm/mod.rs

+24-1
Original file line numberDiff line numberDiff line change
@@ -884,11 +884,34 @@ pub const SYS_pwritev2: ::c_long = 393;
884884
pub const SYS_pkey_mprotect: ::c_long = 394;
885885
pub const SYS_pkey_alloc: ::c_long = 395;
886886
pub const SYS_pkey_free: ::c_long = 396;
887-
pub const SYS_statx: ::c_int = 397;
887+
pub const SYS_statx: ::c_long = 397;
888888
pub const SYS_pidfd_send_signal: ::c_long = 424;
889+
pub const SYS_io_uring_setup: ::c_long = 425;
890+
pub const SYS_io_uring_enter: ::c_long = 426;
891+
pub const SYS_io_uring_register: ::c_long = 427;
892+
pub const SYS_open_tree: ::c_long = 428;
893+
pub const SYS_move_mount: ::c_long = 429;
894+
pub const SYS_fsopen: ::c_long = 430;
895+
pub const SYS_fsconfig: ::c_long = 431;
896+
pub const SYS_fsmount: ::c_long = 432;
897+
pub const SYS_fspick: ::c_long = 433;
889898
pub const SYS_pidfd_open: ::c_long = 434;
890899
pub const SYS_clone3: ::c_long = 435;
900+
pub const SYS_close_range: ::c_long = 436;
901+
pub const SYS_openat2: ::c_long = 437;
891902
pub const SYS_pidfd_getfd: ::c_long = 438;
903+
pub const SYS_faccessat2: ::c_long = 439;
904+
pub const SYS_process_madvise: ::c_long = 440;
905+
pub const SYS_epoll_pwait2: ::c_long = 441;
906+
pub const SYS_mount_setattr: ::c_long = 442;
907+
pub const SYS_quotactl_fd: ::c_long = 443;
908+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
909+
pub const SYS_landlock_add_rule: ::c_long = 445;
910+
pub const SYS_landlock_restrict_self: ::c_long = 446;
911+
pub const SYS_memfd_secret: ::c_long = 447;
912+
pub const SYS_process_mrelease: ::c_long = 448;
913+
pub const SYS_futex_waitv: ::c_long = 449;
914+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
892915

893916
cfg_if! {
894917
if #[cfg(libc_align)] {

src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs

+27
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,34 @@ pub const SYS_pwritev2: ::c_long = 4000 + 362;
623623
pub const SYS_pkey_mprotect: ::c_long = 4000 + 363;
624624
pub const SYS_pkey_alloc: ::c_long = 4000 + 364;
625625
pub const SYS_pkey_free: ::c_long = 4000 + 365;
626+
pub const SYS_statx: ::c_long = 4000 + 366;
627+
pub const SYS_pidfd_send_signal: ::c_long = 4000 + 424;
628+
pub const SYS_io_uring_setup: ::c_long = 4000 + 425;
629+
pub const SYS_io_uring_enter: ::c_long = 4000 + 426;
630+
pub const SYS_io_uring_register: ::c_long = 4000 + 427;
631+
pub const SYS_open_tree: ::c_long = 4000 + 428;
632+
pub const SYS_move_mount: ::c_long = 4000 + 429;
633+
pub const SYS_fsopen: ::c_long = 4000 + 430;
634+
pub const SYS_fsconfig: ::c_long = 4000 + 431;
635+
pub const SYS_fsmount: ::c_long = 4000 + 432;
636+
pub const SYS_fspick: ::c_long = 4000 + 433;
637+
pub const SYS_pidfd_open: ::c_long = 4000 + 434;
626638
pub const SYS_clone3: ::c_long = 4000 + 435;
639+
pub const SYS_close_range: ::c_long = 4000 + 436;
640+
pub const SYS_openat2: ::c_long = 4000 + 437;
641+
pub const SYS_pidfd_getfd: ::c_long = 4000 + 438;
642+
pub const SYS_faccessat2: ::c_long = 4000 + 439;
643+
pub const SYS_process_madvise: ::c_long = 4000 + 440;
644+
pub const SYS_epoll_pwait2: ::c_long = 4000 + 441;
645+
pub const SYS_mount_setattr: ::c_long = 4000 + 442;
646+
pub const SYS_quotactl_fd: ::c_long = 4000 + 443;
647+
pub const SYS_landlock_create_ruleset: ::c_long = 4000 + 444;
648+
pub const SYS_landlock_add_rule: ::c_long = 4000 + 445;
649+
pub const SYS_landlock_restrict_self: ::c_long = 4000 + 446;
650+
pub const SYS_memfd_secret: ::c_long = 4000 + 447;
651+
pub const SYS_process_mrelease: ::c_long = 4000 + 448;
652+
pub const SYS_futex_waitv: ::c_long = 4000 + 449;
653+
pub const SYS_set_mempolicy_home_node: ::c_long = 4000 + 450;
627654

628655
#[link(name = "util")]
629656
extern "C" {

0 commit comments

Comments
 (0)