mirror of https://github.com/mkerrisk/man-pages
termios.3: Fix error in discussion of MIN > 0, TIME == 0 noncanonical mode
As reported by Peter Hurley, for the MIN > 0, TIME == 0 case: read() may unblock when MIN bytes are available but return up to the 'count' parameter if more input arrives in between waking and copying into the user buffer. ... read() may also _not_ return until MIN bytes have been received, even if 'count' bytes have been received. MTK: verified the above by experiment. Reported-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
959c4b2519
commit
4b985dd60a
|
@ -736,8 +736,8 @@ returns 0.
|
|||
.TP
|
||||
MIN > 0; TIME == 0:
|
||||
.BR read (2)
|
||||
blocks until the lesser of MIN bytes or the number of bytes requested
|
||||
are available, and returns the lesser of these two values.
|
||||
blocks until MIN bytes are available,
|
||||
and returns up to the number of bytes requested.
|
||||
.TP
|
||||
MIN == 0; TIME > 0:
|
||||
TIME specifies the limit for a timer in tenths of a second.
|
||||
|
|
Loading…
Reference in New Issue