151050Skarels /* 263160Sbostic * Copyright (c) 1986, 1989, 1991, 1993 363160Sbostic * The Regents of the University of California. All rights reserved. 451050Skarels * 551050Skarels * %sccs.include.redist.c% 651050Skarels * 7*69206Smckusick * @(#)signal.h 8.2 (Berkeley) 05/03/95 851050Skarels */ 951050Skarels 1051050Skarels /* 1151050Skarels * Machine-dependent signal definitions 1251050Skarels */ 1351050Skarels 1451050Skarels typedef int sig_atomic_t; 1551050Skarels 16*69206Smckusick #if !defined(_POSIX_SOURCE) && !defined(_ANSI_SOURCE) 1751050Skarels #include <machine/trap.h> /* codes for SIGILL, SIGFPE */ 1851050Skarels 1951050Skarels /* 2051050Skarels * Information pushed on stack when a signal is delivered. 2151050Skarels * This is used by the kernel to restore state following 2251050Skarels * execution of the signal handler. It is also made available 2351050Skarels * to the handler to allow it to restore state properly if 2451050Skarels * a non-standard exit is performed. 2551050Skarels */ 2651050Skarels struct sigcontext { 2751050Skarels int sc_onstack; /* sigstack state to restore */ 2851050Skarels int sc_mask; /* signal mask to restore */ 2951050Skarels int sc_sp; /* sp to restore */ 3051050Skarels int sc_fp; /* fp to restore */ 3151050Skarels int sc_ap; /* ap to restore */ 3251050Skarels int sc_pc; /* pc to restore */ 3351050Skarels int sc_ps; /* psl to restore */ 3451050Skarels }; 35*69206Smckusick #endif 36