| 584 | } |
| 585 | |
| 586 | void |
| 587 | ttydisc_optimize(struct tty *tp) |
| 588 | { |
| 589 | tty_assert_locked(tp); |
| 590 | |
| 591 | if (ttyhook_hashook(tp, rint_bypass)) { |
| 592 | tp->t_flags |= TF_BYPASS; |
| 593 | } else if (ttyhook_hashook(tp, rint)) { |
| 594 | tp->t_flags &= ~TF_BYPASS; |
| 595 | } else if (!CMP_FLAG(i, ICRNL|IGNCR|IMAXBEL|INLCR|ISTRIP|IXON) && |
| 596 | (!CMP_FLAG(i, BRKINT) || CMP_FLAG(i, IGNBRK)) && |
| 597 | (!CMP_FLAG(i, PARMRK) || |
| 598 | CMP_FLAG(i, IGNPAR|IGNBRK) == (IGNPAR|IGNBRK)) && |
| 599 | !CMP_FLAG(l, ECHO|ICANON|IEXTEN|ISIG|PENDIN)) { |
| 600 | tp->t_flags |= TF_BYPASS; |
| 601 | } else { |
| 602 | tp->t_flags &= ~TF_BYPASS; |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | void |
| 607 | ttydisc_modem(struct tty *tp, int open) |
no outgoing calls
no test coverage detected