Deleted Added
full compact
svr4_signal.h (139743) svr4_signal.h (142500)
1/*-
2 * Copyright (c) 1998 Mark Newton
3 * Copyright (c) 1994 Christos Zoulas
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) 1998 Mark Newton
3 * Copyright (c) 1994 Christos Zoulas
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/compat/svr4/svr4_signal.h 139743 2005-01-05 22:34:37Z imp $
28 * $FreeBSD: head/sys/compat/svr4/svr4_signal.h 142500 2005-02-25 19:34:10Z sam $
29 */
30
31#ifndef _SVR4_SIGNAL_H_
32#define _SVR4_SIGNAL_H_
33
34#include <i386/svr4/svr4_machdep.h>
35#include <compat/svr4/svr4_siginfo.h>
36

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

64#define SVR4_SIGCONT 25
65#define SVR4_SIGTTIN 26
66#define SVR4_SIGTTOU 27
67#define SVR4_SIGVTALRM 28
68#define SVR4_SIGPROF 29
69#define SVR4_SIGXCPU 30
70#define SVR4_SIGXFSZ 31
71#define SVR4_NSIG 32
29 */
30
31#ifndef _SVR4_SIGNAL_H_
32#define _SVR4_SIGNAL_H_
33
34#include <i386/svr4/svr4_machdep.h>
35#include <compat/svr4/svr4_siginfo.h>
36

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

64#define SVR4_SIGCONT 25
65#define SVR4_SIGTTIN 26
66#define SVR4_SIGTTOU 27
67#define SVR4_SIGVTALRM 28
68#define SVR4_SIGPROF 29
69#define SVR4_SIGXCPU 30
70#define SVR4_SIGXFSZ 31
71#define SVR4_NSIG 32
72#define SVR4_SIGTBLSZ 31
73
74#define SVR4_SIGNO_MASK 0x00FF
75#define SVR4_SIGNAL_MASK 0x0000
76#define SVR4_SIGDEFER_MASK 0x0100
77#define SVR4_SIGHOLD_MASK 0x0200
78#define SVR4_SIGRELSE_MASK 0x0400
79#define SVR4_SIGIGNORE_MASK 0x0800
80#define SVR4_SIGPAUSE_MASK 0x1000

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

87
88#define SVR4_SIGNO(a) ((a) & SVR4_SIGNO_MASK)
89#define SVR4_SIGCALL(a) ((a) & ~SVR4_SIGNO_MASK)
90
91#define SVR4_SIG_BLOCK 1
92#define SVR4_SIG_UNBLOCK 2
93#define SVR4_SIG_SETMASK 3
94
72
73#define SVR4_SIGNO_MASK 0x00FF
74#define SVR4_SIGNAL_MASK 0x0000
75#define SVR4_SIGDEFER_MASK 0x0100
76#define SVR4_SIGHOLD_MASK 0x0200
77#define SVR4_SIGRELSE_MASK 0x0400
78#define SVR4_SIGIGNORE_MASK 0x0800
79#define SVR4_SIGPAUSE_MASK 0x1000

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

86
87#define SVR4_SIGNO(a) ((a) & SVR4_SIGNO_MASK)
88#define SVR4_SIGCALL(a) ((a) & ~SVR4_SIGNO_MASK)
89
90#define SVR4_SIG_BLOCK 1
91#define SVR4_SIG_UNBLOCK 2
92#define SVR4_SIG_SETMASK 3
93
95extern int bsd_to_svr4_sig[];
96extern int svr4_to_bsd_sig[];
94extern int bsd_to_svr4_sig[SVR4_NSIG];
95extern int svr4_to_bsd_sig[SVR4_NSIG];
97
98#define SVR4_BSD2SVR4_SIG(sig) \
96
97#define SVR4_BSD2SVR4_SIG(sig) \
99 (((sig) <= SVR4_SIGTBLSZ) ? bsd_to_svr4_sig[_SIG_IDX(sig)] : sig)
98 (((sig) < SVR4_NSIG) ? bsd_to_svr4_sig[sig] : sig)
100#define SVR4_SVR42BSD_SIG(sig) \
99#define SVR4_SVR42BSD_SIG(sig) \
101 (((sig) <= SVR4_SIGTBLSZ) ? svr4_to_bsd_sig[_SIG_IDX(sig)] : sig)
100 (((sig) < SVR4_NSIG) ? svr4_to_bsd_sig[sig] : sig)
102
103typedef struct {
104 u_long bits[4];
105} svr4_sigset_t;
106
107struct svr4_sigaction {
108 int ssa_flags;
109 svr4_sig_t ssa_handler;

--- 34 unchanged lines hidden ---
101
102typedef struct {
103 u_long bits[4];
104} svr4_sigset_t;
105
106struct svr4_sigaction {
107 int ssa_flags;
108 svr4_sig_t ssa_handler;

--- 34 unchanged lines hidden ---