Lines Matching refs:efd

238 channel_register_fds(Channel *c, int rfd, int wfd, int efd,  in channel_register_fds()  argument
244 channel_max_fd = MAX(channel_max_fd, efd); in channel_register_fds()
250 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds()
251 fcntl(efd, F_SETFD, FD_CLOEXEC); in channel_register_fds()
256 c->efd = efd; in channel_register_fds()
272 if (efd != -1) in channel_register_fds()
273 set_nonblock(efd); in channel_register_fds()
282 channel_new(char *ctype, int type, int rfd, int wfd, int efd, in channel_new() argument
327 channel_register_fds(c, rfd, wfd, efd, extusage, nonblock, 0); in channel_new()
372 max = MAX(max, c->efd); in channel_find_maxfd()
399 channel_close_fd(&c->efd); in channel_close_fds()
788 channel_set_fds(int id, int rfd, int wfd, int efd, in channel_set_fds() argument
795 channel_register_fds(c, rfd, wfd, efd, extusage, nonblock, is_tty); in channel_set_fds()
857 c->self, c->efd, buffer_len(&c->extended)); in channel_pre_open()
863 if (compat20 && c->efd != -1 && in channel_pre_open()
867 FD_SET(c->efd, writeset); in channel_pre_open()
868 else if (c->efd != -1 && !(c->flags & CHAN_EOF_SENT) && in channel_pre_open()
872 FD_SET(c->efd, readset); in channel_pre_open()
1795 if (c->efd != -1) {
1797 FD_ISSET(c->efd, writeset) &&
1799 len = write(c->efd, buffer_ptr(&c->extended),
1802 c->self, len, c->efd);
1808 c->self, c->efd);
1809 channel_close_fd(&c->efd);
1814 } else if (c->efd != -1 &&
1817 (c->detach_close || FD_ISSET(c->efd, readset))) {
1818 len = read(c->efd, buf, sizeof(buf));
1820 c->self, len, c->efd);
1826 c->self, c->efd);
1827 channel_close_fd(&c->efd);
2316 c->self, c->efd, buffer_len(&c->extended));
2436 if (c->efd == -1 ||