Lines Matching refs:stdin
83 if (tcgetattr(fileno(stdin), &ttybuf) < 0) {
84 warn("tcgetattr(stdin)");
101 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0)
112 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
120 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
127 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
135 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
148 tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf);
154 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0)
213 clearerr(stdin);
215 c = getc(stdin);
224 if (c == EOF && ferror(stdin)) {
227 clearerr(stdin);