This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] alpha,hppa,mips: Add support for Linux error EHWPOISON


2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>

alpha:
	* sysdeps/unix/sysv/linux/alpha/bits/errno.h (ERFKILL, EHWPOISON):
	Define if not defined.
	* sysdeps/unix/sysv/linux/alpha/Versions: Add new errlist compat
	entry for 2.16.

hppa:
	* sysdeps/unix/sysv/linux/hppa/bits/errno.h (EHWPOISON): Define if
	not defined.
	* sysdeps/unix/sysv/linux/hppa/Versions: Add new errlist compat
	entry for 2.16.

mips:
	* sysdeps/unix/sysv/linux/mips/bits/errno.h (EHWPOISON): Define if
	not defined.

diff --git c/sysdeps/unix/sysv/linux/alpha/Versions w/sysdeps/unix/sysv/linux/alpha/Versions
index 5a617b4..b3cec3a 100644
--- c/sysdeps/unix/sysv/linux/alpha/Versions
+++ w/sysdeps/unix/sysv/linux/alpha/Versions
@@ -81,6 +81,10 @@ libc {
     #errlist-compat	139
     _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
   }
+  GLIBC_2.16 {
+    #errlist-compat	140
+    _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
+  }
   GLIBC_PRIVATE {
     __libc_alpha_cache_shape;
   }
diff --git c/sysdeps/unix/sysv/linux/alpha/bits/errno.h w/sysdeps/unix/sysv/linux/alpha/bits/errno.h
index 8b2f152..5c72a56 100644
--- c/sysdeps/unix/sysv/linux/alpha/bits/errno.h
+++ w/sysdeps/unix/sysv/linux/alpha/bits/errno.h
@@ -1,5 +1,5 @@
 /* Error constants.  Linux/Alpha specific version.
-   Copyright (C) 1996,1997,1998,1999,2002,2005 Free Software Foundation, Inc.
+   Copyright (C) 1996,1997,1998,1999,2002,2005,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
@@ -37,6 +37,14 @@
 #  define ENOTRECOVERABLE	137
 # endif
 
+# ifndef ERFKILL
+#  define ERFKILL		138
+# endif
+
+# ifndef EHWPOISON
+#  define EHWPOISON		139
+# endif
+
 # ifndef __ASSEMBLER__
 /* Function to get address of global `errno' variable.  */
 extern int *__errno_location (void) __THROW __attribute__ ((__const__));
diff --git c/sysdeps/unix/sysv/linux/hppa/Versions w/sysdeps/unix/sysv/linux/hppa/Versions
index 3bff6ec..ad957da 100644
--- c/sysdeps/unix/sysv/linux/hppa/Versions
+++ w/sysdeps/unix/sysv/linux/hppa/Versions
@@ -27,6 +27,10 @@ libc {
     #errlist-compat	257
     _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
   }
+  GLIBC_2.16 {
+    #errlist-compat	258
+    _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
+  }
 }
 librt {
   GLIBC_2.3 {
diff --git c/sysdeps/unix/sysv/linux/hppa/bits/errno.h w/sysdeps/unix/sysv/linux/hppa/bits/errno.h
index 742448d..27b04d9 100644
--- c/sysdeps/unix/sysv/linux/hppa/bits/errno.h
+++ w/sysdeps/unix/sysv/linux/hppa/bits/errno.h
@@ -1,5 +1,5 @@
 /* Error constants.  Linux/HPPA specific version.
-   Copyright (C) 1996,1997,1998,1999,2000,2002 Free Software Foundation, Inc.
+   Copyright (C) 1996,1997,1998,1999,2000,2002,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
@@ -34,12 +34,16 @@
 #  define EOWNERDEAD		254
 # endif
 
-# ifndef ENOTRECOVERABLE 
+# ifndef ENOTRECOVERABLE
 #  define ENOTRECOVERABLE	255
 # endif
 
 # ifndef ERFKILL
-#  define ERFKILL		256 
+#  define ERFKILL		256
+# endif
+
+# ifndef EHWPOISON
+#  define EHWPOISON		257
 # endif
 
 # ifndef __ASSEMBLER__
diff --git c/sysdeps/unix/sysv/linux/mips/bits/errno.h w/sysdeps/unix/sysv/linux/mips/bits/errno.h
index 62b952c..1cf339f 100644
--- c/sysdeps/unix/sysv/linux/mips/bits/errno.h
+++ w/sysdeps/unix/sysv/linux/mips/bits/errno.h
@@ -1,5 +1,5 @@
 /* Error constants.  MIPS/Linux specific version.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2006
+   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2006, 2012
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -42,6 +42,10 @@
 #  define ERFKILL		167
 # endif
 
+# ifndef EHWPOISON
+#  define EHWPOISON		168
+# endif
+
 # ifndef __ASSEMBLER__
 /* Function to get address of global `errno' variable.  */
 extern int *__errno_location (void) __THROW __attribute__ ((__const__));

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]