This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

errno.h: ESTRPIPE


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

2009-03-11  Yaakov Selkowitz <yselkowitz@users.sourceforge.net>

	* libc/include/sys/errno.h (ESTRPIPE): Define.
	* libc/string/strerror.c (strerror): Decode it.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkm4oWIACgkQpiWmPGlmQSPragCdHsgitQ/UMstoeOlJi79fq18z
huIAni7qRNP4o+Q3LCNThxSE4m3v4XJO
=pN2x
-----END PGP SIGNATURE-----
Index: libc/include/sys/errno.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/errno.h,v
retrieving revision 1.13
diff -u -r1.13 errno.h
--- libc/include/sys/errno.h	19 Sep 2008 16:11:35 -0000	1.13
+++ libc/include/sys/errno.h	12 Mar 2009 05:37:05 -0000
@@ -151,6 +151,7 @@
 #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.  */
Index: libc/string/strerror.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/string/strerror.c,v
retrieving revision 1.4
diff -u -r1.4 strerror.c
--- libc/string/strerror.c	19 Sep 2008 16:11:35 -0000	1.4
+++ libc/string/strerror.c	12 Mar 2009 05:37:06 -0000
@@ -283,6 +283,9 @@
 o EOWNERDEAD
 Previous owner died
 
+o ESTRPIPE
+Strings pipe error
+
 o-
 
 RETURNS
@@ -760,6 +763,11 @@
         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";

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]