summaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-04-27 05:42:42 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-05-10 11:49:07 +0800
commit4211729d73bfade729179f60f47c478f3774be50 (patch)
tree8e47eb2f36f8488a6d93ca363f81cec67a2861fe /sysdeps/mach/hurd
parent67dca093af018e2c1859778462318bb829a58762 (diff)
Move errno to TLS
* sysdeps/mach/hurd/errno-loc.c: Remove file. * sysdeps/mach/hurd/errno.c: Remove file. * sysdeps/mach/hurd/dl-sysdep.c (errno): Remove variable. Conflicts: sysdeps/mach/hurd/errno-loc.c
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c4
-rw-r--r--sysdeps/mach/hurd/errno-loc.c28
-rw-r--r--sysdeps/mach/hurd/errno.c1
3 files changed, 0 insertions, 33 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index d928cd2478..da3d44e231 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -61,10 +61,6 @@ hp_timing_t _dl_cpuclock_offset;
struct hurd_startup_data *_dl_hurd_data;
-/* This is used only within ld.so, via dl-minimal.c's __errno_location. */
-#undef errno
-int errno attribute_hidden;
-
/* Defining these variables here avoids the inclusion of hurdsig.c. */
unsigned long int __hurd_sigthread_stack_base;
unsigned long int __hurd_sigthread_stack_end;
diff --git a/sysdeps/mach/hurd/errno-loc.c b/sysdeps/mach/hurd/errno-loc.c
deleted file mode 100644
index 6c69a15262..0000000000
--- a/sysdeps/mach/hurd/errno-loc.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* __errno_location -- helper function for locating per-thread errno value
- Copyright (C) 2002 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
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#include <errno.h>
-#include <hurd/threadvar.h>
-
-int *
-__errno_location (void)
-{
- return (int *) __hurd_threadvar_location (_HURD_THREADVAR_ERRNO);
-}
-strong_alias (__errno_location, __hurd_errno_location)
-libc_hidden_def (__errno_location)
diff --git a/sysdeps/mach/hurd/errno.c b/sysdeps/mach/hurd/errno.c
deleted file mode 100644
index a29091b5e2..0000000000
--- a/sysdeps/mach/hurd/errno.c
+++ /dev/null
@@ -1 +0,0 @@
-/* No definition of `errno' variable on the Hurd. */