about summary refs log tree commit diff
path: root/signal
diff options
context:
space:
mode:
Diffstat (limited to 'signal')
-rw-r--r--signal/Makefile2
-rw-r--r--signal/signal.h21
2 files changed, 6 insertions, 17 deletions
diff --git a/signal/Makefile b/signal/Makefile
index 0642f75718..cec0782df3 100644
--- a/signal/Makefile
+++ b/signal/Makefile
@@ -22,7 +22,7 @@
 subdir	:= signal
 
 headers	:= signal.h sys/signal.h bits/signum.h bits/sigcontext.h \
-	   bits/sigaction.h bits/sigset.h bits/siginfo.h
+	   bits/sigaction.h bits/sigset.h bits/siginfo.h bits/sigstack.h
 
 routines	:= signal raise killpg \
 		   sigaction sigprocmask kill \
diff --git a/signal/signal.h b/signal/signal.h
index bbca812b6d..b42d897f8b 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -318,27 +318,16 @@ extern int sigreturn __P ((struct sigcontext *__scp));
    calls be restarted after signal SIG.  */
 extern int siginterrupt __P ((int __sig, int __interrupt));
 
-
-/* Structure describing a signal stack.  */
-struct sigstack
-  {
-    __ptr_t ss_sp;		/* Signal stack pointer.  */
-    int ss_onstack;		/* Nonzero if executing on this stack.  */
-  };
+# include <bits/sigstack.h>
 
 /* Run signals handlers on the stack specified by SS (if not NULL).
-   If OSS is not NULL, it is filled in with the old signal stack status.  */
+   If OSS is not NULL, it is filled in with the old signal stack status.
+   This interface is obsolete and on many platform not implemented.  */
 extern int sigstack __P ((__const struct sigstack *__ss,
 			  struct sigstack *__oss));
 
-/* Alternate interface.  */
-typedef struct sigaltstack
-  {
-    __ptr_t ss_sp;
-    int ss_flags;
-    size_t ss_size;
-  } stack_t;
-
+/* Alternate signal handler stack interface.
+   This interface should always be preferred over `sigstack'.  */
 extern int sigaltstack __P ((__const struct sigaltstack *__ss,
 			     struct sigaltstack *__oss));