From 7638c0fda568726f52ee5a88e1eadcddcd9fa290 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 19 Feb 2012 15:51:40 +0100 Subject: Add support for Linux error EHWPOISON --- sysdeps/unix/sysv/linux/bits/errno.h | 6 +++++- sysdeps/unix/sysv/linux/sparc/Versions | 4 ++++ sysdeps/unix/sysv/linux/sparc/bits/errno.h | 6 +++++- 3 files changed, 14 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/bits/errno.h b/sysdeps/unix/sysv/linux/bits/errno.h index a45a8e14..6a003f9 100644 --- a/sysdeps/unix/sysv/linux/bits/errno.h +++ b/sysdeps/unix/sysv/linux/bits/errno.h @@ -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 @@ -41,6 +41,10 @@ # 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__)); diff --git a/sysdeps/unix/sysv/linux/sparc/Versions b/sysdeps/unix/sysv/linux/sparc/Versions index 8fb638b..3da1a25 100644 --- a/sysdeps/unix/sysv/linux/sparc/Versions +++ b/sysdeps/unix/sysv/linux/sparc/Versions @@ -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 { diff --git a/sysdeps/unix/sysv/linux/sparc/bits/errno.h b/sysdeps/unix/sysv/linux/sparc/bits/errno.h index 082f429..e3e5e8b 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/errno.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/errno.h @@ -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 @@ -40,6 +40,10 @@ # 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__)); -- cgit v1.1