Deleted Added
full compact
svr4_signal.c (65302) svr4_signal.c (69379)
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 65302 2000-08-31 22:54:09Z obrien $
28 * $FreeBSD: head/sys/compat/svr4/svr4_signal.c 69379 2000-11-30 05:23:49Z marcel $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/proc.h>
34#include <sys/filedesc.h>
35#include <sys/signal.h>
36#include <sys/signalvar.h>

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

623{
624 struct svr4_ucontext uc;
625 int error;
626
627 switch (uap->func) {
628 case 0:
629 DPRINTF(("getcontext(%p)\n", uap->uc));
630 svr4_getcontext(p, &uc, &p->p_sigmask,
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/proc.h>
34#include <sys/filedesc.h>
35#include <sys/signal.h>
36#include <sys/signalvar.h>

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

623{
624 struct svr4_ucontext uc;
625 int error;
626
627 switch (uap->func) {
628 case 0:
629 DPRINTF(("getcontext(%p)\n", uap->uc));
630 svr4_getcontext(p, &uc, &p->p_sigmask,
631 p->p_sigstk.ss_flags & SS_ONSTACK);
631 sigonstack(cpu_getstack(p)));
632 return copyout(&uc, uap->uc, sizeof(uc));
633
634 case 1:
635 DPRINTF(("setcontext(%p)\n", uap->uc));
636 if ((error = copyin(uap->uc, &uc, sizeof(uc))) != 0)
637 return error;
638 DPRINTF(("uc_flags = %lx\n", uc.uc_flags));
639#if defined(DEBUG_SVR4)

--- 27 unchanged lines hidden ---
632 return copyout(&uc, uap->uc, sizeof(uc));
633
634 case 1:
635 DPRINTF(("setcontext(%p)\n", uap->uc));
636 if ((error = copyin(uap->uc, &uc, sizeof(uc))) != 0)
637 return error;
638 DPRINTF(("uc_flags = %lx\n", uc.uc_flags));
639#if defined(DEBUG_SVR4)

--- 27 unchanged lines hidden ---