From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10681 invoked by alias); 19 Feb 2012 17:33:39 -0000 Received: (qmail 10673 invoked by uid 22791); 19 Feb 2012 17:33:38 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_FN X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 19 Feb 2012 17:33:21 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id E5DA01800310 for ; Sun, 19 Feb 2012 18:33:19 +0100 (CET) X-Auth-Info: enWPrVzPytn7jdGFJD3YTcjpTNQftVf0B+Fb2QX76dg= Received: from igel.home (ppp-88-217-126-161.dynamic.mnet-online.de [88.217.126.161]) by mail.mnet-online.de (Postfix) with ESMTPA id 024481C0005C for ; Sun, 19 Feb 2012 18:33:19 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 6ED7ACA29A; Sun, 19 Feb 2012 18:33:19 +0100 (CET) From: Andreas Schwab To: libc-ports@sourceware.org Subject: [PATCH] alpha,hppa,mips: Add support for Linux error EHWPOISON X-Yow: --- I have seen the FUN --- Date: Sun, 19 Feb 2012 17:33:00 -0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00061.txt.bz2 2012-02-19 Andreas Schwab 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."