oscall 0.1.0

Low-level cross-platform interface to operating system services: files, memory mapping, networking and more, with no libc on Linux
Documentation
//! `process` without a system: there is no process, and nothing to exit
//! to. `exit` and `abort` trap.

pub(crate) fn id() -> u32 {
    0
}

pub(crate) fn parent_id() -> u32 {
    0
}

pub(crate) fn exit(_code: i32) -> ! {
    core::arch::wasm32::unreachable()
}

pub(crate) fn abort() -> ! {
    core::arch::wasm32::unreachable()
}

pub(crate) use none::*;

/// This part is also the `process` of the other WebAssembly backend.
#[path = "../wasi/process_none.rs"]
mod none;

#[cfg(feature = "alloc")]
pub(crate) use spawn::{Child, spawn};

#[cfg(feature = "alloc")]
#[path = "../wasi/process_spawn.rs"]
mod spawn;