projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84eff79
)
catopen: set errno to EOPNOTSUPP
author
A. Wilcox
<AWilcox@Wilcox-Tech.com>
Fri, 9 Jun 2017 05:26:16 +0000
(
00:26
-0500)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 14 Jun 2017 23:46:04 +0000
(19:46 -0400)
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
patch
|
blob
|
history
diff --git
a/src/locale/catopen.c
b/src/locale/catopen.c
index 4423c4d9e8720ef9a18b699dbe0f8620b2622497..3fbc77178fb24e7c9661f383dccdd9b762387957 100644
(file)
--- 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;
}