Source-Changes archive

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

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



Module Name:    src
Committed By:   bouyer
Date:           Sat Jan 31 21:43:34 UTC 2009

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

Log Message:
Pull up following revision(s) (requested by tls in ticket #1267):
        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.87 -r1.87.2.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