linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 52741] New: getnameinfo man page has inappropriate text copied from getaddrinfo
@ 2013-01-15 14:50 bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r
       [not found] ` <bug-52741-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/>
  0 siblings, 1 reply; 4+ messages in thread
From: bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r @ 2013-01-15 14:50 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA

https://bugzilla.kernel.org/show_bug.cgi?id=52741

           Summary: getnameinfo man page has inappropriate text copied
                    from getaddrinfo
           Product: Documentation
           Version: unspecified
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: man-pages
        AssignedTo: documentation_man-pages-ztI5WcYan/vQLgFONoPN62D2FQJk+8+b@public.gmane.org
        ReportedBy: bigpeteb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
        Regression: No


As of release 3.43 on 2012-08-05, the man page for getnameinfo(3) contains the
following in its first paragraph:

"It combines the functionality of gethostbyaddr(3) and getservbyport(3),  but 
unlike those functions, getaddrinfo(3) is reentrant and allows programs to
eliminate IPv4-versus-IPv6 dependencies."

This text is identical to what's in getaddrinfo(3).  It seems someone copied it
but didn't rewrite it to describe the functions that getnameinfo(3) is intended
to replace.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 52741] getnameinfo man page has inappropriate text copied from getaddrinfo
       [not found] ` <bug-52741-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/>
@ 2013-01-15 19:46   ` bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r
       [not found]     ` <20130115194601.9BFD311FB6C-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r @ 2013-01-15 19:46 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA

https://bugzilla.kernel.org/show_bug.cgi?id=52741


Michael Kerrisk <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
         Resolution|                            |CODE_FIX




--- Comment #1 from Michael Kerrisk <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>  2013-01-15 19:46:01 ---
Thkanks for the report Peter.

So, it seems here were a confused references in both getnameinfo() and
getaddrinfo(). I applied the following patch.

--- a/man3/getaddrinfo.3
+++ b/man3/getaddrinfo.3
@@ -91,7 +91,7 @@ function combines the functionality provided by the
 .\" .BR getipnodebyaddr (3),
 .BR getservbyname (3)
 and
-.BR getservbyport (3)
+.BR getservbyname (3)
 functions into a single interface, but unlike the latter functions,
 .BR getaddrinfo ()
 is reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies.
diff --git a/man3/getnameinfo.3 b/man3/getnameinfo.3
index f1001cd..5bafd76 100644
--- a/man3/getnameinfo.3
+++ b/man3/getnameinfo.3
@@ -38,7 +38,7 @@ It combines the functionality of
 and
 .BR getservbyport (3),
 but unlike those functions,
-.BR getaddrinfo (3)
+.BR getnameinfo (3)
 is reentrant and allows programs to eliminate
 IPv4-versus-IPv6 dependencies.

@@ -111,7 +111,7 @@ cannot be determined.)
 If set, then the numeric form of the service address is returned.
 (When not set, this will still happen in case the service's name
 cannot be determined.)
-.SS "Extensions to getaddrinfo() for Internationalized Domain Names"
+.SS "Extensions to getnameinfo() for Internationalized Domain Names"
 .PP
 Starting with glibc 2.3.4,
 .BR getnameinfo ()

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Bug 52741] getnameinfo man page has inappropriate text copied from getaddrinfo
       [not found]     ` <20130115194601.9BFD311FB6C-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r@public.gmane.org>
@ 2013-01-25 20:13       ` David Prévot
  2013-01-25 20:46         ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 4+ messages in thread
From: David Prévot @ 2013-01-25 20:13 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 790 bytes --]

Le 15/01/2013 15:46,
bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r@public.gmane.org a écrit :
> https://bugzilla.kernel.org/show_bug.cgi?id=52741

> --- Comment #1 from Michael Kerrisk <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>  2013-01-15 19:46:01 ---
> Thkanks for the report Peter.
> 
> So, it seems here were a confused references in both getnameinfo() and
> getaddrinfo(). I applied the following patch.
> 
> --- a/man3/getaddrinfo.3
> +++ b/man3/getaddrinfo.3
> @@ -91,7 +91,7 @@ function combines the functionality provided by the
>  .\" .BR getipnodebyaddr (3),
>  .BR getservbyname (3)
>  and
> -.BR getservbyport (3)
> +.BR getservbyname (3)

That change doesn't seem right (duplicating the getservbyname(3) reference).

Regards

David



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bug 52741] getnameinfo man page has inappropriate text copied from getaddrinfo
  2013-01-25 20:13       ` David Prévot
@ 2013-01-25 20:46         ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-01-25 20:46 UTC (permalink / raw)
  To: David Prévot; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On Fri, Jan 25, 2013 at 9:13 PM, David Prévot <taffit-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org> wrote:
> Le 15/01/2013 15:46,
> bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r@public.gmane.org a écrit :
>> https://bugzilla.kernel.org/show_bug.cgi?id=52741
>
>> --- Comment #1 from Michael Kerrisk <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org>  2013-01-15 19:46:01 ---
>> Thkanks for the report Peter.
>>
>> So, it seems here were a confused references in both getnameinfo() and
>> getaddrinfo(). I applied the following patch.
>>
>> --- a/man3/getaddrinfo.3
>> +++ b/man3/getaddrinfo.3
>> @@ -91,7 +91,7 @@ function combines the functionality provided by the
>>  .\" .BR getipnodebyaddr (3),
>>  .BR getservbyname (3)
>>  and
>> -.BR getservbyport (3)
>> +.BR getservbyname (3)
>
> That change doesn't seem right (duplicating the getservbyname(3) reference).

Thanks, David.

It should of course have been "gethostbyname(3) and getservbyname(3)".
Fixed now.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-25 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-15 14:50 [Bug 52741] New: getnameinfo man page has inappropriate text copied from getaddrinfo bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r
     [not found] ` <bug-52741-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/>
2013-01-15 19:46   ` [Bug 52741] " bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r
     [not found]     ` <20130115194601.9BFD311FB6C-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r@public.gmane.org>
2013-01-25 20:13       ` David Prévot
2013-01-25 20:46         ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).