errno the meaning of the values of global variables

Source: Internet
Author: User
Tags connection reset

Linux is the most common is errno, usually when the error will give the global variable errno assignment, all of its possible values to view the Linux library files, the following is to view the results of the Linux v3.0:


/usr/include/asm-generic/errno-base.h

#ifndef _asm_generic_errno_base_h #define _ASM_GENERIC_ERRNO_BASE_H #define EPERM 1/* Operation not permitted * *        #define ENOENT 2/* 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 addres        S/#define E2BIG 7/* Argument list too long */#define ENOEXEC 8/* Exec format Error */#define EBADF 9/* Bad file number * * * #define ECHILD/* No Child processes * * * #define EAGAIN/* Try again/* * #de Fine Enomem/* out of memory/#define EACCES/* Permission denied/#define EFAULT/* Bad ad  Dress * * #define ENOTBLK/* block Device required * * * EBUSY/device-Resource busy-* * #define Eexist/* File exists */#define EXDEV/* cross-device link/#define ENODEV/* No such Devi   CE */#define Enotdir  /* Not a directory */#define EISDIR/is a directory */#define EINVAL/* Invalid argument * * #d  Efine enfile/* File table overflow */#define EMFILE/* Too many open files */#define ENOTTY 25 /* Not a typewriter */#define ETXTBSY/* Text file Busy * * #define EFBIG/* file too large/#define E NOSPC/No spaces left on device */#define ESPIPE/* Illegal seek/#define EROFS/* read-on        LY file System/#define EMLINK/* Too many links */#define EPIPE/* Broken pipe * * #define EDOM /* Math argument out of domain of func/#define ERANGE/* Math result is not representable * * * #endif

/usr/include/asm-generic/errno.h

#ifndef _asm_generic_errno_h #define _ASM_GENERIC_ERRNO_H #include <asm-generic/errno-base.h> #define Edeadlk  /* Resource deadlock would occur/#define ENAMETOOLONG/* File name too long * * #define ENOLCK notoginseng/* No  Record locks available/#define ENOSYS/* Function not implemented */#define ENOTEMPTY/* Directory not  Empty * * #define ELOOP/* Too Many symbolic links encountered/#define Ewouldblock eagain/* Operation would Block/#define ENOMSG/* No message of desired type */#define EIDRM/* Identifier removed/* * #defin      E echrng/* Channel number out of range/#define EL2NSYNC/* Level 2 is not synchronized */#define EL3HLT /* Level 3 halted * * #define EL3RST/Level 3 Reset */#define ELNRNG/* Link number out of RA 
Nge */#define EUNATCH/* Protocol driver not attached * * ENOCSI/NO CSI structure Available * * #define EL2HLT 51 /* Level 2 halted * * #define EBADE/* Invalid Exchange */#define EBADR * Invalid Request Descriptor * * #define EXFULL/* Exchange full/* #define ENOANO/* No anode/#define EBADRQC/* Invalid Request Code */#define EBADSLT/* Invalid slot/#define Edeadlock EDEADLK #define EBFONT-* Bad fo NT file Format */#define ENOSTR/* Device not a stream */#define ENODATA/No data available/* * #defin e etime/Timer expired//#define ENOSR/* Out of the streams resources */#define ENONET-* Ma Chine is isn't on the network */#define ENOPKG/* Package not installed/#define EREMOTE-* Object is RE      Mote * * #define ENOLINK/* Link has been severed/#define EADV/* Advertise error */#define ESRMNT Srmount Error//#define ECOMM/* Communication error on Send */#define EPROTO/* Protocol Error */#define EmultihOP/* Multihop attempted * * * #define EDOTDOT/* RFS Specific Error * * * * #define EBADMSG/not a data m Essage/#define EOVERFLOW/* Value too large for defined data type */#define ENOTUNIQ * * Name not unique O N Network */#define EBADFD/* File descriptor in the bad state/#define EREMCHG * Remote address changed * * #define ELIBACC/* Can not access a needed shared library * * * #define ELIBBAD/* Accessing a corrupted S hared Library * * * #define ELIBSCN I/*, lib section in a.out corrupted */#define ELIBMAX-attempting to Li      NK in too many shared libraries/#define ELIBEXEC * * cannot exec a shared library directly/#define EILSEQ /* Illegal byte sequence/#define ERESTART/* Interrupted system call should is restarted */#define ESTRPIP  E-* * Streams PIPE ERROR * * * * * * * * * #define EUSERS/* Too many users * * #define ENOTSOCK-* Socket operation On Non-socket * * #definE edestaddrreq/* Destination address required/#define EMSGSIZE/* Message too long */#define Eprototype   Protocol/* Wrong type for socket//#define ENOPROTOOPT/* Protocol not Available/#define EPROTONOSUPPORT 93 /* Protocol not supported */#define ESOCKTNOSUPPORT/* Socket type not supported/#define EOPNOTSUPP/* Oper Ation not supported on transport endpoint/#define EPFNOSUPPORT/* Protocol Family not supported */#define EAFNO  SUPPORT Family/address is not supported by Protocol/#define EADDRINUSE/* address already with use/* * #define Eaddrnotavail/* Cannot assign requested address */#define ENETDOWN/* Network is down/#define Enetunrea CH/* Network is unreachable/#define ENETRESET 102/* Network dropped connection because of Reset */#define ECON naborted/* Software caused connection abort/#define ECONNRESET/* Connection reset by Peer */#define Enob UFS/No Buffer Space Available/#define EISCONN Transport endpoint is already connected/#define ENOTCONN/* Trans Port endpoint is not connected */#define ESHUTDOWN 108/* Cannot send after transport endpoint shutdown * * * #define Etoo Manyrefs 109/* Too many References:cannot splice/#define ETIMEDOUT/* Connection timed out * * * #define ECONNR efused/* Connection refused/#define EHOSTDOWN 112/* Host is down */#define EHOSTUNREACH 113/* No Route to host */#define EALREADY 114/* Operation already in progress/#define EINPROGRESS * * Operation S/#define ESTALE 116/* Stale NFS file handle * * #define EUCLEAN 117/* Structure needs */#define EN       Otnam 118/* Not a Xenix named type file/#define ENAVAIL 119/* No XENIX semaphores * * * Available The/* is a named type file */#define EREMOTEIO 121/* Remote I/O error/#define EDQUOT 122/* Quota Excee ded * * #define EnomediuM 123/* No medium found/#define EMEDIUMTYPE 124/* Wrong medium type */#define ecanceled/* Operation Cancele d/#define ENOKEY 126/* Required key Not available * * #define EKEYEXPIRED 127/* Key has expired * * #define Ekeyre voked 128/* Key has been revoked/#define EKEYREJECTED 129/* key is rejected by service */* for robust mutexes * * #define EOWNERDEAD 130/* Owner died/#define ENOTRECOVERABLE 131/* State not recoverable/* #endif

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.