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

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

// 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.",
    ))
}