aboutsummaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-03-09 21:18:45 +0000
committerRoland McGrath <roland@gnu.org>2002-03-09 21:18:45 +0000
commit2fb1a8624be0af58fbcf0665540eca529c29d1d7 (patch)
tree221f5439221052c48d0e87d7a546219131f923bb /hurd
parent2c8a8bdd8fc2cde3960d3736abd3701d7cea04d9 (diff)
downloadglibc-2fb1a8624be0af58fbcf0665540eca529c29d1d7.tar
glibc-2fb1a8624be0af58fbcf0665540eca529c29d1d7.tar.gz
glibc-2fb1a8624be0af58fbcf0665540eca529c29d1d7.tar.bz2
glibc-2fb1a8624be0af58fbcf0665540eca529c29d1d7.zip
2002-02-23 Roland McGrath <roland@frob.com>
* hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to declaration. (__hurd_errno_location): Function removed.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd/threadvar.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/hurd/hurd/threadvar.h b/hurd/hurd/threadvar.h
index c4ccf134d1..d68a8d8925 100644
--- a/hurd/hurd/threadvar.h
+++ b/hurd/hurd/threadvar.h
@@ -1,5 +1,5 @@
/* Internal per-thread variables for the Hurd.
- Copyright (C) 1994,95,97,98,99,2001 Free Software Foundation, Inc.
+ Copyright (C) 1994,95,97,98,99,2001,02 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
@@ -94,7 +94,7 @@ __hurd_threadvar_location_from_sp (enum __hurd_threadvar_index __index,
per-thread variable with index INDEX. */
extern unsigned long int *
-__hurd_threadvar_location (enum __hurd_threadvar_index __index)
+__hurd_threadvar_location (enum __hurd_threadvar_index __index) __THROW
/* This declaration tells the compiler that the value is constant
given the same argument. We assume this won't be called twice from
the same stack frame by different threads. */
@@ -107,14 +107,5 @@ __hurd_threadvar_location (enum __hurd_threadvar_index __index)
__thread_stack_pointer ());
}
-/* Return the current thread's location for `errno'.
- The syntax of this function allows redeclarations like `int errno'. */
-extern int *__hurd_errno_location (void);
-
-_HURD_THREADVAR_H_EXTERN_INLINE int *
-__hurd_errno_location (void)
-{
- return (int *) __hurd_threadvar_location (_HURD_THREADVAR_ERRNO);
-}
#endif /* hurd/threadvar.h */