aboutsummaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-06-14 17:15:57 +0000
committerRoland McGrath <roland@gnu.org>1995-06-14 17:15:57 +0000
commitd6e2f671f716a25188d83350fa517ae9ea29f70f (patch)
tree174344177defa77e2bbdc3f172ee33e03a933d5f /hurd
parent5e75b23212343257fda8bea933521b0b7c5cdef6 (diff)
downloadglibc-d6e2f671f716a25188d83350fa517ae9ea29f70f.zip
glibc-d6e2f671f716a25188d83350fa517ae9ea29f70f.tar.gz
glibc-d6e2f671f716a25188d83350fa517ae9ea29f70f.tar.bz2
Wed Jun 14 03:45:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* stdio/stdio.h (__validfp): Use ({...}) rather than a comma expression, to avoid gcc's "value computed is not used" warning. * libc-symbols.h (_elf_set_element): Give the set-element variable an `unused' attribute. * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with __attribute__ ((__const__)). * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise. * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set LINK->resource.next->resource.prevp when appropriate, not LINK->resource.next->thread.prevp!!!
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd/signal.h7
-rw-r--r--hurd/hurd/threadvar.h9
2 files changed, 15 insertions, 1 deletions
diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
index d88d287..d28d1c6 100644
--- a/hurd/hurd/signal.h
+++ b/hurd/hurd/signal.h
@@ -98,6 +98,13 @@ extern struct hurd_sigstate *_hurd_thread_sigstate (thread_t);
/* Get the sigstate of the current thread.
This uses a per-thread variable to optimize the lookup. */
+
+extern struct hurd_sigstate *_hurd_self_sigstate (void)
+ /* This declaration tells the compiler that the value is constant.
+ We assume this won't be called twice from the same stack frame
+ by different threads. */
+ __attribute__ ((__const__));
+
_EXTERN_INLINE struct hurd_sigstate *
_hurd_self_sigstate (void)
{
diff --git a/hurd/hurd/threadvar.h b/hurd/hurd/threadvar.h
index eab133a..3d5feab 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 Free Software Foundation, Inc.
+Copyright (C) 1994, 1995 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
@@ -88,6 +88,13 @@ __hurd_threadvar_location_from_sp (enum __hurd_threadvar_index __index,
/* Return the location of the current thread's value for the
per-thread variable with index INDEX. */
+extern unsigned long int *
+__hurd_threadvar_location (enum __hurd_threadvar_index __index)
+ /* 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. */
+ __attribute__ ((__const__));
+
_EXTERN_INLINE unsigned long int *
__hurd_threadvar_location (enum __hurd_threadvar_index __index)
{