libc: add EILSEQ for use in reporting checksum failure.

This code is commonly used in the Linux kernel for reporting a
retryable error like a failed CRC.  This name and value is already
present in Linux and newlib.

Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
Michael Hope 2017-12-30 14:25:34 +01:00 committed by Anas Nashif
commit ce3b2edef3

View file

@ -126,6 +126,8 @@ extern int *__errno(void);
#define ETIME 79 /* STREAMS timeout occurred */ #define ETIME 79 /* STREAMS timeout occurred */
#define ENOMSG 80 /* Unexpected message type */ #define ENOMSG 80 /* Unexpected message type */
#define EILSEQ 138 /* Illegal byte sequence */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif