WasiErrno Enum

The error codes of WASI Preview 1 (errno), returned by its functions.

public enum WasiErrno : ushort

Fields

NameValueDescription
Success0No error occurred.
TooBig1Argument list too long (2big).
AccessDenied2Permission denied (acces).
AddressInUse3Address in use (addrinuse).
AddressNotAvailable4Address not available (addrnotavail).
AddressFamilyNotSupported5Address family not supported (afnosupport).
Again6Resource unavailable, or operation would block (again).
Already7Connection already in progress (already).
BadFileDescriptor8Bad file descriptor (badf).
BadMessage9Bad message (badmsg).
Busy10Device or resource busy (busy).
Canceled11Operation canceled (canceled).
NoChild12No child processes (child).
ConnectionAborted13Connection aborted (connaborted).
ConnectionRefused14Connection refused (connrefused).
ConnectionReset15Connection reset (connreset).
Deadlock16Resource deadlock would occur (deadlk).
DestinationAddressRequired17Destination address required (destaddrreq).
Domain18Mathematics argument out of domain of function (dom).
DiskQuota19Reserved (dquot).
Exists20File exists (exist).
Fault21Bad address (fault): a pointer or a length is outside of the memory.
FileTooLarge22File too large (fbig).
HostUnreachable23Host is unreachable (hostunreach).
IdentifierRemoved24Identifier removed (idrm).
IllegalByteSequence25Illegal byte sequence (ilseq): a path is not valid UTF-8.
InProgress26Operation in progress (inprogress).
Interrupted27Interrupted function (intr).
InvalidArgument28Invalid argument (inval).
IOError29I/O error (io).
IsConnected30Socket is connected (isconn).
IsDirectory31Is a directory (isdir).
Loop32Too many levels of symbolic links (loop).
TooManyOpenFiles33File descriptor value too large (mfile).
MessageTooLarge35Message too large (msgsize).
Multihop36Reserved (multihop).
NameTooLong37Filename too long (nametoolong).
NetworkDown38Network is down (netdown).
NetworkReset39Connection aborted by network (netreset).
NetworkUnreachable40Network unreachable (netunreach).
TooManyOpenFilesInSystem41Too many files open in system (nfile).
NoBufferSpace42No buffer space available (nobufs).
NoDevice43No such device (nodev).
NoEntry44No such file or directory (noent).
ExecutableFormatError45Executable file format error (noexec).
NoLock46No locks available (nolck).
NoMemory48Not enough space (nomem).
NoMessage49No message of the desired type (nomsg).
NoProtocolOption50Protocol not available (noprotoopt).
NoSpace51No space left on device (nospc).
NotImplemented52Function not supported (nosys).
NotConnected53The socket is not connected (notconn).
NotDirectory54Not a directory or a symbolic link to a directory (notdir).
NotEmpty55Directory not empty (notempty).
NotRecoverable56State not recoverable (notrecoverable).
NotSocket57Not a socket (notsock).
NotSupported58Not supported, or operation not supported on socket (notsup).
NotTerminal59Inappropriate I/O control operation (notty).
NoDeviceOrAddress60No such device or address (nxio).
Overflow61Value too large to be stored in data type (overflow).
OwnerDead62Previous owner died (ownerdead).
NotPermitted63Operation not permitted (perm).
BrokenPipe64Broken pipe (pipe).
ProtocolError65Protocol error (proto).
ProtocolNotSupported66Protocol not supported (protonosupport).
ProtocolWrongType67Protocol wrong type for socket (prototype).
Range68Result too large (range).
ReadOnlyFileSystem69Read-only file system (rofs).
InvalidSeek70Invalid seek (spipe): the file descriptor is not seekable.
NoProcess71No such process (srch).
Stale72Reserved (stale).
TimedOut73Connection timed out (timedout).
TextFileBusy74Text file busy (txtbsy).
CrossDevice75Cross-device link (xdev).
NotCapable76Extension: capabilities insufficient (notcapable), such as a path that leaves its directory.