BSD-SCCS END release
[unix-history] / usr / src / sys / hp300 / include / signal.h
CommitLineData
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 *
0a1df8c4 7 * @(#)signal.h 8.2 (Berkeley) %G%
7df7344e
MK
8 */
9
10/*
11 * Machine-dependent signal definitions
12 */
13
14typedef int sig_atomic_t;
15
0a1df8c4 16#if !defined(_POSIX_SOURCE) && !defined(_ANSI_SOURCE)
7df7344e 17#include <machine/trap.h> /* codes for SIGILL, SIGFPE */
7df7344e
MK
18
19/*
20 * Information pushed on stack when a signal is delivered.
21 * This is used by the kernel to restore state following
22 * execution of the signal handler. It is also made available
23 * to the handler to allow it to restore state properly if
24 * a non-standard exit is performed.
25 */
26struct sigcontext {
27 int sc_onstack; /* sigstack state to restore */
28 int sc_mask; /* signal mask to restore */
29 int sc_sp; /* sp to restore */
30 int sc_fp; /* fp to restore */
31 int sc_ap; /* ap to restore */
32 int sc_pc; /* pc to restore */
33 int sc_ps; /* psl to restore */
34};
0a1df8c4 35#endif