---@meta posix.errno

---@class posix_errno*
---@field version string
---@field E2BIG integer
---@field EACCES integer
---@field EADDRINUSE integer
---@field EADDRNOTAVAIL integer
---@field EAFNOSUPPORT integer
---@field EAGAIN integer
---@field EALREADY integer
---@field EBADF integer
---@field EBADMSG integer
---@field EBUSY integer
---@field ECANCELED integer
---@field ECHILD integer
---@field ECONNABORTED integer
---@field ECONNREFUSED integer
---@field ECONNRESET integer
---@field EDEADLK integer
---@field EDESTADDRREQ integer
---@field EDOM integer
---@field EEXIST integer
---@field EFAULT integer
---@field EFBIG integer
---@field EHOSTUNREACH integer
---@field EIDRM integer
---@field EILSEQ integer
---@field EINPROGRESS integer
---@field EINTR integer
---@field EINVAL integer
---@field EIO integer
---@field EISCONN integer
---@field EISDIR integer
---@field ELOOP integer
---@field EMFILE integer
---@field EMLINK integer
---@field EMSGSIZE integer
---@field ENAMETOOLONG integer
---@field ENETDOWN integer
---@field ENETRESET integer
---@field ENETUNREACH integer
---@field ENFILE integer
---@field ENOBUFS integer
---@field ENODEV integer
---@field ENOENT integer
---@field ENOEXEC integer
---@field ENOLCK integer
---@field ENOMEM integer
---@field ENOMSG integer
---@field ENOPROTOOPT integer
---@field ENOSPC integer
---@field ENOSYS integer
---@field ENOTCONN integer
---@field ENOTDIR integer
---@field ENOTEMPTY integer
---@field ENOTSOCK integer
---@field ENOTSUP integer
---@field ENOTTY integer
---@field ENXIO integer
---@field EOPNOTSUPP integer
---@field EOVERFLOW integer
---@field EPERM integer
---@field EPIPE integer
---@field EPROTO integer
---@field EPROTONOSUPPORT integer
---@field EPROTOTYPE integer
---@field ERANGE integer
---@field EROFS integer
---@field ESPIPE integer
---@field ESRCH integer
---@field ETIMEDOUT integer
---@field ETXTBSY integer
---@field EWOULDBLOCK integer
---@field EXDEV integer
---@type posix_errno*
local M = {}

---@param n? integer
---@return string? errMsg
---@return integer errno
function M.errno(n) end

---@param n integer
function M.set_errno(n) end

return M
