| 1 |
//! Thread-associated operations. |
| 2 |
|
| 3 |
#[cfg(not(target_os = "redox"))] |
| 4 |
mod clock; |
| 5 |
#[cfg(linux_kernel)] |
| 6 |
mod futex; |
| 7 |
#[cfg(linux_kernel)] |
| 8 |
mod id; |
| 9 |
#[cfg(linux_kernel)] |
| 10 |
mod libcap; |
| 11 |
#[cfg(linux_kernel)] |
| 12 |
mod prctl; |
| 13 |
#[cfg(linux_kernel)] |
| 14 |
mod setns; |
| 15 |
|
| 16 |
#[cfg(not(target_os = "redox"))] |
| 17 |
pub use clock::*; |
| 18 |
#[cfg(linux_kernel)] |
| 19 |
pub use futex::{futex, FutexFlags, FutexOperation}; |
| 20 |
#[cfg(linux_kernel)] |
| 21 |
pub use id::{ |
| 22 |
gettid, set_thread_gid, set_thread_groups, set_thread_res_gid, set_thread_res_uid, |
| 23 |
set_thread_uid, Gid, Pid, RawGid, RawPid, RawUid, Uid, |
| 24 |
}; |
| 25 |
#[cfg(linux_kernel)] |
| 26 |
pub use libcap::{capabilities, set_capabilities, CapabilityFlags, CapabilitySets}; |
| 27 |
#[cfg(linux_kernel)] |
| 28 |
pub use prctl::*; |
| 29 |
#[cfg(linux_kernel)] |
| 30 |
pub use setns::*; |