diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-09-19 16:11:35 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-09-19 16:11:35 +0000 |
commit | 29212ab3cdaf3ffe6dd03ec619a23018c179263b (patch) | |
tree | 2922ebe78cd579e66ceaa8c1df484adbbc6397b4 /newlib/libc/string/strerror.c | |
parent | f2c11dadcf6f3621cf3c92575b1cd1a0131bb45d (diff) | |
download | cygnal-29212ab3cdaf3ffe6dd03ec619a23018c179263b.tar.gz cygnal-29212ab3cdaf3ffe6dd03ec619a23018c179263b.tar.bz2 cygnal-29212ab3cdaf3ffe6dd03ec619a23018c179263b.zip |
2008-09-19 Eric Blake <ebb9@byu.net>
Supply missing POSIX errno values.
* libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
* libc/string/strerror.c (strerror): Decode them, and ECANCELED.
Diffstat (limited to 'newlib/libc/string/strerror.c')
-rw-r--r-- | newlib/libc/string/strerror.c | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/newlib/libc/string/strerror.c b/newlib/libc/string/strerror.c index 8bea4b768..73660f076 100644 --- a/newlib/libc/string/strerror.c +++ b/newlib/libc/string/strerror.c @@ -274,6 +274,15 @@ Text file busy o EXDEV Cross-device link +o ECANCELED +Operation canceled + +o ENOTRECOVERABLE +State not recoverable + +o EOWNERDEAD +Previous owner died + o- RETURNS @@ -436,7 +445,7 @@ _DEFUN (strerror, (errnum), error = "Host is down"; break; #endif -#ifdef EINPROGRESS +#ifdef EINPROGRESS case EINPROGRESS: error = "Connection already in progress"; break; @@ -541,7 +550,7 @@ _DEFUN (strerror, (errnum), error = "Deadlock"; break; #endif -#ifdef ENETUNREACH +#ifdef ENETUNREACH case ENETUNREACH: error = "Network is unreachable"; break; @@ -736,6 +745,21 @@ _DEFUN (strerror, (errnum), error = "Socket is already connected"; break; #endif +#ifdef ECANCELED + case ECANCELED: + error = "Operation canceled"; + break; +#endif +#ifdef ENOTRECOVERABLE + case ENOTRECOVERABLE: + error = "State not recoverable"; + break; +#endif +#ifdef EOWNERDEAD + case EOWNERDEAD: + error = "Previous owner died"; + break; +#endif #if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP)) case EOPNOTSUPP: error = "Operation not supported on socket"; |