summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/signal.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-10-25 19:10:58 +0000
committerpeter <peter@FreeBSD.org>2002-10-25 19:10:58 +0000
commitf7fa86b743f4851065b80a704e7ee6c9922b5bda (patch)
tree96a1089f558875f808b1fd36f885179cd78f55de /sys/powerpc/include/signal.h
parentc689b5c88a817d10910bb530d1a68187b58db634 (diff)
downloadFreeBSD-src-f7fa86b743f4851065b80a704e7ee6c9922b5bda.zip
FreeBSD-src-f7fa86b743f4851065b80a704e7ee6c9922b5bda.tar.gz
Split 4.x and 5.x signal handling so that we can keep 4.x signal
handling clean and functional as 5.x evolves. This allows some of the nasty bandaids in the 5.x codepaths to be unwound. Encapsulate 4.x signal handling under COMPAT_FREEBSD4 (there is an anti-foot-shooting measure in place, 5.x folks need this for a while) and finish encapsulating the older stuff under COMPAT_43. Since the ancient stuff is required on alpha (longjmp(3) passes a 'struct osigcontext *' to the current sigreturn(2), instead of the 'ucontext_t *' that sigreturn is supposed to take), add a compile time check to prevent foot shooting there too. Add uniform COMPAT_43 stubs for ia64/sparc64/powerpc. Tested on: i386, alpha, ia64. Compiled on sparc64 (a few days ago). Approved by: re
Diffstat (limited to 'sys/powerpc/include/signal.h')
-rw-r--r--sys/powerpc/include/signal.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/powerpc/include/signal.h b/sys/powerpc/include/signal.h
index 55b16dd..c290bb9 100644
--- a/sys/powerpc/include/signal.h
+++ b/sys/powerpc/include/signal.h
@@ -44,28 +44,7 @@
typedef int sig_atomic_t;
#ifdef _KERNEL
-typedef unsigned int osigset_t;
-
#include <machine/frame.h>
-
-/*
- * XXX why do we have compatibility structs for a new platform?
- */
-#if defined(__LIBC12_SOURCE__) || defined(_KERNEL)
-struct sigcontext13 {
- int sc_onstack; /* saved onstack flag */
- int sc_mask; /* saved signal mask (old style) */
- struct trapframe sc_frame; /* saved registers */
-};
-#endif /* __LIBC12_SOURCE__ || _KERNEL */
-
-struct osigcontext {
- int sc_onstack; /* saved onstack flag */
- int __sc_mask13; /* saved signal mask (old style) */
- struct trapframe sc_frame; /* saved registers */
- struct __sigset sc_mask; /* saved signal mask (new style) */
-};
-
#endif /* _KERNEL */
#if __BSD_VISIBLE
OpenPOWER on IntegriCloud