svr4_signal.h (68520) | svr4_signal.h (92761) |
---|---|
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 68520 2000-11-09 08:25:48Z marcel $ | 28 * $FreeBSD: head/sys/compat/svr4/svr4_signal.h 92761 2002-03-20 05:48:58Z alfred $ |
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 --- 37 unchanged lines hidden (view full) --- 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 81 | 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 --- 37 unchanged lines hidden (view full) --- 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 81 |
82typedef void (*svr4_sig_t) __P((int, svr4_siginfo_t *, void *)); | 82typedef void (*svr4_sig_t)(int, svr4_siginfo_t *, void *); |
83#define SVR4_SIG_DFL (svr4_sig_t) 0 84#define SVR4_SIG_ERR (svr4_sig_t) -1 85#define SVR4_SIG_IGN (svr4_sig_t) 1 86#define SVR4_SIG_HOLD (svr4_sig_t) 2 87 88#define SVR4_SIGNO(a) ((a) & SVR4_SIGNO_MASK) 89#define SVR4_SIGCALL(a) ((a) & ~SVR4_SIGNO_MASK) 90 --- 38 unchanged lines hidden (view full) --- 129 130/* ss_flags */ 131#define SVR4_SS_ONSTACK 0x00000001 132#define SVR4_SS_DISABLE 0x00000002 133#define SVR4_SS_ALLBITS 0x00000003 134 135#define SVR4_MINSIGSTKSZ 8192 136 | 83#define SVR4_SIG_DFL (svr4_sig_t) 0 84#define SVR4_SIG_ERR (svr4_sig_t) -1 85#define SVR4_SIG_IGN (svr4_sig_t) 1 86#define SVR4_SIG_HOLD (svr4_sig_t) 2 87 88#define SVR4_SIGNO(a) ((a) & SVR4_SIGNO_MASK) 89#define SVR4_SIGCALL(a) ((a) & ~SVR4_SIGNO_MASK) 90 --- 38 unchanged lines hidden (view full) --- 129 130/* ss_flags */ 131#define SVR4_SS_ONSTACK 0x00000001 132#define SVR4_SS_DISABLE 0x00000002 133#define SVR4_SS_ALLBITS 0x00000003 134 135#define SVR4_MINSIGSTKSZ 8192 136 |
137void bsd_to_svr4_sigaltstack __P((const struct sigaltstack *, struct svr4_sigaltstack *)); 138void bsd_to_svr4_sigset __P((const sigset_t *, svr4_sigset_t *)); 139void svr4_to_bsd_sigaltstack __P((const struct svr4_sigaltstack *, struct sigaltstack *)); 140void svr4_to_bsd_sigset __P((const svr4_sigset_t *, sigset_t *)); | 137void bsd_to_svr4_sigaltstack(const struct sigaltstack *, struct svr4_sigaltstack *); 138void bsd_to_svr4_sigset(const sigset_t *, svr4_sigset_t *); 139void svr4_to_bsd_sigaltstack(const struct svr4_sigaltstack *, struct sigaltstack *); 140void svr4_to_bsd_sigset(const svr4_sigset_t *, sigset_t *); |
141void svr4_sendsig(sig_t, int, sigset_t *, u_long); 142 143#endif /* !_SVR4_SIGNAL_H_ */ | 141void svr4_sendsig(sig_t, int, sigset_t *, u_long); 142 143#endif /* !_SVR4_SIGNAL_H_ */ |