Skip to content

Commit a1f0de0

Browse files
committed
Remove the offending syscalls.
They have been added in musl 1.16 but updating musl is non-trivial.
1 parent bd9e6f4 commit a1f0de0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/unix/notbsd/linux/musl/b32/x86.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,9 +746,9 @@ pub const SYS_mlock2: ::c_long = 376;
746746
pub const SYS_copy_file_range: ::c_long = 377;
747747
pub const SYS_preadv2: ::c_long = 378;
748748
pub const SYS_pwritev2: ::c_long = 379;
749-
pub const SYS_pkey_mprotect: ::c_long = 380;
750-
pub const SYS_pkey_alloc: ::c_long = 381;
751-
pub const SYS_pkey_free: ::c_long = 382;
749+
// FIXME syscalls 380-382 have been added in musl 1.16
750+
// See discussion https://github.com/nix-rust/nix/pull/709
751+
752752

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

src/unix/notbsd/linux/musl/b64/x86_64.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,8 @@ pub const SYS_mlock2: ::c_long = 325;
347347
pub const SYS_copy_file_range: ::c_long = 326;
348348
pub const SYS_preadv2: ::c_long = 327;
349349
pub const SYS_pwritev2: ::c_long = 328;
350-
pub const SYS_pkey_mprotect: ::c_long = 329;
351-
pub const SYS_pkey_alloc: ::c_long = 330;
352-
pub const SYS_pkey_free: ::c_long = 331;
350+
// FIXME syscalls 329-331 are not available in musl 1.15
351+
// See discussion https://github.com/nix-rust/nix/pull/709
353352

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

0 commit comments

Comments
 (0)