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/i386/include/signal.h | |
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/i386/include/signal.h')
-rw-r--r-- | sys/i386/include/signal.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/i386/include/signal.h b/sys/i386/include/signal.h index bf76791..9fcca63 100644 --- a/sys/i386/include/signal.h +++ b/sys/i386/include/signal.h @@ -37,20 +37,24 @@ #ifndef _MACHINE_SIGNAL_H_ #define _MACHINE_SIGNAL_H_ +#include <sys/cdefs.h> +#include <sys/_sigset.h> + /* * Machine-dependent signal definitions */ typedef int sig_atomic_t; -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) - +#if __XSI_VISIBLE /* * Minimum signal stack size. The current signal frame * for i386 is 408 bytes large. */ #define MINSIGSTKSZ (512 * 4) +#endif +#if __BSD_VISIBLE #include <machine/trap.h> /* codes for SIGILL, SIGFPE */ /* @@ -96,7 +100,7 @@ struct osigcontext { * those in mcontext_t. */ struct sigcontext { - sigset_t sc_mask; /* signal mask to restore */ + struct __sigset sc_mask; /* signal mask to restore */ int sc_onstack; /* sigstack state to restore */ int sc_gs; /* machine state (struct trapframe): */ int sc_fs; @@ -135,6 +139,6 @@ struct sigcontext { #define sc_ps sc_efl #define sc_eflags sc_efl -#endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */ +#endif /* __BSD_VISIBLE */ #endif /* !_MACHINE_SIGNAL_H_ */ |