Searched refs:maxfiles (Results 1 - 13 of 13) sorted by relevance
/freebsd-10.2-release/tests/sys/kern/ |
H A D | kern_descrip_test.c | 132 "Check kern.maxfiles expansion"); 138 int maxfiles, oldmaxfiles, current; local 141 oldlen = sizeof(maxfiles); 142 if (sysctlbyname("kern.maxfiles", &maxfiles, &oldlen, NULL, 0) == -1) 143 atf_tc_fail("getsysctlbyname(%s): %s", "kern.maxfiles", 149 oldmaxfiles = maxfiles; 151 /* Store old kern.maxfiles in a symlink for cleanup */ 157 maxfiles += EXPANDBY; 158 if (sysctlbyname("kern.maxfiles", NUL [all...] |
/freebsd-10.2-release/sys/kern/ |
H A D | subr_param.c | 91 int maxfiles; /* sys. wide open files limit */ variable 267 * The default limit for maxfiles is 1/12 of the number of 271 maxfiles = imax(MAXFILES, physpages / 8); 272 TUNABLE_INT_FETCH("kern.maxfiles", &maxfiles); 273 if (maxfiles > (physpages / 4)) 274 maxfiles = physpages / 4; 275 maxfilesperproc = (maxfiles / 10) * 9;
|
H A D | init_main.c | 540 p->p_limit->pl_rlimit[RLIMIT_NOFILE].rlim_max = maxfiles;
|
H A D | kern_descrip.c | 1772 int maxuserfiles = maxfiles - (maxfiles / 20); 1780 openfiles >= maxfiles) { 1782 printf("kern.maxfiles limit exceeded by uid %i, " 3922 SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW, 3923 &maxfiles, 0, "Maximum number of files");
|
H A D | kern_timeout.c | 260 ncallout = imin(16 + maxproc + maxfiles, 18508);
|
H A D | uipc_socket.c | 279 maxsockets = imax(maxsockets, maxfiles); 296 newmaxsockets <= maxfiles) {
|
/freebsd-10.2-release/usr.bin/csplit/ |
H A D | csplit.c | 86 static long maxfiles; /* Maximum number of files we can create */ variable 166 for (maxfiles = 1, i = 0; i < sufflen; i++) { 167 if (maxfiles > LONG_MAX / 10) 170 maxfiles *= 10; 174 while (nfiles < maxfiles - 1 && (expr = *argv++) != NULL) { 188 while (reps-- != 0 && nfiles < maxfiles - 1); 451 while (nfiles < maxfiles - 1) {
|
/freebsd-10.2-release/usr.bin/split/ |
H A D | split.c | 354 long i, maxfiles, tfnum; local 380 /* maxfiles = pattlen^sufflen, but don't use libm. */ 381 for (maxfiles = 1, i = 0; i < sufflen; i++) 382 if (LONG_MAX / pattlen < maxfiles) 385 maxfiles *= pattlen; 387 if (fnum == maxfiles)
|
/freebsd-10.2-release/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-10.2-release/sys/compat/svr4/ |
H A D | svr4_resource.c | 138 * Our infinity, is their maxfiles. 141 blim.rlim_max = maxfiles; 236 * Our infinity, is their maxfiles. 239 blim.rlim_max = maxfiles;
|
H A D | svr4_misc.c | 729 *retval = maxfiles;
|
/freebsd-10.2-release/sys/sys/ |
H A D | file.h | 217 extern int maxfiles; /* kernel limit on number of open files */
|
/freebsd-10.2-release/contrib/file/src/ |
H A D | apprentice.c | 1274 size_t files = 0, maxfiles = 0; local 1315 if (files >= maxfiles) { 1317 maxfiles = (maxfiles + 1) * 2; 1318 mlen = maxfiles * sizeof(*filearr);
|
Completed in 216 milliseconds