rustix/process/
mod.rs

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