mirror of https://github.com/mkerrisk/man-pages
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:
parent
5ee2d3c5d6
commit
e764d1b79d
|
@ -750,6 +750,9 @@ or when the timer expires.
|
||||||
If the timer expires without any input becoming available,
|
If the timer expires without any input becoming available,
|
||||||
.BR read (2)
|
.BR read (2)
|
||||||
returns 0.
|
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
|
.TP
|
||||||
MIN > 0; TIME > 0:
|
MIN > 0; TIME > 0:
|
||||||
TIME specifies the limit for a timer in tenths of a second.
|
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.
|
or when the interbyte timeout expires.
|
||||||
Because the timer is started only after the initial byte
|
Because the timer is started only after the initial byte
|
||||||
becomes available, at least one byte will be read.
|
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
|
.PP
|
||||||
POSIX
|
POSIX
|
||||||
.\" POSIX.1-2008 XBD 11.1.7
|
.\" POSIX.1-2008 XBD 11.1.7
|
||||||
|
|
Loading…
Reference in New Issue