程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> C >> C語言基礎知識 >> 基於errno返回值的對應錯誤碼的詳細介紹

基於errno返回值的對應錯誤碼的詳細介紹

編輯:C語言基礎知識

errno返回值的對應錯誤碼
<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

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved