From 1e73b68cbcff03471dc15e790109111a0e314c89 Mon Sep 17 00:00:00 2001 From: das Date: Sat, 2 Apr 2005 12:33:28 +0000 Subject: Add some missing errnos from POSIX. Nothing in FreeBSD generates these at the moment, but applications that test for them will now have a better chance of compiling. I have intentionally omitted errnos that are only good for STREAMS, since apps that use STREAMS won't compile anyway. The exception is EPROTO, which was apparently intended for STREAMS, but worth having anyway because Linux (mis)uses it for other things. --- lib/libc/gen/errlst.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/libc') diff --git a/lib/libc/gen/errlst.c b/lib/libc/gen/errlst.c index b871a1e..2e5a684 100644 --- a/lib/libc/gen/errlst.c +++ b/lib/libc/gen/errlst.c @@ -149,5 +149,10 @@ const char *const sys_errlist[] = { /* General */ "Programming error", /* 88 - EDOOFUS */ + + "Bad message", /* 89 - EBADMSG */ + "Multihop attempted", /* 90 - EMULTIHOP */ + "Link has been severed", /* 91 - ENOLINK */ + "Protocol error", /* 92 - EPROTO */ }; const int sys_nerr = sizeof(sys_errlist) / sizeof(sys_errlist[0]); -- cgit v1.1