Lines Matching refs:STDIN_FILENO
149 if (tcgetattr(STDIN_FILENO, &TT.termios) < 0) perror_exit("tcgetattr"); in termios_init()
151 tcflush(STDIN_FILENO, TCIOFLUSH); in termios_init()
172 if (tcsetattr(STDIN_FILENO, TCSANOW, &TT.termios) < 0) in termios_init()
186 if (tcsetattr(STDIN_FILENO, TCSANOW, &TT.termios) < 0) in sense_baud()
188 size = readall(STDIN_FILENO, TT.buff, sizeof(TT.buff)-1); in sense_baud()
199 if (tcsetattr(STDIN_FILENO, TCSANOW, &TT.termios) < 0) in sense_baud()
244 tcflush(STDIN_FILENO, TCIFLUSH); // Flush pending speed switches in read_login_name()
277 xstrncpy(entry.ut_line, ttyname(STDIN_FILENO) + in utmp_entry()
287 xstrncpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen("/dev/"), UT_LINESIZE); in utmp_entry()
306 tcsetpgrp(STDIN_FILENO, pid); in getty_main()
315 while (readall(STDIN_FILENO, &ch, 1) != 1) in getty_main()
328 if (tcsetattr(STDIN_FILENO, TCSANOW, &TT.termios) < 0) in getty_main()