Home
last modified time | relevance | path

Searched refs:keep_fd (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/ntp/libntp/
H A Dntp_worker.c83 int keep_fd in close_all_except() argument
88 for (fd = 0; fd < keep_fd; fd++) in close_all_except()
91 close_all_beyond(keep_fd); in close_all_except()
103 int keep_fd in close_all_beyond() argument
107 closefrom(keep_fd + 1); in close_all_beyond()
114 if (fcntl(keep_fd + 1, F_CLOSEM, 0) == -1) in close_all_beyond()
115 msyslog(LOG_ERR, "F_CLOSEM(%d): %m", keep_fd + 1); in close_all_beyond()
121 for (fd = keep_fd + 1; fd < max_fd; fd++) in close_all_beyond()
H A Dwork_fork.c450 int keep_fd; in fork_blocking_child() local
576 keep_fd = max(c->req_read_pipe, c->resp_write_pipe); in fork_blocking_child()
577 for (fd = 3; fd < keep_fd; fd++) in fork_blocking_child()
581 close_all_beyond(keep_fd); in fork_blocking_child()