xref: /original-bsd/sys/vax/include/signal.h (revision ea3a8ee8)
1 /*
2  * Copyright (c) 1986, 1989, 1991 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)signal.h	7.1 (Berkeley) 09/08/91
8  */
9 
10 /*
11  * Machine-dependent signal definitions
12  */
13 
14 typedef int sig_atomic_t;
15 
16 #ifndef _POSIX_SOURCE
17 #include <machine/trap.h>	/* codes for SIGILL, SIGFPE */
18 #endif
19 
20 /*
21  * Information pushed on stack when a signal is delivered.
22  * This is used by the kernel to restore state following
23  * execution of the signal handler.  It is also made available
24  * to the handler to allow it to restore state properly if
25  * a non-standard exit is performed.
26  */
27 struct	sigcontext {
28 	int	sc_onstack;	/* sigstack state to restore */
29 	int	sc_mask;	/* signal mask to restore */
30 	int	sc_sp;		/* sp to restore */
31 	int	sc_fp;		/* fp to restore */
32 	int	sc_ap;		/* ap to restore */
33 	int	sc_pc;		/* pc to restore */
34 	int	sc_ps;		/* psl to restore */
35 };
36