| 455 | } |
| 456 | |
| 457 | static int |
| 458 | pts_kqops_read_event(struct knote *kn, long hint) |
| 459 | { |
| 460 | struct file *fp = kn->kn_fp; |
| 461 | struct tty *tp = fp->f_data; |
| 462 | struct pts_softc *psc = tty_softc(tp); |
| 463 | |
| 464 | if (psc->pts_flags & PTS_FINISHED) { |
| 465 | kn->kn_flags |= EV_EOF; |
| 466 | return (1); |
| 467 | } else { |
| 468 | kn->kn_data = ttydisc_getc_poll(tp); |
| 469 | return (kn->kn_data > 0); |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | static void |
| 474 | pts_kqops_write_detach(struct knote *kn) |
nothing calls this directly
no test coverage detected