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