Lines Matching defs:fi
658 FILE *fi;
664 if ((fi = fopen(devname, "r")) == NULL) {
665 fi = stdin;
673 (void) ioctl(fileno(fi), TCSETAF, &ttyb);
677 while ((c = getc(fi)) != '\n' && (c != '\r')) {
687 (void) fputc('\n', fi);
689 (void) ioctl(fileno(fi), TCSETAW, &ttymodes);
790 FILE *fi;
794 if ((fi = fopen("/dev/tty", "r+")) == NULL)
795 fi = stdin;
797 setbuf(fi, NULL);
798 sanitize_tty(fileno(fi));