1 /* $NetBSD: svr4_32_signal.h,v 1.8 2005/12/11 12:20:26 christos Exp $ */
2
3 /*-
4 * Copyright (c) 1994 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christos Zoulas.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the NetBSD
21 * Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 * contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39 #ifndef _SVR4_32_SIGNAL_H_
40 #define _SVR4_32_SIGNAL_H_
41
42 #include <compat/svr4_32/svr4_32_siginfo.h>
43 #include <compat/svr4/svr4_signal.h>
44
45
46 typedef netbsd32_caddr_t svr4_32_sig_t;
47 #define SVR4_32_SIG_DFL (svr4_32_sig_t) 0
48 #define SVR4_32_SIG_ERR (svr4_32_sig_t) -1
49 #define SVR4_32_SIG_IGN (svr4_32_sig_t) 1
50 #define SVR4_32_SIG_HOLD (svr4_32_sig_t) 2
51
52 typedef struct {
53 netbsd32_u_long bits[4];
54 } svr4_32_sigset_t;
55 typedef netbsd32_caddr_t svr4_32_sigset_tp;
56
57 struct svr4_32_sigaction {
58 int svr4_32_sa_flags;
59 svr4_32_sig_t svr4_32_sa_handler;
60 svr4_32_sigset_t svr4_32_sa_mask;
61 int svr4_32_sa_reserved[2];
62 };
63 typedef netbsd32_caddr_t svr4_32_sigactionp;
64
65 struct svr4_32_sigaltstack {
66 netbsd32_charp ss_sp;
67 int ss_size;
68 int ss_flags;
69 };
70 typedef netbsd32_caddr_t svr4_32_sigaltstackp;
71
72 void native_to_svr4_32_sigset __P((const sigset_t *, svr4_32_sigset_t *));
73 void svr4_32_to_native_sigset __P((const svr4_32_sigset_t *, sigset_t *));
74 void native_to_svr4_32_sigaltstack __P((const struct sigaltstack *, struct svr4_32_sigaltstack *));
75 void svr4_32_to_native_sigaltstack __P((const struct svr4_32_sigaltstack *, struct sigaltstack *));
76 void svr4_32_sendsig __P((const ksiginfo_t *, const sigset_t *));
77
78 #endif /* !_SVR4_32_SIGNAL_H_ */
Cache object: 7cc58667f0371271ca0fa3b2751ea624
|