Lines Matching refs:rfd

261 channel_register_fds(Channel *c, int rfd, int wfd, int efd,  in channel_register_fds()  argument
265 channel_max_fd = MAXIMUM(channel_max_fd, rfd); in channel_register_fds()
269 if (rfd != -1) in channel_register_fds()
270 fcntl(rfd, F_SETFD, FD_CLOEXEC); in channel_register_fds()
271 if (wfd != -1 && wfd != rfd) in channel_register_fds()
273 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds()
276 c->rfd = rfd; in channel_register_fds()
278 c->sock = (rfd == wfd) ? rfd : -1; in channel_register_fds()
283 debug2("channel %d: rfd %d isatty", c->self, c->rfd); in channel_register_fds()
291 if (rfd != -1) in channel_register_fds()
292 set_nonblock(rfd); 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()
393 max = MAXIMUM(max, c->rfd); in channel_find_maxfd()
420 channel_close_fd(&c->rfd); in channel_close_fds()
734 c->rfd, c->wfd, c->ctl_chan); in channel_open_message()
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()
916 FD_SET(c->rfd, readset); in channel_pre_open()
1098 FD_SET(c->rfd, readset); in channel_pre_mux_client()
1700 c->sock = c->rfd = c->wfd = sock; in channel_post_connecting()
1734 if (c->rfd != -1 && (force || FD_ISSET(c->rfd, readset))) {
1736 len = read(c->rfd, buf, sizeof(buf));
1747 c->self, c->rfd, len);
1962 len = read(c->rfd, buf, MINIMUM(rlen, CHAN_RBUF));
1967 c->self, c->rfd, len);
1985 if (c->rfd != -1 && !c->mux_pause && FD_ISSET(c->rfd, readset) &&
4230 if (ioctl(channels[i]->rfd, TIOCGWINSZ, &ws) < 0)