Bug 213341

Summary: Man Page for ferror/feof has bad information in "Return Value" Section
Product: Documentation Reporter: Jake (vulkur)
Component: man-pagesAssignee: documentation_man-pages (documentation_man-pages)
Status: RESOLVED OBSOLETE    
Severity: low CC: alx
Priority: P1    
Hardware: All   
OS: Linux   
URL: https://man7.org/linux/man-pages/man3/ferror.3.html
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

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.