aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/signal.h
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2002-02-17 17:40:34 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2002-02-17 17:40:34 +0000
commit0270d57aef325fb8d49f29133fa43fee1742240c (patch)
treece2496353fd641843d92285dae19123ceeb99292 /sys/sys/signal.h
parentefec00ac60f975859053df788c28daa2eb282124 (diff)
downloadsrc-0270d57aef325fb8d49f29133fa43fee1742240c.tar.gz
src-0270d57aef325fb8d49f29133fa43fee1742240c.zip
Use struct __ucontext in prototypes and associated functions instead of
ucontext_t. Forward declare struct __ucontext in <sys/signal.h> and remove reliance on <sys/ucontext.h> being included. While I'm here, also hide osigcontext types from userland; suggested by bde. Namespace pollution noticed by: Kevin Day <toasty@shell.dragondata.com>
Notes
Notes: svn path=/head/; revision=90776
Diffstat (limited to 'sys/sys/signal.h')
-rw-r--r--sys/sys/signal.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 440a678fd41c..b1ae12b8c450 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -247,8 +247,11 @@ typedef struct sigaltstack {
#define SS_DISABLE 0x0004 /* disable taking signals on alternate stack */
#define SIGSTKSZ (MINSIGSTKSZ + 32768) /* recommended stack size */
-/* Have enough typedefs for this now. XXX */
-#include <sys/ucontext.h>
+/*
+ * Forward declaration for __ucontext so that sigreturn can use it
+ * without having to include <ucontext.h>.
+ */
+struct __ucontext;
/*
* 4.3 compatibility: