Home | History | Annotate | Download | only in src

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);
528 if (FD_SETSIZE < (unsigned)max_fd)
529 max_fd = FD_SETSIZE;
542 max_fd -= 30; /* use other than TFTP */
544 if (max_fd < 0)
545 max_fd = 5;
546 else if (max_fd < 100)
547 max_fd = max_fd/2;
549 max_fd = max_fd - 20;
554 daemon->end_tftp_port - daemon->start_tftp_port + 1 < max_fd)
555 max_fd = daemon->end_tftp_port - daemon->start_tftp_port + 1;
557 if (daemon->tftp_max > max_fd)
559 daemon->tftp_max = max_fd;