Skip to content

Commit

Permalink
uv: add uv.errno
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh authored Mar 16, 2023
1 parent 3069b62 commit a78439c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions library/uv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3705,4 +3705,18 @@ function uv.metrics_idle_time() end
---@type uv.constants
uv.constants = {}

-- [[ errorno ]]

---@alias uv.errno {E2BIG : integer, EACCES : integer, EADDRINUSE : integer, EADDRNOTAVAIL : integer, EAFNOSUPPORT : integer, EAGAIN : integer, EAI_ADDRFAMILY : integer, EAI_AGAIN : integer, EAI_BADFLAGS : integer, EAI_BADHINTS : integer, EAI_CANCELED : integer, EAI_FAIL : integer, EAI_FAMILY : integer, EAI_MEMORY : integer, EAI_NODATA : integer, EAI_NONAME : integer, EAI_OVERFLOW : integer, EAI_PROTOCOL : integer, EAI_SERVICE : integer, EAI_SOCKTYPE : integer, EALREADY : integer, EBADF : integer, EBUSY : integer, ECANCELED : integer, ECHARSET : integer, ECONNABORTED : integer, ECONNREFUSED : integer, ECONNRESET : integer, EDESTADDRREQ : integer, EEXIST : integer, EFAULT : integer, EFBIG : integer, EFTYPE : integer, EHOSTDOWN : integer, EHOSTUNREACH : integer, EILSEQ : integer, EINTR : integer, EINVAL : integer, EIO : integer, EISCONN : integer, EISDIR : integer, ELOOP : integer, EMFILE : integer, EMLINK : integer, EMSGSIZE : integer, ENAMETOOLONG : integer, ENETDOWN : integer, ENETUNREACH : integer, ENFILE : integer, ENOBUFS : integer, ENODATA : integer, ENODEV : integer, ENOENT : integer, ENOMEM : integer, ENONET : integer, ENOPROTOOPT : integer, ENOSPC : integer, ENOSYS : integer, ENOTCONN : integer, ENOTDIR : integer, ENOTEMPTY : integer, ENOTSOCK : integer, ENOTSUP : integer, ENOTTY : integer, ENXIO : integer, EOF : integer, EOVERFLOW : integer, EPERM : integer, EPIPE : integer, EPROTO : integer, EPROTONOSUPPORT : integer, EPROTOTYPE : integer, ERANGE : integer, EREMOTEIO : integer, EROFS : integer, ESHUTDOWN : integer, ESOCKTNOSUPPORT : integer, ESPIPE : integer, ESRCH : integer, ETIMEDOUT : integer, ETXTBSY : integer, EXDEV : integer, UNKNOWN : integer}

---A table value which exposes error constants as a map, where the key is the
---error name (without the `UV_` prefix) and its value is a negative number.
---See Libuv's "Error constants" page for further details.
---(https://docs.libuv.org/en/v1.x/errors.html#error-constants)
---
---Note: Implementation detail: on Unix error codes are the negated errno (or -errno),
---while on Windows they are defined by libuv to arbitrary negative numbers.
---@type uv.errno
uv.errno = {}

return uv

0 comments on commit a78439c

Please sign in to comment.