diff options
author | mike <mike@FreeBSD.org> | 2002-10-13 00:31:46 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-10-13 00:31:46 +0000 |
commit | 0768501a2f97c84d945fb05b25e74571831b80ae (patch) | |
tree | a54ed073afa8e1bba3ecf5040407642d165c5b5e /sys/ia64 | |
parent | a856de411e8177639fd2e0457e5bf7fd6f75948d (diff) | |
download | FreeBSD-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/ia64')
-rw-r--r-- | sys/ia64/include/signal.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sys/ia64/include/signal.h b/sys/ia64/include/signal.h index 760396c..58c3c1f 100644 --- a/sys/ia64/include/signal.h +++ b/sys/ia64/include/signal.h @@ -31,10 +31,12 @@ #ifndef _MACHINE_SIGNAL_H_ #define _MACHINE_SIGNAL_H_ -typedef long sig_atomic_t; +#include <sys/cdefs.h> +#include <sys/_sigset.h> -#ifndef _ANSI_SOURCE +typedef long sig_atomic_t; +#if __BSD_VISIBLE /* portable macros for SIGFPE/ARITHTRAP */ #define FPE_INTOVF 1 /* integer overflow */ #define FPE_INTDIV 2 /* integer divide by zero */ @@ -46,12 +48,17 @@ typedef long sig_atomic_t; #define FPE_FLTSUB 8 /* subscript out of range */ #define BUS_SEGM_FAULT 30 /* segment protection base */ +#endif +#if __XSI_VISIBLE /* * Minimum signal stack size. The current signal frame * for IA-64 is 2656 bytes large. */ #define MINSIGSTKSZ (3072 * 4) +#endif + +#ifdef _KERNEL #ifndef _IA64_FPREG_DEFINED @@ -78,12 +85,15 @@ struct osigcontext { int _not_used; }; +#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 */ unsigned long sc_onstack; unsigned long sc_flags; unsigned long sc_nat; @@ -103,6 +113,6 @@ struct sigcontext { unsigned long sc_gr[32]; struct ia64_fpreg sc_fr[128]; }; +#endif /* __BSD_VISIBLE */ -#endif /* !_ANSI_SOURCE */ #endif /* !_MACHINE_SIGNAL_H_*/ |