1 /* Target errno mappings for newlib/libgloss environment.
2 Copyright 1995-2023 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 },
45 { "EAFNOSUPPORT", EAFNOSUPPORT
, 106 },
48 { "EAGAIN", EAGAIN
, 11 },
51 { "EALREADY", EALREADY
, 120 },
54 { "EBADF", EBADF
, 9 },
57 { "EBADMSG", EBADMSG
, 77 },
60 { "EBUSY", EBUSY
, 16 },
63 { "ECANCELED", ECANCELED
, 140 },
66 { "ECHILD", ECHILD
, 10 },
69 { "ECONNABORTED", ECONNABORTED
, 113 },
72 { "ECONNREFUSED", ECONNREFUSED
, 111 },
75 { "ECONNRESET", ECONNRESET
, 104 },
78 { "EDEADLK", EDEADLK
, 45 },
81 { "EDESTADDRREQ", EDESTADDRREQ
, 121 },
87 { "EDQUOT", EDQUOT
, 132 },
90 { "EEXIST", EEXIST
, 17 },
93 { "EFAULT", EFAULT
, 14 },
96 { "EFBIG", EFBIG
, 27 },
99 { "EFTYPE", EFTYPE
, 79 },
102 { "EHOSTDOWN", EHOSTDOWN
, 117 },
105 { "EHOSTUNREACH", EHOSTUNREACH
, 118 },
108 { "EIDRM", EIDRM
, 36 },
111 { "EILSEQ", EILSEQ
, 138 },
114 { "EINPROGRESS", EINPROGRESS
, 119 },
117 { "EINTR", EINTR
, 4 },
120 { "EINVAL", EINVAL
, 22 },
126 { "EISCONN", EISCONN
, 127 },
129 { "EISDIR", EISDIR
, 21 },
132 { "ELOOP", ELOOP
, 92 },
135 { "EMFILE", EMFILE
, 24 },
138 { "EMLINK", EMLINK
, 31 },
141 { "EMSGSIZE", EMSGSIZE
, 122 },
144 { "EMULTIHOP", EMULTIHOP
, 74 },
147 { "ENAMETOOLONG", ENAMETOOLONG
, 91 },
150 { "ENETDOWN", ENETDOWN
, 115 },
153 { "ENETRESET", ENETRESET
, 126 },
156 { "ENETUNREACH", ENETUNREACH
, 114 },
159 { "ENFILE", ENFILE
, 23 },
162 { "ENOBUFS", ENOBUFS
, 105 },
165 { "ENODATA", ENODATA
, 61 },
168 { "ENODEV", ENODEV
, 19 },
171 { "ENOENT", ENOENT
, 2 },
174 { "ENOEXEC", ENOEXEC
, 8 },
177 { "ENOLCK", ENOLCK
, 46 },
180 { "ENOLINK", ENOLINK
, 67 },
183 { "ENOMEM", ENOMEM
, 12 },
186 { "ENOMSG", ENOMSG
, 35 },
189 { "ENOPROTOOPT", ENOPROTOOPT
, 109 },
192 { "ENOSPC", ENOSPC
, 28 },
195 { "ENOSR", ENOSR
, 63 },
198 { "ENOSTR", ENOSTR
, 60 },
201 { "ENOSYS", ENOSYS
, 88 },
204 { "ENOTCONN", ENOTCONN
, 128 },
207 { "ENOTDIR", ENOTDIR
, 20 },
210 { "ENOTEMPTY", ENOTEMPTY
, 90 },
212 #ifdef ENOTRECOVERABLE
213 { "ENOTRECOVERABLE", ENOTRECOVERABLE
, 141 },
216 { "ENOTSOCK", ENOTSOCK
, 108 },
219 { "ENOTSUP", ENOTSUP
, 134 },
222 { "ENOTTY", ENOTTY
, 25 },
225 { "ENXIO", ENXIO
, 6 },
228 { "EOPNOTSUPP", EOPNOTSUPP
, 95 },
231 { "EOVERFLOW", EOVERFLOW
, 139 },
234 { "EOWNERDEAD", EOWNERDEAD
, 142 },
237 { "EPERM", EPERM
, 1 },
240 { "EPFNOSUPPORT", EPFNOSUPPORT
, 96 },
243 { "EPIPE", EPIPE
, 32 },
246 { "EPROTO", EPROTO
, 71 },
248 #ifdef EPROTONOSUPPORT
249 { "EPROTONOSUPPORT", EPROTONOSUPPORT
, 123 },
252 { "EPROTOTYPE", EPROTOTYPE
, 107 },
255 { "ERANGE", ERANGE
, 34 },
258 { "EROFS", EROFS
, 30 },
261 { "ESPIPE", ESPIPE
, 29 },
264 { "ESRCH", ESRCH
, 3 },
267 { "ESTALE", ESTALE
, 133 },
270 { "ETIME", ETIME
, 62 },
273 { "ETIMEDOUT", ETIMEDOUT
, 116 },
276 { "ETOOMANYREFS", ETOOMANYREFS
, 129 },
279 { "ETXTBSY", ETXTBSY
, 26 },
282 { "EWOULDBLOCK", EWOULDBLOCK
, 11 },
285 { "EXDEV", EXDEV
, 18 },
287 /* gennltvals: END */