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