xref: /original-bsd/sys/pmax/include/signal.h (revision 6d5a9f9c)
1 /*
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Ralph Campbell.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)signal.h	8.2 (Berkeley) 05/03/95
11  */
12 
13 /*
14  * Machine-dependent signal definitions
15  */
16 
17 typedef int sig_atomic_t;
18 
19 #if !defined(_POSIX_SOURCE) && !defined(_ANSI_SOURCE)
20 #include <machine/trap.h>	/* codes for SIGILL, SIGFPE */
21 
22 /*
23  * Information pushed on stack when a signal is delivered.
24  * This is used by the kernel to restore state following
25  * execution of the signal handler.  It is also made available
26  * to the handler to allow it to restore state properly if
27  * a non-standard exit is performed.
28  */
29 struct	sigcontext {
30 	int	sc_onstack;	/* sigstack state to restore */
31 	int	sc_mask;	/* signal mask to restore */
32 	int	sc_pc;		/* pc at time of signal */
33 	int	sc_regs[34];	/* processor regs 0 to 31, mullo, mullhi */
34 	int	sc_fpused;	/* fp has been used */
35 	int	sc_fpregs[33];	/* fp regs 0 to 31 and csr */
36 	int	sc_fpc_eir;	/* floating point exception instruction reg */
37 };
38 #endif
39