Bug 249154 - missing man pages: get{host,net}by{name,addr}_r
Summary: missing man pages: get{host,net}by{name,addr}_r
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-06 19:54 UTC by Alan Somers
Modified: 2022-09-24 08:12 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer freebsd_triage 2020-09-06 19:54:46 UTC
These four functions are all referenced by nsswitch.conf.5, but they have no man pages.  They were added back in r157779, 2006.
gethostbyaddr_r, gethostbyname_r, getnetbyaddr_r, getnetbyname_r
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-06-20 05:31:09 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=dc68997328ec6cec41ad3b818c1846c8217e0c68

commit dc68997328ec6cec41ad3b818c1846c8217e0c68
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2021-05-21 15:25:25 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-06-20 05:23:53 +0000

    getnetent(3): Add missing reentrant functions

    Add documentation for gethostbyname_r, gethostbyname2_r and gethostbyaddr_r

    Create proper MLINKs for the new functions.

    PR:     249154
    Reported by:    asomers@
    Approved by:    manpages (0mp@), Pau Amma
    Differential Revision:  https://reviews.freebsd.org/D30469

 lib/libc/net/Makefile.inc    |  7 ++++---
 lib/libc/net/gethostbyname.3 | 33 +++++++++++++++++++++++++++++++--
 2 files changed, 35 insertions(+), 5 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-06-20 05:40:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=9acb1d7b2c932c48c64345c589c0e0733c7918fd

commit 9acb1d7b2c932c48c64345c589c0e0733c7918fd
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2021-05-26 12:34:49 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-06-20 05:30:38 +0000

    getnetent(3): Add documentation for missing reentrant functions

    Add gethostbyname_r, gethostbyname2_r and gethostbyaddr_r signatures and
    descriptions.

    PR:     249154
    Reported by:    asomers@
    Approved by:    manpages (imp@), Pau Amma
    Differential Revision: https://reviews.freebsd.org/D30385

 lib/libc/net/Makefile.inc |  4 +++-
 lib/libc/net/getnetent.3  | 28 +++++++++++++++++++++++++++-
 2 files changed, 30 insertions(+), 2 deletions(-)
Comment 4 Fernando Apesteguía freebsd_committer freebsd_triage 2022-06-20 05:40:53 UTC
Fixed.

Thanks!
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-09-24 08:12:49 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=a3c3c02244f4fe4c77c034ca3846b410dbbb1091

commit a3c3c02244f4fe4c77c034ca3846b410dbbb1091
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2021-05-21 15:25:25 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2022-09-24 08:12:08 +0000

    getnetent(3): Add missing reentrant functions

    Add documentation for gethostbyname_r, gethostbyname2_r and gethostbyaddr_r

    Create proper MLINKs for the new functions.

    PR:     249154
    Reported by:    asomers@
    Approved by:    manpages (0mp@), Pau Amma
    Differential Revision:  https://reviews.freebsd.org/D30469

    (cherry picked from commit dc68997328ec6cec41ad3b818c1846c8217e0c68)

 lib/libc/net/Makefile.inc    |  7 ++++---
 lib/libc/net/gethostbyname.3 | 33 +++++++++++++++++++++++++++++++--
 2 files changed, 35 insertions(+), 5 deletions(-)