]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/asm-mips/errno.h
1665a63a8120bba59b888d871b0c8b5fb2bfa61b
[karo-tx-uboot.git] / include / asm-mips / errno.h
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_MIPS_ERRNO_H
9 #define _ASM_MIPS_ERRNO_H
10
11 /*
12  * These first 34 error codes are from Linux 2.6, <asm-generic/errno-base.h>
13  */
14 #define EPERM            1      /* Operation not permitted */
15 #define ENOENT           2      /* No such file or directory */
16 #define ESRCH            3      /* No such process */
17 #define EINTR            4      /* Interrupted system call */
18 #define EIO              5      /* I/O error */
19 #define ENXIO            6      /* No such device or address */
20 #define E2BIG            7      /* Argument list too long */
21 #define ENOEXEC          8      /* Exec format error */
22 #define EBADF            9      /* Bad file number */
23 #define ECHILD          10      /* No child processes */
24 #define EAGAIN          11      /* Try again */
25 #define ENOMEM          12      /* Out of memory */
26 #define EACCES          13      /* Permission denied */
27 #define EFAULT          14      /* Bad address */
28 #define ENOTBLK         15      /* Block device required */
29 #define EBUSY           16      /* Device or resource busy */
30 #define EEXIST          17      /* File exists */
31 #define EXDEV           18      /* Cross-device link */
32 #define ENODEV          19      /* No such device */
33 #define ENOTDIR         20      /* Not a directory */
34 #define EISDIR          21      /* Is a directory */
35 #define EINVAL          22      /* Invalid argument */
36 #define ENFILE          23      /* File table overflow */
37 #define EMFILE          24      /* Too many open files */
38 #define ENOTTY          25      /* Not a typewriter */
39 #define ETXTBSY         26      /* Text file busy */
40 #define EFBIG           27      /* File too large */
41 #define ENOSPC          28      /* No space left on device */
42 #define ESPIPE          29      /* Illegal seek */
43 #define EROFS           30      /* Read-only file system */
44 #define EMLINK          31      /* Too many links */
45 #define EPIPE           32      /* Broken pipe */
46 #define EDOM            33      /* Math argument out of domain of func */
47 #define ERANGE          34      /* Math result not representable */
48
49 /*
50  * These error numbers are intended to be MIPS ABI compatible
51  */
52 #define ENOMSG          35      /* No message of desired type */
53 #define EIDRM           36      /* Identifier removed */
54 #define ECHRNG          37      /* Channel number out of range */
55 #define EL2NSYNC        38      /* Level 2 not synchronized */
56 #define EL3HLT          39      /* Level 3 halted */
57 #define EL3RST          40      /* Level 3 reset */
58 #define ELNRNG          41      /* Link number out of range */
59 #define EUNATCH         42      /* Protocol driver not attached */
60 #define ENOCSI          43      /* No CSI structure available */
61 #define EL2HLT          44      /* Level 2 halted */
62 #define EDEADLK         45      /* Resource deadlock would occur */
63 #define ENOLCK          46      /* No record locks available */
64 #define EBADE           50      /* Invalid exchange */
65 #define EBADR           51      /* Invalid request descriptor */
66 #define EXFULL          52      /* Exchange full */
67 #define ENOANO          53      /* No anode */
68 #define EBADRQC         54      /* Invalid request code */
69 #define EBADSLT         55      /* Invalid slot */
70 #define EDEADLOCK       56      /* File locking deadlock error */
71 #define EBFONT          59      /* Bad font file format */
72 #define ENOSTR          60      /* Device not a stream */
73 #define ENODATA         61      /* No data available */
74 #define ETIME           62      /* Timer expired */
75 #define ENOSR           63      /* Out of streams resources */
76 #define ENONET          64      /* Machine is not on the network */
77 #define ENOPKG          65      /* Package not installed */
78 #define EREMOTE         66      /* Object is remote */
79 #define ENOLINK         67      /* Link has been severed */
80 #define EADV            68      /* Advertise error */
81 #define ESRMNT          69      /* Srmount error */
82 #define ECOMM           70      /* Communication error on send */
83 #define EPROTO          71      /* Protocol error */
84 #define EDOTDOT         73      /* RFS specific error */
85 #define EMULTIHOP       74      /* Multihop attempted */
86 #define EBADMSG         77      /* Not a data message */
87 #define ENAMETOOLONG    78      /* File name too long */
88 #define EOVERFLOW       79      /* Value too large for defined data type */
89 #define ENOTUNIQ        80      /* Name not unique on network */
90 #define EBADFD          81      /* File descriptor in bad state */
91 #define EREMCHG         82      /* Remote address changed */
92 #define ELIBACC         83      /* Can not access a needed shared library */
93 #define ELIBBAD         84      /* Accessing a corrupted shared library */
94 #define ELIBSCN         85      /* .lib section in a.out corrupted */
95 #define ELIBMAX         86      /* Attempting to link in too many shared libraries */
96 #define ELIBEXEC        87      /* Cannot exec a shared library directly */
97 #define EILSEQ          88      /* Illegal byte sequence */
98 #define ENOSYS          89      /* Function not implemented */
99 #define ELOOP           90      /* Too many symbolic links encountered */
100 #define ERESTART        91      /* Interrupted system call should be restarted */
101 #define ESTRPIPE        92      /* Streams pipe error */
102 #define ENOTEMPTY       93      /* Directory not empty */
103 #define EUSERS          94      /* Too many users */
104 #define ENOTSOCK        95      /* Socket operation on non-socket */
105 #define EDESTADDRREQ    96      /* Destination address required */
106 #define EMSGSIZE        97      /* Message too long */
107 #define EPROTOTYPE      98      /* Protocol wrong type for socket */
108 #define ENOPROTOOPT     99      /* Protocol not available */
109 #define EPROTONOSUPPORT 120     /* Protocol not supported */
110 #define ESOCKTNOSUPPORT 121     /* Socket type not supported */
111 #define EOPNOTSUPP      122     /* Operation not supported on transport endpoint */
112 #define EPFNOSUPPORT    123     /* Protocol family not supported */
113 #define EAFNOSUPPORT    124     /* Address family not supported by protocol */
114 #define EADDRINUSE      125     /* Address already in use */
115 #define EADDRNOTAVAIL   126     /* Cannot assign requested address */
116 #define ENETDOWN        127     /* Network is down */
117 #define ENETUNREACH     128     /* Network is unreachable */
118 #define ENETRESET       129     /* Network dropped connection because of reset */
119 #define ECONNABORTED    130     /* Software caused connection abort */
120 #define ECONNRESET      131     /* Connection reset by peer */
121 #define ENOBUFS         132     /* No buffer space available */
122 #define EISCONN         133     /* Transport endpoint is already connected */
123 #define ENOTCONN        134     /* Transport endpoint is not connected */
124 #define EUCLEAN         135     /* Structure needs cleaning */
125 #define ENOTNAM         137     /* Not a XENIX named type file */
126 #define ENAVAIL         138     /* No XENIX semaphores available */
127 #define EISNAM          139     /* Is a named type file */
128 #define EREMOTEIO       140     /* Remote I/O error */
129 #define EINIT           141     /* Reserved */
130 #define EREMDEV         142     /* Error 142 */
131 #define ESHUTDOWN       143     /* Cannot send after transport endpoint shutdown */
132 #define ETOOMANYREFS    144     /* Too many references: cannot splice */
133 #define ETIMEDOUT       145     /* Connection timed out */
134 #define ECONNREFUSED    146     /* Connection refused */
135 #define EHOSTDOWN       147     /* Host is down */
136 #define EHOSTUNREACH    148     /* No route to host */
137 #define EWOULDBLOCK     EAGAIN  /* Operation would block */
138 #define EALREADY        149     /* Operation already in progress */
139 #define EINPROGRESS     150     /* Operation now in progress */
140 #define ESTALE          151     /* Stale NFS file handle */
141 #define ECANCELED       158     /* AIO operation canceled */
142
143 #endif /* _ASM_MIPS_ERRNO_H */