Bring back SYS_pkey_* for musl

This commit is contained in:
oxalica 2019-11-22 13:55:52 +08:00
parent ea00e8b911
commit d211ebff76
No known key found for this signature in database
GPG Key ID: CED392DE0C483D00
2 changed files with 6 additions and 4 deletions

View File

@ -914,8 +914,9 @@ pub const SYS_mlock2: ::c_long = 376;
pub const SYS_copy_file_range: ::c_long = 377;
pub const SYS_preadv2: ::c_long = 378;
pub const SYS_pwritev2: ::c_long = 379;
// FIXME syscalls 380-382 have been added in musl 1.16
// See discussion https://github.com/rust-lang/libc/pull/699
pub const SYS_pkey_mprotect: ::c_long = 380;
pub const SYS_pkey_alloc: ::c_long = 381;
pub const SYS_pkey_free: ::c_long = 382;
pub const SYS_statx: ::c_long = 383;
// offsets in user_regs_structs, from sys/reg.h

View File

@ -576,8 +576,9 @@ pub const SYS_mlock2: ::c_long = 325;
pub const SYS_copy_file_range: ::c_long = 326;
pub const SYS_preadv2: ::c_long = 327;
pub const SYS_pwritev2: ::c_long = 328;
// FIXME syscalls 329-331 have been added in musl 1.16
// See discussion https://github.com/rust-lang/libc/pull/699
pub const SYS_pkey_mprotect: ::c_long = 329;
pub const SYS_pkey_alloc: ::c_long = 330;
pub const SYS_pkey_free: ::c_long = 331;
pub const SYS_statx: ::c_long = 332;
// offsets in user_regs_structs, from sys/reg.h