Deleted Added
full compact
init_main.c (30994) init_main.c (31016)
1/*
2 * Copyright (c) 1995 Terrence R. Lambert
3 * All rights reserved.
4 *
5 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 * (c) UNIX System Laboratories, Inc.
8 * All or some portions of this file are derived from material licensed

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

34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * @(#)init_main.c 8.9 (Berkeley) 1/21/94
1/*
2 * Copyright (c) 1995 Terrence R. Lambert
3 * All rights reserved.
4 *
5 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 * (c) UNIX System Laboratories, Inc.
8 * All or some portions of this file are derived from material licensed

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

34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * @(#)init_main.c 8.9 (Berkeley) 1/21/94
42 * $Id: init_main.c,v 1.72 1997/09/21 22:00:03 gibbs Exp $
42 * $Id: init_main.c,v 1.73 1997/11/06 19:29:07 phk Exp $
43 */
44
45#include "opt_devfs.h"
46
47#include <sys/param.h>
48#include <sys/file.h>
49#include <sys/filedesc.h>
50#include <sys/kernel.h>

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

583 * The program is invoked with one argument containing the boot flags.
584 */
585static void
586start_init(p)
587 struct proc *p;
588{
589 vm_offset_t addr;
590 struct execve_args args;
43 */
44
45#include "opt_devfs.h"
46
47#include <sys/param.h>
48#include <sys/file.h>
49#include <sys/filedesc.h>
50#include <sys/kernel.h>

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

583 * The program is invoked with one argument containing the boot flags.
584 */
585static void
586start_init(p)
587 struct proc *p;
588{
589 vm_offset_t addr;
590 struct execve_args args;
591 int options, i, retval[2], error;
591 int options, i, error;
592 char **pathp, *path, *ucp, **uap, *arg0, *arg1;
593
594 initproc = p;
595
596 /*
597 * Need just enough stack to hold the faked-up "execve()" arguments.
598 */
599 addr = trunc_page(VM_MAXUSER_ADDRESS - PAGE_SIZE);

--- 74 unchanged lines hidden ---
592 char **pathp, *path, *ucp, **uap, *arg0, *arg1;
593
594 initproc = p;
595
596 /*
597 * Need just enough stack to hold the faked-up "execve()" arguments.
598 */
599 addr = trunc_page(VM_MAXUSER_ADDRESS - PAGE_SIZE);

--- 74 unchanged lines hidden ---