kern_sharedpage.c (92461) | kern_sharedpage.c (92723) |
---|---|
1/* 2 * Copyright (c) 1993, David Greenman 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 1993, David Greenman 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/kern/kern_exec.c 92461 2002-03-17 00:56:41Z jake $ | 26 * $FreeBSD: head/sys/kern/kern_exec.c 92723 2002-03-19 21:25:46Z alfred $ |
27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/lock.h> 32#include <sys/mutex.h> 33#include <sys/sysproto.h> 34#include <sys/signalvar.h> --- 38 unchanged lines hidden (view full) --- 73struct execlist { 74 execlist_fn function; 75 TAILQ_ENTRY(execlist) next; 76}; 77 78TAILQ_HEAD(exec_list_head, execlist); 79static struct exec_list_head exec_list = TAILQ_HEAD_INITIALIZER(exec_list); 80 | 27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/lock.h> 32#include <sys/mutex.h> 33#include <sys/sysproto.h> 34#include <sys/signalvar.h> --- 38 unchanged lines hidden (view full) --- 73struct execlist { 74 execlist_fn function; 75 TAILQ_ENTRY(execlist) next; 76}; 77 78TAILQ_HEAD(exec_list_head, execlist); 79static struct exec_list_head exec_list = TAILQ_HEAD_INITIALIZER(exec_list); 80 |
81static register_t *exec_copyout_strings __P((struct image_params *)); | 81static register_t *exec_copyout_strings(struct image_params *); |
82 83/* XXX This should be vm_size_t. */ 84static u_long ps_strings = PS_STRINGS; 85SYSCTL_ULONG(_kern, KERN_PS_STRINGS, ps_strings, CTLFLAG_RD, &ps_strings, 0, ""); 86 87/* XXX This should be vm_size_t. */ 88static u_long usrstack = USRSTACK; 89SYSCTL_ULONG(_kern, KERN_USRSTACK, usrstack, CTLFLAG_RD, &usrstack, 0, ""); --- 31 unchanged lines hidden (view full) --- 121{ 122 struct proc *p = td->td_proc; 123 struct nameidata nd, *ndp; 124 struct ucred *newcred, *oldcred; 125 register_t *stack_base; 126 int error, len, i; 127 struct image_params image_params, *imgp; 128 struct vattr attr; | 82 83/* XXX This should be vm_size_t. */ 84static u_long ps_strings = PS_STRINGS; 85SYSCTL_ULONG(_kern, KERN_PS_STRINGS, ps_strings, CTLFLAG_RD, &ps_strings, 0, ""); 86 87/* XXX This should be vm_size_t. */ 88static u_long usrstack = USRSTACK; 89SYSCTL_ULONG(_kern, KERN_USRSTACK, usrstack, CTLFLAG_RD, &usrstack, 0, ""); --- 31 unchanged lines hidden (view full) --- 121{ 122 struct proc *p = td->td_proc; 123 struct nameidata nd, *ndp; 124 struct ucred *newcred, *oldcred; 125 register_t *stack_base; 126 int error, len, i; 127 struct image_params image_params, *imgp; 128 struct vattr attr; |
129 int (*img_first) __P((struct image_params *)); | 129 int (*img_first)(struct image_params *); |
130 struct pargs *pa; 131 132 imgp = &image_params; 133 134 /* 135 * Lock the process and set the P_INEXEC flag to indicate that 136 * it should be left alone until we're done here. This is 137 * necessary to avoid race conditions - e.g. in ptrace() - --- 852 unchanged lines hidden --- | 130 struct pargs *pa; 131 132 imgp = &image_params; 133 134 /* 135 * Lock the process and set the P_INEXEC flag to indicate that 136 * it should be left alone until we're done here. This is 137 * necessary to avoid race conditions - e.g. in ptrace() - --- 852 unchanged lines hidden --- |