Deleted Added
full compact
init_main.c (26261) init_main.c (26671)
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.62 1997/05/11 18:05:36 tegge Exp $
42 * $Id: init_main.c,v 1.63 1997/05/29 04:52:03 peter Exp $
43 */
44
45#include "opt_rlimit.h"
46#include "opt_devfs.h"
47
48#include <sys/param.h>
49#include <sys/file.h>
50#include <sys/filedesc.h>

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

334 p->p_sysent = &aout_sysvec;
335
336 p->p_flag = P_INMEM | P_SYSTEM;
337 p->p_stat = SRUN;
338 p->p_nice = NZERO;
339 p->p_rtprio.type = RTP_PRIO_NORMAL;
340 p->p_rtprio.prio = 0;
341
43 */
44
45#include "opt_rlimit.h"
46#include "opt_devfs.h"
47
48#include <sys/param.h>
49#include <sys/file.h>
50#include <sys/filedesc.h>

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

334 p->p_sysent = &aout_sysvec;
335
336 p->p_flag = P_INMEM | P_SYSTEM;
337 p->p_stat = SRUN;
338 p->p_nice = NZERO;
339 p->p_rtprio.type = RTP_PRIO_NORMAL;
340 p->p_rtprio.prio = 0;
341
342/*
343 * Link for kernel based threads
344 */
345 p->p_peers = 0;
346 p->p_leader = p;
347
342 bcopy("swapper", p->p_comm, sizeof ("swapper"));
343
344 /* Create credentials. */
345 cred0.p_refcnt = 1;
346 p->p_cred = &cred0;
347 p->p_ucred = crget();
348 p->p_ucred->cr_ngroups = 1; /* group 0 */
349

--- 286 unchanged lines hidden ---
348 bcopy("swapper", p->p_comm, sizeof ("swapper"));
349
350 /* Create credentials. */
351 cred0.p_refcnt = 1;
352 p->p_cred = &cred0;
353 p->p_ucred = crget();
354 p->p_ucred->cr_ngroups = 1; /* group 0 */
355

--- 286 unchanged lines hidden ---