1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
18763: sys/tiny_strerror: add missing error codes r=benpicco a=maribu

### Contribution description

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 in turn showed that three errno codes were missing in the avr-libc compat `errno.h`, which are added as well.

### Testing procedure

Murdock should double check that the added errno codes indeed are defined by default.

### Issues/PRs references

None

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
This commit is contained in:
bors[bot] 2023-01-14 22:41:37 +00:00 committed by GitHub
commit c8d60a2d31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 31 additions and 15 deletions

View File

@ -148,6 +148,9 @@ extern int errno;
#define ETXTBSY (79) /**< Text file busy. */
#define EWOULDBLOCK (80) /**< Operation would block (may be the same value as [EAGAIN]). */
#define EXDEV (81) /**< Cross-device link. */
#define EHOSTDOWN (82) /**< Host is down. */
#define EPFNOSUPPORT (83) /**< Protocol family not supported. */
#define ETOOMANYREFS (84) /**< Too many references: cannot splice. */
/** @} */
/** @} */

View File

@ -5,8 +5,8 @@ BOARD_INSUFFICIENT_MEMORY := \
arduino-uno \
atmega328p \
atmega328p-xplained-mini \
nucleo-f031k6 \
nucleo-l011k4 \
samd10-xmini \
stm32f030f4-demo \
waspmote-pro \
#

View File

@ -10,9 +10,9 @@ BOARD_INSUFFICIENT_MEMORY := \
bastwan \
blackpill-stm32f103c8 \
blackpill-stm32f103cb \
bluepill-stm32f030c8 \
bluepill-stm32f103c8 \
bluepill-stm32f103cb \
bluepill-stm32f030c8 \
calliope-mini \
cc1350-launchpad \
cc2538dk \
@ -22,9 +22,6 @@ BOARD_INSUFFICIENT_MEMORY := \
e104-bt5011a-tb \
e180-zg120b-tb \
ek-lm4f120xl \
esp8266-esp-12x \
esp8266-olimex-mod \
esp8266-sparkfun-thing \
feather-m0 \
feather-m0-lora \
feather-m0-wifi \
@ -96,7 +93,6 @@ BOARD_INSUFFICIENT_MEMORY := \
spark-core \
stk3200 \
stk3600 \
stm32f030f4-demo \
stm32f0discovery \
stm32f3discovery \
stm32f7508-dk \

View File

@ -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 */

View File

@ -3,8 +3,8 @@ BOARD_INSUFFICIENT_MEMORY := \
arduino-leonardo \
arduino-nano \
arduino-uno \
atmega328p-xplained-mini \
atmega328p \
atmega328p-xplained-mini \
nucleo-l011k4 \
samd10-xmini \
stm32f030f4-demo \

View File

@ -1,8 +1,8 @@
BOARD_INSUFFICIENT_MEMORY := \
arduino-duemilanove \
arduino-leonardo \
arduino-nano \
arduino-uno \
atmega328p \
atmega328p-xplained-mini \
nucleo-l011k4 \
#

View File

@ -7,7 +7,6 @@ BOARD_INSUFFICIENT_MEMORY := \
atmega1284p \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
atxmega-a3bu-xplained \
bluepill-stm32f030c8 \
derfmega128 \
@ -15,6 +14,7 @@ BOARD_INSUFFICIENT_MEMORY := \
hifive1b \
i-nucleo-lrwan1 \
im880b \
m1284p \
mega-xplained \
microduino-corerf \
msb-430 \

View File

@ -8,6 +8,7 @@ BOARD_INSUFFICIENT_MEMORY := \
atmega328p-xplained-mini \
bluepill-stm32f030c8 \
i-nucleo-lrwan1 \
m1284p \
mega-xplained \
microduino-corerf \
msb-430 \
@ -29,8 +30,6 @@ BOARD_INSUFFICIENT_MEMORY := \
stm32l0538-disco \
telosb \
waspmote-pro \
wsn430-v1_3b \
wsn430-v1_4 \
z1 \
zigduino \
#

View File

@ -1,11 +1,12 @@
BOARD_INSUFFICIENT_MEMORY := \
arduino-duemilanove \
arduino-leonardo \
arduino-nano \
atmega328p-xplained-mini \
arduino-duemilanove \
arduino-uno \
atmega328p \
stm32f030f4-demo \
samd10-xmini \
atmega328p-xplained-mini \
nucleo-l011k4 \
samd10-xmini \
stm32f030f4-demo \
waspmote-pro \
#