Skip to content

Commit d211ebf

Browse files
committed
Bring back SYS_pkey_* for musl
1 parent ea00e8b commit d211ebf

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,9 @@ pub const SYS_mlock2: ::c_long = 376;
914914
pub const SYS_copy_file_range: ::c_long = 377;
915915
pub const SYS_preadv2: ::c_long = 378;
916916
pub const SYS_pwritev2: ::c_long = 379;
917-
// FIXME syscalls 380-382 have been added in musl 1.16
918-
// See discussion https://github.com/rust-lang/libc/pull/699
917+
pub const SYS_pkey_mprotect: ::c_long = 380;
918+
pub const SYS_pkey_alloc: ::c_long = 381;
919+
pub const SYS_pkey_free: ::c_long = 382;
919920
pub const SYS_statx: ::c_long = 383;
920921

921922
// offsets in user_regs_structs, from sys/reg.h

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,9 @@ pub const SYS_mlock2: ::c_long = 325;
576576
pub const SYS_copy_file_range: ::c_long = 326;
577577
pub const SYS_preadv2: ::c_long = 327;
578578
pub const SYS_pwritev2: ::c_long = 328;
579-
// FIXME syscalls 329-331 have been added in musl 1.16
580-
// See discussion https://github.com/rust-lang/libc/pull/699
579+
pub const SYS_pkey_mprotect: ::c_long = 329;
580+
pub const SYS_pkey_alloc: ::c_long = 330;
581+
pub const SYS_pkey_free: ::c_long = 331;
581582
pub const SYS_statx: ::c_long = 332;
582583

583584
// offsets in user_regs_structs, from sys/reg.h

0 commit comments

Comments
 (0)