signalvar.h (42379) | signalvar.h (43208) |
---|---|
1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)signalvar.h 8.6 (Berkeley) 2/19/95 | 1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)signalvar.h 8.6 (Berkeley) 2/19/95 |
34 * $Id: signalvar.h,v 1.21 1998/12/19 02:55:34 julian Exp $ | 34 * $Id: signalvar.h,v 1.22 1999/01/07 21:23:46 julian Exp $ |
35 */ 36 37#ifndef _SYS_SIGNALVAR_H_ /* tmp for user.h */ 38#define _SYS_SIGNALVAR_H_ 39 40#include <sys/signal.h> 41 42/* --- 7 unchanged lines hidden (view full) --- 50 */ 51struct sigacts { 52 sig_t ps_sigact[NSIG]; /* disposition of signals */ 53 sigset_t ps_catchmask[NSIG]; /* signals to be blocked */ 54 sigset_t ps_sigonstack; /* signals to take on sigstack */ 55 sigset_t ps_sigintr; /* signals that interrupt syscalls */ 56 sigset_t ps_sigreset; /* signals that reset when caught */ 57 sigset_t ps_signodefer; /* signals not masked while handled */ | 35 */ 36 37#ifndef _SYS_SIGNALVAR_H_ /* tmp for user.h */ 38#define _SYS_SIGNALVAR_H_ 39 40#include <sys/signal.h> 41 42/* --- 7 unchanged lines hidden (view full) --- 50 */ 51struct sigacts { 52 sig_t ps_sigact[NSIG]; /* disposition of signals */ 53 sigset_t ps_catchmask[NSIG]; /* signals to be blocked */ 54 sigset_t ps_sigonstack; /* signals to take on sigstack */ 55 sigset_t ps_sigintr; /* signals that interrupt syscalls */ 56 sigset_t ps_sigreset; /* signals that reset when caught */ 57 sigset_t ps_signodefer; /* signals not masked while handled */ |
58#ifndef COMPAT_LINUX_THREADS 59 sigset_t ps_oldmask; /* saved mask from before sigpause */ 60#endif /* COMPAT_LINUX_THREADS */ | |
61 int ps_flags; /* signal flags, below */ 62 struct sigaltstack ps_sigstk; /* sp & on stack state variable */ | 58 int ps_flags; /* signal flags, below */ 59 struct sigaltstack ps_sigstk; /* sp & on stack state variable */ |
63#ifndef COMPAT_LINUX_THREADS 64 int ps_sig; /* for core dump/debugger XXX */ 65 u_long ps_code; /* for core dump/debugger XXX */ 66#endif /* COMPAT_LINUX_THREADS */ | |
67 sigset_t ps_usertramp; /* SunOS compat; libc sigtramp XXX */ 68}; 69 70/* signal flags */ 71#define SAS_OLDMASK 0x01 /* need to restore mask before pause */ 72#define SAS_ALTSTACK 0x02 /* have alternate signal stack */ 73 74/* additional signal action values, used only temporarily/internally */ --- 95 unchanged lines hidden (view full) --- 170void killproc __P((struct proc *p, char *why)); 171void pgsigio __P((struct sigio *, int signum, int checkctty)); 172void pgsignal __P((struct pgrp *pgrp, int sig, int checkctty)); 173void postsig __P((int sig)); 174void psignal __P((struct proc *p, int sig)); 175void sigexit __P((struct proc *p, int signum)); 176void siginit __P((struct proc *p)); 177void trapsignal __P((struct proc *p, int sig, u_long code)); | 60 sigset_t ps_usertramp; /* SunOS compat; libc sigtramp XXX */ 61}; 62 63/* signal flags */ 64#define SAS_OLDMASK 0x01 /* need to restore mask before pause */ 65#define SAS_ALTSTACK 0x02 /* have alternate signal stack */ 66 67/* additional signal action values, used only temporarily/internally */ --- 95 unchanged lines hidden (view full) --- 163void killproc __P((struct proc *p, char *why)); 164void pgsigio __P((struct sigio *, int signum, int checkctty)); 165void pgsignal __P((struct pgrp *pgrp, int sig, int checkctty)); 166void postsig __P((int sig)); 167void psignal __P((struct proc *p, int sig)); 168void sigexit __P((struct proc *p, int signum)); 169void siginit __P((struct proc *p)); 170void trapsignal __P((struct proc *p, int sig, u_long code)); |
178#ifdef COMPAT_LINUX_THREADS | |
179void check_sigacts (void); | 171void check_sigacts (void); |
180#endif | |
181/* 182 * Machine-dependent functions: 183 */ 184void sendsig __P((sig_t action, int sig, int returnmask, u_long code)); 185#endif /* KERNEL */ 186#endif /* !_SYS_SIGNALVAR_H_ */ | 172/* 173 * Machine-dependent functions: 174 */ 175void sendsig __P((sig_t action, int sig, int returnmask, u_long code)); 176#endif /* KERNEL */ 177#endif /* !_SYS_SIGNALVAR_H_ */ |