windows-errno
Windows CRT errno Codes
The errno values defined by the Microsoft C Runtime (CRT) and set by standard C library functions on Windows. These differ from POSIX errno in both numeric values and available codes. Symbolic names are defined in <errno.h>.
79 codes
references learn.microsoft.com/en-us/cpp/c-runtime-library/errno-doserrno-sys-errlist-and-sys-nerrlearn.microsoft.com/en-us/windows/win32/debug/system-error-codes
· All codes 79 codes
- E2BIG Argument list too long The argument list passed to an exec function exceeds the system limit.
- EACCES Permission denied The process does not have permission to access the file or resource.
- EADDRINUSE Address already in use The network address (IP + port) is already bound by another socket.
- EADDRNOTAVAIL Address not available The requested network address is not available on the local machine.
- EAFNOSUPPORT Address family not supported The address family is not supported by the protocol or socket type.
- EAGAIN Resource temporarily unavailable The resource is temporarily unavailable. The operation may succeed if retried.
- EALREADY Connection already in progress A non-blocking connect is already in progress on the socket.
- EBADF Bad file descriptor The file descriptor is invalid or not open for the requested operation.
- EBADMSG Bad message A corrupt or invalid message was received.
- EBUSY Device or resource busy The device or resource is in use by another process and cannot be accessed.
- ECANCELED Operation cancelled The I/O operation was cancelled, typically by CancelIo() or a timeout.
- ECHILD No child processes The process has no child processes to wait for.
- ECONNABORTED Connection aborted The connection was aborted by the local software, typically due to a protocol error.
- ECONNREFUSED Connection refused The target host actively refused the connection, meaning no process is listening on that port.
- ECONNRESET Connection reset by peer The connection was forcibly closed by the remote host, typically by sending a TCP RST.
- EDEADLK Resource deadlock avoided A file lock operation would have caused a deadlock, so it was refused.
- EDESTADDRREQ Destination address required A required destination address was omitted from a sendto() call on an unconnected socket.
- EDOM Math argument out of domain A math function was called with an argument outside its domain (e.g. sqrt of a negative number).
- EEXIST File exists The file already exists and the operation requires it to not exist (e.g. exclusive create).
- EFAULT Bad address A pointer argument points to memory outside the accessible address space.
- EFBIG File too large The file would exceed the maximum allowed size.
- EHOSTUNREACH Host unreachable The destination host is unreachable from this machine.
- EIDRM Identifier removed The identifier of a IPC object has been removed.
- EILSEQ Illegal byte sequence An invalid multibyte character sequence was encountered during conversion.
- EINPROGRESS Operation in progress A non-blocking socket operation could not be completed immediately.
- EINTR Interrupted function call An asynchronous signal interrupted the function before it could complete.
- EINVAL Invalid argument An argument to the function is invalid. This is the most commonly encountered CRT error.
- EIO Input/output error A physical I/O error occurred, such as a disk read failure.
- EISCONN Already connected connect() was called on a socket that is already connected.
- EISDIR Is a directory The path refers to a directory but the operation requires a regular file.
- ELOOP Too many levels of symbolic links Too many symbolic links were encountered resolving a path.
- EMFILE Too many open files The process has reached its limit of simultaneously open file handles.
- EMLINK Too many links The file already has the maximum number of hard links.
- EMSGSIZE Message too long The message is larger than the maximum size supported by the underlying transport.
- ENAMETOOLONG Filename too long The path or filename exceeds MAX_PATH (260 characters on Windows).
- ENETDOWN Network is down The network subsystem has failed.
- ENETRESET Connection aborted by network The connection was broken because the remote host reset during the operation.
- ENETUNREACH Network unreachable No route to the destination network exists.
- ENFILE Too many files open in system The system-wide limit on open file handles has been reached.
- ENOBUFS No buffer space available Insufficient buffer space is available for the socket operation.
- ENODATA No message available No data is available on the read queue.
- ENODEV No such device The specified device does not exist.
- ENOENT No such file or directory The specified file or directory does not exist.
- ENOEXEC Exec format error The file is not a recognised executable format.
- ENOLCK No locks available The system has run out of file lock resources.
- ENOLINK Link has been severed The communication link has been severed.
- ENOMEM Out of memory Insufficient memory is available to complete the operation.
- ENOMSG No message of desired type There is no message of the desired type in the message queue.
- ENOPROTOOPT No such protocol option The socket option is not supported by the protocol.
- ENOSPC No space left on device The device has no space remaining for the write operation.
- ENOSR No STREAM resources Insufficient STREAMS resources are available.
- ENOSTR Not a STREAM The file descriptor is not a STREAMS device.
- ENOSYS Function not implemented The function is not implemented by the Windows CRT or the underlying OS.
- ENOTCONN Socket not connected send() or recv() was called on an unconnected socket.
- ENOTDIR Not a directory A path component that is not a directory was used where a directory was expected.
- ENOTEMPTY Directory not empty rmdir() was called on a directory that still contains files or subdirectories.
- ENOTRECOVERABLE State not recoverable A mutex or other synchronisation object is in an unrecoverable state.
- ENOTSOCK Not a socket The file descriptor does not refer to a socket.
- ENOTSUP Not supported The operation is not supported by this implementation.
- ENOTTY Inappropriate I/O control operation An I/O control operation was attempted on a file that is not a terminal.
- ENXIO No such device or address The device does not exist or the address is out of range for the device.
- EOPNOTSUPP Operation not supported on socket The operation is not supported on this type of socket.
- EOTHER Other error An unclassified error occurred.
- EOVERFLOW Value too large A value is too large to be stored in the result type.
- EOWNERDEAD Previous owner died A mutex was abandoned when its owner process terminated.
- EPERM Operation not permitted The operation is not permitted for the current user or process. Often returned when attempting an operation requiring elevated privileges.
- EPIPE Broken pipe A write was attempted on a pipe with no reader. The process also receives SIGPIPE.
- EPROTO Protocol error A protocol error occurred.
- EPROTONOSUPPORT Protocol not supported The socket protocol is not supported on this machine.
- EPROTOTYPE Protocol wrong type for socket The protocol does not support the socket type.
- ERANGE Result too large A math function returned a result too large to be represented.
- EROFS Read-only file system A write was attempted on a read-only volume.
- ESPIPE Invalid seek lseek() was called on a pipe or socket, which does not support seeking.
- ESRCH No such process The specified process does not exist.
- ETIME Timer expired A STREAM ioctl() timed out.
- ETIMEDOUT Connection timed out The connection attempt or network operation timed out before it could complete.
- ETXTBSY Text file busy An executable file is open for writing.
- EWOULDBLOCK Operation would block The socket is in non-blocking mode and the operation would block. Equivalent to EAGAIN for sockets.
- EXDEV Improper link An attempt was made to create a hard link across different drives or volumes.