Lines Matching +full:close +full:- +full:range
52 * Set up the descriptors. Because they are close-on-exec, in the case
53 * where sshd's re-exec fails notify_pipe will still point to a descriptor
56 * outside of the range used by sshd re-exec but within NFDBITS (so we don't
67 return -1; in pselect_notify_setup_fd()
68 (void)close(*fd); in pselect_notify_setup_fd()
89 if (notify_pipe[0] != -1) in pselect_notify_setup()
90 close(notify_pipe[0]); in pselect_notify_setup()
91 if (notify_pipe[1] != -1) in pselect_notify_setup()
92 close(notify_pipe[1]); in pselect_notify_setup()
94 if (pipe(notify_pipe) == -1) { in pselect_notify_setup()
96 } else if (pselect_notify_setup_fd(¬ify_pipe[0]) == -1 || in pselect_notify_setup()
97 pselect_notify_setup_fd(¬ify_pipe[1]) == -1) { in pselect_notify_setup()
99 close(notify_pipe[0]); in pselect_notify_setup()
100 close(notify_pipe[1]); in pselect_notify_setup()
110 notify_pipe[0] = -1; /* read end */ in pselect_notify_setup()
111 notify_pipe[1] = -1; /* write end */ in pselect_notify_setup()
116 if (notify_pipe[1] != -1) in pselect_notify_parent()
122 if (notify_pipe[0] != -1) in pselect_notify_prepare()
130 if (notify_pipe[0] != -1 && FD_ISSET(notify_pipe[0], readset)) { in pselect_notify_done()
131 while (read(notify_pipe[0], &c, 1) != -1) in pselect_notify_done()
163 tv.tv_sec = timeout->tv_sec; in pselect()
164 tv.tv_usec = timeout->tv_nsec / 1000; in pselect()