oscall 0.0.0

Low-level cross-platform interface to operating system services: files, memory mapping, networking and more, with no libc on Linux
Documentation
//! Platform backends. Exactly one is compiled in, as `imp`.

// fullrust is Linux without libc: `target_os = "fullrust"`, and not
// `cfg(unix)`. It shares the raw system call backend with Linux, so never
// gate Linux code on `cfg(unix)` or on `target_os = "linux"` alone.
#[cfg(any(target_os = "linux", target_os = "fullrust"))]
#[path = "linux.rs"]
mod imp;

#[cfg(target_os = "macos")]
#[path = "apple.rs"]
mod imp;

#[cfg(windows)]
#[path = "windows.rs"]
mod imp;

#[cfg(not(any(
    target_os = "linux",
    target_os = "fullrust",
    target_os = "macos",
    windows
)))]
compile_error!("oscall does not support this operating system");

#[cfg_attr(not(test), expect(unused_imports))]
pub(crate) use imp::*;