Lines Matching refs:start_fd
248 _close_fds_by_brute_force(long start_fd, PyObject *py_fds_to_keep) in _close_fds_by_brute_force() argument
259 if (keep_fd < start_fd) in _close_fds_by_brute_force()
261 for (fd_num = start_fd; fd_num < keep_fd; ++fd_num) { in _close_fds_by_brute_force()
264 start_fd = keep_fd + 1; in _close_fds_by_brute_force()
266 if (start_fd <= end_fd) { in _close_fds_by_brute_force()
269 closefrom(start_fd); in _close_fds_by_brute_force()
271 for (fd_num = start_fd; fd_num < end_fd; ++fd_num) { in _close_fds_by_brute_force()
311 _close_open_fds_safe(int start_fd, PyObject* py_fds_to_keep) in _close_open_fds_safe() argument
318 _close_fds_by_brute_force(start_fd, py_fds_to_keep); in _close_open_fds_safe()
336 if (fd != fd_dir_fd && fd >= start_fd && in _close_open_fds_safe()
365 _close_open_fds_maybe_unsafe(long start_fd, PyObject* py_fds_to_keep) in _close_open_fds_maybe_unsafe() argument
369 while (_is_fd_in_sorted_fd_sequence(start_fd, py_fds_to_keep)) { in _close_open_fds_maybe_unsafe()
370 ++start_fd; in _close_open_fds_maybe_unsafe()
376 close(start_fd); in _close_open_fds_maybe_unsafe()
377 ++start_fd; in _close_open_fds_maybe_unsafe()
388 _close_fds_by_brute_force(start_fd, py_fds_to_keep); in _close_open_fds_maybe_unsafe()
394 int fd_used_by_opendir = start_fd - 1; in _close_open_fds_maybe_unsafe()
401 if (fd != fd_used_by_opendir && fd >= start_fd && in _close_open_fds_maybe_unsafe()
409 _close_fds_by_brute_force(start_fd, py_fds_to_keep); in _close_open_fds_maybe_unsafe()