| 1 |
//! Process-associated operations. |
| 2 |
|
| 3 |
#[cfg(not(target_os = "wasi"))] |
| 4 |
mod chdir; |
| 5 |
#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] |
| 6 |
mod chroot; |
| 7 |
mod exit; |
| 8 |
#[cfg(not(target_os = "wasi"))] // WASI doesn't have get[gpu]id. |
| 9 |
mod id; |
| 10 |
#[cfg(not(any(target_os = "aix", target_os = "espidf", target_os = "vita")))] |
| 11 |
mod ioctl; |
| 12 |
#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] |
| 13 |
mod kill; |
| 14 |
#[cfg(linux_kernel)] |
| 15 |
mod membarrier; |
| 16 |
#[cfg(target_os = "linux")] |
| 17 |
mod pidfd; |
| 18 |
#[cfg(target_os = "linux")] |
| 19 |
mod pidfd_getfd; |
| 20 |
#[cfg(linux_kernel)] |
| 21 |
mod prctl; |
| 22 |
#[cfg(not(any(target_os = "fuchsia", target_os = "vita", target_os = "wasi")))] |
| 23 |
// WASI doesn't have [gs]etpriority. |
| 24 |
mod priority; |
| 25 |
#[cfg(freebsdlike)] |
| 26 |
mod procctl; |
| 27 |
#[cfg(not(any( |
| 28 |
target_os = "espidf", |
| 29 |
target_os = "fuchsia", |
| 30 |
target_os = "redox", |
| 31 |
target_os = "vita", |
| 32 |
target_os = "wasi" |
| 33 |
)))] |
| 34 |
mod rlimit; |
| 35 |
#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] |
| 36 |
mod sched; |
| 37 |
mod sched_yield; |
| 38 |
#[cfg(not(target_os = "wasi"))] // WASI doesn't have umask. |
| 39 |
mod umask; |
| 40 |
#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] |
| 41 |
mod wait; |
| 42 |
|
| 43 |
#[cfg(not(target_os = "wasi"))] |
| 44 |
pub use chdir::*; |
| 45 |
#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] |
| 46 |
pub use chroot::*; |
| 47 |
pub use exit::*; |
| 48 |
#[cfg(not(target_os = "wasi"))] |
| 49 |
pub use id::*; |
| 50 |
#[cfg(not(any(target_os = "aix", target_os = "espidf", target_os = "vita")))] |
| 51 |
pub use ioctl::*; |
| 52 |
#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] |
| 53 |
pub use kill::*; |
| 54 |
#[cfg(linux_kernel)] |
| 55 |
pub use membarrier::*; |
| 56 |
#[cfg(target_os = "linux")] |
| 57 |
pub use pidfd::*; |
| 58 |
#[cfg(target_os = "linux")] |
| 59 |
pub use pidfd_getfd::*; |
| 60 |
#[cfg(linux_kernel)] |
| 61 |
pub use prctl::*; |
| 62 |
#[cfg(not(any(target_os = "fuchsia", target_os = "vita", target_os = "wasi")))] |
| 63 |
pub use priority::*; |
| 64 |
#[cfg(freebsdlike)] |
| 65 |
pub use procctl::*; |
| 66 |
#[cfg(not(any( |
| 67 |
target_os = "espidf", |
| 68 |
target_os = "fuchsia", |
| 69 |
target_os = "redox", |
| 70 |
target_os = "vita", |
| 71 |
target_os = "wasi" |
| 72 |
)))] |
| 73 |
pub use rlimit::*; |
| 74 |
#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))] |
| 75 |
pub use sched::*; |
| 76 |
pub use sched_yield::sched_yield; |
| 77 |
#[cfg(not(target_os = "wasi"))] |
| 78 |
pub use umask::*; |
| 79 |
#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] |
| 80 |
pub use wait::*; |