Home
last modified time | relevance | path

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

/xnu-12377.1.9/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-12377.1.9/bsd/dev/
H A Dunix_startup.c320 maxfilesperproc = maxfiles / 2; in bsd_scale_setup()
328 maxfilesperproc = maxfiles / 2; in bsd_scale_setup()
/xnu-12377.1.9/bsd/sys/
H A Dfile_internal.h205 extern int maxfilesperproc;
/xnu-12377.1.9/bsd/kern/
H A Dkern_resource.c167 __private_extern__ int maxfilesperproc = OPEN_MAX; /* per-proc open files limit */ variable
172 SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc, CTLFLAG_RW | CTLFLAG_LOCKED,
173 &maxfilesperproc, 0, "Maximum files allowed open per process" );
1932 return (int)MIN(lim, maxfilesperproc); in proc_limitgetcur_nofile()
H A Dkern_aio.c1416 if (sigev->sigev_signo <= 0 || sigev->sigev_signo > maxfilesperproc) { in aio_sigev_validate()
H A Dproc_info.c592 if ((user_addr_t)0 == buffer || needfileports > (size_t)maxfilesperproc) { in proc_pidfileportlist()