oscall 0.0.2

Low-level cross-platform interface to operating system services: files, memory mapping, networking and more, with no libc on Linux
Documentation
//! WASI preview 1 error numbers (`errno` in the witx definition).
#![allow(dead_code)]

/// Argument list too long.
pub const E2BIG: i32 = 1;
/// Permission denied.
pub const EACCES: i32 = 2;
/// Address already in use.
pub const EADDRINUSE: i32 = 3;
/// Cannot assign requested address.
pub const EADDRNOTAVAIL: i32 = 4;
/// Address family not supported by protocol.
pub const EAFNOSUPPORT: i32 = 5;
/// Try again.
pub const EAGAIN: i32 = 6;
/// Operation already in progress.
pub const EALREADY: i32 = 7;
/// Bad file number.
pub const EBADF: i32 = 8;
/// Not a data message.
pub const EBADMSG: i32 = 9;
/// Device or resource busy.
pub const EBUSY: i32 = 10;
/// Operation Canceled.
pub const ECANCELED: i32 = 11;
/// No child processes.
pub const ECHILD: i32 = 12;
/// Software caused connection abort.
pub const ECONNABORTED: i32 = 13;
/// Connection refused.
pub const ECONNREFUSED: i32 = 14;
/// Connection reset by peer.
pub const ECONNRESET: i32 = 15;
/// Resource deadlock would occur.
pub const EDEADLK: i32 = 16;
/// Destination address required.
pub const EDESTADDRREQ: i32 = 17;
/// Math argument out of domain of func.
pub const EDOM: i32 = 18;
/// Quota exceeded.
pub const EDQUOT: i32 = 19;
/// File exists.
pub const EEXIST: i32 = 20;
/// Bad address.
pub const EFAULT: i32 = 21;
/// File too large.
pub const EFBIG: i32 = 22;
/// No route to host.
pub const EHOSTUNREACH: i32 = 23;
/// Identifier removed.
pub const EIDRM: i32 = 24;
/// Illegal byte sequence.
pub const EILSEQ: i32 = 25;
/// Operation now in progress.
pub const EINPROGRESS: i32 = 26;
/// Interrupted system call.
pub const EINTR: i32 = 27;
/// Invalid argument.
pub const EINVAL: i32 = 28;
/// I/O error.
pub const EIO: i32 = 29;
/// Transport endpoint is already connected.
pub const EISCONN: i32 = 30;
/// Is a directory.
pub const EISDIR: i32 = 31;
/// Too many symbolic links encountered.
pub const ELOOP: i32 = 32;
/// Too many open files.
pub const EMFILE: i32 = 33;
/// Too many links.
pub const EMLINK: i32 = 34;
/// Message too long.
pub const EMSGSIZE: i32 = 35;
/// Multihop attempted.
pub const EMULTIHOP: i32 = 36;
/// File name too long.
pub const ENAMETOOLONG: i32 = 37;
/// Network is down.
pub const ENETDOWN: i32 = 38;
/// Network dropped connection because of reset.
pub const ENETRESET: i32 = 39;
/// Network is unreachable.
pub const ENETUNREACH: i32 = 40;
/// File table overflow.
pub const ENFILE: i32 = 41;
/// No buffer space available.
pub const ENOBUFS: i32 = 42;
/// No such device.
pub const ENODEV: i32 = 43;
/// No such file or directory.
pub const ENOENT: i32 = 44;
/// Exec format error.
pub const ENOEXEC: i32 = 45;
/// No record locks available.
pub const ENOLCK: i32 = 46;
/// Link has been severed.
pub const ENOLINK: i32 = 47;
/// Out of memory.
pub const ENOMEM: i32 = 48;
/// No message of desired type.
pub const ENOMSG: i32 = 49;
/// Protocol not available.
pub const ENOPROTOOPT: i32 = 50;
/// No space left on device.
pub const ENOSPC: i32 = 51;
/// Invalid system call number.
pub const ENOSYS: i32 = 52;
/// Transport endpoint is not connected.
pub const ENOTCONN: i32 = 53;
/// Not a directory.
pub const ENOTDIR: i32 = 54;
/// Directory not empty.
pub const ENOTEMPTY: i32 = 55;
/// State not recoverable.
pub const ENOTRECOVERABLE: i32 = 56;
/// Socket operation on non-socket.
pub const ENOTSOCK: i32 = 57;
/// Operation not supported.
pub const ENOTSUP: i32 = 58;
/// Not a typewriter.
pub const ENOTTY: i32 = 59;
/// No such device or address.
pub const ENXIO: i32 = 60;
/// Value too large for defined data type.
pub const EOVERFLOW: i32 = 61;
/// Owner died.
pub const EOWNERDEAD: i32 = 62;
/// Operation not permitted.
pub const EPERM: i32 = 63;
/// Broken pipe.
pub const EPIPE: i32 = 64;
/// Protocol error.
pub const EPROTO: i32 = 65;
/// Protocol not supported.
pub const EPROTONOSUPPORT: i32 = 66;
/// Protocol wrong type for socket.
pub const EPROTOTYPE: i32 = 67;
/// Math result not representable.
pub const ERANGE: i32 = 68;
/// Read-only file system.
pub const EROFS: i32 = 69;
/// Illegal seek.
pub const ESPIPE: i32 = 70;
/// No such process.
pub const ESRCH: i32 = 71;
/// Stale file handle.
pub const ESTALE: i32 = 72;
/// Connection timed out.
pub const ETIMEDOUT: i32 = 73;
/// Text file busy.
pub const ETXTBSY: i32 = 74;
/// Cross-device link.
pub const EXDEV: i32 = 75;
/// Capabilities insufficient.
pub const ENOTCAPABLE: i32 = 76;