Lines Matching refs:tty
151 FILE *tty;
175 * Don't use /dev/tty for now since server tools want to to
183 tty = stdin;
184 } else if ((tty = fopen("/dev/tty", "r")) != NULL) {
185 int flg, fd = fileno(tty);
186 /* rk_cloexec_file(tty); */
191 tty = stdin;
198 tcgetattr(fileno(tty), &t_old);
201 tcsetattr(fileno(tty), TCSANOW, &t_new);
206 c = getc(tty);
208 if (!ferror(tty)) {
228 tcsetattr(fileno(tty), TCSANOW, &t_old);
231 if (tty != stdin) {
232 fclose(tty);