Searched refs:maxfds (Results 1 - 2 of 2) sorted by relevance

/netbsd-6-1-5-RELEASE/usr.bin/window/
H A Dwwiomux.c78 static nfds_t maxfds = 0; local
95 if (maxfds <= ++nfd) { /* One more for the fd=0 case below */
104 maxfds = 0;
108 maxfds = nfd;
/netbsd-6-1-5-RELEASE/external/apache2/mDNSResponder/dist/mDNSShared/
H A Duds_daemon.c4020 struct rlimit maxfds, newfds; local
4024 if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit"); return 0; }
4025 if (setrlimit(RLIMIT_NOFILE, &maxfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor limit");
4027 if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit"); return 0; }
4028 newfds.rlim_max = (maxfds.rlim_max > MIN_OPENFILES) ? maxfds.rlim_max : MIN_OPENFILES;
4029 newfds.rlim_cur = (maxfds.rlim_cur > MIN_OPENFILES) ? maxfds.rlim_cur : MIN_OPENFILES;
4030 if (newfds.rlim_max != maxfds.rlim_max || newfds.rlim_cur != maxfds
[all...]

Completed in 206 milliseconds