WasiErrno Enum
The error codes of WASI Preview 1 (errno), returned by its functions.
public enum WasiErrno : ushortFields
| Name | Value | Description |
|---|---|---|
Success | 0 | No error occurred. |
TooBig | 1 | Argument list too long (2big). |
AccessDenied | 2 | Permission denied (acces). |
AddressInUse | 3 | Address in use (addrinuse). |
AddressNotAvailable | 4 | Address not available (addrnotavail). |
AddressFamilyNotSupported | 5 | Address family not supported (afnosupport). |
Again | 6 | Resource unavailable, or operation would block (again). |
Already | 7 | Connection already in progress (already). |
BadFileDescriptor | 8 | Bad file descriptor (badf). |
BadMessage | 9 | Bad message (badmsg). |
Busy | 10 | Device or resource busy (busy). |
Canceled | 11 | Operation canceled (canceled). |
NoChild | 12 | No child processes (child). |
ConnectionAborted | 13 | Connection aborted (connaborted). |
ConnectionRefused | 14 | Connection refused (connrefused). |
ConnectionReset | 15 | Connection reset (connreset). |
Deadlock | 16 | Resource deadlock would occur (deadlk). |
DestinationAddressRequired | 17 | Destination address required (destaddrreq). |
Domain | 18 | Mathematics argument out of domain of function (dom). |
DiskQuota | 19 | Reserved (dquot). |
Exists | 20 | File exists (exist). |
Fault | 21 | Bad address (fault): a pointer or a length is outside of the memory. |
FileTooLarge | 22 | File too large (fbig). |
HostUnreachable | 23 | Host is unreachable (hostunreach). |
IdentifierRemoved | 24 | Identifier removed (idrm). |
IllegalByteSequence | 25 | Illegal byte sequence (ilseq): a path is not valid UTF-8. |
InProgress | 26 | Operation in progress (inprogress). |
Interrupted | 27 | Interrupted function (intr). |
InvalidArgument | 28 | Invalid argument (inval). |
IOError | 29 | I/O error (io). |
IsConnected | 30 | Socket is connected (isconn). |
IsDirectory | 31 | Is a directory (isdir). |
Loop | 32 | Too many levels of symbolic links (loop). |
TooManyOpenFiles | 33 | File descriptor value too large (mfile). |
TooManyLinks | 34 | Too many links (mlink). |
MessageTooLarge | 35 | Message too large (msgsize). |
Multihop | 36 | Reserved (multihop). |
NameTooLong | 37 | Filename too long (nametoolong). |
NetworkDown | 38 | Network is down (netdown). |
NetworkReset | 39 | Connection aborted by network (netreset). |
NetworkUnreachable | 40 | Network unreachable (netunreach). |
TooManyOpenFilesInSystem | 41 | Too many files open in system (nfile). |
NoBufferSpace | 42 | No buffer space available (nobufs). |
NoDevice | 43 | No such device (nodev). |
NoEntry | 44 | No such file or directory (noent). |
ExecutableFormatError | 45 | Executable file format error (noexec). |
NoLock | 46 | No locks available (nolck). |
NoLink | 47 | Reserved (nolink). |
NoMemory | 48 | Not enough space (nomem). |
NoMessage | 49 | No message of the desired type (nomsg). |
NoProtocolOption | 50 | Protocol not available (noprotoopt). |
NoSpace | 51 | No space left on device (nospc). |
NotImplemented | 52 | Function not supported (nosys). |
NotConnected | 53 | The socket is not connected (notconn). |
NotDirectory | 54 | Not a directory or a symbolic link to a directory (notdir). |
NotEmpty | 55 | Directory not empty (notempty). |
NotRecoverable | 56 | State not recoverable (notrecoverable). |
NotSocket | 57 | Not a socket (notsock). |
NotSupported | 58 | Not supported, or operation not supported on socket (notsup). |
NotTerminal | 59 | Inappropriate I/O control operation (notty). |
NoDeviceOrAddress | 60 | No such device or address (nxio). |
Overflow | 61 | Value too large to be stored in data type (overflow). |
OwnerDead | 62 | Previous owner died (ownerdead). |
NotPermitted | 63 | Operation not permitted (perm). |
BrokenPipe | 64 | Broken pipe (pipe). |
ProtocolError | 65 | Protocol error (proto). |
ProtocolNotSupported | 66 | Protocol not supported (protonosupport). |
ProtocolWrongType | 67 | Protocol wrong type for socket (prototype). |
Range | 68 | Result too large (range). |
ReadOnlyFileSystem | 69 | Read-only file system (rofs). |
InvalidSeek | 70 | Invalid seek (spipe): the file descriptor is not seekable. |
NoProcess | 71 | No such process (srch). |
Stale | 72 | Reserved (stale). |
TimedOut | 73 | Connection timed out (timedout). |
TextFileBusy | 74 | Text file busy (txtbsy). |
CrossDevice | 75 | Cross-device link (xdev). |
NotCapable | 76 | Extension: capabilities insufficient (notcapable), such as a path that leaves its directory. |