Main Page | Alphabetical List | Class List | File List | Class Members | File Members

errno.h

Go to the documentation of this file.
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      Other error codes, copied from the Linux errno.h file.
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 // extern definition for non-main modules
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 // include this string table only if strerror() is used
00342 const char *sys_errlist[N_ERRNO] = {
00343         "",
00344         "Operation not permitted",                              // 1
00345         "No such file or directory",                            // 2
00346         "No such process",                                      // 3
00347         "Interrupted system call",                              // 4
00348         "I/O error",                                            // 5
00349         "No such device or address",                            // 6
00350         "Argument list too long",                               // 7
00351         "Exec format error",                                    // 8
00352         "Bad file number",                                      // 9
00353         "No child processes",                                   // 10
00354         "Try again",                                            // 11
00355         "Out of memory",                                        // 12
00356         "Permission denied",                                    // 13
00357         "Bad address",                                          // 14
00358         "Block device required",                                // 15
00359         "Device or resource busy",                              // 16
00360         "File exists",                                          // 17
00361         "Cross-device link",                                    // 18
00362         "No such device",                                       // 19
00363         "Not a directory",                                      // 20
00364         "Is a directory",                                       // 21
00365         "Invalid argument",                                     // 22
00366         "File table overflow",                                  // 23
00367         "Too many open files",                                  // 24
00368         "Not a typewriter",                                     // 25
00369         "Text file busy",                                       // 26
00370         "File too large",                                       // 27
00371         "No space left on device",                              // 28
00372         "Illegal seek",                                         // 29
00373         "Read-only file system",                                // 30
00374         "Too many links",                                       // 31
00375         "Broken pipe",                                          // 32
00376         "Math argument out of domain of func",                  // 33
00377         "Math result not representable",                        // 34
00378         "Resource deadlock would occur",                        // 35
00379         "File name too long",                                   // 36
00380         "No record locks available",                            // 37
00381         "Function not implemented",                             // 38
00382         "Directory not empty",                                  // 39
00383         "Too many symbolic links encountered",                  // 40
00384         "",                                                     // 41
00385         "No message of desired type",                           // 42
00386         "Identifier removed",                                   // 43
00387         "Channel number out of range",                          // 44
00388         "Level 2 not synchronized",                             // 45
00389         "Level 3 halted",                                       // 46
00390         "Level 3 reset",                                        // 47
00391         "Link number out of range",                             // 48
00392         "Protocol driver not attached",                         // 49
00393         "No CSI structure available",                           // 50
00394         "Level 2 halted",                                       // 51
00395         "Invalid exchange",                                     // 52
00396         "Invalid request descriptor",                           // 53
00397         "Exchange full",                                        // 54
00398         "No anode",                                             // 55
00399         "Invalid request code",                                 // 56
00400         "Invalid slot",                                         // 57
00401         "",                                                     // 58
00402         "Bad font file format",                                 // 59
00403         "Device not a stream",                                  // 60
00404         "No data available",                                    // 61
00405         "Timer expired",                                        // 62
00406         "Out of streams resources",                             // 63
00407         "Machine is not on the network",                        // 64
00408         "Package not installed",                                // 65
00409         "Object is remote",                                     // 66
00410         "Link has been severed",                                // 67
00411         "Advertise error",                                      // 68
00412         "Srmount error",                                        // 69
00413         "Communication error on send",                          // 70
00414         "Protocol error",                                       // 71
00415         "Multihop attempted",                                   // 72
00416         "RFS specific error",                                   // 73
00417         "Not a data message",                                   // 74
00418         "Value too large for defined data type",                // 75
00419         "Name not unique on network",                           // 76
00420         "File descriptor in bad state",                         // 77
00421         "Remote address changed",                               // 78
00422         "Can not access a needed shared library",               // 79
00423         "Accessing a corrupted shared library",                 // 80
00424         ".lib section in a.out corrupted",                      // 81
00425         "Attempting to link in too many shared libraries",      // 82
00426         "Cannot exec a shared library directly",                // 83
00427         "Illegal byte sequence",                                // 84
00428         "Interrupted system call should be restarted",          // 85
00429         "Streams pipe error",                                   // 86
00430         "Too many users",                                       // 87
00431         "Socket operation on non-socket",                       // 88
00432         "Destination address required",                         // 89
00433         "Message too long",                                     // 90
00434         "Protocol wrong type for socket",                       // 91
00435         "Protocol not available",                               // 92
00436         "Protocol not supported",                               // 93
00437         "Socket type not supported",                            // 94
00438         "Operation not supported on transport endpoint",        // 95
00439         "Protocol family not supported",                        // 96
00440         "Address family not supported by protocol",             // 97
00441         "Address already in use",                               // 98
00442         "Cannot assign requested address",                      // 99
00443         "Network is down",                                      // 100
00444         "Network is unreachable",                               // 101
00445         "Network dropped connection because of reset",          // 102
00446         "Software caused connection abort",                     // 103
00447         "Connection reset by peer",                             // 104
00448         "No buffer space available",                            // 105
00449         "Transport endpoint is already connected",              // 106
00450         "Transport endpoint is not connected",                  // 107
00451         "Cannot send after transport endpoint shutdown",        // 108
00452         "Too many references: cannot splice",                   // 109
00453         "Connection timed out",                                 // 110
00454         "Connection refused",                                   // 111
00455         "Host is down",                                         // 112
00456         "No route to host",                                     // 113
00457         "Operation already in progress",                        // 114
00458         "Operation now in progress",                            // 115
00459         "Stale NFS file handle",                                // 116
00460         "Structure needs cleaning",                             // 117
00461         "Not a XENIX named type file",                          // 118
00462         "No XENIX semaphores available",                        // 119
00463         "Is a named type file",                                 // 120
00464         "Remote I/O error",                                     // 121
00465         "Quota exceeded",                                       // 122
00466         "No medium found",                                      // 123
00467         "Wrong medium type",                                    // 124
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 /* ifndef _ANEXT_ERRNO_H  */
00480 
00481 

Generated on Fri Jul 14 10:51:31 2006 for nlibc by doxygen 1.3.5