1 /* 2 * Copyright (c) 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)signal.h 8.2 (Berkeley) 05/03/95 8 */ 9 10 /* 11 * Machine-dependent signal definitions 12 */ 13 14 typedef int sig_atomic_t; 15 16 #if !defined(_POSIX_SOURCE) && !defined(_ANSI_SOURCE) 17 #include <machine/trap.h> /* codes for SIGILL, SIGFPE */ 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 */ 26 struct 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 }; 35 #endif 36