Lines Matching refs:efd
261 channel_register_fds(Channel *c, int rfd, int wfd, int efd, in channel_register_fds() argument
267 channel_max_fd = MAXIMUM(channel_max_fd, efd); in channel_register_fds()
273 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds()
274 fcntl(efd, F_SETFD, FD_CLOEXEC); in channel_register_fds()
279 c->efd = efd; in channel_register_fds()
295 if (efd != -1) in channel_register_fds()
296 set_nonblock(efd); in channel_register_fds()
305 channel_new(char *ctype, int type, int rfd, int wfd, int efd, in channel_new() argument
350 channel_register_fds(c, rfd, wfd, efd, extusage, nonblock, 0); in channel_new()
395 max = MAXIMUM(max, c->efd); in channel_find_maxfd()
422 channel_close_fd(&c->efd); in channel_close_fds()
855 channel_set_fds(int id, int rfd, int wfd, int efd, in channel_set_fds() argument
862 channel_register_fds(c, rfd, wfd, efd, extusage, nonblock, is_tty); in channel_set_fds()
924 c->self, c->efd, buffer_len(&c->extended)); in channel_pre_open()
930 if (compat20 && c->efd != -1 && in channel_pre_open()
934 FD_SET(c->efd, writeset); in channel_pre_open()
935 else if (c->efd != -1 && !(c->flags & CHAN_EOF_SENT) && in channel_pre_open()
939 FD_SET(c->efd, readset); in channel_pre_open()
1875 if (c->efd != -1) {
1877 FD_ISSET(c->efd, writeset) &&
1879 len = write(c->efd, buffer_ptr(&c->extended),
1882 c->self, len, c->efd);
1888 c->self, c->efd);
1889 channel_close_fd(&c->efd);
1894 } else if (c->efd != -1 &&
1897 (c->detach_close || FD_ISSET(c->efd, readset))) {
1898 len = read(c->efd, buf, sizeof(buf));
1900 c->self, len, c->efd);
1906 c->self, c->efd);
1907 channel_close_fd(&c->efd);
2396 c->self, c->efd, buffer_len(&c->extended));
2798 if (c->efd == -1 ||