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