Lines Matching refs:ifd
2587 start_charshunt(ifd, ofd) in start_charshunt() argument
2588 int ifd, ofd; in start_charshunt()
2607 charshunt(ifd, ofd, record_file);
2641 charshunt(ifd, ofd, record_file) in charshunt() argument
2642 int ifd, ofd; in charshunt()
2715 flags = fcntl(ifd, F_GETFL);
2717 || fcntl(ifd, F_SETFL, flags | O_NONBLOCK) == -1)
2718 warn("couldn't set %s to nonblock: %m", (ifd==0? "stdin": "tty"));
2719 if (ofd != ifd) {
2760 } else if (ifd >= 0)
2761 FD_SET(ifd, &ready);
2791 if (FD_ISSET(ifd, &ready)) {
2793 nibuf = read(ifd, ibufp, sizeof(inpacket_buf));
2806 (void) close(ifd);
2807 ifd = -1;