Linux errno error table

Source: Internet
Author: User
Tags comparison table connection reset

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

The strerror () function returns the error description String Based on the errno value. The following program prints the comparison table:

<! -

Code highlighting produced by Actipro CodeHighlighter (freeware)
Http://www.bkjia.com/

-> 01. # include <errno. h>
02. # include <string. h>
03. # include <stdio. h>
04.
05. int main ()
06 .{
07. int I;
08. for (I = 0; I <140; ++ I)
09 .{
10. errno = I;
11. printf ("errno % d: \ t % s \ n", I, strerror (errno ));
12 .}
13. return 0;
14 .}
 

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 program open files in system

Errno24: Too enabled 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 connector 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 is not 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 successfully upted sharedlibrary

Errno81:. lib section in a. out partition upted

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 shocould berestarted

Errno86: Streams pipe error

Errno87: Too extends 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 required 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

Errnoodle: Unknown error 133

Errno134: Unknown error 134

Errno135: Unknown error 135

Errno136: Unknown error 136

Errnoodle: Unknown error 137

Errno138: Unknown error 138

Errno139: Unknown error 139

The definition of error Macros in Linux.

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

# 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 16/* Device or resource busy */
# Define EEXIST17/* File exists */
# Define EXDEV 18/* 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 program open files */
# Define ENOTTY25/* Not a typewriter */
# Define ETXTBSY26/* Text file busy */
# Define EFBIG 27/* File too large */
# Define ENOSPC28/* No space left on device */
# Define ESPIPE29/* Illegal seek */
# Define EROFS 30/* Read-only file system */
# Define EMLINK31/* Too many links */
# Define EPIPE 32/* Broken pipe */
# Define EDOM 33/* Math argument out of domain of func */
# Define ERANGE34/* Math result not representable */

# Endif


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

# Ifndef _ ASM_GENERIC_ERRNO_H
# Define _ ASM_GENERIC_ERRNO_H

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

# Define EDEADLK35/* Resource deadlock wowould 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 40/* Too define symbolic links encountered */
# Define EWOULDBLOCKEAGAIN/* Operation wo'd block */
# Define ENOMSG42/* No message of desired type */
# Define EIDRM 43/* 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 52/* Invalid exchange */
# Define EBADR 53/* 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 62/* Timer expired */
# Define ENOSR 63/* Out of streams resources */
# Define ENONET64/* Machine is not on the network */
# Define ENOPKG65/* Package not installed */
# Define EREMOTE66/* Object is remote */
# Define ENOLINK67/* Link has been severed */
# Define EADV 68/* Advertise error */
# Define ESRMNT69/* Srmount error */
# Define ECOMM 70/* Communication error on send */
# Define EPROTO71/* Protocol error */
# Define emulti21372/* 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 specified upted shared library */
# Define ELIBSCN81/*. lib section in a. out writable upted */
# Define ELIBMAX82/* Attempting to link in too functions shared libraries */
# Define ELIBEXEC83/* Cannot exec a shared library directly */
# Define EILSEQ84/* Illegal byte sequence */
# Define ERESTART85/* Interrupted system call shoshould be restarted */
# Define ESTRPIPE86/* Streams pipe error */
# Define EUSERS87/* Too using 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 eprotonosupp93 93/* Protocol not supported */
# Define esocktnosupp94 94/* Socket type not supported */
# Define EOPNOTSUPP95/* Operation not supported on transport endpoint */
# Define epfnosupp96 96/* Protocol family not supported */
# Define eafnosupp97 97/* 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 eshudown108/* Cannot send after transport endpoint shutdown */
# Define indexes manyrefs109/* Too indexes 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 not recoverable */

# Define ERFKILL 132/* Operation not possible due to RF-kill */

# Endif

Related Article

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.