mod.rs - source
Description: Source of the Rust file `library/std/src/sys/io/error/mod.rs`.

#
std/sys/io/error/
mod.rs

    1cfg_select! {
    2    target_os = "hermit" => {
    3        mod hermit;
    4        pub use hermit::*;
    5    }
    6    target_os = "motor" => {
    7        mod motor;
    8        pub use motor::*;
    9    }
    10    all(target_vendor = "fortanix", target_env = "sgx") => {
    11        mod sgx;
    12        pub use sgx::*;
    13    }
    14    target_os = "solid_asp3" => {
    15        mod solid;
    16        pub use solid::*;
    17    }
    18    target_os = "teeos" => {
    19        mod teeos;
    20        pub use teeos::*;
    21    }
    22    target_os = "uefi" => {
    23        mod uefi;
    24        pub use uefi::*;
    25    }
    26    target_family = "unix" => {
    27        mod unix;
    28        pub use unix::*;
    29    }
    30    target_os = "wasi" => {
    31        mod wasi;
    32        pub use wasi::*;
    33    }
    34    target_os = "windows" => {
    35        mod windows;
    36        pub use windows::*;
    37    }
    38    target_os = "xous" => {
    39        mod xous;
    40        pub use xous::*;
    41    }
    42    any(
    43        target_os = "vexos",
    44        target_family = "wasm",
    45        target_os = "zkvm",
    46    ) => {
    47        mod generic;
    48        pub use generic::*;
    49    }
    50}
    51
    52pub type RawOsError = cfg_select! {
    53    target_os = "uefi" => usize,
    54    _ => i32,
    55};