Error numbers
From cppreference.com
Each of the macros defined in <cerrno>
expands to integer constant expressions with type Template:cpp, each with a unique positive value, matching some of the POSIX error codes. The following constants are defined (the implementation may define more)
Defined in header
<cerrno> | |
E2BIG (C++11) |
(macro constant) |
EACCES (C++11) |
(macro constant) |
EADDRINUSE (C++11) |
(macro constant) |
EADDRNOTAVAIL (C++11) |
(macro constant) |
EAFNOSUPPORT (C++11) |
(macro constant) |
EALREADY (C++11) |
(macro constant) |
EBADF (C++11) |
(macro constant) |
EBADMSG (C++11) |
(macro constant) |
EBUSY (C++11) |
(macro constant) |
ECANCELED (C++11) |
(macro constant) |
ECHILD (C++11) |
(macro constant) |
ECONNABORTED (C++11) |
(macro constant) |
ECONNREFUSED (C++11) |
(macro constant) |
ECONNRESET (C++11) |
(macro constant) |
EDESTADDRREQ (C++11) |
(macro constant) |
EDOM |
(macro constant) |
EEXIST (C++11) |
(macro constant) |
EFAULT (C++11) |
(macro constant) |
EFBIG (C++11) |
(macro constant) |
EHOSTUNREACH (C++11) |
(macro constant) |
EIDRM (C++11) |
(macro constant) |
EILSEQ (C++11) |
(macro constant) |
EINPROGRESS (C++11) |
(macro constant) |
EINTR (C++11) |
(macro constant) |
EINVAL (C++11) |
(macro constant) |
EIO (C++11) |
(macro constant) |
EISCONN (C++11) |
(macro constant) |
EISDIR (C++11) |
(macro constant) |
ELOOP (C++11) |
(macro constant) |
EMFILE (C++11) |
(macro constant) |
EMLINK (C++11) |
(macro constant) |
EMSGSIZE (C++11) |
(macro constant) |
ENAMETOOLONG (C++11) |
(macro constant) |
ENETDOWN (C++11) |
(macro constant) |
ENETRESET (C++11) |
(macro constant) |
ENETUNREACH (C++11) |
(macro constant) |
ENFILE (C++11) |
(macro constant) |
ENOBUFS (C++11) |
(macro constant) |
ENODATA (C++11) |
(macro constant) |
ENODEV (C++11) |
(macro constant) |
ENOENT (C++11) |
(macro constant) |
ENOEXEC (C++11) |
(macro constant) |
ENOLCK (C++11) |
(macro constant) |
ENOLINK (C++11) |
(macro constant) |
ENOMEM (C++11) |
(macro constant) |
ENOMSG (C++11) |
(macro constant) |
ENOPROTOOPT (C++11) |
(macro constant) |
ENOSPC (C++11) |
(macro constant) |
ENOSR (C++11) |
(macro constant) |
ENOSTR (C++11) |
(macro constant) |
ENOSYS (C++11) |
(macro constant) |
ENOTCONN (C++11) |
(macro constant) |
ENOTDIR (C++11) |
(macro constant) |
ENOTEMPTY (C++11) |
(macro constant) |
ENOTRECOVERABLE (C++11) |
(macro constant) |
ENOTSOCK (C++11) |
(macro constant) |
ENOTSUP (C++11) |
(macro constant) |
ENOTTY (C++11) |
(macro constant) |
ENXIO (C++11) |
(macro constant) |
EOPNOTSUPP (C++11) |
(macro constant) |
EOVERFLOW (C++11) |
(macro constant) |
EOWNERDEAD (C++11) |
(macro constant) |
EPERM (C++11) |
(macro constant) |
EPIPE (C++11) |
(macro constant) |
EPROTO (C++11) |
(macro constant) |
EPROTONOSUPPORT (C++11) |
(macro constant) |
EPROTOTYPE (C++11) |
(macro constant) |
ERANGE |
(macro constant) |
EROFS (C++11) |
(macro constant) |
ESPIPE (C++11) |
(macro constant) |
ESRCH (C++11) |
(macro constant) |
ETIME (C++11) |
(macro constant) |
ETIMEDOUT (C++11) |
(macro constant) |
ETXTBSY (C++11) |
(macro constant) |
EWOULDBLOCK (C++11) |
(macro constant) |
EXDEV (C++11) |
(macro constant) |
Example
See also
(C++11) |
the Template:cpp enumeration listing all standard <cerrno> macro constants (class) |
macro which expands to POSIX-compatible thread-local error number variable (macro constant) |