init_main.c (114983) | init_main.c (115702) |
---|---|
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 114983 2003-05-13 20:36:02Z jhb $ | 42 * $FreeBSD: head/sys/kern/init_main.c 115702 2003-06-02 16:05:32Z tegge $ |
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> --- 351 unchanged lines hidden (view full) --- 402 p->p_sigacts = sigacts_alloc(); 403 404 /* Initialize signal state for process 0. */ 405 siginit(&proc0); 406 407 /* Create the file descriptor table. */ 408 fdp = &filedesc0; 409 p->p_fd = &fdp->fd_fd; | 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> --- 351 unchanged lines hidden (view full) --- 402 p->p_sigacts = sigacts_alloc(); 403 404 /* Initialize signal state for process 0. */ 405 siginit(&proc0); 406 407 /* Create the file descriptor table. */ 408 fdp = &filedesc0; 409 p->p_fd = &fdp->fd_fd; |
410 p->p_fdtol = NULL; |
|
410 mtx_init(&fdp->fd_fd.fd_mtx, FILEDESC_LOCK_DESC, NULL, MTX_DEF); 411 fdp->fd_fd.fd_refcnt = 1; 412 fdp->fd_fd.fd_cmask = cmask; 413 fdp->fd_fd.fd_ofiles = fdp->fd_dfiles; 414 fdp->fd_fd.fd_ofileflags = fdp->fd_dfileflags; 415 fdp->fd_fd.fd_nfiles = NDFILE; 416 417 /* Create the limits structures. */ --- 299 unchanged lines hidden --- | 411 mtx_init(&fdp->fd_fd.fd_mtx, FILEDESC_LOCK_DESC, NULL, MTX_DEF); 412 fdp->fd_fd.fd_refcnt = 1; 413 fdp->fd_fd.fd_cmask = cmask; 414 fdp->fd_fd.fd_ofiles = fdp->fd_dfiles; 415 fdp->fd_fd.fd_ofileflags = fdp->fd_dfileflags; 416 fdp->fd_fd.fd_nfiles = NDFILE; 417 418 /* Create the limits structures. */ --- 299 unchanged lines hidden --- |