signal.h revision 105014
177957Sbenno/* 277957Sbenno * Copyright (C) 1995, 1996 Wolfgang Solfrank. 377957Sbenno * Copyright (C) 1995, 1996 TooLs GmbH. 477957Sbenno * All rights reserved. 577957Sbenno * 677957Sbenno * Redistribution and use in source and binary forms, with or without 777957Sbenno * modification, are permitted provided that the following conditions 877957Sbenno * are met: 977957Sbenno * 1. Redistributions of source code must retain the above copyright 1077957Sbenno * notice, this list of conditions and the following disclaimer. 1177957Sbenno * 2. Redistributions in binary form must reproduce the above copyright 1277957Sbenno * notice, this list of conditions and the following disclaimer in the 1377957Sbenno * documentation and/or other materials provided with the distribution. 1477957Sbenno * 3. All advertising materials mentioning features or use of this software 1577957Sbenno * must display the following acknowledgement: 1677957Sbenno * This product includes software developed by TooLs GmbH. 1777957Sbenno * 4. The name of TooLs GmbH may not be used to endorse or promote products 1877957Sbenno * derived from this software without specific prior written permission. 1977957Sbenno * 2077957Sbenno * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 2177957Sbenno * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2277957Sbenno * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2377957Sbenno * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2477957Sbenno * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 2577957Sbenno * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 2677957Sbenno * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 2777957Sbenno * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 2877957Sbenno * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 2977957Sbenno * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3077957Sbenno * 3177957Sbenno * $NetBSD: signal.h,v 1.4 1998/09/14 02:48:34 thorpej Exp $ 3277957Sbenno * $FreeBSD: head/sys/powerpc/include/signal.h 105014 2002-10-13 00:31:46Z mike $ 3377957Sbenno */ 3477957Sbenno 3577957Sbenno#ifndef _MACHINE_SIGNAL_H_ 3677957Sbenno#define _MACHINE_SIGNAL_H_ 3777957Sbenno 38105014Smike#include <sys/cdefs.h> 39105014Smike 40105014Smike#if __XSI_VISIBLE 4177957Sbenno#define MINSIGSTKSZ (512 * 4) 42105014Smike#endif 4377957Sbenno 4477957Sbennotypedef int sig_atomic_t; 4577957Sbenno 46105014Smike#ifdef _KERNEL 4777957Sbennotypedef unsigned int osigset_t; 4877957Sbenno 4977957Sbenno#include <machine/frame.h> 5077957Sbenno 51105014Smike/* 52105014Smike * XXX why do we have compatibility structs for a new platform? 53105014Smike */ 5477957Sbenno#if defined(__LIBC12_SOURCE__) || defined(_KERNEL) 5577957Sbennostruct sigcontext13 { 5677957Sbenno int sc_onstack; /* saved onstack flag */ 5777957Sbenno int sc_mask; /* saved signal mask (old style) */ 5877957Sbenno struct trapframe sc_frame; /* saved registers */ 5977957Sbenno}; 6077957Sbenno#endif /* __LIBC12_SOURCE__ || _KERNEL */ 6177957Sbenno 6277957Sbennostruct osigcontext { 6377957Sbenno int sc_onstack; /* saved onstack flag */ 6477957Sbenno int __sc_mask13; /* saved signal mask (old style) */ 6577957Sbenno struct trapframe sc_frame; /* saved registers */ 66105014Smike struct __sigset sc_mask; /* saved signal mask (new style) */ 6777957Sbenno}; 6877957Sbenno 69105014Smike#endif /* _KERNEL */ 70105014Smike 71105014Smike#if __BSD_VISIBLE 7277957Sbennostruct sigcontext { 7377957Sbenno int sc_onstack; /* saved onstack flag */ 7477957Sbenno int __sc_mask13; /* saved signal mask (old style) */ 7577957Sbenno struct trapframe sc_frame; /* saved registers */ 76105014Smike struct __sigset sc_mask; /* saved signal mask (new style) */ 7777957Sbenno}; 78105014Smike#endif 7977957Sbenno 8077957Sbenno#endif /* !_MACHINE_SIGNAL_H_ */ 81