Lines Matching refs:writefd
146 newchan->writefd = FD_UNINIT; in newchannel()
219 if (channel->writefd >= 0 && FD_ISSET(channel->writefd, writefds)) { in channelio()
226 writechannel(channel, channel->writefd, channel->writebuf); in channelio()
251 if (channel->writefd >= 0 && cbuf_getused(channel->writebuf) > 0) { in write_pending()
265 channel->writefd, channel->readfd, in check_close()
287 close_chan_fd(channel, channel->writefd, SHUT_WR); in check_close()
334 if (getsockopt(channel->writefd, SOL_SOCKET, SO_ERROR, &val, &vallen) in check_in_progress()
338 close(channel->writefd); in check_in_progress()
344 channel->readfd = channel->writefd; in check_in_progress()
370 close_chan_fd(channel, channel->writefd, SHUT_WR); in send_msg_channel_close()
459 if ((channel->writefd >= 0 && cbuf_getused(channel->writebuf) > 0 ) in setchannelfds()
461 FD_SET(channel->writefd, writefds); in setchannelfds()
529 TRACE(("CLOSE writefd %d", channel->writefd)) in remove_channel()
530 close(channel->writefd); in remove_channel()
658 common_recv_msg_channel_data(channel, channel->writefd, channel->writebuf); in recv_msg_channel_data()
925 if (closein && fd == channel->writefd) { in close_chan_fd()
926 channel->writefd = FD_CLOSED; in close_chan_fd()
935 && channel->writefd == FD_CLOSED && channel->errfd == FD_CLOSED) { in close_chan_fd()
962 chan->writefd = chan->readfd = fd; in send_msg_channel_open_init()