Skip to content

Commit a74954e

Browse files
committed
Auto merge of #2904 - cd-work:linux_syscalls, r=JohnTitor
Add new Linux system call constants This adds the latest Linux system call constants based on the Kernel's system call table: https://github.com/torvalds/linux/blob/master/arch/x86/entry/syscalls/syscall_64.tbl
2 parents c20064f + 5f5d0de commit a74954e

File tree

24 files changed

+195
-0
lines changed

24 files changed

+195
-0
lines changed

libc-test/build.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3152,6 +3152,17 @@ fn test_linux(target: &str) {
31523152
| "SYS_epoll_pwait2"
31533153
| "SYS_mount_setattr" => true,
31543154

3155+
// FIXME: these syscalls were added in Linux 5.13 or later
3156+
// and are currently not included in the glibc headers.
3157+
| "SYS_quotactl_fd"
3158+
| "SYS_landlock_create_ruleset"
3159+
| "SYS_landlock_add_rule"
3160+
| "SYS_landlock_restrict_self"
3161+
| "SYS_memfd_secret"
3162+
| "SYS_process_mrelease"
3163+
| "SYS_futex_waitv"
3164+
| "SYS_set_mempolicy_home_node" => true,
3165+
31553166
// Requires more recent kernel headers:
31563167
| "IFLA_PROP_LIST"
31573168
| "IFLA_ALT_IFNAME"

src/unix/linux_like/linux/gnu/b32/arm/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,14 @@ pub const SYS_faccessat2: ::c_long = 439;
835835
pub const SYS_process_madvise: ::c_long = 440;
836836
pub const SYS_epoll_pwait2: ::c_long = 441;
837837
pub const SYS_mount_setattr: ::c_long = 442;
838+
pub const SYS_quotactl_fd: ::c_long = 443;
839+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
840+
pub const SYS_landlock_add_rule: ::c_long = 445;
841+
pub const SYS_landlock_restrict_self: ::c_long = 446;
842+
pub const SYS_memfd_secret: ::c_long = 447;
843+
pub const SYS_process_mrelease: ::c_long = 448;
844+
pub const SYS_futex_waitv: ::c_long = 449;
845+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
838846

839847
cfg_if! {
840848
if #[cfg(libc_align)] {

src/unix/linux_like/linux/gnu/b32/mips/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,14 @@ pub const SYS_faccessat2: ::c_long = 4000 + 439;
536536
pub const SYS_process_madvise: ::c_long = 4000 + 440;
537537
pub const SYS_epoll_pwait2: ::c_long = 4000 + 441;
538538
pub const SYS_mount_setattr: ::c_long = 4000 + 442;
539+
pub const SYS_quotactl_fd: ::c_long = 4000 + 443;
540+
pub const SYS_landlock_create_ruleset: ::c_long = 4000 + 444;
541+
pub const SYS_landlock_add_rule: ::c_long = 4000 + 445;
542+
pub const SYS_landlock_restrict_self: ::c_long = 4000 + 446;
543+
pub const SYS_memfd_secret: ::c_long = 4000 + 447;
544+
pub const SYS_process_mrelease: ::c_long = 4000 + 448;
545+
pub const SYS_futex_waitv: ::c_long = 4000 + 449;
546+
pub const SYS_set_mempolicy_home_node: ::c_long = 4000 + 450;
539547

540548
pub const O_DIRECT: ::c_int = 0x8000;
541549
pub const O_DIRECTORY: ::c_int = 0x10000;

src/unix/linux_like/linux/gnu/b32/powerpc.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,3 +814,11 @@ pub const SYS_faccessat2: ::c_long = 439;
814814
pub const SYS_process_madvise: ::c_long = 440;
815815
pub const SYS_epoll_pwait2: ::c_long = 441;
816816
pub const SYS_mount_setattr: ::c_long = 442;
817+
pub const SYS_quotactl_fd: ::c_long = 443;
818+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
819+
pub const SYS_landlock_add_rule: ::c_long = 445;
820+
pub const SYS_landlock_restrict_self: ::c_long = 446;
821+
pub const SYS_memfd_secret: ::c_long = 447;
822+
pub const SYS_process_mrelease: ::c_long = 448;
823+
pub const SYS_futex_waitv: ::c_long = 449;
824+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;

src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,14 @@ pub const SYS_faccessat2: ::c_long = 439;
758758
pub const SYS_process_madvise: ::c_long = 440;
759759
pub const SYS_epoll_pwait2: ::c_long = 441;
760760
pub const SYS_mount_setattr: ::c_long = 442;
761+
pub const SYS_quotactl_fd: ::c_long = 443;
762+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
763+
pub const SYS_landlock_add_rule: ::c_long = 445;
764+
pub const SYS_landlock_restrict_self: ::c_long = 446;
765+
pub const SYS_memfd_secret: ::c_long = 447;
766+
pub const SYS_process_mrelease: ::c_long = 448;
767+
pub const SYS_futex_waitv: ::c_long = 449;
768+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
761769

762770
cfg_if! {
763771
if #[cfg(libc_align)] {

src/unix/linux_like/linux/gnu/b32/sparc/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,14 @@ pub const SYS_faccessat2: ::c_long = 439;
839839
pub const SYS_process_madvise: ::c_long = 440;
840840
pub const SYS_epoll_pwait2: ::c_long = 441;
841841
pub const SYS_mount_setattr: ::c_long = 442;
842+
pub const SYS_quotactl_fd: ::c_long = 443;
843+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
844+
pub const SYS_landlock_add_rule: ::c_long = 445;
845+
pub const SYS_landlock_restrict_self: ::c_long = 446;
846+
pub const SYS_memfd_secret: ::c_long = 447;
847+
pub const SYS_process_mrelease: ::c_long = 448;
848+
pub const SYS_futex_waitv: ::c_long = 449;
849+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
842850

843851
cfg_if! {
844852
if #[cfg(libc_align)] {

src/unix/linux_like/linux/gnu/b32/x86/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,14 @@ pub const SYS_faccessat2: ::c_long = 439;
10401040
pub const SYS_process_madvise: ::c_long = 440;
10411041
pub const SYS_epoll_pwait2: ::c_long = 441;
10421042
pub const SYS_mount_setattr: ::c_long = 442;
1043+
pub const SYS_quotactl_fd: ::c_long = 443;
1044+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
1045+
pub const SYS_landlock_add_rule: ::c_long = 445;
1046+
pub const SYS_landlock_restrict_self: ::c_long = 446;
1047+
pub const SYS_memfd_secret: ::c_long = 447;
1048+
pub const SYS_process_mrelease: ::c_long = 448;
1049+
pub const SYS_futex_waitv: ::c_long = 449;
1050+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
10431051

10441052
// offsets in user_regs_structs, from sys/reg.h
10451053
pub const EBX: ::c_int = 0;

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,14 @@ pub const SYS_faccessat2: ::c_long = 439;
885885
pub const SYS_process_madvise: ::c_long = 440;
886886
pub const SYS_epoll_pwait2: ::c_long = 441;
887887
pub const SYS_mount_setattr: ::c_long = 442;
888+
pub const SYS_quotactl_fd: ::c_long = 443;
889+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
890+
pub const SYS_landlock_add_rule: ::c_long = 445;
891+
pub const SYS_landlock_restrict_self: ::c_long = 446;
892+
pub const SYS_memfd_secret: ::c_long = 447;
893+
pub const SYS_process_mrelease: ::c_long = 448;
894+
pub const SYS_futex_waitv: ::c_long = 449;
895+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
888896

889897
extern "C" {
890898
pub fn sysctl(

src/unix/linux_like/linux/gnu/b64/mips64/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,14 @@ pub const SYS_faccessat2: ::c_long = 5000 + 439;
587587
pub const SYS_process_madvise: ::c_long = 5000 + 440;
588588
pub const SYS_epoll_pwait2: ::c_long = 5000 + 441;
589589
pub const SYS_mount_setattr: ::c_long = 5000 + 442;
590+
pub const SYS_quotactl_fd: ::c_long = 5000 + 443;
591+
pub const SYS_landlock_create_ruleset: ::c_long = 5000 + 444;
592+
pub const SYS_landlock_add_rule: ::c_long = 5000 + 445;
593+
pub const SYS_landlock_restrict_self: ::c_long = 5000 + 446;
594+
pub const SYS_memfd_secret: ::c_long = 5000 + 447;
595+
pub const SYS_process_mrelease: ::c_long = 5000 + 448;
596+
pub const SYS_futex_waitv: ::c_long = 5000 + 449;
597+
pub const SYS_set_mempolicy_home_node: ::c_long = 5000 + 450;
590598

591599
pub const SFD_CLOEXEC: ::c_int = 0x080000;
592600

src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,14 @@ pub const SYS_faccessat2: ::c_long = 439;
948948
pub const SYS_process_madvise: ::c_long = 440;
949949
pub const SYS_epoll_pwait2: ::c_long = 441;
950950
pub const SYS_mount_setattr: ::c_long = 442;
951+
pub const SYS_quotactl_fd: ::c_long = 443;
952+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
953+
pub const SYS_landlock_add_rule: ::c_long = 445;
954+
pub const SYS_landlock_restrict_self: ::c_long = 446;
955+
pub const SYS_memfd_secret: ::c_long = 447;
956+
pub const SYS_process_mrelease: ::c_long = 448;
957+
pub const SYS_futex_waitv: ::c_long = 449;
958+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
951959

952960
extern "C" {
953961
pub fn sysctl(

src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,14 @@ pub const SYS_faccessat2: ::c_long = 439;
797797
pub const SYS_process_madvise: ::c_long = 440;
798798
pub const SYS_epoll_pwait2: ::c_long = 441;
799799
pub const SYS_mount_setattr: ::c_long = 442;
800+
pub const SYS_quotactl_fd: ::c_long = 443;
801+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
802+
pub const SYS_landlock_add_rule: ::c_long = 445;
803+
pub const SYS_landlock_restrict_self: ::c_long = 446;
804+
pub const SYS_memfd_secret: ::c_long = 447;
805+
pub const SYS_process_mrelease: ::c_long = 448;
806+
pub const SYS_futex_waitv: ::c_long = 449;
807+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
800808

801809
cfg_if! {
802810
if #[cfg(libc_align)] {

src/unix/linux_like/linux/gnu/b64/s390x.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,14 @@ pub const SYS_faccessat2: ::c_long = 439;
935935
pub const SYS_process_madvise: ::c_long = 440;
936936
pub const SYS_epoll_pwait2: ::c_long = 441;
937937
pub const SYS_mount_setattr: ::c_long = 442;
938+
pub const SYS_quotactl_fd: ::c_long = 443;
939+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
940+
pub const SYS_landlock_add_rule: ::c_long = 445;
941+
pub const SYS_landlock_restrict_self: ::c_long = 446;
942+
pub const SYS_memfd_secret: ::c_long = 447;
943+
pub const SYS_process_mrelease: ::c_long = 448;
944+
pub const SYS_futex_waitv: ::c_long = 449;
945+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
938946

939947
extern "C" {
940948

src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,14 @@ pub const SYS_faccessat2: ::c_long = 439;
900900
pub const SYS_process_madvise: ::c_long = 440;
901901
pub const SYS_epoll_pwait2: ::c_long = 441;
902902
pub const SYS_mount_setattr: ::c_long = 442;
903+
pub const SYS_quotactl_fd: ::c_long = 443;
904+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
905+
pub const SYS_landlock_add_rule: ::c_long = 445;
906+
pub const SYS_landlock_restrict_self: ::c_long = 446;
907+
pub const SYS_memfd_secret: ::c_long = 447;
908+
pub const SYS_process_mrelease: ::c_long = 448;
909+
pub const SYS_futex_waitv: ::c_long = 449;
910+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
903911

904912
extern "C" {
905913
pub fn sysctl(

src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,14 @@ pub const SYS_faccessat2: ::c_long = 439;
429429
pub const SYS_process_madvise: ::c_long = 440;
430430
pub const SYS_epoll_pwait2: ::c_long = 441;
431431
pub const SYS_mount_setattr: ::c_long = 442;
432+
pub const SYS_quotactl_fd: ::c_long = 443;
433+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
434+
pub const SYS_landlock_add_rule: ::c_long = 445;
435+
pub const SYS_landlock_restrict_self: ::c_long = 446;
436+
pub const SYS_memfd_secret: ::c_long = 447;
437+
pub const SYS_process_mrelease: ::c_long = 448;
438+
pub const SYS_futex_waitv: ::c_long = 449;
439+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
432440

433441
extern "C" {
434442
pub fn sysctl(

src/unix/linux_like/linux/gnu/b64/x86_64/x32.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,14 @@ pub const SYS_faccessat2: ::c_long = __X32_SYSCALL_BIT + 439;
357357
pub const SYS_process_madvise: ::c_long = __X32_SYSCALL_BIT + 440;
358358
pub const SYS_epoll_pwait2: ::c_long = __X32_SYSCALL_BIT + 441;
359359
pub const SYS_mount_setattr: ::c_long = __X32_SYSCALL_BIT + 442;
360+
pub const SYS_quotactl_fd: ::c_long = __X32_SYSCALL_BIT + 443;
361+
pub const SYS_landlock_create_ruleset: ::c_long = __X32_SYSCALL_BIT + 444;
362+
pub const SYS_landlock_add_rule: ::c_long = __X32_SYSCALL_BIT + 445;
363+
pub const SYS_landlock_restrict_self: ::c_long = __X32_SYSCALL_BIT + 446;
364+
pub const SYS_memfd_secret: ::c_long = __X32_SYSCALL_BIT + 447;
365+
pub const SYS_process_mrelease: ::c_long = __X32_SYSCALL_BIT + 448;
366+
pub const SYS_futex_waitv: ::c_long = __X32_SYSCALL_BIT + 449;
367+
pub const SYS_set_mempolicy_home_node: ::c_long = __X32_SYSCALL_BIT + 450;
360368
pub const SYS_rt_sigaction: ::c_long = __X32_SYSCALL_BIT + 512;
361369
pub const SYS_rt_sigreturn: ::c_long = __X32_SYSCALL_BIT + 513;
362370
pub const SYS_ioctl: ::c_long = __X32_SYSCALL_BIT + 514;

src/unix/linux_like/linux/musl/b32/arm/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,14 @@ pub const SYS_faccessat2: ::c_long = 439;
837837
pub const SYS_process_madvise: ::c_long = 440;
838838
pub const SYS_epoll_pwait2: ::c_long = 441;
839839
pub const SYS_mount_setattr: ::c_long = 442;
840+
pub const SYS_quotactl_fd: ::c_long = 443;
841+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
842+
pub const SYS_landlock_add_rule: ::c_long = 445;
843+
pub const SYS_landlock_restrict_self: ::c_long = 446;
844+
pub const SYS_memfd_secret: ::c_long = 447;
845+
pub const SYS_process_mrelease: ::c_long = 448;
846+
pub const SYS_futex_waitv: ::c_long = 449;
847+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
840848

841849
extern "C" {
842850
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;

src/unix/linux_like/linux/musl/b32/mips/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,14 @@ pub const SYS_faccessat2: ::c_long = 4000 + 439;
777777
pub const SYS_process_madvise: ::c_long = 4000 + 440;
778778
pub const SYS_epoll_pwait2: ::c_long = 4000 + 441;
779779
pub const SYS_mount_setattr: ::c_long = 4000 + 442;
780+
pub const SYS_quotactl_fd: ::c_long = 4000 + 443;
781+
pub const SYS_landlock_create_ruleset: ::c_long = 4000 + 444;
782+
pub const SYS_landlock_add_rule: ::c_long = 4000 + 445;
783+
pub const SYS_landlock_restrict_self: ::c_long = 4000 + 446;
784+
pub const SYS_memfd_secret: ::c_long = 4000 + 447;
785+
pub const SYS_process_mrelease: ::c_long = 4000 + 448;
786+
pub const SYS_futex_waitv: ::c_long = 4000 + 449;
787+
pub const SYS_set_mempolicy_home_node: ::c_long = 4000 + 450;
780788

781789
cfg_if! {
782790
if #[cfg(libc_align)] {

src/unix/linux_like/linux/musl/b32/powerpc.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,14 @@ pub const SYS_faccessat2: ::c_long = 439;
790790
pub const SYS_process_madvise: ::c_long = 440;
791791
pub const SYS_epoll_pwait2: ::c_long = 441;
792792
pub const SYS_mount_setattr: ::c_long = 442;
793+
pub const SYS_quotactl_fd: ::c_long = 443;
794+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
795+
pub const SYS_landlock_add_rule: ::c_long = 445;
796+
pub const SYS_landlock_restrict_self: ::c_long = 446;
797+
pub const SYS_memfd_secret: ::c_long = 447;
798+
pub const SYS_process_mrelease: ::c_long = 448;
799+
pub const SYS_futex_waitv: ::c_long = 449;
800+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
793801

794802
extern "C" {
795803
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;

src/unix/linux_like/linux/musl/b32/x86/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,14 @@ pub const SYS_faccessat2: ::c_long = 439;
856856
pub const SYS_process_madvise: ::c_long = 440;
857857
pub const SYS_epoll_pwait2: ::c_long = 441;
858858
pub const SYS_mount_setattr: ::c_long = 442;
859+
pub const SYS_quotactl_fd: ::c_long = 443;
860+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
861+
pub const SYS_landlock_add_rule: ::c_long = 445;
862+
pub const SYS_landlock_restrict_self: ::c_long = 446;
863+
pub const SYS_memfd_secret: ::c_long = 447;
864+
pub const SYS_process_mrelease: ::c_long = 448;
865+
pub const SYS_futex_waitv: ::c_long = 449;
866+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
859867

860868
// offsets in user_regs_structs, from sys/reg.h
861869
pub const EBX: ::c_int = 0;

src/unix/linux_like/linux/musl/b64/aarch64/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,14 @@ pub const SYS_faccessat2: ::c_long = 439;
555555
pub const SYS_process_madvise: ::c_long = 440;
556556
pub const SYS_epoll_pwait2: ::c_long = 441;
557557
pub const SYS_mount_setattr: ::c_long = 442;
558+
pub const SYS_quotactl_fd: ::c_long = 443;
559+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
560+
pub const SYS_landlock_add_rule: ::c_long = 445;
561+
pub const SYS_landlock_restrict_self: ::c_long = 446;
562+
pub const SYS_memfd_secret: ::c_long = 447;
563+
pub const SYS_process_mrelease: ::c_long = 448;
564+
pub const SYS_futex_waitv: ::c_long = 449;
565+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
558566

559567
pub const MCL_CURRENT: ::c_int = 0x0001;
560568
pub const MCL_FUTURE: ::c_int = 0x0002;

src/unix/linux_like/linux/musl/b64/mips64.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,14 @@ pub const SYS_faccessat2: ::c_long = 5000 + 439;
444444
pub const SYS_process_madvise: ::c_long = 5000 + 440;
445445
pub const SYS_epoll_pwait2: ::c_long = 5000 + 441;
446446
pub const SYS_mount_setattr: ::c_long = 5000 + 442;
447+
pub const SYS_quotactl_fd: ::c_long = 5000 + 443;
448+
pub const SYS_landlock_create_ruleset: ::c_long = 5000 + 444;
449+
pub const SYS_landlock_add_rule: ::c_long = 5000 + 445;
450+
pub const SYS_landlock_restrict_self: ::c_long = 5000 + 446;
451+
pub const SYS_memfd_secret: ::c_long = 5000 + 447;
452+
pub const SYS_process_mrelease: ::c_long = 5000 + 448;
453+
pub const SYS_futex_waitv: ::c_long = 5000 + 449;
454+
pub const SYS_set_mempolicy_home_node: ::c_long = 5000 + 450;
447455

448456
pub const O_DIRECT: ::c_int = 0x8000;
449457
pub const O_DIRECTORY: ::c_int = 0x10000;

src/unix/linux_like/linux/musl/b64/powerpc64.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,14 @@ pub const SYS_faccessat2: ::c_long = 439;
600600
pub const SYS_process_madvise: ::c_long = 440;
601601
pub const SYS_epoll_pwait2: ::c_long = 441;
602602
pub const SYS_mount_setattr: ::c_long = 442;
603+
pub const SYS_quotactl_fd: ::c_long = 443;
604+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
605+
pub const SYS_landlock_add_rule: ::c_long = 445;
606+
pub const SYS_landlock_restrict_self: ::c_long = 446;
607+
pub const SYS_memfd_secret: ::c_long = 447;
608+
pub const SYS_process_mrelease: ::c_long = 448;
609+
pub const SYS_futex_waitv: ::c_long = 449;
610+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
603611

604612
pub const EDEADLK: ::c_int = 58;
605613
pub const EDEADLOCK: ::c_int = EDEADLK;

src/unix/linux_like/linux/musl/b64/s390x.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,3 +710,11 @@ pub const SYS_faccessat2: ::c_long = 439;
710710
pub const SYS_process_madvise: ::c_long = 440;
711711
pub const SYS_epoll_pwait2: ::c_long = 441;
712712
pub const SYS_mount_setattr: ::c_long = 442;
713+
pub const SYS_quotactl_fd: ::c_long = 443;
714+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
715+
pub const SYS_landlock_add_rule: ::c_long = 445;
716+
pub const SYS_landlock_restrict_self: ::c_long = 446;
717+
pub const SYS_memfd_secret: ::c_long = 447;
718+
pub const SYS_process_mrelease: ::c_long = 448;
719+
pub const SYS_futex_waitv: ::c_long = 449;
720+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;

src/unix/linux_like/linux/musl/b64/x86_64/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,14 @@ pub const SYS_faccessat2: ::c_long = 439;
599599
pub const SYS_process_madvise: ::c_long = 440;
600600
pub const SYS_epoll_pwait2: ::c_long = 441;
601601
pub const SYS_mount_setattr: ::c_long = 442;
602+
pub const SYS_quotactl_fd: ::c_long = 443;
603+
pub const SYS_landlock_create_ruleset: ::c_long = 444;
604+
pub const SYS_landlock_add_rule: ::c_long = 445;
605+
pub const SYS_landlock_restrict_self: ::c_long = 446;
606+
pub const SYS_memfd_secret: ::c_long = 447;
607+
pub const SYS_process_mrelease: ::c_long = 448;
608+
pub const SYS_futex_waitv: ::c_long = 449;
609+
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
602610

603611
// offsets in user_regs_structs, from sys/reg.h
604612
pub const R15: ::c_int = 0;

0 commit comments

Comments
 (0)