| 1464 | } |
| 1465 | |
| 1466 | size_t ttydisc_getc_poll(struct lwp_tty *tp) |
| 1467 | { |
| 1468 | tty_assert_locked(tp); |
| 1469 | |
| 1470 | if (tp->t_flags & TF_STOPPED) |
| 1471 | return 0; |
| 1472 | |
| 1473 | #if USING_BSD_HOOK |
| 1474 | if (ttyhook_hashook(tp, getc_poll)) |
| 1475 | return ttyhook_getc_poll(tp); |
| 1476 | #endif |
| 1477 | |
| 1478 | return ttyoutq_bytesused(&tp->t_outq); |
| 1479 | } |
no test coverage detected