Commit | Line | Data |
---|---|---|
7df7344e | 1 | /* |
df7778ec KB |
2 | * Copyright (c) 1986, 1989, 1991, 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
7df7344e MK |
4 | * |
5 | * %sccs.include.redist.c% | |
6 | * | |
df7778ec | 7 | * @(#)signal.h 8.1 (Berkeley) %G% |
7df7344e MK |
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 | }; |