Bug 213341 - Man Page for ferror/feof has bad information in "Return Value" Section
Summary: Man Page for ferror/feof has bad information in "Return Value" Section
Status: RESOLVED OBSOLETE
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 low
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL: https://man7.org/linux/man-pages/man3...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-04 22:37 UTC by Jake
Modified: 2021-06-07 14:31 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Jake 2021-06-04 22:37:41 UTC
Within the man page for ferror and feof, there is a description for the return value of feof twice. The second description is for ferror.


>This:
>       The feof() function returns nonzero if the end-of-file indicator
>       is set for stream; otherwise, it returns zero.
>
>       The feof() function returns nonzero if the error indicator is set
>       for stream; otherwise, it returns zero.

>Should be this:
>       The feof() function returns nonzero if the end-of-file indicator
>       is set for stream; otherwise, it returns zero.
>
>       The ferror() function returns nonzero if the error indicator is set
>       for stream; otherwise, it returns zero.
Comment 1 Alejandro Colomar 2021-06-04 22:49:47 UTC
This was fixed a few weeks ago in my tree :)

See <https://github.com/alejandro-colomar/man-pages/commit/9e1f28a8595ce90e7905635faf8542cf8bd674b6>.

It's not yet merged into Michael's tree, though.

Anyway, thanks,

Alex
Comment 2 Jake 2021-06-07 14:31:42 UTC
(In reply to Alejandro Colomar (man-pages) from comment #1)
> This was fixed a few weeks ago in my tree :)
> 
> See
> <https://github.com/alejandro-colomar/man-pages/commit/
> 9e1f28a8595ce90e7905635faf8542cf8bd674b6>.
> 
> It's not yet merged into Michael's tree, though.
> 
> Anyway, thanks,
> 
> Alex

Awesome, thanks.

Note You need to log in before you can comment on or make changes to this bug.