Home
last modified time | relevance | path

Searched refs:new_termios (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/shared/
Dask-password-api.c395 struct termios old_termios, new_termios; in ask_password_tty() local
462 new_termios = old_termios; in ask_password_tty()
463 new_termios.c_lflag &= ~(ICANON|ECHO); in ask_password_tty()
464 new_termios.c_cc[VMIN] = 1; in ask_password_tty()
465 new_termios.c_cc[VTIME] = 0; in ask_password_tty()
467 if (tcsetattr(ttyfd, TCSADRAIN, &new_termios) < 0) { in ask_password_tty()
/systemd-251/src/basic/
Dterminal-util.c94 struct termios new_termios = old_termios; in read_one_char() local
96 new_termios.c_lflag &= ~ICANON; in read_one_char()
97 new_termios.c_cc[VMIN] = 1; in read_one_char()
98 new_termios.c_cc[VTIME] = 0; in read_one_char()
100 if (tcsetattr(fd, TCSADRAIN, &new_termios) >= 0) { in read_one_char()