]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add support for Linux error EHWPOISON
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 19 Feb 2012 14:51:40 +0000 (15:51 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 19 Feb 2012 17:27:02 +0000 (18:27 +0100)
ChangeLog
manual/errno.texi
sysdeps/gnu/errlist.c
sysdeps/unix/sysv/linux/bits/errno.h
sysdeps/unix/sysv/linux/sparc/Versions
sysdeps/unix/sysv/linux/sparc/bits/errno.h

index 98dce70996ff347fd62dce8d57639d9704ad5609..b20fc3f4cb55dce4598f2884149d4aa9bb987ee2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * manual/errno.texi (Error Codes): Add EHWPOISON entry.
+       * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
+       defined.
+       * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
+       Likewise.
+       * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
+       entry for 2.16.
+
 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
 
        * math/w_acos.c: Use non-signaling floating-point comparisons.
index 70ce27761bc0e966a1aa42657829dd807da05a3e..868a28a59ffb6fd80ab70f2981ebd71e17ef30a0 100644 (file)
@@ -1271,6 +1271,12 @@ They are not yet documented.}
 @comment errno ???/???
 @end deftypevr
 
+@comment errno.h
+@comment Linux: Memory page has hardware error
+@deftypevr Macro int EHWPOISON
+@comment errno ???/???
+@end deftypevr
+
 @node Error Messages,  , Error Codes, Error Reporting
 @section Error Messages
 
index 28a295fc671a56a7fb1ebeabefa490b656d2c60a..75085c01f61c0ade43d98e4b1ad89ceae39617fc 100644 (file)
@@ -1463,6 +1463,14 @@ TRANS error; @pxref{Cancel AIO Operations}. */
 # undef ERR_MAX
 # 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
   };
 
index a45a8e14d5396acc20f9a59c5b3032e4dc91466c..6a003f9140b087f833d602e4de751215ea8c7500 100644 (file)
@@ -1,5 +1,5 @@
 /* Error constants.  Linux specific version.
-   Copyright (C) 1996-1999, 2005, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1996-1999, 2005, 2009, 2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #  define ERFKILL              132
 # endif
 
+# ifndef EHWPOISON
+#  define EHWPOISON            133
+# endif
+
 # ifndef __ASSEMBLER__
 /* Function to get address of global `errno' variable.  */
 extern int *__errno_location (void) __THROW __attribute__ ((__const__));
index 8fb638bb3076cb4ff7edf3fd5d637a54ca6cbe48..3da1a25be8030cde584fb224a10b6b392be57d03 100644 (file)
@@ -23,6 +23,10 @@ libc {
     #errlist-compat    135
     _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
   }
+  GLIBC_2.16 {
+    #errlist-compat    136
+    _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
+  }
 }
 librt {
   GLIBC_2.3 {
index 082f429762c3557cb0146376a56d0eb290000fcf..e3e5e8bbba7de325c7f7e75261bab47e257bed63 100644 (file)
@@ -1,5 +1,5 @@
 /* Error constants.  Linux/Sparc specific version.
-   Copyright (C) 1996-1999,2002,2005,2009 Free Software Foundation, Inc.
+   Copyright (C) 1996-1999,2002,2005,2009,2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #  define ERFKILL              134
 # endif
 
+# ifndef EHWPOISON
+#  define EHWPOISON            135
+# endif
+
 # ifndef __ASSEMBLER__
 /* Function to get address of global `errno' variable.  */
 extern int *__errno_location (void) __THROW __attribute__ ((__const__));