about summary refs log tree commit diff
path: root/library/std/src/sys/cloudabi/shims/mod.rs
blob: b1b5f142f45c2cf95775324d52d1086a8aeda425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::io;

pub mod args;
pub mod env;
pub mod fs;
pub mod net;
pub mod os;
#[path = "../../unix/path.rs"]
pub mod path;
pub mod pipe;
pub mod process;

// This enum is used as the storage for a bunch of types which can't actually exist.
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
pub enum Void {}

pub fn unsupported<T>() -> io::Result<T> {
    Err(io::Error::new(io::ErrorKind::Other, "This function is not available on CloudABI."))
}