summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Dearman <chris@mips.com>2012-01-27 17:55:49 -0800
committerRaghu Gandham <raghu@mips.com>2012-08-01 17:53:07 -0700
commitda2611084f7b5a05b802af6d5007661f42fc2578 (patch)
tree9f00b8cf4ab354fbb145a05b77d0d9e0178bbb81
parenta513f70b43e75136145d756388b50028ac4fc4b8 (diff)
downloadbionic-da2611084f7b5a05b802af6d5007661f42fc2578.zip
bionic-da2611084f7b5a05b802af6d5007661f42fc2578.tar.gz
bionic-da2611084f7b5a05b802af6d5007661f42fc2578.tar.bz2
Error numbers are target specific.
Use the system supplied error numbers when mapping error numbers to messages. Change-Id: I520556fa3e2ff668fdc4eda36ad31491fbb48ea8 Signed-off-by: Chris Dearman <chris@mips.com> Signed-off-by: Raghu Gandham <raghu@mips.com>
-rw-r--r--libc/include/sys/_errdefs.h3
-rw-r--r--libc/string/strerror_r.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/libc/include/sys/_errdefs.h b/libc/include/sys/_errdefs.h
index 51d921b..3eeadf4 100644
--- a/libc/include/sys/_errdefs.h
+++ b/libc/include/sys/_errdefs.h
@@ -167,7 +167,4 @@ __BIONIC_ERRDEF( EKEYREJECTED , 129, "Key was rejected by service" )
__BIONIC_ERRDEF( EOWNERDEAD , 130, "Owner died" )
__BIONIC_ERRDEF( ENOTRECOVERABLE, 131, "State not recoverable" )
-/* the following is not defined by Linux but needed for the BSD portions of the C library */
-__BIONIC_ERRDEF( EFTYPE, 1000, "Stupid C library hack !!" )
-
#undef __BIONIC_ERRDEF
diff --git a/libc/string/strerror_r.c b/libc/string/strerror_r.c
index 2f26f17..30841f3 100644
--- a/libc/string/strerror_r.c
+++ b/libc/string/strerror_r.c
@@ -35,7 +35,7 @@ __code_string_lookup( const CodeString* strings,
static const CodeString _sys_error_strings[] =
{
-#define __BIONIC_ERRDEF(x,y,z) { y, z },
+#define __BIONIC_ERRDEF(x,y,z) { x, z },
#include <sys/_errdefs.h>
{ 0, NULL }
};