Wolfgang Denk | 97caf67 | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 1 | /* |
| 2 | * U-boot - errno.h Error number defines |
| 3 | * |
Aubrey Li | 314d22f | 2007-04-05 18:31:18 +0800 | [diff] [blame] | 4 | * Copyright (c) 2005-2007 Analog Devices Inc. |
Wolfgang Denk | 97caf67 | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 5 | * |
| 6 | * See file CREDITS for list of people who contributed to this |
| 7 | * project. |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License as |
| 11 | * published by the Free Software Foundation; either version 2 of |
| 12 | * the License, or (at your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
Aubrey Li | 314d22f | 2007-04-05 18:31:18 +0800 | [diff] [blame] | 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
| 22 | * MA 02110-1301 USA |
Wolfgang Denk | 97caf67 | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | #ifndef _BLACKFIN_ERRNO_H |
| 26 | #define _BLACKFIN_ERRNO_H |
| 27 | |
| 28 | #define EPERM 1 /* Operation not permitted */ |
| 29 | #define ENOENT 2 /* No such file or directory */ |
| 30 | #define ESRCH 3 /* No such process */ |
| 31 | #define EINTR 4 /* Interrupted system call */ |
| 32 | #define EIO 5 /* I/O error */ |
| 33 | #define ENXIO 6 /* No such device or address */ |
| 34 | #define E2BIG 7 /* Arg list too long */ |
| 35 | #define ENOEXEC 8 /* Exec format error */ |
| 36 | #define EBADF 9 /* Bad file number */ |
| 37 | #define ECHILD 10 /* No child processes */ |
| 38 | #define EAGAIN 11 /* Try again */ |
| 39 | #define ENOMEM 12 /* Out of memory */ |
| 40 | #define EACCES 13 /* Permission denied */ |
| 41 | #define EFAULT 14 /* Bad address */ |
| 42 | #define ENOTBLK 15 /* Block device required */ |
| 43 | #define EBUSY 16 /* Device or resource busy */ |
| 44 | #define EEXIST 17 /* File exists */ |
| 45 | #define EXDEV 18 /* Cross-device link */ |
| 46 | #define ENODEV 19 /* No such device */ |
| 47 | #define ENOTDIR 20 /* Not a directory */ |
| 48 | #define EISDIR 21 /* Is a directory */ |
| 49 | #define EINVAL 22 /* Invalid argument */ |
| 50 | #define ENFILE 23 /* File table overflow */ |
| 51 | #define EMFILE 24 /* Too many open files */ |
| 52 | #define ENOTTY 25 /* Not a typewriter */ |
| 53 | #define ETXTBSY 26 /* Text file busy */ |
| 54 | #define EFBIG 27 /* File too large */ |
| 55 | #define ENOSPC 28 /* No space left on device */ |
| 56 | #define ESPIPE 29 /* Illegal seek */ |
| 57 | #define EROFS 30 /* Read-only file system */ |
| 58 | #define EMLINK 31 /* Too many links */ |
| 59 | #define EPIPE 32 /* Broken pipe */ |
| 60 | #define EDOM 33 /* Math argument out of domain of func */ |
| 61 | #define ERANGE 34 /* Math result not representable */ |
| 62 | #define EDEADLK 35 /* Resource deadlock would occur */ |
| 63 | #define ENAMETOOLONG 36 /* File name too long */ |
| 64 | #define ENOLCK 37 /* No record locks available */ |
| 65 | #define ENOSYS 38 /* Function not implemented */ |
| 66 | #define ENOTEMPTY 39 /* Directory not empty */ |
| 67 | #define ELOOP 40 /* Too many symbolic links encountered */ |
| 68 | #define EWOULDBLOCK EAGAIN /* Operation would block */ |
| 69 | #define ENOMSG 42 /* No message of desired type */ |
| 70 | #define EIDRM 43 /* Identifier removed */ |
| 71 | #define ECHRNG 44 /* Channel number out of range */ |
| 72 | #define EL2NSYNC 45 /* Level 2 not synchronized */ |
| 73 | #define EL3HLT 46 /* Level 3 halted */ |
| 74 | #define EL3RST 47 /* Level 3 reset */ |
| 75 | #define ELNRNG 48 /* Link number out of range */ |
| 76 | #define EUNATCH 49 /* Protocol driver not attached */ |
| 77 | #define ENOCSI 50 /* No CSI structure available */ |
| 78 | #define EL2HLT 51 /* Level 2 halted */ |
| 79 | #define EBADE 52 /* Invalid exchange */ |
| 80 | #define EBADR 53 /* Invalid request descriptor */ |
| 81 | #define EXFULL 54 /* Exchange full */ |
| 82 | #define ENOANO 55 /* No anode */ |
| 83 | #define EBADRQC 56 /* Invalid request code */ |
| 84 | #define EBADSLT 57 /* Invalid slot */ |
| 85 | |
| 86 | #define EDEADLOCK EDEADLK |
| 87 | |
| 88 | #define EBFONT 59 /* Bad font file format */ |
| 89 | #define ENOSTR 60 /* Device not a stream */ |
| 90 | #define ENODATA 61 /* No data available */ |
| 91 | #define ETIME 62 /* Timer expired */ |
| 92 | #define ENOSR 63 /* Out of streams resources */ |
| 93 | #define ENONET 64 /* Machine is not on the network */ |
| 94 | #define ENOPKG 65 /* Package not installed */ |
| 95 | #define EREMOTE 66 /* Object is remote */ |
| 96 | #define ENOLINK 67 /* Link has been severed */ |
| 97 | #define EADV 68 /* Advertise error */ |
| 98 | #define ESRMNT 69 /* Srmount error */ |
| 99 | #define ECOMM 70 /* Communication error on send */ |
| 100 | #define EPROTO 71 /* Protocol error */ |
| 101 | #define EMULTIHOP 72 /* Multihop attempted */ |
| 102 | #define EDOTDOT 73 /* RFS specific error */ |
| 103 | #define EBADMSG 74 /* Not a data message */ |
| 104 | #define EOVERFLOW 75 /* Value too large for defined data type */ |
| 105 | #define ENOTUNIQ 76 /* Name not unique on network */ |
| 106 | #define EBADFD 77 /* File descriptor in bad state */ |
| 107 | #define EREMCHG 78 /* Remote address changed */ |
| 108 | #define ELIBACC 79 /* Can not access a needed shared library */ |
| 109 | #define ELIBBAD 80 /* Accessing a corrupted shared library */ |
| 110 | #define ELIBSCN 81 /* .lib section in a.out corrupted */ |
| 111 | #define ELIBMAX 82 /* Attempting to link in too many shared libraries */ |
| 112 | #define ELIBEXEC 83 /* Cannot exec a shared library directly */ |
| 113 | #define EILSEQ 84 /* Illegal byte sequence */ |
| 114 | #define ERESTART 85 /* Interrupted system call should be restarted */ |
| 115 | #define ESTRPIPE 86 /* Streams pipe error */ |
| 116 | #define EUSERS 87 /* Too many users */ |
| 117 | #define ENOTSOCK 88 /* Socket operation on non-socket */ |
| 118 | #define EDESTADDRREQ 89 /* Destination address required */ |
| 119 | #define EMSGSIZE 90 /* Message too long */ |
| 120 | #define EPROTOTYPE 91 /* Protocol wrong type for socket */ |
| 121 | #define ENOPROTOOPT 92 /* Protocol not available */ |
| 122 | #define EPROTONOSUPPORT 93 /* Protocol not supported */ |
| 123 | #define ESOCKTNOSUPPORT 94 /* Socket type not supported */ |
| 124 | #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ |
| 125 | #define EPFNOSUPPORT 96 /* Protocol family not supported */ |
| 126 | #define EAFNOSUPPORT 97 /* Address family not supported by protocol */ |
| 127 | #define EADDRINUSE 98 /* Address already in use */ |
| 128 | #define EADDRNOTAVAIL 99 /* Cannot assign requested address */ |
| 129 | #define ENETDOWN 100 /* Network is down */ |
| 130 | #define ENETUNREACH 101 /* Network is unreachable */ |
| 131 | #define ENETRESET 102 /* Network dropped connection because of reset */ |
| 132 | #define ECONNABORTED 103 /* Software caused connection abort */ |
| 133 | #define ECONNRESET 104 /* Connection reset by peer */ |
| 134 | #define ENOBUFS 105 /* No buffer space available */ |
| 135 | #define EISCONN 106 /* Transport endpoint is already connected */ |
| 136 | #define ENOTCONN 107 /* Transport endpoint is not connected */ |
| 137 | #define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */ |
| 138 | #define ETOOMANYREFS 109 /* Too many references: cannot splice */ |
| 139 | #define ETIMEDOUT 110 /* Connection timed out */ |
| 140 | #define ECONNREFUSED 111 /* Connection refused */ |
| 141 | #define EHOSTDOWN 112 /* Host is down */ |
| 142 | #define EHOSTUNREACH 113 /* No route to host */ |
| 143 | #define EALREADY 114 /* Operation already in progress */ |
| 144 | #define EINPROGRESS 115 /* Operation now in progress */ |
| 145 | #define ESTALE 116 /* Stale NFS file handle */ |
| 146 | #define EUCLEAN 117 /* Structure needs cleaning */ |
| 147 | #define ENOTNAM 118 /* Not a XENIX named type file */ |
| 148 | #define ENAVAIL 119 /* No XENIX semaphores available */ |
| 149 | #define EISNAM 120 /* Is a named type file */ |
| 150 | #define EREMOTEIO 121 /* Remote I/O error */ |
| 151 | #define EDQUOT 122 /* Quota exceeded */ |
| 152 | |
| 153 | #define ENOMEDIUM 123 /* No medium found */ |
| 154 | #define EMEDIUMTYPE 124 /* Wrong medium type */ |
| 155 | |
| 156 | #endif |