Home | History | Annotate | Download | only in asm-mips
      1 /*
      2  * This file is subject to the terms and conditions of the GNU General Public
      3  * License.  See the file "COPYING" in the main directory of this archive
      4  * for more details.
      5  *
      6  * Copyright (C) 1995, 1999, 2001, 2002 by Ralf Baechle
      7  */
      8 #ifndef _ASM_ERRNO_H
      9 #define _ASM_ERRNO_H
     10 
     11 /*
     12  * These error numbers are intended to be MIPS ABI compatible
     13  */
     14 
     15 #include <asm-generic/errno-base.h>
     16 
     17 #define	ENOMSG		35	/* No message of desired type */
     18 #define	EIDRM		36	/* Identifier removed */
     19 #define	ECHRNG		37	/* Channel number out of range */
     20 #define	EL2NSYNC	38	/* Level 2 not synchronized */
     21 #define	EL3HLT		39	/* Level 3 halted */
     22 #define	EL3RST		40	/* Level 3 reset */
     23 #define	ELNRNG		41	/* Link number out of range */
     24 #define	EUNATCH		42	/* Protocol driver not attached */
     25 #define	ENOCSI		43	/* No CSI structure available */
     26 #define	EL2HLT		44	/* Level 2 halted */
     27 #define	EDEADLK		45	/* Resource deadlock would occur */
     28 #define	ENOLCK		46	/* No record locks available */
     29 #define	EBADE		50	/* Invalid exchange */
     30 #define	EBADR		51	/* Invalid request descriptor */
     31 #define	EXFULL		52	/* Exchange full */
     32 #define	ENOANO		53	/* No anode */
     33 #define	EBADRQC		54	/* Invalid request code */
     34 #define	EBADSLT		55	/* Invalid slot */
     35 #define	EDEADLOCK	56	/* File locking deadlock error */
     36 #define	EBFONT		59	/* Bad font file format */
     37 #define	ENOSTR		60	/* Device not a stream */
     38 #define	ENODATA		61	/* No data available */
     39 #define	ETIME		62	/* Timer expired */
     40 #define	ENOSR		63	/* Out of streams resources */
     41 #define	ENONET		64	/* Machine is not on the network */
     42 #define	ENOPKG		65	/* Package not installed */
     43 #define	EREMOTE		66	/* Object is remote */
     44 #define	ENOLINK		67	/* Link has been severed */
     45 #define	EADV		68	/* Advertise error */
     46 #define	ESRMNT		69	/* Srmount error */
     47 #define	ECOMM		70	/* Communication error on send */
     48 #define	EPROTO		71	/* Protocol error */
     49 #define	EDOTDOT		73	/* RFS specific error */
     50 #define	EMULTIHOP	74	/* Multihop attempted */
     51 #define	EBADMSG		77	/* Not a data message */
     52 #define	ENAMETOOLONG	78	/* File name too long */
     53 #define	EOVERFLOW	79	/* Value too large for defined data type */
     54 #define	ENOTUNIQ	80	/* Name not unique on network */
     55 #define	EBADFD		81	/* File descriptor in bad state */
     56 #define	EREMCHG		82	/* Remote address changed */
     57 #define	ELIBACC		83	/* Can not access a needed shared library */
     58 #define	ELIBBAD		84	/* Accessing a corrupted shared library */
     59 #define	ELIBSCN		85	/* .lib section in a.out corrupted */
     60 #define	ELIBMAX		86	/* Attempting to link in too many shared libraries */
     61 #define	ELIBEXEC	87	/* Cannot exec a shared library directly */
     62 #define	EILSEQ		88	/* Illegal byte sequence */
     63 #define	ENOSYS		89	/* Function not implemented */
     64 #define	ELOOP		90	/* Too many symbolic links encountered */
     65 #define	ERESTART	91	/* Interrupted system call should be restarted */
     66 #define	ESTRPIPE	92	/* Streams pipe error */
     67 #define	ENOTEMPTY	93	/* Directory not empty */
     68 #define	EUSERS		94	/* Too many users */
     69 #define	ENOTSOCK	95	/* Socket operation on non-socket */
     70 #define	EDESTADDRREQ	96	/* Destination address required */
     71 #define	EMSGSIZE	97	/* Message too long */
     72 #define	EPROTOTYPE	98	/* Protocol wrong type for socket */
     73 #define	ENOPROTOOPT	99	/* Protocol not available */
     74 #define	EPROTONOSUPPORT	120	/* Protocol not supported */
     75 #define	ESOCKTNOSUPPORT	121	/* Socket type not supported */
     76 #define	EOPNOTSUPP	122	/* Operation not supported on transport endpoint */
     77 #define	EPFNOSUPPORT	123	/* Protocol family not supported */
     78 #define	EAFNOSUPPORT	124	/* Address family not supported by protocol */
     79 #define	EADDRINUSE	125	/* Address already in use */
     80 #define	EADDRNOTAVAIL	126	/* Cannot assign requested address */
     81 #define	ENETDOWN	127	/* Network is down */
     82 #define	ENETUNREACH	128	/* Network is unreachable */
     83 #define	ENETRESET	129	/* Network dropped connection because of reset */
     84 #define	ECONNABORTED	130	/* Software caused connection abort */
     85 #define	ECONNRESET	131	/* Connection reset by peer */
     86 #define	ENOBUFS		132	/* No buffer space available */
     87 #define	EISCONN		133	/* Transport endpoint is already connected */
     88 #define	ENOTCONN	134	/* Transport endpoint is not connected */
     89 #define	EUCLEAN		135	/* Structure needs cleaning */
     90 #define	ENOTNAM		137	/* Not a XENIX named type file */
     91 #define	ENAVAIL		138	/* No XENIX semaphores available */
     92 #define	EISNAM		139	/* Is a named type file */
     93 #define	EREMOTEIO	140	/* Remote I/O error */
     94 #define EINIT		141	/* Reserved */
     95 #define EREMDEV		142	/* Error 142 */
     96 #define	ESHUTDOWN	143	/* Cannot send after transport endpoint shutdown */
     97 #define	ETOOMANYREFS	144	/* Too many references: cannot splice */
     98 #define	ETIMEDOUT	145	/* Connection timed out */
     99 #define	ECONNREFUSED	146	/* Connection refused */
    100 #define	EHOSTDOWN	147	/* Host is down */
    101 #define	EHOSTUNREACH	148	/* No route to host */
    102 #define	EWOULDBLOCK	EAGAIN	/* Operation would block */
    103 #define	EALREADY	149	/* Operation already in progress */
    104 #define	EINPROGRESS	150	/* Operation now in progress */
    105 #define	ESTALE		151	/* Stale NFS file handle */
    106 #define ECANCELED	158	/* AIO operation canceled */
    107 
    108 /*
    109  * These error are Linux extensions.
    110  */
    111 #define ENOMEDIUM	159	/* No medium found */
    112 #define EMEDIUMTYPE	160	/* Wrong medium type */
    113 #define	ENOKEY		161	/* Required key not available */
    114 #define	EKEYEXPIRED	162	/* Key has expired */
    115 #define	EKEYREVOKED	163	/* Key has been revoked */
    116 #define	EKEYREJECTED	164	/* Key was rejected by service */
    117 
    118 /* for robust mutexes */
    119 #define	EOWNERDEAD	165	/* Owner died */
    120 #define	ENOTRECOVERABLE	166	/* State not recoverable */
    121 
    122 #define EDQUOT		1133	/* Quota exceeded */
    123 
    124 #ifdef __KERNEL__
    125 
    126 /* The biggest error number defined here or in <linux/errno.h>. */
    127 #define EMAXERRNO	1133
    128 
    129 #endif /* __KERNEL__ */
    130 
    131 #endif /* _ASM_ERRNO_H */
    132