Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-5] src/lib/libc/net

Module Name:    src
Committed By:   snj
Date:           Mon Jan 26 00:27:35 UTC 2009

Modified Files:
        src/lib/libc/net [netbsd-5]: getaddrinfo.c

Log Message:
Pull up following revision(s) (requested by tls in ticket #306):
        lib/libc/net/getaddrinfo.c: revision 1.92
Cause getaddrinfo() without socktype specification to work correctly for
numeric addresses.  The documentation appears to say this works, and some
other systems support it -- more importantly, why should it _not_ work?  If
it does not, getaddrinfo() cannot be used as a general-purpose textual to
binary address conversion utility function; yet it is the only such function
we have in the system, since inet_pton() requires a priori knowledge of the
address family.
This change also causes getaddrinfo() with NULL hint (expressly documented
as working) to work properly for numeric addresses.

To generate a diff of this commit:
cvs rdiff -r1.91 -r1.91.6.1 src/lib/libc/net/getaddrinfo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index