Linux errno Error Table

Source: Internet
Author: User
Tags comparison table connection reset

errno defined in <errno.h>, the error Exx macro is defined in the Errno-base.h and errno.h under the/usr/include/asm-generic folder, respectively, defining the 1-34, 35-132 error definitions.

The strerror () function returns an error description string based on the errno value, and the following program prints the comparison table:

[CPP]View PlainCopy
  1. #include <errno.h>
  2. #include <string.h>
  3. #include <stdio.h>
  4. int main ()
  5. {
  6. int i;
  7. For (i = 0; i <; ++i)
  8. {
  9. errno = i;
  10. printf ("errno%d: \t\t%s\n", I,strerror (errno));
  11. }
  12. return 0;
  13. }

Error table:

Errno0:success

Errno1:operation not permitted

Errno2:no such file or directory

Errno3:no such process

errno4:interrupted system Call

Errno5:input/output Error

Errno6:no such device or address

Errno7:argument list too long

Errno8:exec Format Error

Errno9:bad File Descriptor

Errno10:no Child Processes

Errno11:resource temporarily unavailable

Errno12:cannot Allocate Memory

Errno13:permission denied

Errno14:bad Address

Errno15:block Device required

Errno16:device or resource busy

Errno17:file exists

Errno18:invalid Cross-device Link

Errno19:no such device

Errno20:not a Directory

Errno21:is a Directory

Errno22:invalid argument

Errno23:too many open files in system

Errno24:too Many open files

Errno25:inappropriate IOCTL for device

Errno26:text file Busy

Errno27:file too large

Errno28:no space left on device

Errno29:illegal Seek

Errno30:read-only File System

Errno31:too many links

Errno32:broken Pipe

errno33:numerical argument out of domain

Errno34:numerical result out of range

Errno35:resource Deadlock avoided

Errno36:file name too long

Errno37:no Locks available

Errno38:function not implemented

Errno39:directory not empty

Errno40:too Many levels of symbolic links

Errno41:unknown Error 41

Errno42:no Message of desired type

Errno43:identifier removed

Errno44:channel number out of range

Errno45:level 2 not synchronized

Errno46:level 3 halted

Errno47:level 3 Reset

Errno48:link number out of range

Errno49:protocol Driver not attached

ERRNO50:NO CSI Structure available

Errno51:level 2 halted

Errno52:invalid Exchange

Errno53:invalid Request Descriptor

Errno54:exchange full

Errno55:no Anode

Errno56:invalid Request Code

Errno57:invalid slot

Errno58:unknown Error 58

Errno59:bad font file format

Errno60:device not a stream

Errno61:no data available

Errno62:timer Expired

Errno63:out of Streams Resources

Errno64:machine isn't on the network

Errno65:package not installed

Errno66:object is remote

Errno67:link has been severed

Errno68:advertise Error

Errno69:srmount Error

Errno70:communication error on send

Errno71:protocol Error

Errno72:multihop attempted

Errno73:rfs specific error

Errno74:bad message

Errno75:value too large for defined datatype

Errno76:name not unique on network

Errno77:file Descriptor in Bad state

Errno78:remote address changed

Errno79:can not access a needed sharedlibrary

Errno80:accessing a corrupted Sharedlibrary

errno81:. lib section in a.out corrupted

Errno82:attempting to link in too manyshared libraries

Errno83:cannot exec a shared librarydirectly

Errno84:invalid or incomplete multibyte orwide character

errno85:interrupted system call should berestarted

Errno86:streams Pipe Error

Errno87:too many users

Errno88:socket operation on Non-socket

Errno89:destinationaddress Required

Errno90:message too long

Errno91:protocol wrong type for socket

Errno92:protocol Not available

Errno93:protocol not supported

Errno94:socket type not supported

Errno95:operation not supported

Errno96:protocol Family not supported

Errno97:address Family not supported Byprotocol

Errno98:address already in use

Errno99:cannot Assign requested Address

Errno100:network is down

Errno101:network is unreachable

Errno102:network dropped connection onreset

Errno103:software caused connection abort

Errno104:connection Reset by peer

Errno105:no Buffer Space Available

Errno106:transport Endpoint is alreadyconnected

