OSDN Git Service

change getaddrinfo() implementation to match GLibc.
authorDavid 'Digit' Turner <digit@google.com>
Tue, 5 May 2009 13:50:24 +0000 (15:50 +0200)
committerDavid 'Digit' Turner <digit@google.com>
Tue, 5 May 2009 13:50:24 +0000 (15:50 +0200)
commit5e563700380eade647f347669ea61dbb0ede9814
tree739599d59b328c4f0880196f0d57f0d7c7f3a0f0
parent85a01ffba337b123436f57eba4daae38c7c90d1e
change getaddrinfo() implementation to match GLibc.

the issue is that the BSD implementation doesn't accept a call like:

  getaddrinfo(SERVER_NAME, "9999", NULL, &res);

because if will reject a numerical string in the second parameter if no hints are explicitely
provided. This technically doesn't violate POSIX but might make porting Linux software a bit
difficult. For more details see:

http://groups.google.com/group/android-ndk/browse_thread/thread/818ab9c53f24c87

also comment debugging printf() calls which shouldn't be there.
libc/netbsd/net/getaddrinfo.c