| 2017 | } |
| 2018 | |
| 2019 | void |
| 2020 | tty_hiwat_in_block(struct tty *tp) |
| 2021 | { |
| 2022 | |
| 2023 | if ((tp->t_flags & TF_HIWAT_IN) == 0 && |
| 2024 | tp->t_termios.c_iflag & IXOFF && |
| 2025 | tp->t_termios.c_cc[VSTOP] != _POSIX_VDISABLE) { |
| 2026 | /* |
| 2027 | * Input flow control. Only enter the high watermark when we |
| 2028 | * can successfully store the VSTOP character. |
| 2029 | */ |
| 2030 | if (ttyoutq_write_nofrag(&tp->t_outq, |
| 2031 | &tp->t_termios.c_cc[VSTOP], 1) == 0) |
| 2032 | tp->t_flags |= TF_HIWAT_IN; |
| 2033 | } else { |
| 2034 | /* No input flow control. */ |
| 2035 | tp->t_flags |= TF_HIWAT_IN; |
| 2036 | } |
| 2037 | } |
| 2038 | |
| 2039 | void |
| 2040 | tty_hiwat_in_unblock(struct tty *tp) |
no test coverage detected