Lines Matching refs:tty
169 int tty; in rl_gather_tyi() local
178 tty = fileno (rl_instream); in rl_gather_tyi()
183 FD_SET (tty, &readfds); in rl_gather_tyi()
184 FD_SET (tty, &exceptfds); in rl_gather_tyi()
187 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); in rl_gather_tyi()
195 result = ioctl (tty, FIONREAD, &chars_avail); in rl_gather_tyi()
203 tem = fcntl (tty, F_GETFL, 0); in rl_gather_tyi()
205 fcntl (tty, F_SETFL, (tem | O_NDELAY)); in rl_gather_tyi()
206 chars_avail = read (tty, &input, 1); in rl_gather_tyi()
208 fcntl (tty, F_SETFL, tem); in rl_gather_tyi()
273 int tty; in _rl_input_available() local
275 tty = fileno (rl_instream); in _rl_input_available()
280 FD_SET (tty, &readfds); in _rl_input_available()
281 FD_SET (tty, &exceptfds); in _rl_input_available()
284 return (select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout) > 0); in _rl_input_available()
288 if (ioctl (tty, FIONREAD, &chars_avail) == 0) in _rl_input_available()