Lines Matching refs:stdin
77 if (tcgetattr(fileno(stdin), &ttybuf) < 0) { in grabh()
95 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh()
106 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
114 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
121 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
129 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
144 tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); in grabh()
150 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) in grabh()
212 clearerr(stdin); in readtty()
214 c = getc(stdin); in readtty()
223 if (c == EOF && ferror(stdin)) { in readtty()
226 clearerr(stdin); in readtty()