Summary: | Typographical errors and grammar clarification in fclose(3) with a patch | ||||||
---|---|---|---|---|---|---|---|
Product: | Documentation | Reporter: | J Adams <jfa63> | ||||
Component: | Manual Pages | Assignee: | Maxim Konovalov <maxim> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | doc, jfa63, maxim | ||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
J Adams
2024-02-13 19:20:49 UTC
Created attachment 248452 [details]
fdclose man page diff
Hi,
After reading libc/stdio/fclose.c I tend to think that the whole sentence should be just removed. I.e., it should look like the following:
The fdclose() function is equivalent to fclose() except that it does not
close the underlying file descriptor.
If fdp is not NULL, the file descriptor will be written to it.
If the stream does not have an associated file descriptor, fdp will be set to -1.
%%%
I enclosed the patch for completeness.
Maxim
(In reply to Maxim Konovalov from comment #1) Can't really disagree on that. After all, the sentence made me scratch my head a little; and it wasn't just the grammar. Your patch makes the paragraph more clear and concise. You are not alone here! Thanks for spotting this. I'll try to reach the author and commit the patch afterwards. Maxim Glad to help; I'm trying to get more involved in the FBSD community. I hope to continue to contribute! :-) BTW, I took your lead and also read through libc/stdio/fclose.c. Surprisingly simple. You are more than welcome! Maxim A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=1250c9647959fab955fb8d9046cb41bc749e6855 commit 1250c9647959fab955fb8d9046cb41bc749e6855 Author: Maxim Konovalov <maxim@FreeBSD.org> AuthorDate: 2024-02-16 18:50:12 +0000 Commit: Maxim Konovalov <maxim@FreeBSD.org> CommitDate: 2024-02-16 18:50:12 +0000 fclose.3: remove a confusing sentence PR: 277037 Reviewed by: oshogbo lib/libc/stdio/fclose.3 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) The fix committed. Thanks for spotting this one! |