summaryrefslogtreecommitdiffstats
path: root/sys/alpha/include/signal.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-10-13 00:31:46 +0000
committermike <mike@FreeBSD.org>2002-10-13 00:31:46 +0000
commit0768501a2f97c84d945fb05b25e74571831b80ae (patch)
treea54ed073afa8e1bba3ecf5040407642d165c5b5e /sys/alpha/include/signal.h
parenta856de411e8177639fd2e0457e5bf7fd6f75948d (diff)
downloadFreeBSD-src-0768501a2f97c84d945fb05b25e74571831b80ae.zip
FreeBSD-src-0768501a2f97c84d945fb05b25e74571831b80ae.tar.gz
Add standards visibility conditionals. Change any uses of sigset_t to
struct __sigset to avoid depending on objects from <sys/signal.h>.
Diffstat (limited to 'sys/alpha/include/signal.h')
-rw-r--r--sys/alpha/include/signal.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/sys/alpha/include/signal.h b/sys/alpha/include/signal.h
index 4b20eac..da32b41 100644
--- a/sys/alpha/include/signal.h
+++ b/sys/alpha/include/signal.h
@@ -31,15 +31,18 @@
#ifndef _ALPHA_SIGNAL_H_
#define _ALPHA_SIGNAL_H_
-typedef long sig_atomic_t;
+#include <sys/cdefs.h>
+#include <sys/_sigset.h>
-#ifndef _ANSI_SOURCE
+typedef long sig_atomic_t;
+#if __XSI_VISIBLE
/*
* Minimum signal stack size. The current signal frame
* for Alpha is 808 bytes large.
*/
#define MINSIGSTKSZ (1024 * 4)
+#endif
/*
* Only the kernel should need these old type definitions.
@@ -74,14 +77,15 @@ struct osigcontext {
unsigned long sc_traparg_a2; /* a2 argument to trap at exception */
long sc_xxx2[3]; /* sc_fp_trap_pc, sc_fp_trigger_sum, sc_fp_trigger_inst */
};
-#endif
+#endif /* _KERNEL */
+#if __BSD_VISIBLE
/*
* The sequence of the fields should match those in
* mcontext_t. Keep them in sync!
*/
struct sigcontext {
- sigset_t sc_mask; /* signal mask to restore */
+ struct __sigset sc_mask; /* signal mask to restore */
long sc_onstack; /* sigstack state to restore */
unsigned long sc_regs[32]; /* integer register set (see above) */
long sc_ps; /* ps to restore */
@@ -100,5 +104,6 @@ struct sigcontext {
#define sc_sp sc_regs[R_SP]
-#endif /* !_ANSI_SOURCE */
+#endif /* __BSD_VISIBLE */
+
#endif /* !_ALPHA_SIGNAL_H_*/
OpenPOWER on IntegriCloud