init_main.c (3098) | init_main.c (3291) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)init_main.c 8.9 (Berkeley) 1/21/94 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)init_main.c 8.9 (Berkeley) 1/21/94 |
39 * $Id: init_main.c,v 1.10 1994/09/13 14:46:47 dfr Exp $ | 39 * $Id: init_main.c,v 1.11 1994/09/25 19:33:33 phk Exp $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/filedesc.h> 44#include <sys/errno.h> 45#include <sys/exec.h> 46#include <sys/kernel.h> 47#include <sys/mount.h> --- 112 unchanged lines hidden (view full) --- 160 session0.s_count = 1; 161 session0.s_leader = p; 162 163 p->p_sysent = &aout_sysvec; 164 165 p->p_flag = P_INMEM | P_SYSTEM; 166 p->p_stat = SRUN; 167 p->p_nice = NZERO; | 40 */ 41 42#include <sys/param.h> 43#include <sys/filedesc.h> 44#include <sys/errno.h> 45#include <sys/exec.h> 46#include <sys/kernel.h> 47#include <sys/mount.h> --- 112 unchanged lines hidden (view full) --- 160 session0.s_count = 1; 161 session0.s_leader = p; 162 163 p->p_sysent = &aout_sysvec; 164 165 p->p_flag = P_INMEM | P_SYSTEM; 166 p->p_stat = SRUN; 167 p->p_nice = NZERO; |
168 p->p_rtprio = RTPRIO_RTOFF; | 168 p->p_rtprio.type = RTP_PRIO_NORMAL; 169 p->p_rtprio.prio = 0; |
169 170 bcopy("swapper", p->p_comm, sizeof ("swapper")); 171 172 /* Create credentials. */ 173 cred0.p_refcnt = 1; 174 p->p_cred = &cred0; 175 p->p_ucred = crget(); 176 p->p_ucred->cr_ngroups = 1; /* group 0 */ --- 269 unchanged lines hidden --- | 170 171 bcopy("swapper", p->p_comm, sizeof ("swapper")); 172 173 /* Create credentials. */ 174 cred0.p_refcnt = 1; 175 p->p_cred = &cred0; 176 p->p_ucred = crget(); 177 p->p_ucred->cr_ngroups = 1; /* group 0 */ --- 269 unchanged lines hidden --- |