Skip to content

Commit 6574d03

Browse files
authored
Merge pull request #4448 from heiher/loong64
musl: loongarch64: Define MADV_SOFT_OFFLINE constant
2 parents bd74cd2 + 054c958 commit 6574d03

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

libc-test/semver/linux-gnu-loongarch64.txt

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ KEYCTL_CAPS0_RESTRICT_KEYRING
1010
KEYCTL_CAPS1_NS_KEYRING_NAME
1111
KEYCTL_CAPS1_NS_KEY_TAG
1212
KEYCTL_MOVE
13-
MADV_SOFT_OFFLINE
1413
PTRACE_GETFPREGS
1514
PTRACE_GETFPXREGS
1615
PTRACE_GETREGS

libc-test/semver/linux-loongarch64.txt

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ BPF_XOR
4848
CIBAUD
4949
FICLONE
5050
FICLONERANGE
51+
MADV_SOFT_OFFLINE
5152
MAP_SYNC
5253
NFT_MSG_DELOBJ
5354
NFT_MSG_GETOBJ

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

+2
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,8 @@ pub const ENOTRECOVERABLE: c_int = 131;
532532
pub const EHWPOISON: c_int = 133;
533533
pub const ERFKILL: c_int = 132;
534534

535+
pub const MADV_SOFT_OFFLINE: c_int = 101;
536+
535537
pub const SA_ONSTACK: c_int = 0x08000000;
536538
pub const SA_SIGINFO: c_int = 0x00000004;
537539
pub const SA_NOCLDWAIT: c_int = 0x00000002;

0 commit comments

Comments
 (0)