std/sys/process/unix/
mod.rs1#[cfg_attr(any(target_os = "espidf", target_os = "horizon", target_os = "nuttx"), allow(unused))]
2mod common;
3
4cfg_select! {
5 target_os = "fuchsia" => {
6 mod fuchsia;
7 use fuchsia as imp;
8 }
9 target_os = "vxworks" => {
10 mod vxworks;
11 use vxworks as imp;
12 }
13 any(target_os = "espidf", target_os = "horizon", target_os = "vita", target_os = "nuttx") => {
14 mod unsupported;
15 use unsupported as imp;
16 pub use unsupported::output;
17 }
18 _ => {
19 mod unix;
20 use unix as imp;
21 }
22}
23
24#[cfg(target_os = "linux")]
25mod pidfd;
26
27pub use imp::{ExitStatus, ExitStatusError, Process};
28#[cfg(target_os = "linux")]
29pub use pidfd::PidFd;
30
31pub use self::common::{
32 ChildPipe, Command, CommandArgs, ExitCode, Stdio, getpid, getppid, read_output,
33};
34pub use crate::ffi::OsString as EnvKey;