strerror_r: obey POSIX, and match newlib header change

* errno.cc (__xpg_strerror_r): New function.
(strerror_r): Update to copy newlib's fixes.
(strerror): Set errno on failure.
(_sys_errlist): Cause EINVAL failure for reserved values.
* cygwin.din: Export new function.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Combine
this into minor 236.
This commit is contained in:
Eric Blake
2011-02-10 17:36:51 +00:00
parent 7c10a76dec
commit 3c9abad56b
4 changed files with 68 additions and 31 deletions

View File

@@ -399,7 +399,7 @@ details. */
233: Add TIOCGPGRP, TIOCSPGRP. Export llround, llroundf.
234: Export program_invocation_name, program_invocation_short_name.
235: Export madvise.
236: Export pthread_yield.
236: Export pthread_yield, __xpg_strerror_r.
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */