Add support for new Linux error ERFKILL.
authorUlrich Drepper <drepper@redhat.com>
Sat, 14 Nov 2009 18:20:25 +0000 (10:20 -0800)
committerUlrich Drepper <drepper@redhat.com>
Sat, 14 Nov 2009 18:20:25 +0000 (10:20 -0800)
ChangeLog
Versions.def
manual/errno.texi
sysdeps/gnu/errlist.c
sysdeps/unix/sysv/linux/Versions
sysdeps/unix/sysv/linux/bits/errno.h
sysdeps/unix/sysv/linux/sparc/bits/errno.h

index 3b40ecbfe173c233d63d3fc87262a275d8c03e87..2939a2a3a0098f84ca3edbead6a615e1d5a0f83c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
 
+       [BZ #10939]
+       * Versions.def: Define GLIBC_2.12 for libc.
+       * manual/errno.texi: Add ERFKILL entry.
+       * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
+       for 2.12.
+       * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
+       * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
+
        * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
        F_GETOWN_EX definitions according to corrected kernel definitions.
        * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
index a8a9cd275edd976c651b7a9631280854ac6c053e..70de1c14fca721176a52b1b0bbfb891caf13075c 100644 (file)
@@ -28,6 +28,7 @@ libc {
   GLIBC_2.9
   GLIBC_2.10
   GLIBC_2.11
+  GLIBC_2.12
 %ifdef USE_IN_LIBIO
   HURD_CTHREADS_0.3
 %endif
index fcba26750ee7240cd1a7cc77ced728f856145138..03a868e457ed45bff84e0fb13e8217687dd750aa 100644 (file)
@@ -1265,6 +1265,12 @@ They are not yet documented.}
 @comment errno ???/???
 @end deftypevr
 
+@comment errno.h
+@comment Linux: Operation not possible due to RF-kill
+@deftypevr Macro int ERFKILL
+@comment errno ???/???
+@end deftypevr
+
 @node Error Messages,  , Error Codes, Error Reporting
 @section Error Messages
 
index 56da01756ddade67418ad7d4666dba5b29477921..28a295fc671a56a7fb1ebeabefa490b656d2c60a 100644 (file)
@@ -1455,6 +1455,14 @@ TRANS error; @pxref{Cancel AIO Operations}. */
 # undef ERR_MAX
 # define ERR_MAX ENOTRECOVERABLE
 # endif
+#endif
+#ifdef ERFKILL
+/* */
+    [ERR_REMAP (ERFKILL)] = N_("Operation not possible due to RF-kill"),
+# if ERFKILL > ERR_MAX
+# undef ERR_MAX
+# define ERR_MAX ERFKILL
+# endif
 #endif
   };
 
index 2b5f2fb03cf04cd8d879813450eaa7f18e77ac5a..4c9129bed314b6aaaa4989c0ff2eb30660a0e4ed 100644 (file)
@@ -141,6 +141,10 @@ libc {
   GLIBC_2.10 {
     fallocate;
   }
+  GLIBC_2.12 {
+    #errlist-compat    134
+    _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
+  }
   GLIBC_PRIVATE {
     # functions used in other libraries
     __syscall_rt_sigqueueinfo;
index 4de8cbba5707edc73c0af43da1121053890844bd..1f3d7af7e1ec3e28bfc7f5e865de8bc95fff326e 100644 (file)
@@ -1,5 +1,5 @@
 /* Error constants.  Linux specific version.
-   Copyright (C) 1996, 1997, 1998, 1999, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1996-1999, 2005, 2009 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 ENOTRECOVERABLE      131
 # endif
 
+# ifndef ERFKILL
+#  define ERFKILL              132
+# endif
+
 # ifndef __ASSEMBLER__
 /* Function to get address of global `errno' variable.  */
 extern int *__errno_location (void) __THROW __attribute__ ((__const__));
index 02e200c08828892f00c50898aa8ef0dd0e075089..2b9265a1dcd9f65d6f47d078c73ce42ea41faa83 100644 (file)
@@ -1,5 +1,5 @@
 /* Error constants.  Linux/Sparc specific version.
-   Copyright (C) 1996,1997,1998,1999,2002,2005 Free Software Foundation, Inc.
+   Copyright (C) 1996-1999,2002,2005,2009 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 ENOTRECOVERABLE      133
 # endif
 
+# ifndef ERFKILL
+#  define ERFKILL              134
+# endif
+
 # ifndef __ASSEMBLER__
 /* Function to get address of global `errno' variable.  */
 extern int *__errno_location (void) __THROW __attribute__ ((__const__));