Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/init_main.c
Show First 20 Lines • Show All 550 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
/* Create sigacts. */ | /* Create sigacts. */ | ||||
p->p_sigacts = sigacts_alloc(); | p->p_sigacts = sigacts_alloc(); | ||||
/* Initialize signal state for process 0. */ | /* Initialize signal state for process 0. */ | ||||
siginit(&proc0); | siginit(&proc0); | ||||
/* Create the file descriptor table. */ | /* Create the file descriptor table. */ | ||||
p->p_pd = pdinit(NULL, false); | |||||
p->p_fd = fdinit(NULL, false, NULL); | p->p_fd = fdinit(NULL, false, NULL); | ||||
p->p_fdtol = NULL; | p->p_fdtol = NULL; | ||||
/* Create the limits structures. */ | /* Create the limits structures. */ | ||||
p->p_limit = lim_alloc(); | p->p_limit = lim_alloc(); | ||||
for (i = 0; i < RLIM_NLIMITS; i++) | for (i = 0; i < RLIM_NLIMITS; i++) | ||||
p->p_limit->pl_rlimit[i].rlim_cur = | p->p_limit->pl_rlimit[i].rlim_cur = | ||||
p->p_limit->pl_rlimit[i].rlim_max = RLIM_INFINITY; | p->p_limit->pl_rlimit[i].rlim_max = RLIM_INFINITY; | ||||
▲ Show 20 Lines • Show All 323 Lines • Show Last 20 Lines |