public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: libc-ports@sourceware.org
Subject: [PATCH] alpha,hppa,mips: Add support for Linux error EHWPOISON
Date: Sun, 19 Feb 2012 17:33:00 -0000	[thread overview]
Message-ID: <m2linyohi8.fsf@igel.home> (raw)

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."

             reply	other threads:[~2012-02-19 17:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-19 17:33 Andreas Schwab [this message]
2012-02-19 17:42 ` Joseph S. Myers
2012-02-20 16:37 ` Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2linyohi8.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=libc-ports@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).