svr4_signal.c (51793) | svr4_signal.c (52140) |
---|---|
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.c 51793 1999-09-29 15:12:18Z marcel $ | 28 * $FreeBSD: head/sys/compat/svr4/svr4_signal.c 52140 1999-10-11 20:33:17Z luoqi $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/namei.h> 34#include <sys/proc.h> 35#include <sys/filedesc.h> 36#include <sys/mount.h> --- 560 unchanged lines hidden (view full) --- 597{ 598 struct svr4_ucontext uc; 599 int error; 600 601 switch (uap->func) { 602 case 0: 603 DPRINTF(("getcontext(%p)\n", uap->uc)); 604 svr4_getcontext(p, &uc, &p->p_sigmask, | 29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/namei.h> 34#include <sys/proc.h> 35#include <sys/filedesc.h> 36#include <sys/mount.h> --- 560 unchanged lines hidden (view full) --- 597{ 598 struct svr4_ucontext uc; 599 int error; 600 601 switch (uap->func) { 602 case 0: 603 DPRINTF(("getcontext(%p)\n", uap->uc)); 604 svr4_getcontext(p, &uc, &p->p_sigmask, |
605 p->p_sigacts->ps_sigstk.ss_flags & SS_ONSTACK); | 605 p->p_sigstk.ss_flags & SS_ONSTACK); |
606 return copyout(&uc, uap->uc, sizeof(uc)); 607 608 case 1: 609 DPRINTF(("setcontext(%p)\n", uap->uc)); 610 if ((error = copyin(uap->uc, &uc, sizeof(uc))) != 0) 611 return error; 612 DPRINTF(("uc_flags = %x\n", uc.uc_flags)); 613 DPRINTF(("uc_sigmask = %x\n", uc.uc_sigmask)); --- 21 unchanged lines hidden --- | 606 return copyout(&uc, uap->uc, sizeof(uc)); 607 608 case 1: 609 DPRINTF(("setcontext(%p)\n", uap->uc)); 610 if ((error = copyin(uap->uc, &uc, sizeof(uc))) != 0) 611 return error; 612 DPRINTF(("uc_flags = %x\n", uc.uc_flags)); 613 DPRINTF(("uc_sigmask = %x\n", uc.uc_sigmask)); --- 21 unchanged lines hidden --- |