about summary refs log tree commit diff
path: root/library/std/src/sys/process/unix/mod.rs
blob: b4cf060fba9bfb5bd864306f2fdb622f853aa7c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#[cfg_attr(any(target_os = "espidf", target_os = "horizon", target_os = "nuttx"), allow(unused))]
mod common;

cfg_select! {
    target_os = "fuchsia" => {
        mod fuchsia;
        use fuchsia as imp;
    }
    target_os = "vxworks" => {
        mod vxworks;
        use vxworks as imp;
    }
    any(target_os = "espidf", target_os = "horizon", target_os = "vita", target_os = "nuttx") => {
        mod unsupported;
        use unsupported as imp;
        pub use unsupported::output;
    }
    _ => {
        mod unix;
        use unix as imp;
    }
}

pub use imp::{ExitStatus, ExitStatusError, Process};

pub use self::common::{Command, CommandArgs, ExitCode, Stdio, StdioPipes};
pub use crate::ffi::OsString as EnvKey;