mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
sys/tiny_strerror: add missing error codes
When double-checking the error codes provided by newlib by default (without magic defines, such as `__LINUX_ERRNO_EXTENSIONS__` or `__CYGWIN__`), some where still missing in `tiny_strerror()`. This adds the missing ones.
This commit is contained in:
parent
b0ee095051
commit
8ec277c9eb
@ -44,10 +44,13 @@ static const char *lookup[] = {
|
||||
[EDEADLK] = "-EDEADLK",
|
||||
[EDESTADDRREQ] = "-EDESTADDRREQ",
|
||||
[EDOM] = "-EDOM",
|
||||
[EDQUOT] = "-EDQUOT",
|
||||
[EEXIST] = "-EEXIST",
|
||||
[EFAULT] = "-EFAULT",
|
||||
[EFBIG] = "-EFBIG",
|
||||
[EHOSTDOWN] = "-EHOSTDOWN",
|
||||
[EHOSTUNREACH] = "-EHOSTUNREACH",
|
||||
[EIDRM] = "-EIDRM",
|
||||
[EILSEQ] = "-EILSEQ",
|
||||
[EINPROGRESS] = "-EINPROGRESS",
|
||||
[EINTR] = "-EINTR",
|
||||
@ -59,37 +62,51 @@ static const char *lookup[] = {
|
||||
[EMFILE] = "-EMFILE",
|
||||
[EMLINK] = "-EMLINK",
|
||||
[EMSGSIZE] = "-EMSGSIZE",
|
||||
[EMULTIHOP] = "-EMULTIHOP",
|
||||
[ENAMETOOLONG] = "-ENAMETOOLONG",
|
||||
[ENETDOWN] = "-ENETDOWN",
|
||||
[ENETRESET] = "-ENETRESET",
|
||||
[ENETUNREACH] = "-ENETUNREACH",
|
||||
[ENFILE] = "-ENFILE",
|
||||
[ENOBUFS] = "-ENOBUFS",
|
||||
[ENODATA] = "-ENODATA",
|
||||
[ENODEV] = "-ENODEV",
|
||||
[ENOENT] = "-ENOENT",
|
||||
[ENOEXEC] = "-ENOEXEC",
|
||||
[ENOLCK] = "-ENOLCK",
|
||||
[ENOLINK] = "-ENOLILNK",
|
||||
[ENOMEM] = "-ENOMEM",
|
||||
[ENOMSG] = "-ENOMSG",
|
||||
[ENOPROTOOPT] = "-ENOPROTOOPT",
|
||||
[ENOSPC] = "-ENOSPC",
|
||||
[ENOSR] = "-ENOSR",
|
||||
[ENOSTR] = "-ENOSTR",
|
||||
[ENOSYS] = "-ENOSYS",
|
||||
[ENOTCONN] = "-ENOTCONN",
|
||||
[ENOTDIR] = "-ENOTDIR",
|
||||
[ENOTEMPTY] = "-ENOTEMPTY",
|
||||
[ENOTRECOVERABLE] = "-ENOTRECOVERABLE",
|
||||
[ENOTSOCK] = "-ENOTSOCK",
|
||||
[ENOTSUP] = "-ENOTSUP",
|
||||
[ENOTTY] = "-ENOTTY",
|
||||
[ENXIO] = "-ENXIO",
|
||||
[EOVERFLOW] = "-EOVERFLOW",
|
||||
[EOWNERDEAD ] = "-EOWNERDEAD ",
|
||||
[EPERM] = "-EPERM",
|
||||
[EPFNOSUPPORT] = "-EPFNOSUPPORT",
|
||||
[EPIPE] = "-EPIPE",
|
||||
[EPROTONOSUPPORT] = "-EPROTONOSUPPORT",
|
||||
[EPROTOTYPE] = "-EPROTOTYPE",
|
||||
[EPROTO] = "-EPROTO",
|
||||
[ERANGE] = "-ERANGE",
|
||||
[EROFS] = "-EROFS",
|
||||
[ESPIPE] = "-ESPIPE",
|
||||
[ESRCH] = "-ESRCH",
|
||||
[ESTALE] = "-ESTALE",
|
||||
[ETIMEDOUT] = "-ETIMEDOUT",
|
||||
[ETIME] = "-ETIME",
|
||||
[ETOOMANYREFS] = "-ETOOMANYREFS",
|
||||
[ETXTBSY] = "-ETXTBSY",
|
||||
[EXDEV] = "-EXDEV",
|
||||
/* EAGAIN and EWOULDBLOCK have the exact same meaning and consequently may
|
||||
* have the same numeric value */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user