Lines Matching defs:ofd
2587 start_charshunt(ifd, ofd)
2588 int ifd, ofd;
2607 charshunt(ifd, ofd, record_file);
2638 * (We assume ofd >= ifd which is true the way this gets called. :-).
2641 charshunt(ifd, ofd, record_file)
2642 int ifd, ofd;
2719 if (ofd != ifd) {
2720 flags = fcntl(ofd, F_GETFL);
2722 || fcntl(ofd, F_SETFL, flags | O_NONBLOCK) == -1)
2738 nfds = (ofd > pty_master? ofd: pty_master) + 1;
2749 while (nibuf != 0 || nobuf != 0 || ofd >= 0 || pty_master >= 0) {
2765 else if (ofd >= 0)
2766 FD_SET(ofd, &writey);
2769 if (pty_master >= 0 && ofd >= 0)
2820 if (ofd >= 0 && pty_master >= 0 && FD_ISSET(pty_master, &ready)) {
2825 if (nobuf < 0 || ofd == -1) {
2834 (void) close(ofd);
2835 ofd = -1;
2841 FD_SET(ofd, &writey);
2848 if (ofd == -1)
2850 else if (FD_ISSET(ofd, &writey)) {
2854 n = write(ofd, obufp, n);
2857 (void) close(ofd);
2858 ofd = -1;