EAGAIN: No more processes [PATCH]
Shaun Jackman
sjackman@gmail.com
Fri Jul 15 22:35:00 GMT 2005
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
More information about the Newlib
mailing list