Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4291,6 +4291,8 @@ fn test_linux(target: &str) {
| "PR_SCHED_CORE_SHARE_TO" => return true,

/* Added in versions more recent than what we test */
// Since 1.2.0
"SO_DETACH_REUSEPORT_BPF" => return true,
// Since 1.2.3
"SO_BUSY_POLL_BUDGET" | "SO_PREFER_BUSY_POLL" => return true,

Expand Down
1 change: 0 additions & 1 deletion libc-test/semver/TODO-linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ SO_CNX_ADVICE
SO_COOKIE
SO_DETACH_BPF
SO_DETACH_FILTER
SO_DETACH_REUSEPORT_BPF
SO_GET_FILTER
SO_INCOMING_CPU
SO_INCOMING_NAPI_ID
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3182,6 +3182,7 @@ SO_BINDTODEVICE
SO_BUF_LOCK
SO_BUSY_POLL
SO_BUSY_POLL_BUDGET
SO_DETACH_REUSEPORT_BPF
SO_DEVMEM_DMABUF
SO_DEVMEM_DONTNEED
SO_DEVMEM_LINEAR
Expand Down
2 changes: 1 addition & 1 deletion src/unix/linux_like/linux/arch/generic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ cfg_if! {
pub const SO_TIMESTAMPING_NEW: c_int = 65;
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_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_NETNS_COOKIE: c_int = 71;
Expand Down
2 changes: 1 addition & 1 deletion src/unix/linux_like/linux/arch/mips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ cfg_if! {
}
}

// pub const SO_DETACH_REUSEPORT_BPF: c_int = 68;
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_NETNS_COOKIE: c_int = 71;
Expand Down
2 changes: 1 addition & 1 deletion src/unix/linux_like/linux/arch/powerpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub const SO_ZEROCOPY: c_int = 60;
pub const SO_TXTIME: c_int = 61;
pub const SCM_TXTIME: c_int = SO_TXTIME;
pub const SO_BINDTOIFINDEX: c_int = 62;
// pub const SO_DETACH_REUSEPORT_BPF: c_int = 68;
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_NETNS_COOKIE: c_int = 71;
Expand Down
2 changes: 1 addition & 1 deletion src/unix/linux_like/linux/arch/sparc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub const SO_TIMESTAMPING: c_int = 0x0023;
// pub const SO_TIMESTAMPING_NEW: c_int = 0x0043;
// pub const SO_RCVTIMEO_NEW: c_int = 0x0044;
// pub const SO_SNDTIMEO_NEW: c_int = 0x0045;
// pub const SO_DETACH_REUSEPORT_BPF: c_int = 0x0047;
pub const SO_DETACH_REUSEPORT_BPF: c_int = 0x0047;
pub const SO_PREFER_BUSY_POLL: c_int = 0x0048;
pub const SO_BUSY_POLL_BUDGET: c_int = 0x0049;
pub const SO_NETNS_COOKIE: c_int = 0x0050;
Expand Down