xref: /drstd/dlibc/src/unix/platform/dragonos/c/dragonos_include/errno.h (revision 0fe3ff0054d3aec7fbf9bddecfecb10bc7d23a51)
1 #ifndef _RELIBC_ERRNO_H
2 #define _RELIBC_ERRNO_H
3 
4 #include "bits/errno.h"
5 
6 #define EPERM 1
7 
8 #define ENOENT 2
9 
10 #define ESRCH 3
11 
12 #define EINTR 4
13 
14 #define EIO 5
15 
16 #define ENXIO 6
17 
18 #define E2BIG 7
19 
20 #define ENOEXEC 8
21 
22 #define EBADF 9
23 
24 #define ECHILD 10
25 
26 #define EAGAIN 11
27 
28 #define ENOMEM 12
29 
30 #define EACCES 13
31 
32 #define EFAULT 14
33 
34 #define ENOTBLK 15
35 
36 #define EBUSY 16
37 
38 #define EEXIST 17
39 
40 #define EXDEV 18
41 
42 #define ENODEV 19
43 
44 #define ENOTDIR 20
45 
46 #define EISDIR 21
47 
48 #define EINVAL 22
49 
50 #define ENFILE 23
51 
52 #define EMFILE 24
53 
54 #define ENOTTY 25
55 
56 #define ETXTBSY 26
57 
58 #define EFBIG 27
59 
60 #define ENOSPC 28
61 
62 #define ESPIPE 29
63 
64 #define EROFS 30
65 
66 #define EMLINK 31
67 
68 #define EPIPE 32
69 
70 #define EDOM 33
71 
72 #define ERANGE 34
73 
74 #define EDEADLK 35
75 
76 #define ENAMETOOLONG 36
77 
78 #define ENOLCK 37
79 
80 #define ENOSYS 38
81 
82 #define ENOTEMPTY 39
83 
84 #define ELOOP 40
85 
86 //#define EWOULDBLOCK 41
87 
88 #define EWOULDBLOCK EAGAIN
89 
90 #define ENOMSG 42
91 
92 #define EIDRM 43
93 
94 #define ECHRNG 44
95 
96 #define EL2NSYNC 45
97 
98 #define EL3HLT 46
99 
100 #define EL3RST 47
101 
102 #define ELNRNG 48
103 
104 #define EUNATCH 49
105 
106 #define ENOCSI 50
107 
108 #define EL2HLT 51
109 
110 #define EBADE 52
111 
112 #define EBADR 53
113 
114 #define EXFULL 54
115 
116 #define ENOANO 55
117 
118 #define EBADRQC 56
119 
120 #define EBADSLT 57
121 
122 #define EDEADLOCK 58
123 
124 #define EBFONT 59
125 
126 #define ENOSTR 60
127 
128 #define ENODATA 61
129 
130 #define ETIME 62
131 
132 #define ENOSR 63
133 
134 #define ENONET 64
135 
136 #define ENOPKG 65
137 
138 #define EREMOTE 66
139 
140 #define ENOLINK 67
141 
142 #define EADV 68
143 
144 #define ESRMNT 69
145 
146 #define ECOMM 70
147 
148 #define EPROTO 71
149 
150 #define EMULTIHOP 72
151 
152 #define EDOTDOT 73
153 
154 #define EBADMSG 74
155 
156 #define EOVERFLOW 75
157 
158 #define ENOTUNIQ 76
159 
160 #define EBADFD 77
161 
162 #define EREMCHG 78
163 
164 #define ELIBACC 79
165 
166 #define ELIBBAD 80
167 
168 #define ELIBSCN 81
169 
170 #define ELIBMAX 82
171 
172 #define ELIBEXEC 83
173 
174 #define EILSEQ 84
175 
176 #define ERESTART 85
177 
178 #define ESTRPIPE 86
179 
180 #define EUSERS 87
181 
182 #define ENOTSOCK 88
183 
184 #define EDESTADDRREQ 89
185 
186 #define EMSGSIZE 90
187 
188 #define EPROTOTYPE 91
189 
190 #define ENOPROTOOPT 92
191 
192 #define EPROTONOSUPPORT 93
193 
194 #define ESOCKTNOSUPPORT 94
195 
196 #define EOPNOTSUPP 95
197 
198 #define EPFNOSUPPORT 96
199 
200 #define EAFNOSUPPORT 97
201 
202 #define EADDRINUSE 98
203 
204 #define EADDRNOTAVAIL 99
205 
206 #define ENETDOWN 100
207 
208 #define ENETUNREACH 101
209 
210 #define ENETRESET 102
211 
212 #define ECONNABORTED 103
213 
214 #define ECONNRESET 104
215 
216 #define ENOBUFS 105
217 
218 #define EISCONN 106
219 
220 #define ENOTCONN 107
221 
222 #define ESHUTDOWN 108
223 
224 #define ETOOMANYREFS 109
225 
226 #define ETIMEDOUT 110
227 
228 #define ECONNREFUSED 111
229 
230 #define EHOSTDOWN 112
231 
232 #define EHOSTUNREACH 113
233 
234 #define EALREADY 114
235 
236 #define EINPROGRESS 115
237 
238 #define ESTALE 116
239 
240 #define EUCLEAN 117
241 
242 #define ENOTNAM 118
243 
244 #define ENAVAIL 119
245 
246 #define EISNAM 120
247 
248 #define EREMOTEIO 121
249 
250 #define EDQUOT 122
251 
252 #define ENOMEDIUM 123
253 
254 #define EMEDIUMTYPE 124
255 
256 #define ECANCELED 125
257 
258 #define ENOKEY 126
259 
260 #define EKEYEXPIRED 127
261 
262 #define EKEYREVOKED 128
263 
264 #define EKEYREJECTED 129
265 
266 #define EOWNERDEAD 130
267 
268 #define ENOTRECOVERABLE 131
269 
270 #ifdef __cplusplus
271 extern "C" {
272 #endif // __cplusplus
273 
274 int *__errno(void);
275 
276 int *__errno_location(void);
277 
278 char **__program_invocation_name(void);
279 
280 char **__program_invocation_short_name(void);
281 
282 #ifdef __cplusplus
283 } // extern "C"
284 #endif // __cplusplus
285 
286 #endif /* _RELIBC_ERRNO_H */
287