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
4 changes: 2 additions & 2 deletions src/backend/linux_raw/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ pub(crate) use linux_raw_sys::{
},
};

#[cfg(feature = "time")]
#[cfg(any(feature = "io_uring", feature = "time", feature = "thread"))]
pub use linux_raw_sys::general::__kernel_clockid_t as clockid_t;

#[cfg(all(feature = "net", feature = "time"))]
#[cfg(feature = "net")]
pub use linux_raw_sys::net::{sock_txtime, SCM_TXTIME, SO_TXTIME};

#[cfg(all(feature = "net", feature = "time"))]
Expand Down
4 changes: 3 additions & 1 deletion tests/process/prctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ pub(crate) fn thread_has_capability(capability: CapabilitySet) -> io::Result<boo
return Err(io::Error::last_os_error());
}

let cap_index = capability.bits() as u32;
let cap_bits = capability.bits();
assert_eq!(cap_bits.count_ones(), 1);
let cap_index = cap_bits.leading_zeros();
let (data_index, cap_index) = if cap_index < 32 {
(0, cap_index)
} else {
Expand Down
Loading