ERRNO.H(7) Miscellaneous Information Manual ERRNO.H(7)

errno.hsystem error numbers

#include <errno.h>

[CX] Some of the functionality described on this reference page extends the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional. This volume of IEEE Std 1003.1-2001 (“POSIX.1”) defers to the ISO C standard.

[CX] The ISO C standard only requires the symbols [EDOM], [EILSEQ], and [ERANGE] to be defined.

The <errno.h> header shall provide a declaration for errno and give positive values for the following symbolic constants. Their values shall be unique except as noted below.

Argument list too long.
Permission denied.
Address in use.
Address not available.
Address family not supported.
Resource unavailable, try again (may be the same value as [EWOULDBLOCK]).
Connection already in progress.
Bad file descriptor.
Bad message.
Device or resource busy.
Operation canceled.
No child processes.
Connection aborted.
Connection refused.
Connection reset.
Resource deadlock would occur.
Destination address required.
Mathematics argument out of domain of function.
Reserved.
File exists.
Bad address.
File too large.
Host is unreachable.
Identifier removed.
Illegal byte sequence.
Operation in progress.
Interrupted function.
Invalid argument.
I/O error.
Socket is connected.
Is a directory.
Too many levels of symbolic links.
Too many open files.
Too many links.
Message too large.
Reserved.
Filename too long.
Network is down.
Connection aborted by network.
Network unreachable.
Too many files open in system.
No buffer space available.
[XSR] No message is available on the STREAM head read queue.
No such device.
No such file or directory.
Executable file format error.
No locks available.
Reserved.
Not enough space.
No message of the desired type.
Protocol not available.
No space left on device.
[XSR] No STREAM resources.
[XSR] Not a STREAM.
Function not supported.
The socket is not connected.
Not a directory.
Directory not empty.
Not a socket.
Not supported.
Inappropriate I/O control operation.
No such device or address.
Operation not supported on socket.
Value too large to be stored in data type.
Operation not permitted.
Broken pipe.
Protocol error.
Protocol not supported.
Protocol wrong type for socket.
Result too large.
Read-only file system.
Invalid seek.
No such process.
Reserved.
[XSR] Stream () timeout.
Connection timed out.
Text file busy.
Operation would block (may be the same value as [EAGAIN]).
Cross-device link.

Additional error numbers may be defined on conforming systems; see the System Interfaces volume of IEEE Std 1003.1-2001 (“POSIX.1”).

None.

None.

The System Interfaces volume of IEEE Std 1003.1-2001 (“POSIX.1”), xsh_chap02_03(3)

First released in Issue 1. Derived from Issue 1 of the SVID.

Updated for alignment with the POSIX Realtime Extension.

The following new requirements on POSIX implementations derive from alignment with the Single UNIX Specification:

  • The majority of the error conditions previously marked as extensions are now mandatory, except for the STREAMS-related error conditions.

Values for errno are now required to be distinct positive values rather than non-zero values. This change is for alignment with the ISO/IEC 9899:1999 (“ISO C99”) standard.

footer end

January 1, 2004 posix.fail