errno the corresponding error code of the return value
<asm-generic/errno-base.h>
#ifndef_ASM_GENERIC_ERRNO_BASE_H
#define_ASM_GENERIC_ERRNO_BASE_H
#defineEPERM1/*operationnotpermitted*/
#defineENOENT2/*nosuchfileordirectory*/
#defineESRCH3/*nosuchprocess*/
#defineEINTR4/*interruptedsystemcall*/
#defineEIO5/*i/oerror*/
#defineENXIO6/*nosuchdeviceoraddress*/
#defineE2BIG7/*argumentlisttoolong*/
#defineENOEXEC8/*execformaterror*/
#defineEBADF9/*badfilenumber*/
#defineECHILD10/*nochildprocesses*/
#defineEAGAIN11/*tryagain*/
#defineENOMEM12/*outofmemory*/
#defineEACCES13/*permissiondenied*/
#defineEFAULT14/*badaddress*/
#defineENOTBLK15/*blockdevicerequired*/
#defineEBUSY16/*deviceorresourcebusy*/
#defineEEXIST17/*fileexists*/
#defineEXDEV18/*cross-devicelink*/
#defineENODEV19/*nosuchdevice*/
#defineENOTDIR20/*notadirectory*/
#defineEISDIR21/*isadirectory*/
#defineEINVAL22/*invalidargument*/
#defineENFILE23/*filetableoverflow*/
#defineEMFILE24/*toomanyopenfiles*/
#defineENOTTY25/*notatypewriter*/
#defineETXTBSY26/*textfilebusy*/
#defineEFBIG27/*filetoolarge*/
#defineENOSPC28/*nospaceleftondevice*/
#defineESPIPE29/*illegalseek*/
#defineEROFS30/*read-onlyfilesystem*/
#defineEMLINK31/*toomanylinks*/
#defineEPIPE32/*brokenpipe*/
#defineEDOM33/*mathargumentoutofdomainoffunc*/
#defineERANGE34/*mathresultnotrepresentable*/
#endif
<linux/asm-generic/errno.h>
#defineEDEADLK35/*resourcedeadlockwouldoccur*/
#defineENAMETOOLONG36/*filenametoolong*/
# defineenolck37/*norecordlocksavailable*/
#defineENOSYS38/*functionnotimplemented*/
#defineENOTEMPTY39/* directorynotempty*/
#defineELOOP40/*toomanysymboliclinksencountered*/
#defineEWOULDBLOCKEAGAIN/* operationwouldblock*/
#defineENOMSG42/*nomessageofdesiredtype*/
#defineEIDRM43/*identifierremoved*/
# defineechrng44/*channelnumberoutofrange*/
#defineEL2NSYNC45/*level2notsynchronized*/
#defineEL3HLT46/* level3halted*/
#defineEL3RST47/*level3reset*/
#defineELNRNG48/*linknumberoutofrange*/
# defineeunatch49/*protocoldrivernotattached*/
#defineENOCSI50/*nocsistructureavailable*/
#defineEL2HLT51/ *level2halted*/
#defineEBADE52/*invalidexchange*/
#defineEBADR53/*invalidrequestdescriptor*/
# defineexfull54/*exchangefull*/
#defineENOANO55/*noanode*/
#defineEBADRQC56/*invalidrequestcode*/
# defineebadslt57/*invalidslot*/
#defineEDEADLOCKEDEADLK
#defineEBFONT59/*badfontfileformat*/
#defineENOSTR60/*devicenotastream*/
#defineENODATA61/*nodataavailable*/
#defineETIME62/*timerexpired*/
#defineENOSR63/*outofstreamsresources*/
#defineENONET64/*machineisnotonthenetwork*/
#defineENOPKG65/*packagenotinstalled*/
#defineEREMOTE66/*objectisremote*/
#defineENOLINK67/*linkhasbeensevered*/
#defineEADV68/*advertiseerror*/
#defineESRMNT69/*srmounterror*/
#defineECOMM70/*communicationerroronsend*/
#defineEPROTO71/*protocolerror*/
#defineEMULTIHOP72/*multihopattempted*/
#defineEDOTDOT73/*rfsspecificerror*/
#defineEBADMSG74/*notadatamessage*/
#defineEOVERFLOW75/*valuetoolargefordefineddatatype*/
#defineENOTUNIQ76/*namenotuniqueonnetwork*/
#defineEBADFD77/*filedescriptorinbadstate*/
#defineEREMCHG78/*remoteaddresschanged*/
#defineELIBACC79/*cannotaccessaneededsharedlibrary*/
#defineELIBBAD80/*accessingacorruptedsharedlibrary*/
#defineELIBSCN81/*.libsectionina.outcorrupted*/
#defineELIBMAX82/*attemptingtolinkintoomanysharedlibraries*/
#defineELIBEXEC83/*cannotexecasharedlibrarydirectly*/
#defineEILSEQ84/*illegalbytesequence*/
#defineERESTART85/*interruptedsystemcallshouldberestarted*/
#defineESTRPIPE86/*streamspipeerror*/
#defineEUSERS87/*toomanyusers*/
#defineENOTSOCK88/*socketoperationonnon-socket*/
#defineEDESTADDRREQ89/*destinationaddressrequired*/
#defineEMSGSIZE90/*messagetoolong*/
#defineEPROTOTYPE91/*protocolwrongtypeforsocket*/
#defineENOPROTOOPT92/*protocolnotavailable*/
#defineEPROTONOSUPPORT93/*protocolnotsupported*/
#defineESOCKTNOSUPPORT94/*sockettypenotsupported*/
#defineEOPNOTSUPP95/*operationnotsupportedontransportendpoint*/
#defineEPFNOSUPPORT96/*protocolfamilynotsupported*/
#defineEAFNOSUPPORT97/*addressfamilynotsupportedbyprotocol*/
#defineEADDRINUSE98/*addressalreadyinuse*/
#defineEADDRNOTAVAIL99/*cannotassignrequestedaddress*/
#defineENETDOWN100/*networkisdown*/
#defineENETUNREACH101/*networkisunreachable*/
#defineENETRESET102/*networkdroppedconnectionbecauseofreset*/
#defineECONNABORTED103/*softwarecausedconnectionabort*/
#defineECONNRESET104/*connectionresetbypeer*/
#defineENOBUFS105/*nobufferspaceavailable*/
#defineEISCONN106/*transportendpointisalreadyconnected*/
#defineENOTCONN107/*transportendpointisnotconnected*/
#defineESHUTDOWN108/*cannotsendaftertransportendpointshutdown*/
#defineETOOMANYREFS109/*toomanyreferences:cannotsplice*/
#defineETIMEDOUT110/*connectiontimedout*/
#defineECONNREFUSED111/*connectionrefused*/
#defineEHOSTDOWN112/*hostisdown*/
#defineEHOSTUNREACH113/*noroutetohost*/
#defineEALREADY114/*operationalreadyinprogress*/
#defineEINPROGRESS115/*operationnowinprogress*/
#defineESTALE116/*stalenfsfilehandle*/
#defineEUCLEAN117/*structureneedscleaning*/
#defineENOTNAM118/*notaxenixnamedtypefile*/
#defineENAVAIL119/*noxenixsemaphoresavailable*/
#defineEISNAM120/*isanamedtypefile*/
#defineEREMOTEIO121/*remotei/oerror*/
#defineEDQUOT122/*quotaexceeded*/
#defineENOMEDIUM123/*nomediumfound*/
#defineEMEDIUMTYPE124/*wrongmediumtype*/
#defineECANCELED125/*operationcanceled*/
#defineENOKEY126/*requiredkeynotavailable*/
#defineEKEYEXPIRED127/*keyhasexpired*/
#defineEKEYREVOKED128/*keyhasbeenrevoked*/
#defineEKEYREJECTED129/*keywasrejectedbyservice*/
/*forrobustmutexes*/
#defineEOWNERDEAD130/*ownerdied*/
#defineENOTRECOVERABLE131/*statenotrecoverable*/
#defineERFKILL132/*operationnotpossibleduetorf-kill*/
#endif