From b9a131261cc5eb9bd73dd62250ca74c0d94d57bd Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 17 Sep 1998 04:54:51 +0000 Subject: [PATCH] Define the new sigcontext structure. --- sys/arch/vax/include/signal.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/sys/arch/vax/include/signal.h b/sys/arch/vax/include/signal.h index 6b448cab7d6b..7a1953c94e94 100644 --- a/sys/arch/vax/include/signal.h +++ b/sys/arch/vax/include/signal.h @@ -1,4 +1,4 @@ -/* $NetBSD: signal.h,v 1.5 1998/05/25 20:59:03 kleink Exp $ */ +/* $NetBSD: signal.h,v 1.6 1998/09/17 04:54:51 thorpej Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California. @@ -51,15 +51,28 @@ typedef int sig_atomic_t; * to the handler to allow it to restore state properly if * a non-standard exit is performed. */ -struct sigcontext { +#if defined(__LIBC12_SOURCE) || defined(_KERNEL) +struct sigcontext13 { int sc_onstack; /* sigstack state to restore */ - int sc_mask; /* signal mask to restore */ + int sc_mask; /* signal mask to restore (old style) */ int sc_sp; /* sp to restore */ int sc_fp; /* fp to restore */ int sc_ap; /* ap to restore */ int sc_pc; /* pc to restore */ int sc_ps; /* psl to restore */ }; +#endif /* __LIBC12_SOURCE__ || _KERNEL */ + +struct sigcontext { + int sc_onstack; /* sigstack state to restore */ + int __sc_mask13; /* signal mask to restore (old style) */ + int sc_sp; /* sp to restore */ + int sc_fp; /* fp to restore */ + int sc_ap; /* ap to restore */ + int sc_pc; /* pc to restore */ + int sc_ps; /* psl to restore */ + sigset_t sc_mask; /* signal mask to restore (new style) */ +}; #endif /* !_ANSI_SOURCE && !_POSIX_C_SOURCE && !_XOPEN_SOURCE */ #endif /* !_VAX_SIGNAL_H_ */