1
0
Эх сурвалжийг харах

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.
A. Wilcox 7 жил өмнө
parent
commit
af05173016
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      src/locale/catopen.c

+ 2 - 0
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;
 }