Home
last modified time | relevance | path

Searched refs:newlim (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/sys/kern/
H A Dkern_resource.c679 struct plimit *newlim; in lim_copy() local
683 newlim = kmem_alloc(sizeof(*newlim), KM_SLEEP); in lim_copy()
684 mutex_init(&newlim->pl_lock, MUTEX_DEFAULT, IPL_NONE); in lim_copy()
685 newlim->pl_writeable = false; in lim_copy()
686 newlim->pl_refcnt = 1; in lim_copy()
687 newlim->pl_sv_limit = NULL; in lim_copy()
690 memcpy(newlim->pl_rlimit, lim->pl_rlimit, in lim_copy()
700 newlim->pl_corename = defcorename; in lim_copy()
701 newlim->pl_cnlen = 0; in lim_copy()
706 newlim->pl_corename = corename; in lim_copy()
[all …]
/netbsd-src/external/gpl2/grep/dist/src/
H A Dgrep.c1186 long newlim; in install_matcher() local
1190 newlim = re_max_failures * 2 * 20 * sizeof (char *); in install_matcher()
1191 if (newlim > rlim.rlim_max) in install_matcher()
1193 newlim = rlim.rlim_max; in install_matcher()
1194 re_max_failures = newlim / (2 * 20 * sizeof (char *)); in install_matcher()
1196 if (rlim.rlim_cur < newlim) in install_matcher()
1198 rlim.rlim_cur = newlim; in install_matcher()