|
Message-Id: <20170609052618.5875-2-awilfox@adelielinux.org> Date: Fri, 9 Jun 2017 00:26:16 -0500 From: "A. Wilcox" <awilfox@...lielinux.org> To: musl@...ts.openwall.com Cc: "A. Wilcox" <AWilcox@...cox-Tech.com> Subject: [PATCH 1/3] catopen: set errno to EOPNOTSUPP From: "A. Wilcox" <AWilcox@...cox-Tech.com> Per 1003.1-2008 (2016 ed.), catopen must set errno on failure. We set errno to EOPNOTSUPP because musl does not currently support message catalogues. --- src/locale/catopen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/locale/catopen.c b/src/locale/catopen.c index 4423c4d..3fbc771 100644 --- a/src/locale/catopen.c +++ b/src/locale/catopen.c @@ -1,6 +1,8 @@ #include <nl_types.h> +#include <errno.h> nl_catd catopen (const char *name, int oflag) { + errno = EOPNOTSUPP; return (nl_catd)-1; } -- 2.10.0
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.