Home
last modified time | relevance | path

Searched refs:maxfilesperproc (Results 1 – 5 of 5) sorted by relevance

/xnu-10063.101.15/tests/
H A Dproc_rlimit.c43 static rlim_t maxfilesperproc; variable
44 static size_t maxfilesperproc_size = sizeof(maxfilesperproc);
178 if (i == RLIMIT_NOFILE && limit_type == HARD_LIMIT && newlim.rlim_max > maxfilesperproc) { in change_rlimits()
180 maxfilesperproc != verifylim.rlim_max) { in change_rlimits()
216 err = sysctlbyname("kern.maxfilesperproc", &maxfilesperproc, &maxfilesperproc_size, NULL, 0);
217 T_EXPECT_EQ_INT(0, err, "maxfilesperproc: %llu", maxfilesperproc);
/xnu-10063.101.15/bsd/dev/
H A Dunix_startup.c351 maxfilesperproc = maxfiles / 2; in bsd_scale_setup()
361 maxfilesperproc = maxfiles / 2; in bsd_scale_setup()
/xnu-10063.101.15/bsd/sys/
H A Dfile_internal.h205 extern int maxfilesperproc;
/xnu-10063.101.15/bsd/kern/
H A Dkern_resource.c161 __private_extern__ int maxfilesperproc = OPEN_MAX; /* per-proc open files limit */ variable
166 SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc, CTLFLAG_RW | CTLFLAG_LOCKED,
167 &maxfilesperproc, 0, "Maximum files allowed open per process" );
1578 return (int)MIN(lim, maxfilesperproc); in proc_limitgetcur_nofile()
H A Dproc_info.c582 if ((user_addr_t)0 == buffer || needfileports > (size_t)maxfilesperproc) { in proc_pidfileportlist()