xref: /openbsd-src/sys/arch/m88k/include/signal.h (revision 1b3c666cbef6f199ff146106bb747bf306fac8f4)
1*1b3c666cSaoyama /*	$OpenBSD: signal.h,v 1.8 2016/06/21 12:31:19 aoyama Exp $ */
23180e169Smiod /*
33180e169Smiod  * Copyright (c) 1996 Nivas Madhur
43180e169Smiod  * All rights reserved.
53180e169Smiod  *
63180e169Smiod  * Redistribution and use in source and binary forms, with or without
73180e169Smiod  * modification, are permitted provided that the following conditions
83180e169Smiod  * are met:
93180e169Smiod  * 1. Redistributions of source code must retain the above copyright
103180e169Smiod  *    notice, this list of conditions and the following disclaimer.
113180e169Smiod  * 2. Redistributions in binary form must reproduce the above copyright
123180e169Smiod  *    notice, this list of conditions and the following disclaimer in the
133180e169Smiod  *    documentation and/or other materials provided with the distribution.
143180e169Smiod  * 3. All advertising materials mentioning features or use of this software
153180e169Smiod  *    must display the following acknowledgement:
163180e169Smiod  *      This product includes software developed by Nivas Madhur.
173180e169Smiod  * 4. The name of the author may not be used to endorse or promote products
183180e169Smiod  *    derived from this software without specific prior written permission
193180e169Smiod  *
203180e169Smiod  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
213180e169Smiod  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
223180e169Smiod  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
233180e169Smiod  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
243180e169Smiod  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
253180e169Smiod  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
263180e169Smiod  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
273180e169Smiod  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
283180e169Smiod  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
293180e169Smiod  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
303180e169Smiod  *
313180e169Smiod  */
323180e169Smiod 
332fa72412Spirofti #ifndef _M88K_SIGNAL_H_
342fa72412Spirofti #define _M88K_SIGNAL_H_
353180e169Smiod 
367c2ef5d9Smillert #include <sys/cdefs.h>
373180e169Smiod 
383180e169Smiod typedef int sig_atomic_t;
393180e169Smiod 
409fa6b648Smillert #if __BSD_VISIBLE || __XPG_VISIBLE >= 420
41ea794d3bSmillert 
423180e169Smiod /*
433180e169Smiod  * Information pushed on stack when a signal is delivered.
443180e169Smiod  * This is used by the kernel to restore state following
453180e169Smiod  * execution of the signal handler. It is also made available
463180e169Smiod  * to the handler to allow it to restore state properly if
473180e169Smiod  * a non-standard exit is performed.
483180e169Smiod  */
493180e169Smiod struct sigcontext {
50*1b3c666cSaoyama 	long	sc_cookie;
513180e169Smiod 	int	sc_mask;		/* signal mask to restore */
523180e169Smiod 	/* begin machine dependent portion */
531cd8f1bcSmiod 	unsigned int sc_regs[32 + 25];
543180e169Smiod };
559fa6b648Smillert #endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 420 */
562fa72412Spirofti #endif /* _M88K_SIGNAL_H_ */
57