Deleted Added
full compact
imgact_elf.c (41514) imgact_elf.c (41931)
1/*-
2 * Copyright (c) 1995-1996 S�ren Schmidt
3 * Copyright (c) 1996 Peter Wemm
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:

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

21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 1995-1996 S�ren Schmidt
3 * Copyright (c) 1996 Peter Wemm
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:

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

21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $Id: imgact_elf.c,v 1.42 1998/10/25 17:44:50 phk Exp $
29 * $Id: imgact_elf.c,v 1.43 1998/12/04 22:54:51 archie Exp $
30 */
31
32#include "opt_rlimit.h"
33
34#include <sys/param.h>
35#include <sys/acct.h>
36#include <sys/exec.h>
37#include <sys/fcntl.h>

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

849
850 /* Gather the information for the header. */
851 bzero(&status, sizeof status);
852 status.pr_version = PRSTATUS_VERSION;
853 status.pr_statussz = sizeof(prstatus_t);
854 status.pr_gregsetsz = sizeof(gregset_t);
855 status.pr_fpregsetsz = sizeof(fpregset_t);
856 status.pr_osreldate = osreldate;
30 */
31
32#include "opt_rlimit.h"
33
34#include <sys/param.h>
35#include <sys/acct.h>
36#include <sys/exec.h>
37#include <sys/fcntl.h>

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

849
850 /* Gather the information for the header. */
851 bzero(&status, sizeof status);
852 status.pr_version = PRSTATUS_VERSION;
853 status.pr_statussz = sizeof(prstatus_t);
854 status.pr_gregsetsz = sizeof(gregset_t);
855 status.pr_fpregsetsz = sizeof(fpregset_t);
856 status.pr_osreldate = osreldate;
857#ifndef COMPAT_LINUX_THREADS
857 status.pr_cursig = p->p_sigacts->ps_sig;
858 status.pr_cursig = p->p_sigacts->ps_sig;
859#else
860 status.pr_cursig = p->p_sig;
861#endif /* COMPAT_LINUX_THREADS */
858 status.pr_pid = p->p_pid;
859 fill_regs(p, &status.pr_reg);
860
861 fill_fpregs(p, &fpregset);
862
863 bzero(&psinfo, sizeof psinfo);
864 psinfo.pr_version = PRPSINFO_VERSION;
865 psinfo.pr_psinfosz = sizeof(prpsinfo_t);

--- 123 unchanged lines hidden ---
862 status.pr_pid = p->p_pid;
863 fill_regs(p, &status.pr_reg);
864
865 fill_fpregs(p, &fpregset);
866
867 bzero(&psinfo, sizeof psinfo);
868 psinfo.pr_version = PRPSINFO_VERSION;
869 psinfo.pr_psinfosz = sizeof(prpsinfo_t);

--- 123 unchanged lines hidden ---