Errno

WASI Preview1 type $errno

Error codes returned by functions. Not all of these error codes are returned by the functions provided by this API; some are used in higher-level library layers, and others are provided merely for alignment with POSIX.

TAG: u16

Definition:

(typename $errno
(enum (@witx tag u16)
;;; No error occurred. System call completed successfully.
$success
;;; Argument list too long.
$2big
;;; Permission denied.
$acces
;;; Address in use.
$addrinuse
;;; Address not available.
$addrnotavail
;;; Address family not supported.
$afnosupport
;;; Resource unavailable, or operation would block.
$again
;;; Connection already in progress.
$already
;;; Bad file descriptor.
$badf
;;; Bad message.
$badmsg
;;; Device or resource busy.
$busy
;;; Operation canceled.
$canceled
;;; No child processes.
$child
;;; Connection aborted.
$connaborted
;;; Connection refused.
$connrefused
;;; Connection reset.
$connreset
;;; Resource deadlock would occur.
$deadlk
;;; Destination address required.
$destaddrreq
;;; Mathematics argument out of domain of function.
$dom
;;; Reserved.
$dquot
;;; File exists.
$exist
;;; Bad address.
$fault
;;; File too large.
$fbig
;;; Host is unreachable.
$hostunreach
;;; Identifier removed.
$idrm
;;; Illegal byte sequence.
$ilseq
;;; Operation in progress.
$inprogress
;;; Interrupted function.
$intr
;;; Invalid argument.
$inval
;;; I/O error.
$io
;;; Socket is connected.
$isconn
;;; Is a directory.
$isdir
;;; Too many levels of symbolic links.
$loop
;;; File descriptor value too large.
$mfile
;;; Too many links.
$mlink
;;; Message too large.
$msgsize
;;; Reserved.
$multihop
;;; Filename too long.
$nametoolong
;;; Network is down.
$netdown
;;; Connection aborted by network.
$netreset
;;; Network unreachable.
$netunreach
;;; Too many files open in system.
$nfile
;;; No buffer space available.
$nobufs
;;; No such device.
$nodev
;;; No such file or directory.
$noent
;;; Executable file format error.
$noexec
;;; No locks available.
$nolck
;;; Reserved.
$nolink
;;; Not enough space.
$nomem
;;; No message of the desired type.
$nomsg
;;; Protocol not available.
$noprotoopt
;;; No space left on device.
$nospc
;;; Function not supported.
$nosys
;;; The socket is not connected.
$notconn
;;; Not a directory or a symbolic link to a directory.
$notdir
;;; Directory not empty.
$notempty
;;; State not recoverable.
$notrecoverable
;;; Not a socket.
$notsock
;;; Not supported, or operation not supported on socket.
$notsup
;;; Inappropriate I/O control operation.
$notty
;;; No such device or address.
$nxio
;;; Value too large to be stored in data type.
$overflow
;;; Previous owner died.
$ownerdead
;;; Operation not permitted.
$perm
;;; Broken pipe.
$pipe
;;; Protocol error.
$proto
;;; Protocol not supported.
$protonosupport
;;; Protocol wrong type for socket.
$prototype
;;; Result too large.
$range
;;; Read-only file system.
$rofs
;;; Invalid seek.
$spipe
;;; No such process.
$srch
;;; Reserved.
$stale
;;; Connection timed out.
$timedout
;;; Text file busy.
$txtbsy
;;; Cross-device link.
$xdev
;;; Extension: Capabilities insufficient.
$notcapable
)
)

Entries

Link copied to clipboard

No error occurred. System call completed successfully.

Link copied to clipboard

Argument list too long.

Link copied to clipboard

Permission denied.

Link copied to clipboard

Address in use.

Link copied to clipboard

Address not available.

Link copied to clipboard

Address family not supported.

Link copied to clipboard

Resource unavailable, or operation would block.

Link copied to clipboard

Connection already in progress.

Link copied to clipboard

Bad file descriptor.

Link copied to clipboard

Bad message.

Link copied to clipboard

Device or resource busy.

Link copied to clipboard

Operation canceled.

Link copied to clipboard

No child processes.

Link copied to clipboard

Connection aborted.

Link copied to clipboard

Connection refused.

Link copied to clipboard

Connection reset.

Link copied to clipboard

Resource deadlock would occur.

Link copied to clipboard

Destination address required.

Link copied to clipboard

Mathematics argument out of domain of function.

Link copied to clipboard

Reserved.

Link copied to clipboard

File exists.

Link copied to clipboard

Bad address.

Link copied to clipboard

File too large.

Link copied to clipboard

Host is unreachable.

Link copied to clipboard

Identifier removed.

Link copied to clipboard

Illegal byte sequence.

Link copied to clipboard

Operation in progress.

Link copied to clipboard

Interrupted function.

Link copied to clipboard

Invalid argument.

Link copied to clipboard

I/O error.

Link copied to clipboard

Socket is connected.

Link copied to clipboard

Is a directory.

Link copied to clipboard

Too many levels of symbolic links.

Link copied to clipboard

File descriptor value too large.

Link copied to clipboard

Too many links.

Link copied to clipboard

Message too large.

Link copied to clipboard

Reserved.

Link copied to clipboard

Filename too long.

Link copied to clipboard

Network is down.

Link copied to clipboard

Connection aborted by network.

Link copied to clipboard

Network unreachable.

Link copied to clipboard

Too many files open in system.

Link copied to clipboard

No buffer space available.

Link copied to clipboard

No such device.

Link copied to clipboard

No such file or directory.

Link copied to clipboard

Executable file format error.

Link copied to clipboard

No locks available.

Link copied to clipboard

Reserved.

Link copied to clipboard

Not enough space.

Link copied to clipboard

No message of the desired type.

Link copied to clipboard

Protocol not available.

Link copied to clipboard

No space left on device.

Link copied to clipboard

Function not supported.

Link copied to clipboard

The socket is not connected.

Link copied to clipboard

Not a directory or a symbolic link to a directory.

Link copied to clipboard

Directory not empty.

Link copied to clipboard

State not recoverable.

Link copied to clipboard

Not a socket.

Link copied to clipboard

Not supported, or operation not supported on socket.

Link copied to clipboard

Inappropriate I/O control operation.

Link copied to clipboard

No such device or address.

Link copied to clipboard

Value too large to be stored in data type.

Link copied to clipboard

Previous owner died.

Link copied to clipboard

Operation not permitted.

Link copied to clipboard

Broken pipe.

Link copied to clipboard

Protocol error.

Link copied to clipboard

Protocol not supported.

Link copied to clipboard

Protocol wrong type for socket.

Link copied to clipboard

Result too large.

Link copied to clipboard

Read-only file system.

Link copied to clipboard

Invalid seek.

Link copied to clipboard

No such process.

Link copied to clipboard

Reserved.

Link copied to clipboard

Connection timed out.

Link copied to clipboard

Text file busy.

Link copied to clipboard

Cross-device link.

Link copied to clipboard

Extension: Capabilities insufficient.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val code: Int

Functions

Link copied to clipboard
fun valueOf(value: String): Errno

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.