Errno107:transport Endpoint is notconnected

Errno108:cannot send after Transportendpoint shutdown

Errno109:too many References:cannot splice

Errno110:connection timed out

Errno111:connection refused

Errno112:host is down

Errno113:no Route to host

Errno114:operation already in progress

Errno115:operation now in progress

Errno116:stale NFS File Handle

Errno117:structure needs cleaning

Errno118:not a xenix named type file

Errno119:no Xenix semaphores available

Errno120:is a named type file

Errno121:remote I/O error

Errno122:disk Quota exceeded

Errno123:no Medium found

Errno124:wrong Medium Type

Errno125:operation canceled

Errno126:required Key Not available

Errno127:key has expired

Errno128:key has been revoked

Errno129:key was rejected by service

Errno130:owner died

Errno131:state not recoverable

Errno132:operation not possible due Torf-kill

Errno133:unknown Error 133

Errno134:unknown Error 134

Errno135:unknown Error 135

Errno136:unknown Error 136

Errno137:unknown Error 137

Errno138:unknown Error 138

Errno139:unknown Error 139

The definition of the wrong macro by Linux on the visible.

Header file/usr/include/asm-generic/errno-base.h Source:

#ifndef _asm_generic_errno_base_h
#define _asm_generic_errno_base_h

#define EPERM 1/* Operation not permitted */
#define ENOENT2/* No such file or directory */
#define ESRCH 3 */No such process */
#define EINTR 4/* Interrupted system call */
#define EIO 5 */I/O error */
#define ENXIO 6 */No such device or address */
#define E2BIG 7/* Argument list too long */
#define ENOEXEC8/* Exec Format Error */
#define EBADF 9/* Bad file number */
#define ECHILD10/* No Child processes */
#define EAGAIN11/* Try again */
#define ENOMEM12/* out of memory */
#define EACCES13/* Permission denied * *
#define EFAULT14/* Bad Address */
#define ENOTBLK15/* Block Device required */
#define EBUSY/* Device or resource busy */
#define EEXIST17/* File exists */
#define EXDEV */* cross-device link */
#define ENODEV19/* No such device */
#define ENOTDIR20/* Not a directory */
#define EISDIR21/* is a directory */
#define einval22/* Invalid Argument * *
#define ENFILE23/* File Table overflow */
#define EMFILE24/* Too Many open files */
#define ENOTTY25/* Not a typewriter */
#define ETXTBSY26/* Text File Busy */
#define EFBIG/* File too large */
#define ENOSPC28/* No space left on device */
#define ESPIPE29/* Illegal Seek * *
#define EROFS/* read-only File System */
#define EMLINK31/* Too Many links * *
#define EPIPE */broken pipe */
#define EDOM/* Math argument out of domain of func * *
#define ERANGE34/* Math Result not representable */

#endif

Header file/usr/include/asm-generic/erno.h Source:

#ifndef _asm_generic_errno_h
#define _asm_generic_errno_h

#include <asm-generic/errno-base.h>

#define EDEADLK35/* Resource deadlock would occur * *
#define ENAMETOOLONG36/* File Name too long */
#define enolck37/* No Record locks available */
#define ENOSYS38/* Function Not implemented */
#define ENOTEMPTY39/* Directory not empty */
#define ELOOP/* Too Many symbolic links encountered * *
#define EWOULDBLOCKEAGAIN/* operation would block * *
#define ENOMSG42/* No Message of desired type */
#define EIDRM */Identifier removed */
#define ECHRNG44/* Channel number out of range */
#define EL2NSYNC45/* Level 2 not synchronized */
#define EL3HLT46/* Level 3 halted */
#define EL3RST47/* Level 3 Reset */
#define ELNRNG48/* Link number out of range */
#define EUNATCH49/* Protocol Driver not attached */
#define ENOCSI50/* NO CSI structure available */
#define EL2HLT51/* Level 2 halted */
#define EBADE//Invalid Exchange * *
#define EBADR-*/Invalid Request Descriptor */
#define EXFULL54/* Exchange Full */
#define ENOANO55/* No Anode */
#define EBADRQC56/* Invalid Request code */
#define EBADSLT57/* Invalid Slot */

#define Edeadlockedeadlk

