errno.h(7POSIX)
๐ errno.h โ POSIX Programmer's Manual, section 7POSIX ๐
okay bestie, sit down, hydrate, because we're about to get into errno.h(7POSIX) and honestly? it's giving โจfoundationalโจ
๐ธ PROLOG ๐ธ
Real talk first: this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ โ so if you're on Linux, go consult the corresponding Linux manual page for the tea on Linux behavior. And plot twist: the interface might not even be implemented on Linux at all. ๐
๐ NAME ๐
errno.h โ system error numbers
โจ SYNOPSIS โจ
#include <errno.h>
๐ DESCRIPTION ๐
Some of the functionality described on this reference page extends the ISO C standard. And if there's any conflict between the requirements described here and the ISO C standard? Not intentional, bestie, it's a whole accident. This volume of POSIX.1-2017 defers to the ISO C standard.
The ISO C standard only requires the symbols [EDOM], [EILSEQ], and [ERANGE] to be defined. That's it. Those three. The bare minimum. ๐ญ
The <errno.h> header shall provide a declaration or definition for errno. The symbol errno shall expand to a modifiable lvalue of type int. It is unspecified whether errno is a macro or an identifier declared with external linkage. And listen โ if a macro definition is suppressed in order to access an actual object, or a program defines an identifier with the name errno, the behavior is undefined. ๐จ
The <errno.h> header shall define the following macros, which shall expand to integer constant expressions with type int, distinct positive values (except as noted below, iykyk), and which shall be suitable for use in #if preprocessing directives:
E2BIGโ Argument list too long. ๐ฅตEACCESโ Permission denied. ๐ซEADDRINUSEโ Address in use. occupied fr.EADDRNOTAVAILโ Address not available. ๐ญEAFNOSUPPORTโ Address family not supported. not her moment.EAGAINโ Resource unavailable, try again (may be the same value as[EWOULDBLOCK]).EALREADYโ Connection already in progress. we've BEEN doing this.EBADFโ Bad file descriptor. ๐EBADMSGโ Bad message. ๐EBUSYโ Device or resource busy. she's booked and blessed.ECANCELEDโ Operation canceled. ๐ECHILDโ No child processes. empty nest energy.ECONNABORTEDโ Connection aborted. ๐ฌECONNREFUSEDโ Connection refused. the audacity.ECONNRESETโ Connection reset. ๐ฆEDEADLKโ Resource deadlock would occur. bestie RUN.EDESTADDRREQโ Destination address required. you forgot something.EDOMโ Mathematics argument out of domain of function. math said no. ๐งฎEDQUOTโ Reserved.EEXISTโ File exists. already iconic, no need for a rerun.EFAULTโ Bad address. ๐ฉEFBIGโ File too large. it's giving overstuffed.EHOSTUNREACHโ Host is unreachable. ghosted, literally. ๐ปEIDRMโ Identifier removed. ๐จEILSEQโ Illegal byte sequence. ๐จEINPROGRESSโ Operation in progress. hold on, we're cooking. ๐ฅEINTRโ Interrupted function. rude tbh.EINVALโ Invalid argument. ๐ฉ๐ฉEIOโ I/O error. ๐EISCONNโ Socket is connected. she's taken.EISDIRโ Is a directory. yes queen, a directory.ELOOPโ Too many levels of symbolic links. it's a loop, we're dizzy. ๐EMFILEโ File descriptor value too large. ๐ซEMLINKโ Too many links. chainmail energy.EMSGSIZEโ Message too large. ๐๐EMULTIHOPโ Reserved.ENAMETOOLONGโ Filename too long. she wrote a whole essay. ๐ญENETDOWNโ Network is down. wifi said bye. ๐ตENETRESETโ Connection aborted by network. not your fault, blame the network. ๐คENETUNREACHโ Network unreachable. ๐ซ๏ธENFILEโ Too many files open in system. ๐ตโ๐ซENOBUFSโ No buffer space available. no room at the inn. ๐ENODATAโ No message is available on the STREAM head read queue. ๐ญENODEVโ No such device. ๐ENOENTโ No such file or directory. the classic. THE classic. ๐ENOEXECโ Executable file format error. ๐งฉENOLCKโ No locks available. ๐ENOLINKโ Reserved.ENOMEMโ Not enough space. bestie your memory is full. ๐ง ๐ฅENOMSGโ No message of the desired type. ๐ฌENOPROTOOPTโ Protocol not available. ๐ENOSPCโ No space left on device. disk said "no <3". ๐ฝENOSRโ No STREAM resources. ๐ENOSTRโ Not a STREAM. ๐โENOSYSโ Functionality not supported. not implemented, not her problem. ๐ENOTCONNโ The socket is not connected. ๐ชซENOTDIRโ Not a directory or a symbolic link to a directory. โ ๏ธENOTEMPTYโ Directory not empty. she still has her stuff there. ๐ฆENOTRECOVERABLEโ State not recoverable. rip. ๐ตENOTSOCKโ Not a socket. ๐งฆENOTSUPโ Not supported (may be the same value as[EOPNOTSUPP]).ENOTTYโ Inappropriate I/O control operation. inappropriate, you said it not me. ๐ENXIOโ No such device or address. ๐ณ๏ธEOPNOTSUPPโ Operation not supported on socket (may be the same value as[ENOTSUP]).EOVERFLOWโ Value too large to be stored in data type. too much for the container. ๐ฆ๐ฅEOWNERDEADโ Previous owner died. โฐ๏ธEPERMโ Operation not permitted. nope, and not in a cute way. ๐ซEPIPEโ Broken pipe. ๐๐ฌEPROTOโ Protocol error. ๐ ๏ธEPROTONOSUPPORTโ Protocol not supported. ๐ โโ๏ธEPROTOTYPEโ Protocol wrong type for socket. wrong vibe entirely. ๐ฉERANGEโ Result too large. ๐EROFSโ Read-only file system. look, don't touch. ๐ESPIPEโ Invalid seek. ๐ฏโESRCHโ No such process. she left the group chat. ๐ESTALEโ Reserved.ETIMEโ Streamioctl()timeout. โฐETIMEDOUTโ Connection timed out. โณETXTBSYโ Text file busy. she's writing, don't interrupt. โ๏ธEWOULDBLOCKโ Operation would block (may be the same value as[EAGAIN]).EXDEVโ Cross-device link. different worlds fr. ๐
The following sections are informative. โ translation: not the rules, just the commentary. ๐
๐ฆ APPLICATION USAGE ๐ฆ
Additional error numbers may be defined on conforming systems; see the System Interfaces volume of POSIX.1-2017. so like, there's more where that came from, bestie. โจ
๐ RATIONALE ๐
None.
literally none. nothing. we said what we said. ๐
โญ FUTURE DIRECTIONS โญ
None.
nothing on the horizon. the future is bright and also empty. ๐
๐ฅ SEE ALSO ๐ฅ
- The System Interfaces volume of POSIX.1-2017, Section 2.3, Error Numbers
๐ COPYRIGHT ๐
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
okay that's the whole page, and the sign-off is literally this: this beauty came from IEEE/The Open Group, 2017, and it lives under the name errno.h(7POSIX). ๐ซถ go forth, check your errnos, and remember โ ENOENT is not a personality trait. periodt. ๐โจ๐
๐ฆ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 ยท Other
- debian trixie: manpages-posix-dev 2017a-2 ยท Other
- ubuntu jammy: manpages-posix-dev 2017a-2 ยท Other
- ubuntu noble: manpages-posix-dev 2017a-2 ยท Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 ยท Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 ยท Other
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms