欢迎来到入门教程网!

C语言

当前位置:主页 > 软件编程 > C语言 >

基于errno返回值的对应错误码的详细介绍

来源:本站原创|时间:2020-01-10|栏目: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

上一篇:深入分析C中不安全的sprintf与strcpy

栏    目:C语言

下一篇:使用Inotify 监控目录与文件的方法详解

本文标题:基于errno返回值的对应错误码的详细介绍

本文地址:https://www.xiuzhanwang.com/a1/Cyuyan/4465.html

网页制作CMS教程网络编程软件编程脚本语言数据库服务器

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:835971066 | 邮箱:835971066#qq.com(#换成@)

Copyright © 2002-2020 脚本教程网 版权所有