1*7730d1d9Sderaadt /* $OpenBSD: signal.h,v 1.7 2016/05/10 18:39:47 deraadt Exp $ */ 295c7671fSmiod /* $NetBSD: signal.h,v 1.12 2005/12/11 12:18:58 christos Exp $ */ 395c7671fSmiod 495c7671fSmiod /* 595c7671fSmiod * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California. 695c7671fSmiod * All rights reserved. 795c7671fSmiod * 895c7671fSmiod * Redistribution and use in source and binary forms, with or without 995c7671fSmiod * modification, are permitted provided that the following conditions 1095c7671fSmiod * are met: 1195c7671fSmiod * 1. Redistributions of source code must retain the above copyright 1295c7671fSmiod * notice, this list of conditions and the following disclaimer. 1395c7671fSmiod * 2. Redistributions in binary form must reproduce the above copyright 1495c7671fSmiod * notice, this list of conditions and the following disclaimer in the 1595c7671fSmiod * documentation and/or other materials provided with the distribution. 1695c7671fSmiod * 3. Neither the name of the University nor the names of its contributors 1795c7671fSmiod * may be used to endorse or promote products derived from this software 1895c7671fSmiod * without specific prior written permission. 1995c7671fSmiod * 2095c7671fSmiod * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2195c7671fSmiod * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2295c7671fSmiod * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2395c7671fSmiod * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2495c7671fSmiod * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2595c7671fSmiod * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2695c7671fSmiod * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2795c7671fSmiod * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2895c7671fSmiod * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2995c7671fSmiod * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3095c7671fSmiod * SUCH DAMAGE. 3195c7671fSmiod * 3295c7671fSmiod * @(#)signal.h 7.16 (Berkeley) 3/17/91 3395c7671fSmiod */ 3495c7671fSmiod 3595c7671fSmiod #ifndef _SH_SIGNAL_H_ 3695c7671fSmiod #define _SH_SIGNAL_H_ 3795c7671fSmiod 3895c7671fSmiod #include <sys/cdefs.h> 3995c7671fSmiod 4095c7671fSmiod typedef int sig_atomic_t; 4195c7671fSmiod 4295c7671fSmiod #if __BSD_VISIBLE || __XPG_VISIBLE >= 420 43a4976051Sderaadt 4495c7671fSmiod /* 4595c7671fSmiod * Information pushed on stack when a signal is delivered. 4695c7671fSmiod * This is used by the kernel to restore state following 4795c7671fSmiod * execution of the signal handler. It is also made available 4895c7671fSmiod * to the handler to allow it to restore state properly if 4995c7671fSmiod * a non-standard exit is performed. 5095c7671fSmiod */ 5195c7671fSmiod struct sigcontext { 527e229282Smiod int sc_reg[21]; 537e229282Smiod int sc_fpreg[34]; 5495c7671fSmiod 55*7730d1d9Sderaadt long sc_cookie; 5695c7671fSmiod 5795c7671fSmiod int sc_expevt; /* XXX should be above */ 5895c7671fSmiod int sc_err; 5995c7671fSmiod 60*7730d1d9Sderaadt int sc_mask; /* signal mask to restore */ 6195c7671fSmiod }; 6295c7671fSmiod 6395c7671fSmiod #endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 420 */ 6495c7671fSmiod #endif /* !_SH_SIGNAL_H_ */ 65