tty_readable
if (tty->reader_queue.IsEmpty() && tty_readable(tty) > 0)
int32 readable = tty_readable(tty);