about summary refs log tree commit diff
path: root/sysdeps/gnu/errlist.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-11-14 10:20:25 -0800
committerUlrich Drepper <drepper@redhat.com>2009-11-14 10:20:25 -0800
commit0079dd2382eba185d22410a1d3088dc7146bc00a (patch)
treeaf3c1fa38888dbab45fcde303c4a275f5439b107 /sysdeps/gnu/errlist.c
parent8964681064db9f13ee4ec7f46c53f04d66a04b99 (diff)
downloadglibc-0079dd2382eba185d22410a1d3088dc7146bc00a.tar.gz
glibc-0079dd2382eba185d22410a1d3088dc7146bc00a.tar.xz
glibc-0079dd2382eba185d22410a1d3088dc7146bc00a.zip
Add support for new Linux error ERFKILL.
Diffstat (limited to 'sysdeps/gnu/errlist.c')
-rw-r--r--sysdeps/gnu/errlist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/gnu/errlist.c b/sysdeps/gnu/errlist.c
index 56da01756d..28a295fc67 100644
--- a/sysdeps/gnu/errlist.c
+++ b/sysdeps/gnu/errlist.c
@@ -1456,6 +1456,14 @@ TRANS error; @pxref{Cancel AIO Operations}. */
 # 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
   };
 
 #define NERR \