mod common;
cfg_if! {
if #[cfg(target_os = "aix")] {
mod aix;
pub(crate) use aix::*;
} else if #[cfg(target_os = "android")] {
mod bionic_libc;
pub(crate) use bionic_libc::*;
} else if #[cfg(target_vendor = "apple")] {
mod apple;
pub(crate) use apple::*;
} else if #[cfg(target_os = "cygwin")] {
mod cygwin;
pub(crate) use cygwin::*;
} else if #[cfg(target_os = "dragonfly")] {
mod dragonfly;
pub(crate) use dragonfly::*;
} else if #[cfg(target_os = "emscripten")] {
mod emscripten;
pub(crate) use emscripten::*;
} else if #[cfg(target_os = "espidf")] {
mod espidf;
} else if #[cfg(target_os = "freebsd")] {
mod freebsd;
pub(crate) use freebsd::*;
} else if #[cfg(target_os = "fuchsia")] {
mod fuchsia;
pub(crate) use fuchsia::*;
} else if #[cfg(target_os = "haiku")] {
mod haiku;
pub(crate) use haiku::*;
} else if #[cfg(target_os = "hermit")] {
mod hermit_abi;
} else if #[cfg(target_os = "horizon")] {
mod horizon;
} else if #[cfg(target_os = "hurd")] {
mod hurd;
} else if #[cfg(target_os = "illumos")] {
mod illumos;
pub(crate) use illumos::*;
} else if #[cfg(target_os = "l4re")] {
mod l4re;
} else if #[cfg(target_os = "linux")] {
mod linux_uapi;
pub(crate) use linux_uapi::*;
} else if #[cfg(target_os = "netbsd")] {
mod netbsd;
pub(crate) use netbsd::*;
} else if #[cfg(target_os = "nto")] {
mod nto;
pub(crate) use nto::*;
} else if #[cfg(target_os = "nuttx")] {
mod nuttx;
pub(crate) use nuttx::*;
} else if #[cfg(target_os = "openbsd")] {
mod openbsd;
pub(crate) use openbsd::*;
} else if #[cfg(target_os = "redox")] {
mod redox;
} else if #[cfg(target_os = "rtems")] {
mod rtems;
pub(crate) use rtems::*;
} else if #[cfg(target_os = "solaris")] {
mod solaris;
pub(crate) use solaris::*;
} else if #[cfg(target_os = "solid_asp3")] {
mod solid;
} else if #[cfg(target_os = "teeos")] {
mod teeos;
} else if #[cfg(target_os = "trusty")] {
mod trusty;
} else if #[cfg(target_os = "vita")] {
mod vita;
} else if #[cfg(target_os = "vxworks")] {
mod vxworks;
pub(crate) use vxworks::*;
} else if #[cfg(target_os = "wasi")] {
mod wasi;
} else if #[cfg(target_os = "windows")] {
mod ucrt;
} else if #[cfg(target_os = "xous")] {
mod xous;
}
}
cfg_if! {
if #[cfg(all(
target_family = "unix",
target_env = "gnu",
not(target_os = "vxworks")
))] {
mod glibc;
pub(crate) use glibc::*;
} else if #[cfg(any(target_env = "musl", target_env = "ohos"))] {
mod musl;
pub(crate) use musl::*;
} else if #[cfg(target_env = "newlib")] {
mod newlib;
pub(crate) use newlib::*;
} else if #[cfg(target_env = "relibc")] {
mod relibc;
pub(crate) use relibc::*;
} else if #[cfg(target_env = "sgx")] {
mod sgx;
} else if #[cfg(target_env = "uclibc")] {
mod uclibc;
pub(crate) use uclibc::*;
}
}
cfg_if! {
if #[cfg(target_os = "android")] {
pub use sys::socket::*;
} else if #[cfg(target_os = "linux")] {
pub use linux::can::bcm::*;
pub use linux::can::j1939::*;
pub use linux::can::raw::*;
pub use linux::can::*;
pub use linux::keyctl::*;
#[cfg(target_env = "gnu")]
pub use net::route::*;
} else if #[cfg(target_vendor = "apple")] {
pub use pthread::*;
pub use pthread_::introspection::*;
pub use pthread_::pthread_spis::*;
pub use pthread_::spawn::*;
pub use pthread_::stack_np::*;
pub use signal::*;
} else if #[cfg(target_os = "netbsd")] {
pub use net::if_::*;
pub use sys::ipc::*;
pub use sys::statvfs::*;
pub use sys::time::*;
pub use sys::timex::*;
pub use sys::types::*;
pub use utmp_::*;
pub use utmpx_::*;
} else if #[cfg(target_os = "openbsd")] {
pub use sys::ipc::*;
}
}
cfg_if! {
if #[cfg(any(target_env = "musl", target_env = "ohos"))] {
pub use sys::socket::*;
}
}
cfg_if! {
if #[cfg(target_family = "unix")] {
#[cfg(any(
target_os = "android",
target_os = "emscripten",
target_os = "l4re",
target_os = "linux"
))]
pub use pthread::*;
pub use unistd::*;
}
}