From c42de8045f5b125f18bc5bbb8af717eb80c2a3e0 Mon Sep 17 00:00:00 2001 From: Erik van der Kouwe Date: Thu, 31 Dec 2009 11:48:08 +0000 Subject: [PATCH] Added EILSEQ, based on newsgroup post by Leith --- include/errno.h | 1 + lib/ansi/errlist.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/errno.h b/include/errno.h index 5c26cc7b4..41467474a 100644 --- a/include/errno.h +++ b/include/errno.h @@ -76,6 +76,7 @@ extern int errno; /* place where the error numbers go */ #define ELOOP (_SIGN 40) /* too many levels of symlinks detected */ #define ERESTART (_SIGN 41) /* driver restarted */ #define EIDRM (_SIGN 43) /* Identifier removed */ +#define EILSEQ (_SIGN 44) /* illegal byte sequence */ /* The following errors relate to networking. */ #define EPACKSIZE (_SIGN 50) /* invalid packet size for some protocol */ diff --git a/lib/ansi/errlist.c b/lib/ansi/errlist.c index 0d27a53b4..bdd03002a 100644 --- a/lib/ansi/errlist.c +++ b/lib/ansi/errlist.c @@ -53,7 +53,7 @@ const char *_sys_errlist[] = { "Driver restarted", /* ERESTART */ unknown, /* 42 */ "Identifier removed", /* EIDRM */ - unknown, /* 44 */ + "Illegal byte sequence", /* EILSEQ */ unknown, /* 45 */ unknown, /* 46 */ unknown, /* 47 */