* [PATCH v2] fread.3: Explain that file position is moved after calling fread()/fwrite()
@ 2020-06-16 22:15 Arkadiusz Drabczyk
2020-06-19 12:28 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Arkadiusz Drabczyk @ 2020-06-16 22:15 UTC (permalink / raw)
To: mtk.manpages; +Cc: linux-man
Corresponding manpage on FreeBSD already contains that information.
Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
---
man3/fread.3 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/man3/fread.3 b/man3/fread.3
index 2dd7be9..2dcca9b 100644
--- a/man3/fread.3
+++ b/man3/fread.3
@@ -92,6 +92,9 @@ is 1.
If an error occurs, or the end of the file is reached,
the return value is a short item count (or zero).
.PP
+The file position indicator for the stream is advanced by the number
+of bytes successfully read or written.
+.PP
.BR fread ()
does not distinguish between end-of-file and error, and callers must use
.BR feof (3)
--
2.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] fread.3: Explain that file position is moved after calling fread()/fwrite()
2020-06-16 22:15 [PATCH v2] fread.3: Explain that file position is moved after calling fread()/fwrite() Arkadiusz Drabczyk
@ 2020-06-19 12:28 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-06-19 12:28 UTC (permalink / raw)
To: Arkadiusz Drabczyk; +Cc: mtk.manpages, linux-man
Hello Arkadiusz
On 6/17/20 12:15 AM, Arkadiusz Drabczyk wrote:
> Corresponding manpage on FreeBSD already contains that information.
>
> Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
Thanks. Patch applied.
Cheers,
Michael
> ---
> man3/fread.3 | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/man3/fread.3 b/man3/fread.3
> index 2dd7be9..2dcca9b 100644
> --- a/man3/fread.3
> +++ b/man3/fread.3
> @@ -92,6 +92,9 @@ is 1.
> If an error occurs, or the end of the file is reached,
> the return value is a short item count (or zero).
> .PP
> +The file position indicator for the stream is advanced by the number
> +of bytes successfully read or written.
> +.PP
> .BR fread ()
> does not distinguish between end-of-file and error, and callers must use
> .BR feof (3)
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-19 12:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-16 22:15 [PATCH v2] fread.3: Explain that file position is moved after calling fread()/fwrite() Arkadiusz Drabczyk
2020-06-19 12:28 ` 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).