Searched refs:maxfiles (Results 1 - 13 of 13) sorted by relevance
/freebsd-11-stable/tests/sys/kern/ |
H A D | kern_descrip_test.c | 133 "Check kern.maxfiles expansion"); 139 int maxfiles, oldmaxfiles, current; local 142 oldlen = sizeof(maxfiles); 143 if (sysctlbyname("kern.maxfiles", &maxfiles, &oldlen, NULL, 0) == -1) 144 atf_tc_fail("getsysctlbyname(%s): %s", "kern.maxfiles", 150 oldmaxfiles = maxfiles; 152 /* Store old kern.maxfiles in a symlink for cleanup */ 158 maxfiles += EXPANDBY; 159 if (sysctlbyname("kern.maxfiles", NUL [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | subr_param.c | 91 int maxfiles; /* sys. wide open files limit */ variable 269 * The default limit for maxfiles is 1/12 of the number of 273 maxfiles = imax(MAXFILES, physpages / 8); 274 TUNABLE_INT_FETCH("kern.maxfiles", &maxfiles); 275 if (maxfiles > (physpages / 4)) 276 maxfiles = physpages / 4; 277 maxfilesperproc = (maxfiles / 10) * 9;
|
H A D | kern_descrip.c | 1766 int maxuserfiles = maxfiles - (maxfiles / 20); 1776 openfiles_new >= maxfiles) { 1779 printf("kern.maxfiles limit exceeded by uid %i, (%s) " 3938 SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW, 3939 &maxfiles, 0, "Maximum number of files");
|
H A D | init_main.c | 565 p->p_limit->pl_rlimit[RLIMIT_NOFILE].rlim_max = maxfiles;
|
H A D | kern_timeout.c | 279 ncallout = imin(16 + maxproc + maxfiles, 18508);
|
H A D | uipc_socket.c | 334 maxsockets = imax(maxsockets, maxfiles); 351 newmaxsockets <= maxfiles) {
|
/freebsd-11-stable/usr.bin/csplit/ |
H A D | csplit.c | 88 static long maxfiles; /* Maximum number of files we can create */ variable 168 for (maxfiles = 1, i = 0; i < sufflen; i++) { 169 if (maxfiles > LONG_MAX / 10) 172 maxfiles *= 10; 176 while (nfiles < maxfiles - 1 && (expr = *argv++) != NULL) { 190 while (reps-- != 0 && nfiles < maxfiles - 1); 453 while (nfiles < maxfiles - 1) {
|
/freebsd-11-stable/usr.bin/split/ |
H A D | split.c | 342 long i, maxfiles, tfnum; local 368 /* maxfiles = pattlen^sufflen, but don't use libm. */ 369 for (maxfiles = 1, i = 0; i < sufflen; i++) 370 if (LONG_MAX / pattlen < maxfiles) 373 maxfiles *= pattlen; 375 if (fnum == maxfiles)
|
/freebsd-11-stable/contrib/ntp/lib/isc/unix/ |
H A D | resource.c | 179 uint64_t maxfiles; 180 if (gettune("maxfiles_lim", &maxfiles) == 0) { 181 rl.rlim_cur = rl.rlim_max = maxfiles;
|
/freebsd-11-stable/sys/compat/svr4/ |
H A D | svr4_resource.c | 136 * Our infinity, is their maxfiles. 139 blim.rlim_max = maxfiles; 230 * Our infinity, is their maxfiles. 233 blim.rlim_max = maxfiles;
|
H A D | svr4_misc.c | 730 *retval = maxfiles;
|
/freebsd-11-stable/sys/sys/ |
H A D | file.h | 229 extern int maxfiles; /* kernel limit on number of open files */
|
/freebsd-11-stable/contrib/file/src/ |
H A D | apprentice.c | 1369 size_t files = 0, maxfiles = 0; local 1413 if (files >= maxfiles) { 1416 maxfiles = (maxfiles + 1) * 2; 1417 mlen = maxfiles * sizeof(*filearr);
|
Completed in 188 milliseconds