summaryrefslogtreecommitdiff
path: root/hurd/hurd/signal.h
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/hurd/signal.h')
-rw-r--r--hurd/hurd/signal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
index d88d287de3..d28d1c6c11 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)
{