Lines Matching defs:in
100 * Purpose: Reads in a string from the user (with or witout echo)
106 int in, out;
116 in = fileno(stdin);
126 if ((is_term = isatty(in)))
129 (void) tcgetattr (in, &term_old);
136 if (tcsetattr (in, TCSAFLUSH, &term_new) == 0)
143 if ((flags = fcntl(in, F_GETFL, 0)) >= 0) {
147 fcntl(in, F_SETFL, flags);
149 while (read(in, &c, 1) > 0)
152 fcntl(in, F_SETFL, old_flags);
166 if (read(in, &c, 1) <= 0)
192 tcsetattr (in, TCSAFLUSH, &term_old);
194 if ((flags = fcntl(in, F_GETFL, 0)) >= 0) {
198 fcntl(in, F_SETFL, flags);
200 while (read(in, &c, 1) > 0)
203 fcntl(in, F_SETFL, old_flags);