Lines Matching refs:ofd
2584 start_charshunt(ifd, ofd) in start_charshunt() argument
2585 int ifd, ofd; in start_charshunt()
2604 charshunt(ifd, ofd, record_file);
2638 charshunt(ifd, ofd, record_file) in charshunt() argument
2639 int ifd, ofd; in charshunt()
2716 if (ofd != ifd) {
2717 flags = fcntl(ofd, F_GETFL);
2719 || fcntl(ofd, F_SETFL, flags | O_NONBLOCK) == -1)
2735 nfds = (ofd > pty_master? ofd: pty_master) + 1;
2746 while (nibuf != 0 || nobuf != 0 || ofd >= 0 || pty_master >= 0) {
2762 else if (ofd >= 0)
2763 FD_SET(ofd, &writey);
2766 if (pty_master >= 0 && ofd >= 0)
2817 if (ofd >= 0 && pty_master >= 0 && FD_ISSET(pty_master, &ready)) {
2822 if (nobuf < 0 || ofd == -1) {
2831 (void) close(ofd);
2832 ofd = -1;
2838 FD_SET(ofd, &writey);
2845 if (ofd == -1)
2847 else if (FD_ISSET(ofd, &writey)) {
2851 n = write(ofd, obufp, n);
2854 (void) close(ofd);
2855 ofd = -1;