diff --git a/libc-test/semver/linux-x86_64.txt b/libc-test/semver/linux-x86_64.txt index f1ed29b8f299d..d0cb94baba929 100644 --- a/libc-test/semver/linux-x86_64.txt +++ b/libc-test/semver/linux-x86_64.txt @@ -79,7 +79,9 @@ SKF_AD_VLAN_TPID SKF_LL_OFF SKF_NET_OFF SO_BSDCOMPAT +SO_BUSY_POLL_BUDGET SO_NO_CHECK +SO_PREFER_BUSY_POLL SO_PRIORITY SO_PROTOCOL SS diff --git a/src/unix/linux_like/linux/arch/generic/mod.rs b/src/unix/linux_like/linux/arch/generic/mod.rs index 3e7d3a1117d52..fda36264a3e14 100644 --- a/src/unix/linux_like/linux/arch/generic/mod.rs +++ b/src/unix/linux_like/linux/arch/generic/mod.rs @@ -102,6 +102,11 @@ cfg_if! { target_arch = "csky", target_arch = "loongarch64" ), + // FIXME(musl): + // Musl hardcodes the SO_* constants instead + // of inheriting them from the kernel headers. + // For new constants you might need consider updating + // musl in the CI as well. not(any(target_env = "musl", target_env = "ohos")) ))] { pub const SO_TIMESTAMP_NEW: c_int = 63; @@ -110,10 +115,10 @@ cfg_if! { pub const SO_RCVTIMEO_NEW: c_int = 66; pub const SO_SNDTIMEO_NEW: c_int = 67; pub const SO_DETACH_REUSEPORT_BPF: c_int = 68; + pub const SO_PREFER_BUSY_POLL: c_int = 69; + pub const SO_BUSY_POLL_BUDGET: c_int = 70; } } -// pub const SO_PREFER_BUSY_POLL: c_int = 69; -// pub const SO_BUSY_POLL_BUDGET: c_int = 70; cfg_if! { if #[cfg(any(