kern_exec.c (59794) | kern_exec.c (62622) |
---|---|
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 59794 2000-04-30 18:52:11Z phk $ | 26 * $FreeBSD: head/sys/kern/kern_exec.c 62622 2000-07-05 07:46:41Z jhb $ |
27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/sysproto.h> 32#include <sys/signalvar.h> 33#include <sys/kernel.h> 34#include <sys/mount.h> --- 25 unchanged lines hidden (view full) --- 60#include <vm/vm_pager.h> 61 62#include <machine/reg.h> 63 64MALLOC_DEFINE(M_PARGS, "proc-args", "Process arguments"); 65 66static register_t *exec_copyout_strings __P((struct image_params *)); 67 | 27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/sysproto.h> 32#include <sys/signalvar.h> 33#include <sys/kernel.h> 34#include <sys/mount.h> --- 25 unchanged lines hidden (view full) --- 60#include <vm/vm_pager.h> 61 62#include <machine/reg.h> 63 64MALLOC_DEFINE(M_PARGS, "proc-args", "Process arguments"); 65 66static register_t *exec_copyout_strings __P((struct image_params *)); 67 |
68static long ps_strings = PS_STRINGS; 69SYSCTL_LONG(_kern, KERN_PS_STRINGS, ps_strings, CTLFLAG_RD, &ps_strings, ""); | 68/* XXX This should be vm_size_t. */ 69static u_long ps_strings = PS_STRINGS; 70SYSCTL_ULONG(_kern, KERN_PS_STRINGS, ps_strings, CTLFLAG_RD, &ps_strings, 0, ""); |
70 | 71 |
71static long usrstack = USRSTACK; 72SYSCTL_LONG(_kern, KERN_USRSTACK, usrstack, CTLFLAG_RD, &usrstack, ""); | 72/* XXX This should be vm_size_t. */ 73static u_long usrstack = USRSTACK; 74SYSCTL_ULONG(_kern, KERN_USRSTACK, usrstack, CTLFLAG_RD, &usrstack, 0, ""); |
73 74u_long ps_arg_cache_limit = PAGE_SIZE / 16; 75SYSCTL_LONG(_kern, OID_AUTO, ps_arg_cache_limit, CTLFLAG_RW, | 75 76u_long ps_arg_cache_limit = PAGE_SIZE / 16; 77SYSCTL_LONG(_kern, OID_AUTO, ps_arg_cache_limit, CTLFLAG_RW, |
76 &ps_arg_cache_limit, ""); | 78 &ps_arg_cache_limit, 0, ""); |
77 78int ps_argsopen = 1; 79SYSCTL_INT(_kern, OID_AUTO, ps_argsopen, CTLFLAG_RW, &ps_argsopen, 0, ""); 80 81/* 82 * Each of the items is a pointer to a `const struct execsw', hence the 83 * double pointer here. 84 */ --- 720 unchanged lines hidden --- | 79 80int ps_argsopen = 1; 81SYSCTL_INT(_kern, OID_AUTO, ps_argsopen, CTLFLAG_RW, &ps_argsopen, 0, ""); 82 83/* 84 * Each of the items is a pointer to a `const struct execsw', hence the 85 * double pointer here. 86 */ --- 720 unchanged lines hidden --- |