1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
|
/* Target errno mappings for newlib/libgloss environment.
Copyright 1995-2023 Free Software Foundation, Inc.
Contributed by Mike Frysinger.
This file is part of simulators.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* This must come before any other includes. */
#include "defs.h"
#include <errno.h>
#include "sim/callback.h"
/* This file is kept up-to-date via the gennltvals.py script. Do not edit
anything between the START & END comment blocks below. */
CB_TARGET_DEFS_MAP cb_init_errno_map[] = {
/* gennltvals: START */
#ifdef E2BIG
{ "E2BIG", E2BIG, 7 },
#endif
#ifdef EACCES
{ "EACCES", EACCES, 13 },
#endif
#ifdef EADDRINUSE
{ "EADDRINUSE", EADDRINUSE, 112 },
#endif
#ifdef EADDRNOTAVAIL
{ "EADDRNOTAVAIL", EADDRNOTAVAIL, 125 },
#endif
#ifdef EAFNOSUPPORT
{ "EAFNOSUPPORT", EAFNOSUPPORT, 106 },
#endif
#ifdef EAGAIN
{ "EAGAIN", EAGAIN, 11 },
#endif
#ifdef EALREADY
{ "EALREADY", EALREADY, 120 },
#endif
#ifdef EBADF
{ "EBADF", EBADF, 9 },
#endif
#ifdef EBADMSG
{ "EBADMSG", EBADMSG, 77 },
#endif
#ifdef EBUSY
{ "EBUSY", EBUSY, 16 },
#endif
#ifdef ECANCELED
{ "ECANCELED", ECANCELED, 140 },
#endif
#ifdef ECHILD
{ "ECHILD", ECHILD, 10 },
#endif
#ifdef ECONNABORTED
{ "ECONNABORTED", ECONNABORTED, 113 },
#endif
#ifdef ECONNREFUSED
{ "ECONNREFUSED", ECONNREFUSED, 111 },
#endif
#ifdef ECONNRESET
{ "ECONNRESET", ECONNRESET, 104 },
#endif
#ifdef EDEADLK
{ "EDEADLK", EDEADLK, 45 },
#endif
#ifdef EDESTADDRREQ
{ "EDESTADDRREQ", EDESTADDRREQ, 121 },
#endif
#ifdef EDOM
{ "EDOM", EDOM, 33 },
#endif
#ifdef EDQUOT
{ "EDQUOT", EDQUOT, 132 },
#endif
#ifdef EEXIST
{ "EEXIST", EEXIST, 17 },
#endif
#ifdef EFAULT
{ "EFAULT", EFAULT, 14 },
#endif
#ifdef EFBIG
{ "EFBIG", EFBIG, 27 },
#endif
#ifdef EFTYPE
{ "EFTYPE", EFTYPE, 79 },
#endif
#ifdef EHOSTDOWN
{ "EHOSTDOWN", EHOSTDOWN, 117 },
#endif
#ifdef EHOSTUNREACH
{ "EHOSTUNREACH", EHOSTUNREACH, 118 },
#endif
#ifdef EIDRM
{ "EIDRM", EIDRM, 36 },
#endif
#ifdef EILSEQ
{ "EILSEQ", EILSEQ, 138 },
#endif
#ifdef EINPROGRESS
{ "EINPROGRESS", EINPROGRESS, 119 },
#endif
#ifdef EINTR
{ "EINTR", EINTR, 4 },
#endif
#ifdef EINVAL
{ "EINVAL", EINVAL, 22 },
#endif
#ifdef EIO
{ "EIO", EIO, 5 },
#endif
#ifdef EISCONN
{ "EISCONN", EISCONN, 127 },
#endif
#ifdef EISDIR
{ "EISDIR", EISDIR, 21 },
#endif
#ifdef ELOOP
{ "ELOOP", ELOOP, 92 },
#endif
#ifdef EMFILE
{ "EMFILE", EMFILE, 24 },
#endif
#ifdef EMLINK
{ "EMLINK", EMLINK, 31 },
#endif
#ifdef EMSGSIZE
{ "EMSGSIZE", EMSGSIZE, 122 },
#endif
#ifdef EMULTIHOP
{ "EMULTIHOP", EMULTIHOP, 74 },
#endif
#ifdef ENAMETOOLONG
{ "ENAMETOOLONG", ENAMETOOLONG, 91 },
#endif
#ifdef ENETDOWN
{ "ENETDOWN", ENETDOWN, 115 },
#endif
#ifdef ENETRESET
{ "ENETRESET", ENETRESET, 126 },
#endif
#ifdef ENETUNREACH
{ "ENETUNREACH", ENETUNREACH, 114 },
#endif
#ifdef ENFILE
{ "ENFILE", ENFILE, 23 },
#endif
#ifdef ENOBUFS
{ "ENOBUFS", ENOBUFS, 105 },
#endif
#ifdef ENODATA
{ "ENODATA", ENODATA, 61 },
#endif
#ifdef ENODEV
{ "ENODEV", ENODEV, 19 },
#endif
#ifdef ENOENT
{ "ENOENT", ENOENT, 2 },
#endif
#ifdef ENOEXEC
{ "ENOEXEC", ENOEXEC, 8 },
#endif
#ifdef ENOLCK
{ "ENOLCK", ENOLCK, 46 },
#endif
#ifdef ENOLINK
{ "ENOLINK", ENOLINK, 67 },
#endif
#ifdef ENOMEM
{ "ENOMEM", ENOMEM, 12 },
#endif
#ifdef ENOMSG
{ "ENOMSG", ENOMSG, 35 },
#endif
#ifdef ENOPROTOOPT
{ "ENOPROTOOPT", ENOPROTOOPT, 109 },
#endif
#ifdef ENOSPC
{ "ENOSPC", ENOSPC, 28 },
#endif
#ifdef ENOSR
{ "ENOSR", ENOSR, 63 },
#endif
#ifdef ENOSTR
{ "ENOSTR", ENOSTR, 60 },
#endif
#ifdef ENOSYS
{ "ENOSYS", ENOSYS, 88 },
#endif
#ifdef ENOTCONN
{ "ENOTCONN", ENOTCONN, 128 },
#endif
#ifdef ENOTDIR
{ "ENOTDIR", ENOTDIR, 20 },
#endif
#ifdef ENOTEMPTY
{ "ENOTEMPTY", ENOTEMPTY, 90 },
#endif
#ifdef ENOTRECOVERABLE
{ "ENOTRECOVERABLE", ENOTRECOVERABLE, 141 },
#endif
#ifdef ENOTSOCK
{ "ENOTSOCK", ENOTSOCK, 108 },
#endif
#ifdef ENOTSUP
{ "ENOTSUP", ENOTSUP, 134 },
#endif
#ifdef ENOTTY
{ "ENOTTY", ENOTTY, 25 },
#endif
#ifdef ENXIO
{ "ENXIO", ENXIO, 6 },
#endif
#ifdef EOPNOTSUPP
{ "EOPNOTSUPP", EOPNOTSUPP, 95 },
#endif
#ifdef EOVERFLOW
{ "EOVERFLOW", EOVERFLOW, 139 },
#endif
#ifdef EOWNERDEAD
{ "EOWNERDEAD", EOWNERDEAD, 142 },
#endif
#ifdef EPERM
{ "EPERM", EPERM, 1 },
#endif
#ifdef EPFNOSUPPORT
{ "EPFNOSUPPORT", EPFNOSUPPORT, 96 },
#endif
#ifdef EPIPE
{ "EPIPE", EPIPE, 32 },
#endif
#ifdef EPROTO
{ "EPROTO", EPROTO, 71 },
#endif
#ifdef EPROTONOSUPPORT
{ "EPROTONOSUPPORT", EPROTONOSUPPORT, 123 },
#endif
#ifdef EPROTOTYPE
{ "EPROTOTYPE", EPROTOTYPE, 107 },
#endif
#ifdef ERANGE
{ "ERANGE", ERANGE, 34 },
#endif
#ifdef EROFS
{ "EROFS", EROFS, 30 },
#endif
#ifdef ESPIPE
{ "ESPIPE", ESPIPE, 29 },
#endif
#ifdef ESRCH
{ "ESRCH", ESRCH, 3 },
#endif
#ifdef ESTALE
{ "ESTALE", ESTALE, 133 },
#endif
#ifdef ETIME
{ "ETIME", ETIME, 62 },
#endif
#ifdef ETIMEDOUT
{ "ETIMEDOUT", ETIMEDOUT, 116 },
#endif
#ifdef ETOOMANYREFS
{ "ETOOMANYREFS", ETOOMANYREFS, 129 },
#endif
#ifdef ETXTBSY
{ "ETXTBSY", ETXTBSY, 26 },
#endif
#ifdef EWOULDBLOCK
{ "EWOULDBLOCK", EWOULDBLOCK, 11 },
#endif
#ifdef EXDEV
{ "EXDEV", EXDEV, 18 },
#endif
/* gennltvals: END */
{ NULL, -1, -1 },
};
|