Lines Matching refs:tty
176 int tty;
186 tty = fileno (rl_instream);
191 FD_SET (tty, &readfds);
192 FD_SET (tty, &exceptfds);
195 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout);
203 result = ioctl (tty, FIONREAD, &chars_avail);
211 tem = fcntl (tty, F_GETFL, 0);
213 fcntl (tty, F_SETFL, (tem | O_NDELAY));
214 chars_avail = read (tty, &input, 1);
216 fcntl (tty, F_SETFL, tem);
230 chars_avail = isatty (tty) ? _kbhit () : 0;
299 int tty;
301 tty = fileno (rl_instream);
306 FD_SET (tty, &readfds);
307 FD_SET (tty, &exceptfds);
310 return (select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout) > 0);
314 if (ioctl (tty, FIONREAD, &chars_avail) == 0)
321 if (isatty (tty))