POSIX Error Codes
Error codes defined by the POSIX standard, returned via errno. Symbolic names are standardised; numeric values may differ between platforms such as Linux and macOS.
77 codes
-
E2BIGArgument list too long -
EACCESPermission denied -
EADDRINUSEAddress already in use -
EADDRNOTAVAILAddress not available -
EAFNOSUPPORTAddress family not supported -
EAGAINResource temporarily unavailable -
EALREADYConnection already in progress -
EBADFBad file descriptor -
EBADMSGBad message -
EBUSYDevice or resource busy -
ECANCELEDOperation cancelled -
ECHILDNo child processes -
ECONNABORTEDConnection aborted -
ECONNREFUSEDConnection refused -
ECONNRESETConnection reset -
EDEADLKResource deadlock avoided -
EDESTADDRREQDestination address required -
EDOMMathematics argument out of domain -
EDQUOTDisk quota exceeded -
EEXISTFile exists -
EFAULTBad address -
EFBIGFile too large -
EHOSTUNREACHHost unreachable -
EIDRMIdentifier removed -
EILSEQIllegal byte sequence -
EINPROGRESSOperation in progress -
EINTRInterrupted function call -
EINVALInvalid argument -
EIOInput/output error -
EISCONNSocket is already connected -
EISDIRIs a directory -
ELOOPToo many levels of symbolic links -
EMFILEToo many open files -
EMLINKToo many links -
EMSGSIZEMessage too long -
EMULTIHOPMultihop attempted -
ENAMETOOLONGFilename too long -
ENETDOWNNetwork is down -
ENETRESETConnection aborted by network -
ENETUNREACHNetwork unreachable -
ENFILEToo many open files in system -
ENOBUFSNo buffer space available -
ENODEVNo such device -
ENOENTNo such file or directory -
ENOEXECExecutable file format error -
ENOLCKNo locks available -
ENOLINKLink has been severed -
ENOMEMNot enough space -
ENOMSGNo message of the desired type -
ENOPROTOOPTProtocol not available -
ENOSPCNo space left on device -
ENOSYSFunction not implemented -
ENOTCONNSocket is not connected -
ENOTDIRNot a directory -
ENOTEMPTYDirectory not empty -
ENOTRECOVERABLEState not recoverable -
ENOTSOCKNot a socket -
ENOTSUPOperation not supported -
ENOTTYInappropriate I/O control operation -
ENXIONo such device or address -
EOPNOTSUPPOperation not supported on socket -
EOVERFLOWValue too large to be stored in data type -
EOWNERDEADPrevious owner died -
EPERMOperation not permitted -
EPIPEBroken pipe -
EPROTOProtocol error -
EPROTONOSUPPORTProtocol not supported -
EPROTOTYPEProtocol wrong type for socket -
ERANGEResult too large -
EROFSRead-only file system -
ESPIPEInvalid seek -
ESRCHNo such process -
ESTALEStale file handle -
ETIMEDOUTConnection timed out -
ETXTBSYText file busy -
EWOULDBLOCKOperation would block -
EXDEVImproper link