/dragonfly/sys/kern/ |
H A D | subr_param.c | 77 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 D | kern_plimit.c | 125 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 D | kern_descrip.c | 2055 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 D | uipc_socket2.c | 872 maxsockets = imax(maxsockets, imax(maxfiles, nmbclusters)); in init_maxsockets()
|
H A D | uipc_mbuf.c | 426 #define NMBUFS (nmbclusters / 2 + maxfiles)
|
/dragonfly/lib/libkcore/ |
H A D | kcore_file.c | 61 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 D | kcore.h | 49 #define kinfo_get_maxfiles(maxfiles) \ argument 50 kcore_get_maxfiles(NULL, maxfiles)
|
/dragonfly/usr.bin/csplit/ |
H A D | csplit.c | 85 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 D | kinfo_file.c | 84 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 D | split.c | 294 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 D | file.h | 159 extern int maxfiles; /* kernel limit on number of open files */
|
/dragonfly/usr.bin/fstat/ |
H A D | fstat.c | 121 int maxfiles; variable 124 if ((d) > maxfiles) { \ 130 maxfiles = (d); \
|
/dragonfly/contrib/file/src/ |
H A D | apprentice.c | 1508 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 D | ppp.conf.sample | 763 # o Bump system file descriptors with ``sysctl kern.maxfiles=20480''. You'll
|