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. */
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 */
33 { "E2BIG", E2BIG
, 7 },
36 { "EACCES", EACCES
, 13 },
39 { "EADDRINUSE", EADDRINUSE
, 112 },
42 { "EADDRNOTAVAIL", EADDRNOTAVAIL
, 125 },
48 { "EAFNOSUPPORT", EAFNOSUPPORT
, 106 },
51 { "EAGAIN", EAGAIN
, 11 },
54 { "EALREADY", EALREADY
, 120 },
57 { "EBADE", EBADE
, 50 },
60 { "EBADF", EBADF
, 9 },
63 { "EBADFD", EBADFD
, 81 },
66 { "EBADMSG", EBADMSG
, 77 },
69 { "EBADR", EBADR
, 51 },
72 { "EBADRQC", EBADRQC
, 54 },
75 { "EBADSLT", EBADSLT
, 55 },
78 { "EBFONT", EBFONT
, 57 },
81 { "EBUSY", EBUSY
, 16 },
84 { "ECANCELED", ECANCELED
, 140 },
87 { "ECHILD", ECHILD
, 10 },
90 { "ECHRNG", ECHRNG
, 37 },
93 { "ECOMM", ECOMM
, 70 },
96 { "ECONNABORTED", ECONNABORTED
, 113 },
99 { "ECONNREFUSED", ECONNREFUSED
, 111 },
102 { "ECONNRESET", ECONNRESET
, 104 },
105 { "EDEADLK", EDEADLK
, 45 },
108 { "EDEADLOCK", EDEADLOCK
, 56 },
111 { "EDESTADDRREQ", EDESTADDRREQ
, 121 },
114 { "EDOM", EDOM
, 33 },
117 { "EDOTDOT", EDOTDOT
, 76 },
120 { "EDQUOT", EDQUOT
, 132 },
123 { "EEXIST", EEXIST
, 17 },
126 { "EFAULT", EFAULT
, 14 },
129 { "EFBIG", EFBIG
, 27 },
132 { "EFTYPE", EFTYPE
, 79 },
135 { "EHOSTDOWN", EHOSTDOWN
, 117 },
138 { "EHOSTUNREACH", EHOSTUNREACH
, 118 },
141 { "EIDRM", EIDRM
, 36 },
144 { "EILSEQ", EILSEQ
, 138 },
147 { "EINPROGRESS", EINPROGRESS
, 119 },
150 { "EINTR", EINTR
, 4 },
153 { "EINVAL", EINVAL
, 22 },
159 { "EISCONN", EISCONN
, 127 },
162 { "EISDIR", EISDIR
, 21 },
165 { "EL2HLT", EL2HLT
, 44 },
168 { "EL2NSYNC", EL2NSYNC
, 38 },
171 { "EL3HLT", EL3HLT
, 39 },
174 { "EL3RST", EL3RST
, 40 },
177 { "ELBIN", ELBIN
, 75 },
180 { "ELIBACC", ELIBACC
, 83 },
183 { "ELIBBAD", ELIBBAD
, 84 },
186 { "ELIBEXEC", ELIBEXEC
, 87 },
189 { "ELIBMAX", ELIBMAX
, 86 },
192 { "ELIBSCN", ELIBSCN
, 85 },
195 { "ELNRNG", ELNRNG
, 41 },
198 { "ELOOP", ELOOP
, 92 },
201 { "EMFILE", EMFILE
, 24 },
204 { "EMLINK", EMLINK
, 31 },
207 { "EMSGSIZE", EMSGSIZE
, 122 },
210 { "EMULTIHOP", EMULTIHOP
, 74 },
213 { "ENAMETOOLONG", ENAMETOOLONG
, 91 },
216 { "ENETDOWN", ENETDOWN
, 115 },
219 { "ENETRESET", ENETRESET
, 126 },
222 { "ENETUNREACH", ENETUNREACH
, 114 },
225 { "ENFILE", ENFILE
, 23 },
228 { "ENOANO", ENOANO
, 53 },
231 { "ENOBUFS", ENOBUFS
, 105 },
234 { "ENOCSI", ENOCSI
, 43 },
237 { "ENODATA", ENODATA
, 61 },
240 { "ENODEV", ENODEV
, 19 },
243 { "ENOENT", ENOENT
, 2 },
246 { "ENOEXEC", ENOEXEC
, 8 },
249 { "ENOLCK", ENOLCK
, 46 },
252 { "ENOLINK", ENOLINK
, 67 },
255 { "ENOMEDIUM", ENOMEDIUM
, 135 },
258 { "ENOMEM", ENOMEM
, 12 },
261 { "ENOMSG", ENOMSG
, 35 },
264 { "ENONET", ENONET
, 64 },
267 { "ENOPKG", ENOPKG
, 65 },
270 { "ENOPROTOOPT", ENOPROTOOPT
, 109 },
273 { "ENOSPC", ENOSPC
, 28 },
276 { "ENOSR", ENOSR
, 63 },
279 { "ENOSTR", ENOSTR
, 60 },
282 { "ENOSYS", ENOSYS
, 88 },
285 { "ENOTBLK", ENOTBLK
, 15 },
288 { "ENOTCONN", ENOTCONN
, 128 },
291 { "ENOTDIR", ENOTDIR
, 20 },
294 { "ENOTEMPTY", ENOTEMPTY
, 90 },
296 #ifdef ENOTRECOVERABLE
297 { "ENOTRECOVERABLE", ENOTRECOVERABLE
, 141 },
300 { "ENOTSOCK", ENOTSOCK
, 108 },
303 { "ENOTSUP", ENOTSUP
, 134 },
306 { "ENOTTY", ENOTTY
, 25 },
309 { "ENOTUNIQ", ENOTUNIQ
, 80 },
312 { "ENXIO", ENXIO
, 6 },
315 { "EOPNOTSUPP", EOPNOTSUPP
, 95 },
318 { "EOVERFLOW", EOVERFLOW
, 139 },
321 { "EOWNERDEAD", EOWNERDEAD
, 142 },
324 { "EPERM", EPERM
, 1 },
327 { "EPFNOSUPPORT", EPFNOSUPPORT
, 96 },
330 { "EPIPE", EPIPE
, 32 },
333 { "EPROCLIM", EPROCLIM
, 130 },
336 { "EPROTO", EPROTO
, 71 },
338 #ifdef EPROTONOSUPPORT
339 { "EPROTONOSUPPORT", EPROTONOSUPPORT
, 123 },
342 { "EPROTOTYPE", EPROTOTYPE
, 107 },
345 { "ERANGE", ERANGE
, 34 },
348 { "EREMCHG", EREMCHG
, 82 },
351 { "EREMOTE", EREMOTE
, 66 },
354 { "EROFS", EROFS
, 30 },
357 { "ESHUTDOWN", ESHUTDOWN
, 110 },
359 #ifdef ESOCKTNOSUPPORT
360 { "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT
, 124 },
363 { "ESPIPE", ESPIPE
, 29 },
366 { "ESRCH", ESRCH
, 3 },
369 { "ESRMNT", ESRMNT
, 69 },
372 { "ESTALE", ESTALE
, 133 },
375 { "ESTRPIPE", ESTRPIPE
, 143 },
378 { "ETIME", ETIME
, 62 },
381 { "ETIMEDOUT", ETIMEDOUT
, 116 },
384 { "ETOOMANYREFS", ETOOMANYREFS
, 129 },
387 { "ETXTBSY", ETXTBSY
, 26 },
390 { "EUNATCH", EUNATCH
, 42 },
393 { "EUSERS", EUSERS
, 131 },
396 { "EWOULDBLOCK", EWOULDBLOCK
, 11 },
399 { "EXDEV", EXDEV
, 18 },
402 { "EXFULL", EXFULL
, 52 },
404 /* gennltvals: END */