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(linux_kernel)]
21mod prctl;
22#[cfg(not(any(target_os = "fuchsia", target_os = "vita", target_os = "wasi")))]
23// WASI doesn't have [gs]etpriority.
24mod priority;
25#[cfg(freebsdlike)]
26mod 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)))]
34mod rlimit;
35#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))]
36mod sched;
37mod sched_yield;
38#[cfg(not(target_os = "wasi"))] // WASI doesn't have umask.
39mod umask;
40#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))]
41mod wait;
42
43#[cfg(not(target_os = "wasi"))]
44pub use chdir::*;
45#[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))]
46pub use chroot::*;
47pub use exit::*;
48#[cfg(not(target_os = "wasi"))]
49pub use id::*;
50#[cfg(not(any(target_os = "aix", target_os = "espidf", target_os = "vita")))]
51pub use ioctl::*;
52#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
53pub use kill::*;
54#[cfg(linux_kernel)]
55pub use membarrier::*;
56#[cfg(target_os = "linux")]
57pub use pidfd::*;
58#[cfg(target_os = "linux")]
59pub use pidfd_getfd::*;
60#[cfg(linux_kernel)]
61pub use prctl::*;
62#[cfg(not(any(target_os = "fuchsia", target_os = "vita", target_os = "wasi")))]
63pub use priority::*;
64#[cfg(freebsdlike)]
65pub 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)))]
73pub use rlimit::*;
74#[cfg(any(freebsdlike, linux_kernel, target_os = "fuchsia"))]
75pub use sched::*;
76pub use sched_yield::sched_yield;
77#[cfg(not(target_os = "wasi"))]
78pub use umask::*;
79#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))]
80pub use wait::*;
81