oscall 0.1.1

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

use crate::{ErrorKind, Result};

pub(crate) const NAME_MAX: usize = 0;

pub(crate) fn id() -> u64 {
    1
}

pub(crate) fn yield_now() {}

pub(crate) fn available_parallelism() -> Result<usize> {
    Ok(1)
}

pub(crate) fn set_name(_name: &str) -> Result<()> {
    Err(ErrorKind::Unsupported.into())
}

pub(crate) fn name(_buf: &mut [u8]) -> Result<usize> {
    Err(ErrorKind::Unsupported.into())
}