Home
last modified time | relevance | path

Searched refs:maxfiles (Results 1 – 13 of 13) sorted by relevance

/freebsd-12.1/tests/sys/kern/
H A Dkern_descrip_test.c139 int maxfiles, oldmaxfiles, current; in ATF_TC_BODY() local
142 oldlen = sizeof(maxfiles); in ATF_TC_BODY()
143 if (sysctlbyname("kern.maxfiles", &maxfiles, &oldlen, NULL, 0) == -1) in ATF_TC_BODY()
150 oldmaxfiles = maxfiles; in ATF_TC_BODY()
158 maxfiles += EXPANDBY; in ATF_TC_BODY()
159 if (sysctlbyname("kern.maxfiles", NULL, 0, &maxfiles, oldlen) == -1) in ATF_TC_BODY()
/freebsd-12.1/sys/kern/
H A Dsubr_param.c93 int maxfiles; /* sys. wide open files limit */ variable
275 maxfiles = imax(MAXFILES, physpages / 8); in init_param2()
276 TUNABLE_INT_FETCH("kern.maxfiles", &maxfiles); in init_param2()
277 if (maxfiles > (physpages / 4)) in init_param2()
278 maxfiles = physpages / 4; in init_param2()
279 maxfilesperproc = (maxfiles / 10) * 9; in init_param2()
H A Dkern_descrip.c1866 int maxuserfiles = maxfiles - (maxfiles / 20); in falloc_noinstall()
1876 openfiles_new >= maxfiles) { in falloc_noinstall()
4045 SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW,
4046 &maxfiles, 0, "Maximum number of files");
H A Dinit_main.c563 p->p_limit->pl_rlimit[RLIMIT_NOFILE].rlim_max = maxfiles; in proc0_init()
H A Dkern_timeout.c281 ncallout = imin(16 + maxproc + maxfiles, 18508); in callout_callwheel_init()
H A Duipc_socket.c344 maxsockets = imax(maxsockets, maxfiles); in init_maxsockets()
361 newmaxsockets <= maxfiles) { in sysctl_maxsockets()
/freebsd-12.1/usr.bin/csplit/
H A Dcsplit.c88 static long maxfiles; /* Maximum number of files we can create */ variable
168 for (maxfiles = 1, i = 0; i < sufflen; i++) { in main()
169 if (maxfiles > LONG_MAX / 10) in main()
172 maxfiles *= 10; in main()
176 while (nfiles < maxfiles - 1 && (expr = *argv++) != NULL) { in main()
190 while (reps-- != 0 && nfiles < maxfiles - 1); in main()
455 while (nfiles < maxfiles - 1) { in do_lineno()
/freebsd-12.1/usr.bin/split/
H A Dsplit.c344 long i, maxfiles, tfnum; in newfile() local
371 for (maxfiles = 1, i = 0; i < sufflen; i++) in newfile()
372 if (LONG_MAX / pattlen < maxfiles) in newfile()
375 maxfiles *= pattlen; in newfile()
377 if (fnum == maxfiles) in newfile()
/freebsd-12.1/contrib/ntp/lib/isc/unix/
H A Dresource.c179 uint64_t maxfiles; in isc_resource_setlimit() local
180 if (gettune("maxfiles_lim", &maxfiles) == 0) { in isc_resource_setlimit()
181 rl.rlim_cur = rl.rlim_max = maxfiles; in isc_resource_setlimit()
/freebsd-12.1/contrib/file/src/
H A Dapprentice.c1330 size_t files = 0, maxfiles = 0; in apprentice_load() local
1374 if (files >= maxfiles) { in apprentice_load()
1376 maxfiles = (maxfiles + 1) * 2; in apprentice_load()
1377 mlen = maxfiles * sizeof(*filearr); in apprentice_load()
/freebsd-12.1/sys/sys/
H A Dfile.h239 extern int maxfiles; /* kernel limit on number of open files */
/freebsd-12.1/tools/tools/sysdoc/
H A Dtunables.mdoc866 kern.maxfiles
989 .Va kern.maxfiles
/freebsd-12.1/share/examples/ppp/
H A Dppp.conf.sample763 # o Bump system file descriptors with ``sysctl kern.maxfiles=20480''. You'll