xref: /netbsd-src/sys/compat/freebsd/freebsd_signal.h (revision f2af9174b9472209bf83531211ced81b040952d3)
1*f2af9174Sdsl /*	$NetBSD: freebsd_signal.h,v 1.8 2007/12/04 18:40:08 dsl Exp $ */
20dbbd8ceSonoe 
30dbbd8ceSonoe /*
40dbbd8ceSonoe  * Copyright (c) 2000 Atsushi Onoe
50dbbd8ceSonoe  * All rights reserved.
60dbbd8ceSonoe  *
70dbbd8ceSonoe  * Redistribution and use in source and binary forms, with or without
80dbbd8ceSonoe  * modification, are permitted provided that the following conditions
90dbbd8ceSonoe  * are met:
100dbbd8ceSonoe  * 1. Redistributions of source code must retain the above copyright
110dbbd8ceSonoe  *    notice, this list of conditions and the following disclaimer.
120dbbd8ceSonoe  * 2. Redistributions in binary form must reproduce the above copyright
130dbbd8ceSonoe  *    notice, this list of conditions and the following disclaimer in the
140dbbd8ceSonoe  *    documentation and/or other materials provided with the distribution.
150dbbd8ceSonoe  * 3. All advertising materials mentioning features or use of this software
160dbbd8ceSonoe  *    must display the following acknowledgement:
170dbbd8ceSonoe  *          This product includes software developed for the
1807147999Skeihan  *          NetBSD Project.  See http://www.NetBSD.org/ for
190dbbd8ceSonoe  *          information about NetBSD.
200dbbd8ceSonoe  * 4. The name of the author may not be used to endorse or promote products
210dbbd8ceSonoe  *    derived from this software without specific prior written permission.
220dbbd8ceSonoe  *
230dbbd8ceSonoe  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
240dbbd8ceSonoe  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
250dbbd8ceSonoe  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
260dbbd8ceSonoe  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
270dbbd8ceSonoe  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
280dbbd8ceSonoe  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
290dbbd8ceSonoe  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
300dbbd8ceSonoe  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
310dbbd8ceSonoe  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
320dbbd8ceSonoe  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
330dbbd8ceSonoe  */
340dbbd8ceSonoe 
350dbbd8ceSonoe #ifndef _FREEBSD_SIG_H
360dbbd8ceSonoe #define	_FREEBSD_SIG_H
370dbbd8ceSonoe 
380dbbd8ceSonoe struct	freebsd_sigaction4 {
39*f2af9174Sdsl 	void    (*freebsd_sa_handler)(int); /* signal handler */
40116bcb05Schristos 	int	freebsd_sa_flags;		/* see signal options below */
41116bcb05Schristos 	sigset_t freebsd_sa_mask;		/* signal mask to apply */
420dbbd8ceSonoe };
43e2c278d8Schristos #ifdef _KERNEL
44cfba45c8Schristos void freebsd_sendsig(const ksiginfo_t *, const sigset_t *);
45e2c278d8Schristos #endif
460dbbd8ceSonoe 
470dbbd8ceSonoe #endif /* _FREEBSD_SIG_H */
48