| 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 | #ifndef _LINUX_ERRNO_H |
|---|
| 12 | #include <linux/errno.h> |
|---|
| 13 | #endif |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | #undef EDEADLK |
|---|
| 17 | #undef ENAMETOOLONG |
|---|
| 18 | #undef ENOLCK |
|---|
| 19 | #undef ENOSYS |
|---|
| 20 | #undef ENOTEMPTY |
|---|
| 21 | #undef ELOOP |
|---|
| 22 | #undef EWOULDBLOCK |
|---|
| 23 | #undef ENOMSG |
|---|
| 24 | #undef EIDRM |
|---|
| 25 | #undef ECHRNG |
|---|
| 26 | #undef EL2NSYNC |
|---|
| 27 | #undef EL3HLT |
|---|
| 28 | #undef EL3RST |
|---|
| 29 | #undef ELNRNG |
|---|
| 30 | #undef EUNATCH |
|---|
| 31 | #undef ENOCSI |
|---|
| 32 | #undef EL2HLT |
|---|
| 33 | #undef EBADE |
|---|
| 34 | #undef EBADR |
|---|
| 35 | #undef EXFULL |
|---|
| 36 | #undef ENOANO |
|---|
| 37 | #undef EBADRQC |
|---|
| 38 | #undef EBADSLT |
|---|
| 39 | #undef EDEADLOCK |
|---|
| 40 | #undef EBFONT |
|---|
| 41 | #undef ENOSTR |
|---|
| 42 | #undef ENODATA |
|---|
| 43 | #undef ETIME |
|---|
| 44 | #undef ENOSR |
|---|
| 45 | #undef ENONET |
|---|
| 46 | #undef ENOPKG |
|---|
| 47 | #undef EREMOTE |
|---|
| 48 | #undef ENOLINK |
|---|
| 49 | #undef EADV |
|---|
| 50 | #undef ESRMNT |
|---|
| 51 | #undef ECOMM |
|---|
| 52 | #undef EPROTO |
|---|
| 53 | #undef EMULTIHOP |
|---|
| 54 | #undef EDOTDOT |
|---|
| 55 | #undef EBADMSG |
|---|
| 56 | #undef EOVERFLOW |
|---|
| 57 | #undef ENOTUNIQ |
|---|
| 58 | #undef EBADFD |
|---|
| 59 | #undef EREMCHG |
|---|
| 60 | #undef ELIBACC |
|---|
| 61 | #undef ELIBBAD |
|---|
| 62 | #undef ELIBSCN |
|---|
| 63 | #undef ELIBMAX |
|---|
| 64 | #undef ELIBEXEC |
|---|
| 65 | #undef EILSEQ |
|---|
| 66 | #undef ERESTART |
|---|
| 67 | #undef ESTRPIPE |
|---|
| 68 | #undef EUSERS |
|---|
| 69 | #undef ENOTSOCK |
|---|
| 70 | #undef EDESTADDRREQ |
|---|
| 71 | #undef EMSGSIZE |
|---|
| 72 | #undef EPROTOTYPE |
|---|
| 73 | #undef ENOPROTOOPT |
|---|
| 74 | #undef EPROTONOSUPPORT |
|---|
| 75 | #undef ESOCKTNOSUPPORT |
|---|
| 76 | #undef EOPNOTSUPP |
|---|
| 77 | #undef EPFNOSUPPORT |
|---|
| 78 | #undef EAFNOSUPPORT |
|---|
| 79 | #undef EADDRINUSE |
|---|
| 80 | #undef EADDRNOTAVAIL |
|---|
| 81 | #undef ENETDOWN |
|---|
| 82 | #undef ENETUNREACH |
|---|
| 83 | #undef ENETRESET |
|---|
| 84 | #undef ECONNABORTED |
|---|
| 85 | #undef ECONNRESET |
|---|
| 86 | #undef ENOBUFS |
|---|
| 87 | #undef EISCONN |
|---|
| 88 | #undef ENOTCONN |
|---|
| 89 | #undef ESHUTDOWN |
|---|
| 90 | #undef ETOOMANYREFS |
|---|
| 91 | #undef ETIMEDOUT |
|---|
| 92 | #undef ECONNREFUSED |
|---|
| 93 | #undef EHOSTDOWN |
|---|
| 94 | #undef EHOSTUNREACH |
|---|
| 95 | #undef EALREADY |
|---|
| 96 | #undef EINPROGRESS |
|---|
| 97 | #undef ESTALE |
|---|
| 98 | #undef EUCLEAN |
|---|
| 99 | #undef ENOTNAM |
|---|
| 100 | #undef ENAVAIL |
|---|
| 101 | #undef EISNAM |
|---|
| 102 | #undef EREMOTEIO |
|---|
| 103 | #undef EDQUOT |
|---|
| 104 | #undef ENOMEDIUM |
|---|
| 105 | #undef EMEDIUMTYPE |
|---|
| 106 | #undef ECANCELED |
|---|
| 107 | #undef ENOKEY |
|---|
| 108 | #undef EKEYEXPIRED |
|---|
| 109 | #undef EKEYREVOKED |
|---|
| 110 | #undef EKEYREJECTED |
|---|
| 111 | #undef EOWNERDEAD |
|---|
| 112 | #undef ENOTRECOVERABLE |
|---|
| 113 | |
|---|
| 114 | /* |
|---|
| 115 | * These error numbers are intended to be MIPS ABI compatible |
|---|
| 116 | */ |
|---|
| 117 | |
|---|
| 118 | |
|---|
| 119 | #define ENOMSG 35 /* No message of desired type */ |
|---|
| 120 | #define EIDRM 36 /* Identifier removed */ |
|---|
| 121 | #define ECHRNG 37 /* Channel number out of range */ |
|---|
| 122 | #define EL2NSYNC 38 /* Level 2 not synchronized */ |
|---|
| 123 | #define EL3HLT 39 /* Level 3 halted */ |
|---|
| 124 | #define EL3RST 40 /* Level 3 reset */ |
|---|
| 125 | #define ELNRNG 41 /* Link number out of range */ |
|---|
| 126 | #define EUNATCH 42 /* Protocol driver not attached */ |
|---|
| 127 | #define ENOCSI 43 /* No CSI structure available */ |
|---|
| 128 | #define EL2HLT 44 /* Level 2 halted */ |
|---|
| 129 | #define EDEADLK 45 /* Resource deadlock would occur */ |
|---|
| 130 | #define ENOLCK 46 /* No record locks available */ |
|---|
| 131 | #define EBADE 50 /* Invalid exchange */ |
|---|
| 132 | #define EBADR 51 /* Invalid request descriptor */ |
|---|
| 133 | #define EXFULL 52 /* Exchange full */ |
|---|
| 134 | #define ENOANO 53 /* No anode */ |
|---|
| 135 | #define EBADRQC 54 /* Invalid request code */ |
|---|
| 136 | #define EBADSLT 55 /* Invalid slot */ |
|---|
| 137 | #define EDEADLOCK 56 /* File locking deadlock error */ |
|---|
| 138 | #define EBFONT 59 /* Bad font file format */ |
|---|
| 139 | #define ENOSTR 60 /* Device not a stream */ |
|---|
| 140 | #define ENODATA 61 /* No data available */ |
|---|
| 141 | #define ETIME 62 /* Timer expired */ |
|---|
| 142 | #define ENOSR 63 /* Out of streams resources */ |
|---|
| 143 | #define ENONET 64 /* Machine is not on the network */ |
|---|
| 144 | #define ENOPKG 65 /* Package not installed */ |
|---|
| 145 | #define EREMOTE 66 /* Object is remote */ |
|---|
| 146 | #define ENOLINK 67 /* Link has been severed */ |
|---|
| 147 | #define EADV 68 /* Advertise error */ |
|---|
| 148 | #define ESRMNT 69 /* Srmount error */ |
|---|
| 149 | #define ECOMM 70 /* Communication error on send */ |
|---|
| 150 | #define EPROTO 71 /* Protocol error */ |
|---|
| 151 | #define EDOTDOT 73 /* RFS specific error */ |
|---|
| 152 | #define EMULTIHOP 74 /* Multihop attempted */ |
|---|
| 153 | #define EBADMSG 77 /* Not a data message */ |
|---|
| 154 | #define ENAMETOOLONG 78 /* File name too long */ |
|---|
| 155 | #define EOVERFLOW 79 /* Value too large for defined data type */ |
|---|
| 156 | #define ENOTUNIQ 80 /* Name not unique on network */ |
|---|
| 157 | #define EBADFD 81 /* File descriptor in bad state */ |
|---|
| 158 | #define EREMCHG 82 /* Remote address changed */ |
|---|
| 159 | #define ELIBACC 83 /* Can not access a needed shared library */ |
|---|
| 160 | #define ELIBBAD 84 /* Accessing a corrupted shared library */ |
|---|
| 161 | #define ELIBSCN 85 /* .lib section in a.out corrupted */ |
|---|
| 162 | #define ELIBMAX 86 /* Attempting to link in too many shared libraries */ |
|---|
| 163 | #define ELIBEXEC 87 /* Cannot exec a shared library directly */ |
|---|
| 164 | #define EILSEQ 88 /* Illegal byte sequence */ |
|---|
| 165 | #define ENOSYS 89 /* Function not implemented */ |
|---|
| 166 | #define ELOOP 90 /* Too many symbolic links encountered */ |
|---|
| 167 | #define ERESTART 91 /* Interrupted system call should be restarted */ |
|---|
| 168 | #define ESTRPIPE 92 /* Streams pipe error */ |
|---|
| 169 | #define ENOTEMPTY 93 /* Directory not empty */ |
|---|
| 170 | #define EUSERS 94 /* Too many users */ |
|---|
| 171 | #define ENOTSOCK 95 /* Socket operation on non-socket */ |
|---|
| 172 | #define EDESTADDRREQ 96 /* Destination address required */ |
|---|
| 173 | #define EMSGSIZE 97 /* Message too long */ |
|---|
| 174 | #define EPROTOTYPE 98 /* Protocol wrong type for socket */ |
|---|
| 175 | #define ENOPROTOOPT 99 /* Protocol not available */ |
|---|
| 176 | #define EPROTONOSUPPORT 120 /* Protocol not supported */ |
|---|
| 177 | #define ESOCKTNOSUPPORT 121 /* Socket type not supported */ |
|---|
| 178 | #define EOPNOTSUPP 122 /* Operation not supported on transport endpoint */ |
|---|
| 179 | #define EPFNOSUPPORT 123 /* Protocol family not supported */ |
|---|
| 180 | #define EAFNOSUPPORT 124 /* Address family not supported by protocol */ |
|---|
| 181 | #define EADDRINUSE 125 /* Address already in use */ |
|---|
| 182 | #define EADDRNOTAVAIL 126 /* Cannot assign requested address */ |
|---|
| 183 | #define ENETDOWN 127 /* Network is down */ |
|---|
| 184 | #define ENETUNREACH 128 /* Network is unreachable */ |
|---|
| 185 | #define ENETRESET 129 /* Network dropped connection because of reset */ |
|---|
| 186 | #define ECONNABORTED 130 /* Software caused connection abort */ |
|---|
| 187 | #define ECONNRESET 131 /* Connection reset by peer */ |
|---|
| 188 | #define ENOBUFS 132 /* No buffer space available */ |
|---|
| 189 | #define EISCONN 133 /* Transport endpoint is already connected */ |
|---|
| 190 | #define ENOTCONN 134 /* Transport endpoint is not connected */ |
|---|
| 191 | #define EUCLEAN 135 /* Structure needs cleaning */ |
|---|
| 192 | #define ENOTNAM 137 /* Not a XENIX named type file */ |
|---|
| 193 | #define ENAVAIL 138 /* No XENIX semaphores available */ |
|---|
| 194 | #define EISNAM 139 /* Is a named type file */ |
|---|
| 195 | #define EREMOTEIO 140 /* Remote I/O error */ |
|---|
| 196 | #define EINIT 141 /* Reserved */ |
|---|
| 197 | #define EREMDEV 142 /* Error 142 */ |
|---|
| 198 | #define ESHUTDOWN 143 /* Cannot send after transport endpoint shutdown */ |
|---|
| 199 | #define ETOOMANYREFS 144 /* Too many references: cannot splice */ |
|---|
| 200 | #define ETIMEDOUT 145 /* Connection timed out */ |
|---|
| 201 | #define ECONNREFUSED 146 /* Connection refused */ |
|---|
| 202 | #define EHOSTDOWN 147 /* Host is down */ |
|---|
| 203 | #define EHOSTUNREACH 148 /* No route to host */ |
|---|
| 204 | #define EWOULDBLOCK EAGAIN /* Operation would block */ |
|---|
| 205 | #define EALREADY 149 /* Operation already in progress */ |
|---|
| 206 | #define EINPROGRESS 150 /* Operation now in progress */ |
|---|
| 207 | #define ESTALE 151 /* Stale NFS file handle */ |
|---|
| 208 | #define ECANCELED 158 /* AIO operation canceled */ |
|---|
| 209 | |
|---|
| 210 | /* |
|---|
| 211 | * These error are Linux extensions. |
|---|
| 212 | */ |
|---|
| 213 | #define ENOMEDIUM 159 /* No medium found */ |
|---|
| 214 | #define EMEDIUMTYPE 160 /* Wrong medium type */ |
|---|
| 215 | #define ENOKEY 161 /* Required key not available */ |
|---|
| 216 | #define EKEYEXPIRED 162 /* Key has expired */ |
|---|
| 217 | #define EKEYREVOKED 163 /* Key has been revoked */ |
|---|
| 218 | #define EKEYREJECTED 164 /* Key was rejected by service */ |
|---|
| 219 | |
|---|
| 220 | /* for robust mutexes */ |
|---|
| 221 | #define EOWNERDEAD 165 /* Owner died */ |
|---|
| 222 | #define ENOTRECOVERABLE 166 /* State not recoverable */ |
|---|
| 223 | |
|---|
| 224 | #define EDQUOT 1133 /* Quota exceeded */ |
|---|
| 225 | |
|---|
| 226 | |
|---|
| 227 | #endif /* _ASM_ERRNO_H */ |
|---|