Searched refs:maxfds (Results 1 – 2 of 2) sorted by relevance
| /netbsd/src/crypto/external/bsd/openssh/dist/ |
| D | ssh-agent.c | 2028 after_poll(struct pollfd *pfd, size_t npfd, u_int maxfds) in after_poll() argument 2053 if (npfd > maxfds) { in after_poll() 2055 "skipping accept", activefds, maxfds); in after_poll() 2082 prepare_poll(struct pollfd **pfdp, size_t *npfdp, struct timespec *timeoutp, u_int maxfds) in prepare_poll() argument 2112 if (npfd > maxfds) { in prepare_poll() 2114 "skipping arming listener", npfd, maxfds); in prepare_poll() 2255 u_int maxfds; in main() local 2392 maxfds = rlim.rlim_cur - SSH_AGENT_MIN_FDS; in main() 2526 prepare_poll(&pfd, &npfd, &timeout, maxfds); in main() 2538 after_poll(pfd, npfd, maxfds); in main()
|
| /netbsd/src/external/apache2/mDNSResponder/dist/mDNSShared/ |
| D | uds_daemon.c | 6815 struct rlimit maxfds, newfds; in udsserver_init() local 6819 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init() 6820 …if (setrlimit(RLIMIT_NOFILE, &maxfds) < 0) my_perror("ERROR: Unable to set maximum file descriptor… in udsserver_init() 6822 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init() 6823 newfds.rlim_max = (maxfds.rlim_max > MIN_OPENFILES) ? maxfds.rlim_max : MIN_OPENFILES; in udsserver_init() 6824 newfds.rlim_cur = (maxfds.rlim_cur > MIN_OPENFILES) ? maxfds.rlim_cur : MIN_OPENFILES; in udsserver_init() 6825 if (newfds.rlim_max != maxfds.rlim_max || newfds.rlim_cur != maxfds.rlim_cur) in udsserver_init() 6828 …if (getrlimit(RLIMIT_NOFILE, &maxfds) < 0) { my_perror("ERROR: Unable to get file descriptor limit… in udsserver_init() 6829 debugf("maxfds.rlim_max %d", (long)maxfds.rlim_max); in udsserver_init() 6830 debugf("maxfds.rlim_cur %d", (long)maxfds.rlim_cur); in udsserver_init()
|