diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-06-09 00:26:16 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2017-06-14 19:46:04 -0400 |
commit | af0517301677b4206c605caaef25f5d57a31b5b8 (patch) | |
tree | 7dfbbc7859889b78fad9ebc797fd5e01ec8dc214 /src/locale | |
parent | 84eff797e3e38210cc311b000b1586b948b4fc35 (diff) | |
download | musl-af0517301677b4206c605caaef25f5d57a31b5b8.zip musl-af0517301677b4206c605caaef25f5d57a31b5b8.tar.gz musl-af0517301677b4206c605caaef25f5d57a31b5b8.tar.bz2 |
catopen: set errno to EOPNOTSUPP
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.
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/catopen.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |