termios.3: Clarify behavior if data is available before noncanonical read()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-03-21 15:10:47 +01:00
parent 5ee2d3c5d6
commit e764d1b79d
1 changed files with 6 additions and 0 deletions

View File

@ -750,6 +750,9 @@ or when the timer expires.
If the timer expires without any input becoming available,
.BR read (2)
returns 0.
If data is already available at the time of the call to
.BR read (),
the call behaves as though the data was received immediately after the call.
.TP
MIN > 0; TIME > 0:
TIME specifies the limit for a timer in tenths of a second.
@ -761,6 +764,9 @@ MIN byte have been read,
or when the interbyte timeout expires.
Because the timer is started only after the initial byte
becomes available, at least one byte will be read.
If data is already available at the time of the call to
.BR read (),
the call behaves as though the data was received immediately after the call.
.PP
POSIX
.\" POSIX.1-2008 XBD 11.1.7