ibcs2_signal.c (30994) | ibcs2_signal.c (48620) |
---|---|
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 * $Id: ibcs2_signal.c,v 1.11 1997/07/20 09:39:46 bde Exp $ | 28 * $Id: ibcs2_signal.c,v 1.12 1997/11/06 19:28:38 phk Exp $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/signalvar.h> 34#include <sys/sysproto.h> 35 36#include <i386/ibcs2/ibcs2_types.h> --- 123 unchanged lines hidden (view full) --- 160} 161 162static void 163ibcs2_to_bsd_sigaction(isa, bsa) 164 struct ibcs2_sigaction *isa; 165 struct sigaction *bsa; 166{ 167 | 29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/signalvar.h> 34#include <sys/sysproto.h> 35 36#include <i386/ibcs2/ibcs2_types.h> --- 123 unchanged lines hidden (view full) --- 160} 161 162static void 163ibcs2_to_bsd_sigaction(isa, bsa) 164 struct ibcs2_sigaction *isa; 165 struct sigaction *bsa; 166{ 167 |
168 bsa->sa_handler = isa->sa_handler; 169 ibcs2_to_bsd_sigset(&isa->sa_mask, &bsa->sa_mask); | 168 bsa->sa_handler = isa->isa_handler; 169 ibcs2_to_bsd_sigset(&isa->isa_mask, &bsa->sa_mask); |
170 bsa->sa_flags = 0; /* ??? SA_NODEFER */ | 170 bsa->sa_flags = 0; /* ??? SA_NODEFER */ |
171 if ((isa->sa_flags & IBCS2_SA_NOCLDSTOP) != 0) | 171 if ((isa->isa_flags & IBCS2_SA_NOCLDSTOP) != 0) |
172 bsa->sa_flags |= SA_NOCLDSTOP; 173} 174 175static void 176bsd_to_ibcs2_sigaction(bsa, isa) 177 struct sigaction *bsa; 178 struct ibcs2_sigaction *isa; 179{ 180 | 172 bsa->sa_flags |= SA_NOCLDSTOP; 173} 174 175static void 176bsd_to_ibcs2_sigaction(bsa, isa) 177 struct sigaction *bsa; 178 struct ibcs2_sigaction *isa; 179{ 180 |
181 isa->sa_handler = bsa->sa_handler; 182 bsd_to_ibcs2_sigset(&bsa->sa_mask, &isa->sa_mask); 183 isa->sa_flags = 0; | 181 isa->isa_handler = bsa->sa_handler; 182 bsd_to_ibcs2_sigset(&bsa->sa_mask, &isa->isa_mask); 183 isa->isa_flags = 0; |
184 if ((bsa->sa_flags & SA_NOCLDSTOP) != 0) | 184 if ((bsa->sa_flags & SA_NOCLDSTOP) != 0) |
185 isa->sa_flags |= IBCS2_SA_NOCLDSTOP; | 185 isa->isa_flags |= IBCS2_SA_NOCLDSTOP; |
186} 187 188int 189ibcs2_sigaction(p, uap) 190 register struct proc *p; 191 struct ibcs2_sigaction_args *uap; 192{ 193 struct ibcs2_sigaction *nisa, *oisa, tmpisa; --- 283 unchanged lines hidden --- | 186} 187 188int 189ibcs2_sigaction(p, uap) 190 register struct proc *p; 191 struct ibcs2_sigaction_args *uap; 192{ 193 struct ibcs2_sigaction *nisa, *oisa, tmpisa; --- 283 unchanged lines hidden --- |