freebsd_signal.h revision 1.8 1 1.8 dsl /* $NetBSD: freebsd_signal.h,v 1.8 2007/12/04 18:40:08 dsl Exp $ */
2 1.1 onoe
3 1.1 onoe /*
4 1.1 onoe * Copyright (c) 2000 Atsushi Onoe
5 1.1 onoe * All rights reserved.
6 1.1 onoe *
7 1.1 onoe * Redistribution and use in source and binary forms, with or without
8 1.1 onoe * modification, are permitted provided that the following conditions
9 1.1 onoe * are met:
10 1.1 onoe * 1. Redistributions of source code must retain the above copyright
11 1.1 onoe * notice, this list of conditions and the following disclaimer.
12 1.1 onoe * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 onoe * notice, this list of conditions and the following disclaimer in the
14 1.1 onoe * documentation and/or other materials provided with the distribution.
15 1.1 onoe * 3. All advertising materials mentioning features or use of this software
16 1.1 onoe * must display the following acknowledgement:
17 1.1 onoe * This product includes software developed for the
18 1.5 keihan * NetBSD Project. See http://www.NetBSD.org/ for
19 1.1 onoe * information about NetBSD.
20 1.1 onoe * 4. The name of the author may not be used to endorse or promote products
21 1.1 onoe * derived from this software without specific prior written permission.
22 1.1 onoe *
23 1.1 onoe * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24 1.1 onoe * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 1.1 onoe * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 1.1 onoe * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27 1.1 onoe * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28 1.1 onoe * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 1.1 onoe * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 1.1 onoe * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 1.1 onoe * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32 1.1 onoe * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 1.1 onoe */
34 1.1 onoe
35 1.1 onoe #ifndef _FREEBSD_SIG_H
36 1.1 onoe #define _FREEBSD_SIG_H
37 1.1 onoe
38 1.1 onoe struct freebsd_sigaction4 {
39 1.8 dsl void (*freebsd_sa_handler)(int); /* signal handler */
40 1.2 christos int freebsd_sa_flags; /* see signal options below */
41 1.2 christos sigset_t freebsd_sa_mask; /* signal mask to apply */
42 1.1 onoe };
43 1.3 christos #ifdef _KERNEL
44 1.4 christos void freebsd_sendsig(const ksiginfo_t *, const sigset_t *);
45 1.3 christos #endif
46 1.1 onoe
47 1.1 onoe #endif /* _FREEBSD_SIG_H */
48