Deleted Added
full compact
init_main.c (108338) init_main.c (108685)
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 * $FreeBSD: head/sys/kern/init_main.c 108338 2002-12-28 01:23:07Z julian $
42 * $FreeBSD: head/sys/kern/init_main.c 108685 2003-01-04 22:07:48Z jake $
43 */
44
45#include "opt_init_path.h"
46#include "opt_mac.h"
47
48#include <sys/param.h>
49#include <sys/kernel.h>
50#include <sys/exec.h>

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

92struct ksegrp ksegrp0;
93static struct procsig procsig0;
94static struct filedesc0 filedesc0;
95static struct plimit limit0;
96static struct vmspace vmspace0;
97struct proc *initproc;
98
99int cmask = CMASK;
43 */
44
45#include "opt_init_path.h"
46#include "opt_mac.h"
47
48#include <sys/param.h>
49#include <sys/kernel.h>
50#include <sys/exec.h>

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

92struct ksegrp ksegrp0;
93static struct procsig procsig0;
94static struct filedesc0 filedesc0;
95static struct plimit limit0;
96static struct vmspace vmspace0;
97struct proc *initproc;
98
99int cmask = CMASK;
100extern int fallback_elf_brand;
101
102struct vnode *rootvp;
103int boothowto = 0; /* initialized so that it can be patched */
104SYSCTL_INT(_debug, OID_AUTO, boothowto, CTLFLAG_RD, &boothowto, 0, "");
105int bootverbose;
106SYSCTL_INT(_debug, OID_AUTO, bootverbose, CTLFLAG_RW, &bootverbose, 0, "");
107
108/*

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

580 panic("init: couldn't allocate argument space");
581 p->p_vmspace->vm_maxsaddr = (caddr_t)addr;
582 p->p_vmspace->vm_ssize = 1;
583
584 if ((var = getenv("init_path")) != NULL) {
585 strlcpy(init_path, var, sizeof(init_path));
586 freeenv(var);
587 }
100
101struct vnode *rootvp;
102int boothowto = 0; /* initialized so that it can be patched */
103SYSCTL_INT(_debug, OID_AUTO, boothowto, CTLFLAG_RD, &boothowto, 0, "");
104int bootverbose;
105SYSCTL_INT(_debug, OID_AUTO, bootverbose, CTLFLAG_RW, &bootverbose, 0, "");
106
107/*

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

579 panic("init: couldn't allocate argument space");
580 p->p_vmspace->vm_maxsaddr = (caddr_t)addr;
581 p->p_vmspace->vm_ssize = 1;
582
583 if ((var = getenv("init_path")) != NULL) {
584 strlcpy(init_path, var, sizeof(init_path));
585 freeenv(var);
586 }
588 if ((var = getenv("kern.fallback_elf_brand")) != NULL) {
589 fallback_elf_brand = strtol(var, NULL, 0);
590 freeenv(var);
591 }
592
593 for (path = init_path; *path != '\0'; path = next) {
594 while (*path == ':')
595 path++;
596 if (*path == '\0')
597 break;
598 for (next = path; *next != '\0' && *next != ':'; next++)
599 /* nothing */ ;

--- 128 unchanged lines hidden ---
587
588 for (path = init_path; *path != '\0'; path = next) {
589 while (*path == ':')
590 path++;
591 if (*path == '\0')
592 break;
593 for (next = path; *next != '\0' && *next != ':'; next++)
594 /* nothing */ ;

--- 128 unchanged lines hidden ---