summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-15 13:41:46 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-03-15 13:41:46 +0000
commit044af76e50ed3bd1c91b5f5c4e79a04ab88a36c9 (patch)
treeb43131cf8a11b91a5c0aa6ce4bbaded394714c01
parent159a17c8c800f24e82ddd60ed103a76c6f275408 (diff)
downloadcygnal-044af76e50ed3bd1c91b5f5c4e79a04ab88a36c9.tar.gz
cygnal-044af76e50ed3bd1c91b5f5c4e79a04ab88a36c9.tar.bz2
cygnal-044af76e50ed3bd1c91b5f5c4e79a04ab88a36c9.zip
* libc/include/sys/errno.h (ESTRPIPE): Define.
* libc/string/strerror.c (strerror): Decode it.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/errno.h1
-rw-r--r--newlib/libc/string/strerror.c8
3 files changed, 14 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index da66a50b9..b2e1695aa 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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.
diff --git a/newlib/libc/include/sys/errno.h b/newlib/libc/include/sys/errno.h
index f130e3ebd..8a820a9ed 100644
--- a/newlib/libc/include/sys/errno.h
+++ b/newlib/libc/include/sys/errno.h
@@ -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. */
diff --git a/newlib/libc/string/strerror.c b/newlib/libc/string/strerror.c
index 73660f076..043763141 100644
--- a/newlib/libc/string/strerror.c
+++ b/newlib/libc/string/strerror.c
@@ -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";