当前位置:  编程技术>c/c++/嵌入式

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

    来源: 互联网  发布时间:2014-10-16

    本文导语:  errno返回值的对应错误码#ifndef_ASM_GENERIC_ERRNO_BASE_H#define_ASM_GENERIC_ERRNO_BASE_H #defineEPERM1/*Operationnotpermitted*/#defineENOENT2/*Nosuchfileordirectory*/#defineESRCH3/*Nosuchprocess*/#defineEINTR4/*Interruptedsystemcall*/#defineEIO5/*I/Oerror*/#defineENXIO6/*Nosuchdeviceoraddr...

errno返回值的对应错误码

#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

#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


    
 
 

您可能感兴趣的文章:

  • unix 下的socket 函数调用失败会写 errno. 哪位有 errno 的值 和 其对应意义 的 对照表???
  • Connect函数在出现错误时返回-1,并且设置errno为相应的错误码
  • 在Linux系统上recv返回错误,通过errno得到的错误消息为"Interrupted system call"
  • 问个很菜的问题,如何获取错误代码errno
  • socket连接函数connect()返回错误 errno 为 115,什么原因?谢谢
  • 解析mysql数据库还原错误:(mysql Error Code: 1005 errno 121)
  • kmod: failed to exec /sbin/modprobe -s -k binfmt-4c46, errno = 2 这是什么错误?
  • 求救!请教网络通讯错误errno:32:there is no process to read data written to the pipe
  • [网络编程] recv 接收错误,提示errno=84 或 22
  • 解析MySQL创建外键关联错误 - errno:150
  • MYSQL错误:Can’t open file: ‘×××.MYI’ (errno: 145)修复方法
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • sendto,总是返回-1,查看errno说是EPERM
  • 急问socket编程:程序中执行sendto()返回errno=101是什么原因啊
  • 请问:SCO UNIX下SOCKET的recv返回-1,errno=9?在线等·····
  • 请教高手,linux下使用libusb_submit_transfer,返回-1,errno = 16,如何解决?
  • gethostbyaddr函数老是返回为null 但是查看errno又说成功(success) 为什么求助 深夜求帖
  • 急!网络编程,connect()无法连接,返回 errno 为 101 。该怎么解决?谢谢
  • select立刻返回0,errno=0,根本没有等到超时的情况,为何
  • 怎样才能知道UNIX 下C语言的ERRNO都代表什么意思?到哪里去查,别外怎样在程序中截获这个errno我好做相应的处理。
  • 使用errno要不要加头文件?
  • 关于linux下errno的实现问题
  • 对于多线程而言,errno是不是不可靠啊?有什么解决办法没?
  • errno在文件操作中的问题
  • errno 问题
  • 函数 errno的问题 ,大侠来下急
  • 关于errno的问题
  • 线程内部的errno问题求助
  • errno是个全局的马〉?还是一个线程一个?
  • Linux新手提问...errno.h的问题
  • linux多线程下可以直接使用errno吗?
  • Linux 动态库 dlopen()失败,errno = 17, File exists
  • execve failed for /etc/X11/X (errno 2)是什么问题?
  • 如何根据errno得到文件名
  • 一个关于errno,多线程和socket(tcp/ip)的问题!
  • linux 编写内核函数errno
  • kmod:failed to exec/sbin/modprobe -s -k binfmt-0000 ,errno=8
  • connect失败,errno为115.请问怎么解决?
  • 权限够却莫名其妙报strerror(errno)=Permission denied


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3