kern_sharedpage.c (13523) | kern_sharedpage.c (14235) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * | 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 --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * |
31 * $Id: kern_exec.c,v 1.33 1996/01/19 03:58:01 dyson Exp $ | 31 * $Id: kern_exec.c,v 1.34 1996/01/20 21:36:30 bde Exp $ |
32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/sysproto.h> 37#include <sys/signalvar.h> 38#include <sys/kernel.h> 39#include <sys/mount.h> 40#include <sys/filedesc.h> 41#include <sys/fcntl.h> 42#include <sys/acct.h> 43#include <sys/exec.h> 44#include <sys/imgact.h> 45#include <sys/wait.h> 46#include <sys/malloc.h> 47#include <sys/sysent.h> 48#include <sys/syslog.h> 49#include <sys/shm.h> | 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/sysproto.h> 37#include <sys/signalvar.h> 38#include <sys/kernel.h> 39#include <sys/mount.h> 40#include <sys/filedesc.h> 41#include <sys/fcntl.h> 42#include <sys/acct.h> 43#include <sys/exec.h> 44#include <sys/imgact.h> 45#include <sys/wait.h> 46#include <sys/malloc.h> 47#include <sys/sysent.h> 48#include <sys/syslog.h> 49#include <sys/shm.h> |
50#include <sys/sysctl.h> |
|
50 51#include <vm/vm.h> 52#include <vm/vm_param.h> 53#include <vm/vm_prot.h> 54#include <vm/lock.h> 55#include <vm/pmap.h> 56#include <vm/vm_map.h> 57#include <vm/vm_kern.h> 58#include <vm/vm_extern.h> 59 60#include <machine/reg.h> 61 62static int *exec_copyout_strings __P((struct image_params *)); 63 64static int exec_check_permissions(struct image_params *); 65 66/* | 51 52#include <vm/vm.h> 53#include <vm/vm_param.h> 54#include <vm/vm_prot.h> 55#include <vm/lock.h> 56#include <vm/pmap.h> 57#include <vm/vm_map.h> 58#include <vm/vm_kern.h> 59#include <vm/vm_extern.h> 60 61#include <machine/reg.h> 62 63static int *exec_copyout_strings __P((struct image_params *)); 64 65static int exec_check_permissions(struct image_params *); 66 67/* |
68 * XXX trouble here if sizeof(caddr_t) != sizeof(int), other parts 69 * of the sysctl code also assumes this, and sizeof(int) == sizeof(long). 70 */ 71static caddr_t ps_strings = (caddr_t)PS_STRINGS; 72SYSCTL_INT(_kern, KERN_PS_STRINGS, ps_strings, 0, &ps_strings, 0, ""); 73 74static caddr_t usrstack = (caddr_t)USRSTACK; 75SYSCTL_INT(_kern, KERN_USRSTACK, usrstack, 0, &usrstack, 0, ""); 76 77/* |
|
67 * execsw_set is constructed for us by the linker. Each of the items 68 * is a pointer to a `const struct execsw', hence the double pointer here. 69 */ 70static const struct execsw **execsw = 71 (const struct execsw **)&execsw_set.ls_items[0]; 72 73#ifndef _SYS_SYSPROTO_H_ 74struct execve_args { --- 508 unchanged lines hidden --- | 78 * execsw_set is constructed for us by the linker. Each of the items 79 * is a pointer to a `const struct execsw', hence the double pointer here. 80 */ 81static const struct execsw **execsw = 82 (const struct execsw **)&execsw_set.ls_items[0]; 83 84#ifndef _SYS_SYSPROTO_H_ 85struct execve_args { --- 508 unchanged lines hidden --- |