提交 af051730 编写于 作者: A A. Wilcox 提交者: Rich Felker

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.
上级 84eff797
#include <nl_types.h>
#include <errno.h>
nl_catd catopen (const char *name, int oflag)
{
errno = EOPNOTSUPP;
return (nl_catd)-1;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册