HomeSort by: relevance | last modified time | path
    Searched refs:keep_fd (Results 1 - 2 of 2) sorted by relevancy

  /src/external/bsd/ntp/dist/libntp/
ntp_worker.c 81 * Close all file descriptors except the given keep_fd.
85 int keep_fd
90 for (fd = 0; fd < keep_fd; fd++)
93 close_all_beyond(keep_fd);
100 * Close all file descriptors after the given keep_fd, which is the
105 int keep_fd
109 closefrom(keep_fd + 1);
116 if (fcntl(keep_fd + 1, F_CLOSEM, 0) == -1)
117 msyslog(LOG_ERR, "F_CLOSEM(%d): %m", keep_fd + 1);
123 for (fd = keep_fd + 1; fd < max_fd; fd++
    [all...]
work_fork.c 480 int keep_fd; local
603 keep_fd = max(c->req_read_pipe, c->resp_write_pipe);
604 for (fd = 3; fd < keep_fd; fd++)
608 close_all_beyond(keep_fd);

Completed in 28 milliseconds