151051Skarels /* 263359Sbostic * Copyright (c) 1986, 1989, 1991, 1993 363359Sbostic * The Regents of the University of California. All rights reserved. 451051Skarels * 551051Skarels * %sccs.include.redist.c% 651051Skarels * 7*69207Smckusick * @(#)signal.h 8.2 (Berkeley) 05/03/95 851051Skarels */ 951051Skarels 1051051Skarels /* 1151051Skarels * Machine-dependent signal definitions 1251051Skarels */ 1351051Skarels 1451051Skarels typedef int sig_atomic_t; 1551051Skarels 16*69207Smckusick #if !defined(_POSIX_SOURCE) && !defined(_ANSI_SOURCE) 1751051Skarels #include <machine/trap.h> /* codes for SIGILL, SIGFPE */ 1851051Skarels 1951051Skarels /* 2051051Skarels * Information pushed on stack when a signal is delivered. 2151051Skarels * This is used by the kernel to restore state following 2251051Skarels * execution of the signal handler. It is also made available 2351051Skarels * to the handler to allow it to restore state properly if 2451051Skarels * a non-standard exit is performed. 2551051Skarels */ 2651051Skarels struct sigcontext { 2751051Skarels int sc_onstack; /* sigstack state to restore */ 2851051Skarels int sc_mask; /* signal mask to restore */ 2951051Skarels int sc_sp; /* sp to restore */ 3051051Skarels int sc_fp; /* fp to restore */ 3151051Skarels int sc_ap; /* ap to restore */ 3251051Skarels int sc_pc; /* pc to restore */ 3351051Skarels int sc_ps; /* psl to restore */ 3451051Skarels }; 35*69207Smckusick #endif 36