00001
00014 #ifndef _ANEXT_ERRNO_H_
00015 #define _ANEXT_ERRNO_H_
00016
00017 #include <nlibc.h>
00018
00019
00064
00084 #define EDOM 33
00085
00086
00108 #define EILSEQ 84
00109
00110
00131 #define ERANGE 34
00132
00133
00134
00135
00136
00137
00138 #define EPERM 1
00139 #define ENOENT 2
00140 #define ESRCH 3
00141 #define EINTR 4
00142 #define EIO 5
00143 #define ENXIO 6
00144 #define E2BIG 7
00145 #define ENOEXEC 8
00146 #define EBADF 9
00147 #define ECHILD 10
00148 #define EAGAIN 11
00149 #define ENOMEM 12
00150 #define EACCES 13
00151 #define EFAULT 14
00152 #define ENOTBLK 15
00153 #define EBUSY 16
00154 #define EEXIST 17
00155 #define EXDEV 18
00156 #define ENODEV 19
00157 #define ENOTDIR 20
00158 #define EISDIR 21
00159 #define EINVAL 22
00160 #define ENFILE 23
00161 #define EMFILE 24
00162 #define ENOTTY 25
00163 #define ETXTBSY 26
00164 #define EFBIG 27
00165 #define ENOSPC 28
00166 #define ESPIPE 29
00167 #define EROFS 30
00168 #define EMLINK 31
00169 #define EPIPE 32
00170 #define EDEADLK 35
00171 #define ENAMETOOLONG 36
00172 #define ENOLCK 37
00173 #define ENOSYS 38
00174 #define ENOTEMPTY 39
00175 #define ELOOP 40
00176 #define EWOULDBLOCK EAGAIN
00177 #define ENOMSG 42
00178 #define EIDRM 43
00179 #define ECHRNG 44
00180 #define EL2NSYNC 45
00181 #define EL3HLT 46
00182 #define EL3RST 47
00183 #define ELNRNG 48
00184 #define EUNATCH 49
00185 #define ENOCSI 50
00186 #define EL2HLT 51
00187 #define EBADE 52
00188 #define EBADR 53
00189 #define EXFULL 54
00190 #define ENOANO 55
00191 #define EBADRQC 56
00192 #define EBADSLT 57
00193
00194 #define EDEADLOCK EDEADLK
00195
00196 #define EBFONT 59
00197 #define ENOSTR 60
00198 #define ENODATA 61
00199 #define ETIME 62
00200 #define ENOSR 63
00201 #define ENONET 64
00202 #define ENOPKG 65
00203 #define EREMOTE 66
00204 #define ENOLINK 67
00205 #define EADV 68
00206 #define ESRMNT 69
00207 #define ECOMM 70
00208 #define EPROTO 71
00209 #define EMULTIHOP 72
00210 #define EDOTDOT 73
00211 #define EBADMSG 74
00212 #define EOVERFLOW 75
00213 #define ENOTUNIQ 76
00214 #define EBADFD 77
00215 #define EREMCHG 78
00216 #define ELIBACC 79
00217 #define ELIBBAD 80
00218 #define ELIBSCN 81
00219 #define ELIBMAX 82
00220 #define ELIBEXEC 83
00221 #define ERESTART 85
00222 #define ESTRPIPE 86
00223 #define EUSERS 87
00224 #define ENOTSOCK 88
00225 #define EDESTADDRREQ 89
00226 #define EMSGSIZE 90
00227 #define EPROTOTYPE 91
00228 #define ENOPROTOOPT 92
00229 #define EPROTONOSUPPORT 93
00230 #define ESOCKTNOSUPPORT 94
00231 #define EOPNOTSUPP 95
00232 #define EPFNOSUPPORT 96
00233 #define EAFNOSUPPORT 97
00234 #define EADDRINUSE 98
00235 #define EADDRNOTAVAIL 99
00236 #define ENETDOWN 100
00237 #define ENETUNREACH 101
00238 #define ENETRESET 102
00239 #define ECONNABORTED 103
00240 #define ECONNRESET 104
00241 #define ENOBUFS 105
00242 #define EISCONN 106
00243 #define ENOTCONN 107
00244 #define ESHUTDOWN 108
00245 #define ETOOMANYREFS 109
00246 #define ETIMEDOUT 110
00247 #define ECONNREFUSED 111
00248 #define EHOSTDOWN 112
00249 #define EHOSTUNREACH 113
00250 #define EALREADY 114
00251 #define EINPROGRESS 115
00252 #define ESTALE 116
00253 #define EUCLEAN 117
00254 #define ENOTNAM 118
00255 #define ENAVAIL 119
00256 #define EISNAM 120
00257 #define EREMOTEIO 121
00258 #define EDQUOT 122
00259
00260 #define ENOMEDIUM 123
00261 #define EMEDIUMTYPE 124
00262
00263 #define N_ERRNO 125
00264
00265
00332 #define errno __sys_errno
00333
00334
00335 #ifdef __HAS_MAIN
00336 int __sys_errno = 0;
00337
00338 int sys_nerr = N_ERRNO;
00339
00340 #if !defined(__cflow_processed) || defined(_uses_strerror_string_h)
00341
00342 const char *sys_errlist[N_ERRNO] = {
00343 "",
00344 "Operation not permitted",
00345 "No such file or directory",
00346 "No such process",
00347 "Interrupted system call",
00348 "I/O error",
00349 "No such device or address",
00350 "Argument list too long",
00351 "Exec format error",
00352 "Bad file number",
00353 "No child processes",
00354 "Try again",
00355 "Out of memory",
00356 "Permission denied",
00357 "Bad address",
00358 "Block device required",
00359 "Device or resource busy",
00360 "File exists",
00361 "Cross-device link",
00362 "No such device",
00363 "Not a directory",
00364 "Is a directory",
00365 "Invalid argument",
00366 "File table overflow",
00367 "Too many open files",
00368 "Not a typewriter",
00369 "Text file busy",
00370 "File too large",
00371 "No space left on device",
00372 "Illegal seek",
00373 "Read-only file system",
00374 "Too many links",
00375 "Broken pipe",
00376 "Math argument out of domain of func",
00377 "Math result not representable",
00378 "Resource deadlock would occur",
00379 "File name too long",
00380 "No record locks available",
00381 "Function not implemented",
00382 "Directory not empty",
00383 "Too many symbolic links encountered",
00384 "",
00385 "No message of desired type",
00386 "Identifier removed",
00387 "Channel number out of range",
00388 "Level 2 not synchronized",
00389 "Level 3 halted",
00390 "Level 3 reset",
00391 "Link number out of range",
00392 "Protocol driver not attached",
00393 "No CSI structure available",
00394 "Level 2 halted",
00395 "Invalid exchange",
00396 "Invalid request descriptor",
00397 "Exchange full",
00398 "No anode",
00399 "Invalid request code",
00400 "Invalid slot",
00401 "",
00402 "Bad font file format",
00403 "Device not a stream",
00404 "No data available",
00405 "Timer expired",
00406 "Out of streams resources",
00407 "Machine is not on the network",
00408 "Package not installed",
00409 "Object is remote",
00410 "Link has been severed",
00411 "Advertise error",
00412 "Srmount error",
00413 "Communication error on send",
00414 "Protocol error",
00415 "Multihop attempted",
00416 "RFS specific error",
00417 "Not a data message",
00418 "Value too large for defined data type",
00419 "Name not unique on network",
00420 "File descriptor in bad state",
00421 "Remote address changed",
00422 "Can not access a needed shared library",
00423 "Accessing a corrupted shared library",
00424 ".lib section in a.out corrupted",
00425 "Attempting to link in too many shared libraries",
00426 "Cannot exec a shared library directly",
00427 "Illegal byte sequence",
00428 "Interrupted system call should be restarted",
00429 "Streams pipe error",
00430 "Too many users",
00431 "Socket operation on non-socket",
00432 "Destination address required",
00433 "Message too long",
00434 "Protocol wrong type for socket",
00435 "Protocol not available",
00436 "Protocol not supported",
00437 "Socket type not supported",
00438 "Operation not supported on transport endpoint",
00439 "Protocol family not supported",
00440 "Address family not supported by protocol",
00441 "Address already in use",
00442 "Cannot assign requested address",
00443 "Network is down",
00444 "Network is unreachable",
00445 "Network dropped connection because of reset",
00446 "Software caused connection abort",
00447 "Connection reset by peer",
00448 "No buffer space available",
00449 "Transport endpoint is already connected",
00450 "Transport endpoint is not connected",
00451 "Cannot send after transport endpoint shutdown",
00452 "Too many references: cannot splice",
00453 "Connection timed out",
00454 "Connection refused",
00455 "Host is down",
00456 "No route to host",
00457 "Operation already in progress",
00458 "Operation now in progress",
00459 "Stale NFS file handle",
00460 "Structure needs cleaning",
00461 "Not a XENIX named type file",
00462 "No XENIX semaphores available",
00463 "Is a named type file",
00464 "Remote I/O error",
00465 "Quota exceeded",
00466 "No medium found",
00467 "Wrong medium type",
00468 };
00469 #endif
00470
00471 #else
00472
00473 extern int __sys_errno;
00474 extern const char *sys_errlist[];
00475 extern int sys_nerr;
00476
00477 #endif // __HAS_MAIN
00478
00479 #endif
00480
00481