Skip to content

Commit 181b043

Browse files
authored
Merge pull request #4447 from mnissler-rivos/linux_riscv64_musl_madv_soft_offline
Add MADV_SOFT_OFFLINE definition for RISC-V musl targets
2 parents 6574d03 + 118a904 commit 181b043

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libc-test/semver/linux-riscv64gc.txt

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ KEYCTL_CAPS0_RESTRICT_KEYRING
2424
KEYCTL_CAPS1_NS_KEYRING_NAME
2525
KEYCTL_CAPS1_NS_KEY_TAG
2626
KEYCTL_MOVE
27+
MADV_SOFT_OFFLINE
2728
MAP_SYNC
2829
NFT_MSG_DELOBJ
2930
NFT_MSG_GETOBJ

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

+1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ pub const O_DIRECT: c_int = 16384;
246246
pub const O_DIRECTORY: c_int = 65536;
247247
pub const O_LARGEFILE: c_int = 0o0100000;
248248
pub const O_NOFOLLOW: c_int = 131072;
249+
pub const MADV_SOFT_OFFLINE: c_int = 101;
249250
pub const MAP_HUGETLB: c_int = 262144;
250251
pub const MAP_LOCKED: c_int = 8192;
251252
pub const MAP_NORESERVE: c_int = 16384;

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

+1
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ pub const POLLWRBAND: c_short = 0x200;
572572
pub const SOCK_STREAM: c_int = 1;
573573
pub const SOCK_DGRAM: c_int = 2;
574574

575+
pub const MADV_SOFT_OFFLINE: c_int = 101;
575576
pub const MAP_ANON: c_int = 0x0020;
576577
pub const MAP_GROWSDOWN: c_int = 0x0100;
577578
pub const MAP_DENYWRITE: c_int = 0x0800;

0 commit comments

Comments
 (0)