* libc/include/sys/errno.h (ESTRPIPE): Define.

* libc/string/strerror.c (strerror): Decode it.
This commit is contained in:
Corinna Vinschen 2009-03-15 13:41:46 +00:00
parent 159a17c8c8
commit 044af76e50
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-03-15 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/sys/errno.h (ESTRPIPE): Define.
* libc/string/strerror.c (strerror): Decode it.
2009-03-15 Corinna Vinschen <corinna@vinschen.de>
* libc/include/wchar.h (wcsdup, _wcsdup_r): Declare.

View File

@ -151,6 +151,7 @@ extern __IMPORT int sys_nerr;
#define ECANCELED 140 /* Operation canceled */
#define ENOTRECOVERABLE 141 /* State not recoverable */
#define EOWNERDEAD 142 /* Previous owner died */
#define ESTRPIPE 143 /* Streams pipe error */
/* From cygwin32. */

View File

@ -283,6 +283,9 @@ State not recoverable
o EOWNERDEAD
Previous owner died
o ESTRPIPE
Strings pipe error
o-
RETURNS
@ -760,6 +763,11 @@ _DEFUN (strerror, (errnum),
error = "Previous owner died";
break;
#endif
#ifdef ESTRPIPE
case ESTRPIPE:
error = "Streams pipe error";
break;
#endif
#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
case EOPNOTSUPP:
error = "Operation not supported on socket";