Module libc/errno

libc/errno
Stability: unstable — a raw C binding, not a Yo design. The public surface over it is `std/sys/errors`, which maps these codes onto the `IoError` enum every `std/fs`, `std/net` and `std/process` result carries; `std/env` and `std/crypto/random` read individual codes (`EINTR`) directly. The VALUES are per-platform (that is the point of binding them rather than writing literals), and the LIST is additive-by-demand: entries appear as ports need them, so no completeness claim is made here. Reading `errno` after a call is only meaningful when the call reported failure, and only for the calling thread. Freezing would require deciding that `IoError` covers every code a supported OS can return, which it does not yet. — stable modules only change additively; this one may still change.

C11 <errno.h> — error handling constants and errno variable.

Stability

unstable — a raw C binding, not a Yo design. The public surface over it is std/sys/errors, which maps these codes onto the IoError enum every std/fs, std/net and std/process result carries; std/env and std/crypto/random read individual codes (EINTR) directly. The VALUES are per-platform (that is the point of binding them rather than writing literals), and the LIST is additive-by-demand: entries appear as ports need them, so no completeness claim is made here. Reading errno after a call is only meaningful when the call reported failure, and only for the calling thread. Freezing would require deciding that IoError covers every code a supported OS can return, which it does not yet.

Constants

errno constant int

Value: <unknown: int>

EDOM constant int

Value: <unknown: int>

EILSEQ constant int

Value: <unknown: int>

ERANGE constant int

Value: <unknown: int>

E2BIG constant int

Value: <unknown: int>

EACCES constant int

Value: <unknown: int>

EADDRINUSE constant int

Value: <unknown: int>

EADDRNOTAVAIL constant int

Value: <unknown: int>

EAFNOSUPPORT constant int

Value: <unknown: int>

EAGAIN constant int

Value: <unknown: int>

EALREADY constant int

Value: <unknown: int>

EBADF constant int

Value: <unknown: int>

EBADMSG constant int

Value: <unknown: int>

EBUSY constant int

Value: <unknown: int>

ECANCELED constant int

Value: <unknown: int>

ECHILD constant int

Value: <unknown: int>

ECONNABORTED constant int

Value: <unknown: int>

ECONNREFUSED constant int

Value: <unknown: int>

ECONNRESET constant int

Value: <unknown: int>

EDEADLK constant int

Value: <unknown: int>

EDESTADDRREQ constant int

Value: <unknown: int>

EEXIST constant int

Value: <unknown: int>

EFAULT constant int

Value: <unknown: int>

EFBIG constant int

Value: <unknown: int>

EHOSTUNREACH constant int

Value: <unknown: int>

EIDRM constant int

Value: <unknown: int>

EINPROGRESS constant int

Value: <unknown: int>

EINTR constant int

Value: <unknown: int>

EINVAL constant int

Value: <unknown: int>

EIO constant int

Value: <unknown: int>

EISCONN constant int

Value: <unknown: int>

EISDIR constant int

Value: <unknown: int>

ELOOP constant int

Value: <unknown: int>

EMFILE constant int

Value: <unknown: int>

EMSGSIZE constant int

Value: <unknown: int>

EMULTIHOP constant int

Value: <unknown: int>

ENAMETOOLONG constant int

Value: <unknown: int>

ENETDOWN constant int

Value: <unknown: int>

ENETRESET constant int

Value: <unknown: int>

ENETUNREACH constant int

Value: <unknown: int>

ENFILE constant int

Value: <unknown: int>

ENOBUFS constant int

Value: <unknown: int>

ENODATA constant int

Value: <unknown: int>

ENODEV constant int

Value: <unknown: int>

ENOENT constant int

Value: <unknown: int>

ENOEXEC constant int

Value: <unknown: int>

ENOLCK constant int

Value: <unknown: int>

ENOMEM constant int

Value: <unknown: int>

ENOMSG constant int

Value: <unknown: int>

ENOPROTOOPT constant int

Value: <unknown: int>

ENOSPC constant int

Value: <unknown: int>

ENOSR constant int

Value: <unknown: int>

ENOSTR constant int

Value: <unknown: int>

ENOSYS constant int

Value: <unknown: int>

ENOTCONN constant int

Value: <unknown: int>

ENOTDIR constant int

Value: <unknown: int>

ENOTEMPTY constant int

Value: <unknown: int>

ENOTRECOVERABLE constant int

Value: <unknown: int>

ENOTSOCK constant int

Value: <unknown: int>

ENOTSUP constant int

Value: <unknown: int>

ENOTTY constant int

Value: <unknown: int>

ENXIO constant int

Value: <unknown: int>

EOPNOTSUPP constant int

Value: <unknown: int>

EOVERFLOW constant int

Value: <unknown: int>

EOWNERDEAD constant int

Value: <unknown: int>

EPERM constant int

Value: <unknown: int>

EPIPE constant int

Value: <unknown: int>

EPROTO constant int

Value: <unknown: int>

EPROTONOSUPPORT constant int

Value: <unknown: int>

EPROTOTYPE constant int

Value: <unknown: int>

EROFS constant int

Value: <unknown: int>

ESPIPE constant int

Value: <unknown: int>

ESRCH constant int

Value: <unknown: int>

ESTALE constant int

Value: <unknown: int>

ETIME constant int

Value: <unknown: int>

ETIMEDOUT constant int

Value: <unknown: int>

ETXTBSY constant int

Value: <unknown: int>

EWOULDBLOCK constant int

Value: <unknown: int>

EXDEV constant int

Value: <unknown: int>