#define ebfont59/* Bad font file format */
#define ENOSTR60/* Device Not a stream */
#define ENODATA61/* No Data available */
#define ETIME */* Timer expired */
#define ENOSR */* out of streams resources * *
#define ENONET64/* Machine isn't on the network */
#define ENOPKG65/* Package not installed */
#define EREMOTE66/* Object is remote */
#define ENOLINK67/* Link has been severed * *
#define EADV/* Advertise Error */
#define ESRMNT69/* Srmount Error */
#define ECOMM/* Communication error on Send */
#define EPROTO71/* Protocol Error */
#define EMULTIHOP72/* Multihop Attempted * *
#define EDOTDOT73/* RFS Specific Error */
#define EBADMSG74/* NOT a data message */
#define EOVERFLOW75/* Value too large for defined data type */
#define ENOTUNIQ76/* Name not unique on network */
#define EBADFD77/* File Descriptor in bad state */
#define EREMCHG78/* Remote Address changed */
#define ELIBACC79/* Can not access a needed shared library */
#define ELIBBAD80/* Accessing a corrupted shared library */
#define elibscn81/* lib section in a.out corrupted */
#define ELIBMAX82/* attempting to link in too many shared libraries */
#define ELIBEXEC83/* cannot exec a shared library directly */
#define EILSEQ84/* Illegal byte sequence */
#define ERESTART85/* interrupted system call should is restarted */
#define ESTRPIPE86/* Streams Pipe Error */
#define EUSERS87/* Too Many users * *
#define ENOTSOCK88/* Socket operation on Non-socket */
#define EDESTADDRREQ89/* Destination Address required */
#define EMSGSIZE90/* Message too long */
#define eprototype91/* Protocol wrong type for socket */
#define ENOPROTOOPT92/* Protocol Not available */
#define EPROTONOSUPPORT93/* Protocol not supported */
#define ESOCKTNOSUPPORT94/* Socket Type not supported */
#define EOPNOTSUPP95/* operation not supported on transport endpoint */
#define EPFNOSUPPORT96/* Protocol Family not supported */
#define EAFNOSUPPORT97/* Address Family not supported by protocol */
#define EADDRINUSE98/* Address already in use */
#define EADDRNOTAVAIL99/* cannot assign requested address * *
#define ENETDOWN100/* Network is down */
#define ENETUNREACH101/* Network is unreachable */
#define ENETRESET102/* Network dropped connection because of reset */
#define ECONNABORTED103/* Software caused connection abort */
#define ECONNRESET104/* Connection Reset by Peer */
#define ENOBUFS105/* No Buffer space Available */
#define EISCONN106/* Transport Endpoint is already connected * *
#define ENOTCONN107/* Transport Endpoint is not connected */
#define ESHUTDOWN108/* cannot send after transport endpoint shutdown */
#define ETOOMANYREFS109/* Too Many references:cannot splice * *
#define ETIMEDOUT110/* Connection timed out */
#define ECONNREFUSED111/* Connection refused * *
#define EHOSTDOWN112/* Host is down */
#define EHOSTUNREACH113/* No route to host */
#define EALREADY114/* operation already in progress */
#define EINPROGRESS115/* Operation now in progress */
#define ESTALE116/* Stale NFS file handle */
#define EUCLEAN117/* Structure Needs cleaning */
#define ENOTNAM118/* not a xenix named type file */
#define ENAVAIL119/* No Xenix semaphores available */
#define EISNAM120/* is a named type file */
#define eremoteio121/* Remote I/O error */
#define EDQUOT122/* Quota Exceeded * *

#define ENOMEDIUM123/* No Medium found */
#define EMEDIUMTYPE124/* Wrong Medium type */
#define ECANCELED125/* Operation Canceled * *
#define ENOKEY126/* Required Key not available */
#define EKEYEXPIRED127/* Key has expired */
#define EKEYREVOKED128/* Key has been revoked */
#define EKEYREJECTED129/* Key was rejected by service */

/* for robust mutexes */
#define EOWNERDEAD130/* Owner died */
#define ENOTRECOVERABLE131/* State is not recoverable */

#define Erfkill 132/* operation not possible due to Rf-kill * *

#endif

Linux errno Error Table

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.