about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/errno-loc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-21 07:07:52 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-21 07:07:52 +0000
commitec503662b458b9b5e9df63e3eb7ef69fa0d74b5c (patch)
tree068aea0b4c68ad1491ca11f2f49bc6b885c61639 /sysdeps/mach/hurd/errno-loc.c
parent1e2fb683cea0665f02b4aee58ac7ae2be4270b0a (diff)
downloadglibc-ec503662b458b9b5e9df63e3eb7ef69fa0d74b5c.tar.gz
glibc-ec503662b458b9b5e9df63e3eb7ef69fa0d74b5c.tar.xz
glibc-ec503662b458b9b5e9df63e3eb7ef69fa0d74b5c.zip
Update.
2003-02-20  Ulrich Drepper  <drepper@redhat.com>

	* version.h (VERSION): Bump to 2.3.2.

	* elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
	tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
	and dl-sysdep.h.
	* sysdeps/generic/Dist: Add sysdep-cancel.h.
	* sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
	* sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
	* sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
	* sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
	ucontext_i.h.
	* Makefile (distribute): Add include/stubs-prologue.h,
	include/gnu/stubs.h, scripts/merge-abilist.awk, and
	scripts/extract-abilist.awk.

2002-02-20  Paolo Bonzini  <bonzini@gnu.org>
Diffstat (limited to 'sysdeps/mach/hurd/errno-loc.c')
-rw-r--r--sysdeps/mach/hurd/errno-loc.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/errno-loc.c b/sysdeps/mach/hurd/errno-loc.c
new file mode 100644
index 0000000000..9ff09ebb60
--- /dev/null
+++ b/sysdeps/mach/hurd/errno-loc.c
@@ -0,0 +1,29 @@
+/* __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, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#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)