Searched refs:maxfilesperproc (Results 1 – 5 of 5) sorted by relevance
80 int maxfilesperproc; /* per-proc open files limit */ variable300 maxfilesperproc = maxfiles / 4; in init_param2()301 maxfilesperuser = maxfilesperproc * 2; in init_param2()
359 if (limp->rlim_cur > maxfilesperproc) in kern_setrlimit()360 limp->rlim_cur = maxfilesperproc; in kern_setrlimit()361 if (limp->rlim_max > maxfilesperproc) in kern_setrlimit()362 limp->rlim_max = maxfilesperproc; in kern_setrlimit()
652 if (dtsize > maxfilesperproc) in sys_getdtablesize()653 dtsize = maxfilesperproc; in sys_getdtablesize()1023 if (dtsize > maxfilesperproc) in kern_dup()1024 dtsize = maxfilesperproc; in kern_dup()1693 if (lim > maxfilesperproc) in fdalloc_locked()1694 lim = maxfilesperproc; in fdalloc_locked()1838 if (lim > maxfilesperproc) in fdavail()1839 lim = maxfilesperproc; in fdavail()3432 SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc, CTLFLAG_RW, 3433 &maxfilesperproc, 0, "Maximum files allowed open per process");
1626 if (nfds > maxfilesperproc * 2) in dopoll()1627 nfds = maxfilesperproc * 2; in dopoll()
162 extern int maxfilesperproc; /* per process limit on number of open files */