Lines Matching refs:max_fd
85 long i, max_fd = sysconf(_SC_OPEN_MAX);
132 for (i = 0; i < max_fd; i++)
370 daemon->helperfd = create_helper(pipewrite, err_pipe[1], script_uid, script_gid, max_fd);
522 if (FD_SETSIZE < (unsigned)max_fd)
523 max_fd = FD_SETSIZE;
536 max_fd -= 30; /* use other than TFTP */
538 if (max_fd < 0)
539 max_fd = 5;
540 else if (max_fd < 100)
541 max_fd = max_fd/2;
543 max_fd = max_fd - 20;
548 daemon->end_tftp_port - daemon->start_tftp_port + 1 < max_fd)
549 max_fd = daemon->end_tftp_port - daemon->start_tftp_port + 1;
551 if (daemon->tftp_max > max_fd)
553 daemon->tftp_max = max_fd;