Skip to content

Commit 4b1bcc7

Browse files
committed
feat: some register set value for linux/musl
1 parent 8ff67c1 commit 4b1bcc7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

libc-test/semver/linux-musl.txt

+5
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,8 @@ reallocarray
9393
setutxent
9494
tcp_info
9595
timex
96+
NT_PRSTATUS
97+
NT_PRFPREG
98+
NT_PRPSINFO
99+
NT_TASKSTRUCT
100+
NT_AUXV

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

+6
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,12 @@ pub const XSK_UNALIGNED_BUF_ADDR_MASK: ::c_ulonglong = (1 << XSK_UNALIGNED_BUF_O
883883

884884
pub const XDP_PKT_CONTD: ::__u32 = 1 << 0;
885885

886+
pub const NT_PRSTATUS: ::c_int = 1;
887+
pub const NT_PRFPREG: ::c_int = 2;
888+
pub const NT_PRPSINFO: ::c_int = 3;
889+
pub const NT_TASKSTRUCT: ::c_int = 4;
890+
pub const NT_AUXV: ::c_int = 6;
891+
886892
cfg_if! {
887893
if #[cfg(target_arch = "s390x")] {
888894
pub const POSIX_FADV_DONTNEED: ::c_int = 6;

0 commit comments

Comments
 (0)