Home
last modified time | relevance | path

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

/dragonfly/sys/kern/
H A Dsubr_param.c77 int maxfiles; /* system wide open files limit */ variable
281 maxfiles = MAXFILES; in init_param2()
282 TUNABLE_INT_FETCH("kern.maxfiles", &maxfiles); in init_param2()
283 if (maxfiles < 128) in init_param2()
284 maxfiles = 128; in init_param2()
300 maxfilesperproc = maxfiles / 4; in init_param2()
302 maxfilesrootres = maxfiles / 20; in init_param2()
327 ncallout = 16 + maxproc + maxfiles; in init_param2()
H A Dkern_plimit.c125 limit->pl_rlimit[RLIMIT_NOFILE].rlim_cur = maxfiles; in plimit_init0()
126 limit->pl_rlimit[RLIMIT_NOFILE].rlim_max = maxfiles; in plimit_init0()
H A Dkern_descrip.c2055 if (nfiles >= maxfiles - maxfilesrootres && in falloc()
2056 (cred->cr_ruid != 0 || nfiles >= maxfiles)) { in falloc()
3437 SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW,
3438 &maxfiles, 0, "Maximum number of files");
H A Duipc_socket2.c872 maxsockets = imax(maxsockets, imax(maxfiles, nmbclusters)); in init_maxsockets()
H A Duipc_mbuf.c426 #define NMBUFS (nmbclusters / 2 + maxfiles)
/dragonfly/lib/libkcore/
H A Dkcore_file.c61 int maxfiles, n, retval; in kcore_get_files() local
74 if ((retval = kcore_get_maxfiles(kc, &maxfiles)) != 0) { in kcore_get_files()
79 *files = malloc(maxfiles * sizeof(struct kinfo_file)); in kcore_get_files()
129 kcore_get_maxfiles(struct kcore_data *kc, int *maxfiles) in kcore_get_maxfiles() argument
136 return(kcore_get_generic(kc, nl, maxfiles, sizeof(*maxfiles))); in kcore_get_maxfiles()
H A Dkcore.h49 #define kinfo_get_maxfiles(maxfiles) \ argument
50 kcore_get_maxfiles(NULL, maxfiles)
/dragonfly/usr.bin/csplit/
H A Dcsplit.c85 static long maxfiles; /* Maximum number of files we can create */ variable
165 for (maxfiles = 1, i = 0; i < sufflen; i++) { in main()
166 if (maxfiles > LONG_MAX / 10) in main()
169 maxfiles *= 10; in main()
173 while (nfiles < maxfiles - 1 && (expr = *argv++) != NULL) { in main()
187 while (reps-- != 0 && nfiles < maxfiles - 1); in main()
450 while (nfiles < maxfiles - 1) { in do_lineno()
/dragonfly/lib/libkinfo/
H A Dkinfo_file.c84 kinfo_get_maxfiles(int *maxfiles) in kinfo_get_maxfiles() argument
86 size_t len = sizeof(*maxfiles); in kinfo_get_maxfiles()
88 return(sysctlbyname("kern.maxfiles", maxfiles, &len, NULL, 0)); in kinfo_get_maxfiles()
/dragonfly/usr.bin/split/
H A Dsplit.c294 long i, maxfiles, tfnum; in newfile() local
321 for (maxfiles = 1, i = 0; i < sufflen; i++) in newfile()
322 if (LONG_MAX / pattlen < maxfiles) in newfile()
325 maxfiles *= pattlen; in newfile()
327 if (fnum == maxfiles) in newfile()
/dragonfly/sys/sys/
H A Dfile.h159 extern int maxfiles; /* kernel limit on number of open files */
/dragonfly/usr.bin/fstat/
H A Dfstat.c121 int maxfiles; variable
124 if ((d) > maxfiles) { \
130 maxfiles = (d); \
/dragonfly/contrib/file/src/
H A Dapprentice.c1508 size_t files = 0, maxfiles = 0; in apprentice_load() local
1552 if (files >= maxfiles) { in apprentice_load()
1555 maxfiles = (maxfiles + 1) * 2; in apprentice_load()
1556 mlen = maxfiles * sizeof(*filearr); in apprentice_load()
/dragonfly/share/examples/ppp/
H A Dppp.conf.sample763 # o Bump system file descriptors with ``sysctl kern.maxfiles=20480''. You'll