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