Bug 225880 - wrong structure addrinfo description in man getaddrinfo page
Summary: wrong structure addrinfo description in man getaddrinfo page
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Sergey Kandaurov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-14 06:49 UTC by Valery Savchuk
Modified: 2019-03-06 11:07 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 Valery Savchuk 2018-02-14 06:49:50 UTC
Structure addrinfo description in "man getaddrinfo" page does not match with /usr/include/netdb.h - ai_addr and ai_commonname swithed each other.

Looks like man page was copied from Linux.
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-02-10 19:08:48 UTC
A commit references this bug:

Author: pluknet
Date: Sun Feb 10 19:07:47 UTC 2019
New revision: 343967
URL: https://svnweb.freebsd.org/changeset/base/343967

Log:
  Sync "struct addrinfo" declaration with netdb.h.

  Notably, unlike in OpenBSD, which the man page was copied from,
  ai_canonname and ai_addr come in different order.

  PR:		225880
  MFC after:	1 week

Changes:
  head/lib/libc/net/getaddrinfo.3
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-02-20 11:59:03 UTC
A commit references this bug:

Author: pluknet
Date: Wed Feb 20 11:58:41 UTC 2019
New revision: 344358
URL: https://svnweb.freebsd.org/changeset/base/344358

Log:
  MFC r343967:
  Sync "struct addrinfo" declaration with netdb.h.

  PR:		225880

Changes:
_U  stable/12/
  stable/12/lib/libc/net/getaddrinfo.3