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]

EAGAIN: No more processes [PATCH]


The error message returned by strerror for EAGAIN is "No more
processes". It seems to me the typical meaning of EAGAIN has changed.
glibc gives "Resource temporarily unavailable". Could newlib adopt
this message?

Cheers,
Shaun

2005-07-15  Shaun Jackman  <sjackman@gmail.com>

	* newlib/libc/string/strerror.c (strerror): Change the error
	message for EAGAIN to "Resource temporarily unavailable" instead
	of "No more processes".

--- ./newlib/libc/string/strerror.c-    2002-05-17 16:39:38.000000000 -0700
+++ ./newlib/libc/string/strerror.c     2005-07-15 15:32:51.000000000 -0700
@@ -47,7 +47,7 @@
 Address family not supported by protocol family

 o EAGAIN
-No more processes
+Resource temporarily unavailable

 o EALREADY
 Socket already connected
@@ -383,7 +383,7 @@
 #endif
 #ifdef EAGAIN
     case EAGAIN:
-      error = "No more processes";
+      error = "Resource temporarily unavailable";
       break;
 #endif
 #ifdef ENOMEM


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