Deleted Added
full compact
ibcs2_signal.c (83366) ibcs2_signal.c (92761)
1/*
2 * Copyright (c) 1995 Scott Bartram
3 * Copyright (c) 1995 Steven Wallace
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*
2 * Copyright (c) 1995 Scott Bartram
3 * Copyright (c) 1995 Steven Wallace
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_signal.c 83366 2001-09-12 08:38:13Z julian $
28 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_signal.c 92761 2002-03-20 05:48:58Z alfred $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/lock.h>
34#include <sys/mutex.h>
35#include <sys/signalvar.h>
36#include <sys/sysproto.h>

--- 8 unchanged lines hidden (view full) ---

45#define sigismember(s, n) SIGISMEMBER(*(s), n)
46#define sigaddset(s, n) SIGADDSET(*(s), n)
47
48#define ibcs2_sigmask(n) (1 << ((n) - 1))
49#define ibcs2_sigemptyset(s) bzero((s), sizeof(*(s)))
50#define ibcs2_sigismember(s, n) (*(s) & ibcs2_sigmask(n))
51#define ibcs2_sigaddset(s, n) (*(s) |= ibcs2_sigmask(n))
52
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/lock.h>
34#include <sys/mutex.h>
35#include <sys/signalvar.h>
36#include <sys/sysproto.h>

--- 8 unchanged lines hidden (view full) ---

45#define sigismember(s, n) SIGISMEMBER(*(s), n)
46#define sigaddset(s, n) SIGADDSET(*(s), n)
47
48#define ibcs2_sigmask(n) (1 << ((n) - 1))
49#define ibcs2_sigemptyset(s) bzero((s), sizeof(*(s)))
50#define ibcs2_sigismember(s, n) (*(s) & ibcs2_sigmask(n))
51#define ibcs2_sigaddset(s, n) (*(s) |= ibcs2_sigmask(n))
52
53static void ibcs2_to_bsd_sigset __P((const ibcs2_sigset_t *, sigset_t *));
54static void bsd_to_ibcs2_sigset __P((const sigset_t *, ibcs2_sigset_t *));
55static void ibcs2_to_bsd_sigaction __P((struct ibcs2_sigaction *,
56 struct sigaction *));
57static void bsd_to_ibcs2_sigaction __P((struct sigaction *,
58 struct ibcs2_sigaction *));
53static void ibcs2_to_bsd_sigset(const ibcs2_sigset_t *, sigset_t *);
54static void bsd_to_ibcs2_sigset(const sigset_t *, ibcs2_sigset_t *);
55static void ibcs2_to_bsd_sigaction(struct ibcs2_sigaction *,
56 struct sigaction *);
57static void bsd_to_ibcs2_sigaction(struct sigaction *,
58 struct ibcs2_sigaction *);
59
60int bsd_to_ibcs2_sig[IBCS2_SIGTBLSZ] = {
61 IBCS2_SIGHUP, /* 1 */
62 IBCS2_SIGINT, /* 2 */
63 IBCS2_SIGQUIT, /* 3 */
64 IBCS2_SIGILL, /* 4 */
65 IBCS2_SIGTRAP, /* 5 */
66 IBCS2_SIGABRT, /* 6 */

--- 442 unchanged lines hidden ---
59
60int bsd_to_ibcs2_sig[IBCS2_SIGTBLSZ] = {
61 IBCS2_SIGHUP, /* 1 */
62 IBCS2_SIGINT, /* 2 */
63 IBCS2_SIGQUIT, /* 3 */
64 IBCS2_SIGILL, /* 4 */
65 IBCS2_SIGTRAP, /* 5 */
66 IBCS2_SIGABRT, /* 6 */

--- 442 unchanged lines hidden ---