Lines Matching +full:baud +full:- +full:rate
69 * Converts POSIX speed_t to a baud rate. The values of the
159 * Converts a numeric baud rate to a POSIX speed_t.
162 baud_to_speed(int baud) in baud_to_speed() argument
164 switch (baud) { in baud_to_speed()
289 if (fd == -1) { in ssh_tty_make_modes()
293 if (tcgetattr(fd, &tio) == -1) { in ssh_tty_make_modes()
300 /* Store input and output baud rates. */ in ssh_tty_make_modes()
319 if (OP == SSH_TTYMODE_IUTF8 && (ssh->compat & SSH_BUG_UTF8TTYMODE)) { \ in ssh_tty_make_modes()
349 u_int baud, u; in ssh_tty_parse_modes() local
364 * flags. I am hoping that if there are any machine-specific in ssh_tty_parse_modes()
367 if (tcgetattr(fd, &tio) == -1) { in ssh_tty_parse_modes()
369 failure = -1; in ssh_tty_parse_modes()
380 if ((r = sshbuf_get_u32(buf, &baud)) != 0) in ssh_tty_parse_modes()
382 if (failure != -1 && in ssh_tty_parse_modes()
383 cfsetispeed(&tio, baud_to_speed(baud)) == -1) in ssh_tty_parse_modes()
384 error("cfsetispeed failed for %d", baud); in ssh_tty_parse_modes()
388 if ((r = sshbuf_get_u32(buf, &baud)) != 0) in ssh_tty_parse_modes()
390 if (failure != -1 && in ssh_tty_parse_modes()
391 cfsetospeed(&tio, baud_to_speed(baud)) == -1) in ssh_tty_parse_modes()
392 error("cfsetospeed failed for %d", baud); in ssh_tty_parse_modes()
444 if (failure == -1) in ssh_tty_parse_modes()
448 if (tcsetattr(fd, TCSANOW, &tio) == -1) in ssh_tty_parse_modes()