kern_exec.c (70317) | kern_exec.c (72091) |
---|---|
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 70317 2000-12-23 19:43:10Z jake $ | 26 * $FreeBSD: head/sys/kern/kern_exec.c 72091 2001-02-06 11:21:58Z asmodai $ |
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> --- 646 unchanged lines hidden (view full) --- 681 */ 682 for (; argc > 0; --argc) { 683 suword(vectp++, (long)(intptr_t)destp); 684 while (*stringp++ != 0) 685 destp++; 686 destp++; 687 } 688 | 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> --- 646 unchanged lines hidden (view full) --- 681 */ 682 for (; argc > 0; --argc) { 683 suword(vectp++, (long)(intptr_t)destp); 684 while (*stringp++ != 0) 685 destp++; 686 destp++; 687 } 688 |
689 /* a null vector table pointer seperates the argp's from the envp's */ | 689 /* a null vector table pointer separates the argp's from the envp's */ |
690 suword(vectp++, 0); 691 692 suword(&arginfo->ps_envstr, (long)(intptr_t)vectp); 693 suword(&arginfo->ps_nenvstr, envc); 694 695 /* 696 * Fill in environment portion of vector table. 697 */ --- 137 unchanged lines hidden --- | 690 suword(vectp++, 0); 691 692 suword(&arginfo->ps_envstr, (long)(intptr_t)vectp); 693 suword(&arginfo->ps_nenvstr, envc); 694 695 /* 696 * Fill in environment portion of vector table. 697 */ --- 137 unchanged lines hidden --- |