* [PATCH] termios.3: sfix
@ 2014-04-17 0:20 David Prévot
[not found] ` <1397694028-23971-1-git-send-email-taffit-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: David Prévot @ 2014-04-17 0:20 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, David Prévot
---
man3/termios.3 | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/man3/termios.3 b/man3/termios.3
index ec5a847..c0e3c45 100644
--- a/man3/termios.3
+++ b/man3/termios.3
@@ -751,7 +751,7 @@ 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 (),
+.BR read (2),
the call behaves as though the data was received immediately after the call.
.TP
MIN > 0, TIME > 0 (read with interbyte timeout)
@@ -772,14 +772,14 @@ has been received.
(POSIX does not specify this termination condition,
and on some other implementations
.\" e.g., Solaris
-.BR read ()
+.BR read (2)
does not return in this case.)
.RE
.IP
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 (),
+.BR read (2),
the call behaves as though the data was received immediately after the call.
.PP
POSIX
@@ -790,12 +790,12 @@ file status flag takes precedence over the MIN and TIME settings.
If
.B O_NONBLOCK
is set, a
-.BR read ()
+.BR read (2)
in noncanonical mode may return immediately,
regardless of the setting of MIN or TIME.
Furthermore, if no data is available,
POSIX permits a
-.BR read ()
+.BR read (2)
in noncanonical mode to return either 0, or \-1 with
.I errno
set to
--
1.9.2
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] termios.3: sfix
[not found] ` <1397694028-23971-1-git-send-email-taffit-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
@ 2014-04-17 5:44 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-04-17 5:44 UTC (permalink / raw)
To: David Prévot
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA
Thanks, David. Applied.
Cheers,
On 04/17/2014 02:20 AM, David Prévot wrote:
> ---
> man3/termios.3 | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/man3/termios.3 b/man3/termios.3
> index ec5a847..c0e3c45 100644
> --- a/man3/termios.3
> +++ b/man3/termios.3
> @@ -751,7 +751,7 @@ 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 (),
> +.BR read (2),
> the call behaves as though the data was received immediately after the call.
> .TP
> MIN > 0, TIME > 0 (read with interbyte timeout)
> @@ -772,14 +772,14 @@ has been received.
> (POSIX does not specify this termination condition,
> and on some other implementations
> .\" e.g., Solaris
> -.BR read ()
> +.BR read (2)
> does not return in this case.)
> .RE
> .IP
> 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 (),
> +.BR read (2),
> the call behaves as though the data was received immediately after the call.
> .PP
> POSIX
> @@ -790,12 +790,12 @@ file status flag takes precedence over the MIN and TIME settings.
> If
> .B O_NONBLOCK
> is set, a
> -.BR read ()
> +.BR read (2)
> in noncanonical mode may return immediately,
> regardless of the setting of MIN or TIME.
> Furthermore, if no data is available,
> POSIX permits a
> -.BR read ()
> +.BR read (2)
> in noncanonical mode to return either 0, or \-1 with
> .I errno
> set to
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-17 5:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-17 0:20 [PATCH] termios.3: sfix David Prévot
[not found] ` <1397694028-23971-1-git-send-email-taffit-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
2014-04-17 5:44 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).