summary refs log tree commit diff
path: root/sysdeps/gnu
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2012-02-19 15:51:40 +0100
committerAndreas Schwab <schwab@linux-m68k.org>2012-02-19 18:27:02 +0100
commit7638c0fda568726f52ee5a88e1eadcddcd9fa290 (patch)
tree200c0fef9860a081dfb95c54e87e292adbdcf316 /sysdeps/gnu
parent92221550d72bafcd322ac5ab2a951054184b7f1a (diff)
downloadglibc-7638c0fda568726f52ee5a88e1eadcddcd9fa290.tar.gz
glibc-7638c0fda568726f52ee5a88e1eadcddcd9fa290.tar.xz
glibc-7638c0fda568726f52ee5a88e1eadcddcd9fa290.zip
Add support for Linux error EHWPOISON
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r--sysdeps/gnu/errlist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/gnu/errlist.c b/sysdeps/gnu/errlist.c
index 28a295fc67..75085c01f6 100644
--- a/sysdeps/gnu/errlist.c
+++ b/sysdeps/gnu/errlist.c
@@ -1464,6 +1464,14 @@ TRANS error; @pxref{Cancel AIO Operations}. */
 # define ERR_MAX ERFKILL
 # endif
 #endif
+#ifdef EHWPOISON
+/* */
+    [ERR_REMAP (EHWPOISON)] = N_("Memory page has hardware error"),
+# if EHWPOISON > ERR_MAX
+# undef ERR_MAX
+# define ERR_MAX EHWPOISON
+# endif
+#endif
   };
 
 #define NERR \