.TH ttread() "" "" "Internal Kernel Routine"
.PC "Read from tty"
.B "#include <sys/io.h>"
.B "#include <sys/tty.h>"
\fBvoid ttread(\fItp\^\fB, \fIiop\^\fB)\fR
\fBTTY *\fItp\^\fB; IO *\fIiop\^\fB;\fR
.PP
.B ttread()
moves data from the input queue associated with
.I tp
to the I/O segment referenced by
.IR iop .
If an error occurs,
.B ttread()
calls
.B set_user_error()
with an appropriate value.
.PP
.B ttyread()
may block, depending on settings of the flags in the
.B termio
structure.
.SH "See Also"
.B
internal kernel routines
.R
