wasi-common 0.9.0

WASI implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{wasi, Result};

pub(crate) const O_RSYNC: yanix::file::OFlag = yanix::file::OFlag::RSYNC;

pub(crate) fn stdev_from_nix(dev: libc::dev_t) -> Result<wasi::__wasi_device_t> {
    Ok(wasi::__wasi_device_t::from(dev))
}

pub(crate) fn stino_from_nix(ino: libc::ino_t) -> Result<wasi::__wasi_inode_t> {
    Ok(wasi::__wasi_device_t::from(ino))
}