testsuite, threads: fix LD_LIBRARY_PATH in 'tls-sepdebug.exp'
[binutils-gdb.git] / sim / common / target-newlib-errno.c
bloba7ec9e8e1bfd60f49d8b53be84799809534276e4
1 /* Target errno mappings for newlib/libgloss environment.
2 Copyright 1995-2024 Free Software Foundation, Inc.
3 Contributed by Mike Frysinger.
5 This file is part of simulators.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 /* This must come before any other includes. */
21 #include "defs.h"
23 #include <errno.h>
25 #include "sim/callback.h"
27 /* This file is kept up-to-date via the gennltvals.py script. Do not edit
28 anything between the START & END comment blocks below. */
30 CB_TARGET_DEFS_MAP cb_init_errno_map[] = {
31 /* gennltvals: START */
32 #ifdef E2BIG
33 { "E2BIG", E2BIG, 7 },
34 #endif
35 #ifdef EACCES
36 { "EACCES", EACCES, 13 },
37 #endif
38 #ifdef EADDRINUSE
39 { "EADDRINUSE", EADDRINUSE, 112 },
40 #endif
41 #ifdef EADDRNOTAVAIL
42 { "EADDRNOTAVAIL", EADDRNOTAVAIL, 125 },
43 #endif
44 #ifdef EADV
45 { "EADV", EADV, 68 },
46 #endif
47 #ifdef EAFNOSUPPORT
48 { "EAFNOSUPPORT", EAFNOSUPPORT, 106 },
49 #endif
50 #ifdef EAGAIN
51 { "EAGAIN", EAGAIN, 11 },
52 #endif
53 #ifdef EALREADY
54 { "EALREADY", EALREADY, 120 },
55 #endif
56 #ifdef EBADE
57 { "EBADE", EBADE, 50 },
58 #endif
59 #ifdef EBADF
60 { "EBADF", EBADF, 9 },
61 #endif
62 #ifdef EBADFD
63 { "EBADFD", EBADFD, 81 },
64 #endif
65 #ifdef EBADMSG
66 { "EBADMSG", EBADMSG, 77 },
67 #endif
68 #ifdef EBADR
69 { "EBADR", EBADR, 51 },
70 #endif
71 #ifdef EBADRQC
72 { "EBADRQC", EBADRQC, 54 },
73 #endif
74 #ifdef EBADSLT
75 { "EBADSLT", EBADSLT, 55 },
76 #endif
77 #ifdef EBFONT
78 { "EBFONT", EBFONT, 57 },
79 #endif
80 #ifdef EBUSY
81 { "EBUSY", EBUSY, 16 },
82 #endif
83 #ifdef ECANCELED
84 { "ECANCELED", ECANCELED, 140 },
85 #endif
86 #ifdef ECHILD
87 { "ECHILD", ECHILD, 10 },
88 #endif
89 #ifdef ECHRNG
90 { "ECHRNG", ECHRNG, 37 },
91 #endif
92 #ifdef ECOMM
93 { "ECOMM", ECOMM, 70 },
94 #endif
95 #ifdef ECONNABORTED
96 { "ECONNABORTED", ECONNABORTED, 113 },
97 #endif
98 #ifdef ECONNREFUSED
99 { "ECONNREFUSED", ECONNREFUSED, 111 },
100 #endif
101 #ifdef ECONNRESET
102 { "ECONNRESET", ECONNRESET, 104 },
103 #endif
104 #ifdef EDEADLK
105 { "EDEADLK", EDEADLK, 45 },
106 #endif
107 #ifdef EDEADLOCK
108 { "EDEADLOCK", EDEADLOCK, 56 },
109 #endif
110 #ifdef EDESTADDRREQ
111 { "EDESTADDRREQ", EDESTADDRREQ, 121 },
112 #endif
113 #ifdef EDOM
114 { "EDOM", EDOM, 33 },
115 #endif
116 #ifdef EDOTDOT
117 { "EDOTDOT", EDOTDOT, 76 },
118 #endif
119 #ifdef EDQUOT
120 { "EDQUOT", EDQUOT, 132 },
121 #endif
122 #ifdef EEXIST
123 { "EEXIST", EEXIST, 17 },
124 #endif
125 #ifdef EFAULT
126 { "EFAULT", EFAULT, 14 },
127 #endif
128 #ifdef EFBIG
129 { "EFBIG", EFBIG, 27 },
130 #endif
131 #ifdef EFTYPE
132 { "EFTYPE", EFTYPE, 79 },
133 #endif
134 #ifdef EHOSTDOWN
135 { "EHOSTDOWN", EHOSTDOWN, 117 },
136 #endif
137 #ifdef EHOSTUNREACH
138 { "EHOSTUNREACH", EHOSTUNREACH, 118 },
139 #endif
140 #ifdef EIDRM
141 { "EIDRM", EIDRM, 36 },
142 #endif
143 #ifdef EILSEQ
144 { "EILSEQ", EILSEQ, 138 },
145 #endif
146 #ifdef EINPROGRESS
147 { "EINPROGRESS", EINPROGRESS, 119 },
148 #endif
149 #ifdef EINTR
150 { "EINTR", EINTR, 4 },
151 #endif
152 #ifdef EINVAL
153 { "EINVAL", EINVAL, 22 },
154 #endif
155 #ifdef EIO
156 { "EIO", EIO, 5 },
157 #endif
158 #ifdef EISCONN
159 { "EISCONN", EISCONN, 127 },
160 #endif
161 #ifdef EISDIR
162 { "EISDIR", EISDIR, 21 },
163 #endif
164 #ifdef EL2HLT
165 { "EL2HLT", EL2HLT, 44 },
166 #endif
167 #ifdef EL2NSYNC
168 { "EL2NSYNC", EL2NSYNC, 38 },
169 #endif
170 #ifdef EL3HLT
171 { "EL3HLT", EL3HLT, 39 },
172 #endif
173 #ifdef EL3RST
174 { "EL3RST", EL3RST, 40 },
175 #endif
176 #ifdef ELBIN
177 { "ELBIN", ELBIN, 75 },
178 #endif
179 #ifdef ELIBACC
180 { "ELIBACC", ELIBACC, 83 },
181 #endif
182 #ifdef ELIBBAD
183 { "ELIBBAD", ELIBBAD, 84 },
184 #endif
185 #ifdef ELIBEXEC
186 { "ELIBEXEC", ELIBEXEC, 87 },
187 #endif
188 #ifdef ELIBMAX
189 { "ELIBMAX", ELIBMAX, 86 },
190 #endif
191 #ifdef ELIBSCN
192 { "ELIBSCN", ELIBSCN, 85 },
193 #endif
194 #ifdef ELNRNG
195 { "ELNRNG", ELNRNG, 41 },
196 #endif
197 #ifdef ELOOP
198 { "ELOOP", ELOOP, 92 },
199 #endif
200 #ifdef EMFILE
201 { "EMFILE", EMFILE, 24 },
202 #endif
203 #ifdef EMLINK
204 { "EMLINK", EMLINK, 31 },
205 #endif
206 #ifdef EMSGSIZE
207 { "EMSGSIZE", EMSGSIZE, 122 },
208 #endif
209 #ifdef EMULTIHOP
210 { "EMULTIHOP", EMULTIHOP, 74 },
211 #endif
212 #ifdef ENAMETOOLONG
213 { "ENAMETOOLONG", ENAMETOOLONG, 91 },
214 #endif
215 #ifdef ENETDOWN
216 { "ENETDOWN", ENETDOWN, 115 },
217 #endif
218 #ifdef ENETRESET
219 { "ENETRESET", ENETRESET, 126 },
220 #endif
221 #ifdef ENETUNREACH
222 { "ENETUNREACH", ENETUNREACH, 114 },
223 #endif
224 #ifdef ENFILE
225 { "ENFILE", ENFILE, 23 },
226 #endif
227 #ifdef ENOANO
228 { "ENOANO", ENOANO, 53 },
229 #endif
230 #ifdef ENOBUFS
231 { "ENOBUFS", ENOBUFS, 105 },
232 #endif
233 #ifdef ENOCSI
234 { "ENOCSI", ENOCSI, 43 },
235 #endif
236 #ifdef ENODATA
237 { "ENODATA", ENODATA, 61 },
238 #endif
239 #ifdef ENODEV
240 { "ENODEV", ENODEV, 19 },
241 #endif
242 #ifdef ENOENT
243 { "ENOENT", ENOENT, 2 },
244 #endif
245 #ifdef ENOEXEC
246 { "ENOEXEC", ENOEXEC, 8 },
247 #endif
248 #ifdef ENOLCK
249 { "ENOLCK", ENOLCK, 46 },
250 #endif
251 #ifdef ENOLINK
252 { "ENOLINK", ENOLINK, 67 },
253 #endif
254 #ifdef ENOMEDIUM
255 { "ENOMEDIUM", ENOMEDIUM, 135 },
256 #endif
257 #ifdef ENOMEM
258 { "ENOMEM", ENOMEM, 12 },
259 #endif
260 #ifdef ENOMSG
261 { "ENOMSG", ENOMSG, 35 },
262 #endif
263 #ifdef ENONET
264 { "ENONET", ENONET, 64 },
265 #endif
266 #ifdef ENOPKG
267 { "ENOPKG", ENOPKG, 65 },
268 #endif
269 #ifdef ENOPROTOOPT
270 { "ENOPROTOOPT", ENOPROTOOPT, 109 },
271 #endif
272 #ifdef ENOSPC
273 { "ENOSPC", ENOSPC, 28 },
274 #endif
275 #ifdef ENOSR
276 { "ENOSR", ENOSR, 63 },
277 #endif
278 #ifdef ENOSTR
279 { "ENOSTR", ENOSTR, 60 },
280 #endif
281 #ifdef ENOSYS
282 { "ENOSYS", ENOSYS, 88 },
283 #endif
284 #ifdef ENOTBLK
285 { "ENOTBLK", ENOTBLK, 15 },
286 #endif
287 #ifdef ENOTCONN
288 { "ENOTCONN", ENOTCONN, 128 },
289 #endif
290 #ifdef ENOTDIR
291 { "ENOTDIR", ENOTDIR, 20 },
292 #endif
293 #ifdef ENOTEMPTY
294 { "ENOTEMPTY", ENOTEMPTY, 90 },
295 #endif
296 #ifdef ENOTRECOVERABLE
297 { "ENOTRECOVERABLE", ENOTRECOVERABLE, 141 },
298 #endif
299 #ifdef ENOTSOCK
300 { "ENOTSOCK", ENOTSOCK, 108 },
301 #endif
302 #ifdef ENOTSUP
303 { "ENOTSUP", ENOTSUP, 134 },
304 #endif
305 #ifdef ENOTTY
306 { "ENOTTY", ENOTTY, 25 },
307 #endif
308 #ifdef ENOTUNIQ
309 { "ENOTUNIQ", ENOTUNIQ, 80 },
310 #endif
311 #ifdef ENXIO
312 { "ENXIO", ENXIO, 6 },
313 #endif
314 #ifdef EOPNOTSUPP
315 { "EOPNOTSUPP", EOPNOTSUPP, 95 },
316 #endif
317 #ifdef EOVERFLOW
318 { "EOVERFLOW", EOVERFLOW, 139 },
319 #endif
320 #ifdef EOWNERDEAD
321 { "EOWNERDEAD", EOWNERDEAD, 142 },
322 #endif
323 #ifdef EPERM
324 { "EPERM", EPERM, 1 },
325 #endif
326 #ifdef EPFNOSUPPORT
327 { "EPFNOSUPPORT", EPFNOSUPPORT, 96 },
328 #endif
329 #ifdef EPIPE
330 { "EPIPE", EPIPE, 32 },
331 #endif
332 #ifdef EPROCLIM
333 { "EPROCLIM", EPROCLIM, 130 },
334 #endif
335 #ifdef EPROTO
336 { "EPROTO", EPROTO, 71 },
337 #endif
338 #ifdef EPROTONOSUPPORT
339 { "EPROTONOSUPPORT", EPROTONOSUPPORT, 123 },
340 #endif
341 #ifdef EPROTOTYPE
342 { "EPROTOTYPE", EPROTOTYPE, 107 },
343 #endif
344 #ifdef ERANGE
345 { "ERANGE", ERANGE, 34 },
346 #endif
347 #ifdef EREMCHG
348 { "EREMCHG", EREMCHG, 82 },
349 #endif
350 #ifdef EREMOTE
351 { "EREMOTE", EREMOTE, 66 },
352 #endif
353 #ifdef EROFS
354 { "EROFS", EROFS, 30 },
355 #endif
356 #ifdef ESHUTDOWN
357 { "ESHUTDOWN", ESHUTDOWN, 110 },
358 #endif
359 #ifdef ESOCKTNOSUPPORT
360 { "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, 124 },
361 #endif
362 #ifdef ESPIPE
363 { "ESPIPE", ESPIPE, 29 },
364 #endif
365 #ifdef ESRCH
366 { "ESRCH", ESRCH, 3 },
367 #endif
368 #ifdef ESRMNT
369 { "ESRMNT", ESRMNT, 69 },
370 #endif
371 #ifdef ESTALE
372 { "ESTALE", ESTALE, 133 },
373 #endif
374 #ifdef ESTRPIPE
375 { "ESTRPIPE", ESTRPIPE, 143 },
376 #endif
377 #ifdef ETIME
378 { "ETIME", ETIME, 62 },
379 #endif
380 #ifdef ETIMEDOUT
381 { "ETIMEDOUT", ETIMEDOUT, 116 },
382 #endif
383 #ifdef ETOOMANYREFS
384 { "ETOOMANYREFS", ETOOMANYREFS, 129 },
385 #endif
386 #ifdef ETXTBSY
387 { "ETXTBSY", ETXTBSY, 26 },
388 #endif
389 #ifdef EUNATCH
390 { "EUNATCH", EUNATCH, 42 },
391 #endif
392 #ifdef EUSERS
393 { "EUSERS", EUSERS, 131 },
394 #endif
395 #ifdef EWOULDBLOCK
396 { "EWOULDBLOCK", EWOULDBLOCK, 11 },
397 #endif
398 #ifdef EXDEV
399 { "EXDEV", EXDEV, 18 },
400 #endif
401 #ifdef EXFULL
402 { "EXFULL", EXFULL, 52 },
403 #endif
404 /* gennltvals: END */
405 { NULL, -1, -1 },