cvs commit: src/include netdb.h resolv.h src/lib/libc/include reentrant.h src/lib/libc/net getaddrinfo.3 getaddrinfo.c gethostbydns.c gethostbyname.3 gethostbynis.c getipnodebyname.3 herror.c name6.c res_init.c res_send.c res_send_private.h ...

Brian F. Feldman green at FreeBSD.org
Wed Feb 25 13:13:26 PST 2004


Brian Feldman <green at FreeBSD.org> wrote:
>   Make the resolver(3) and many associated interfaces much more reentrant.
>   The getaddrinfo(3), getipnodebyname(3) and resolver(3) can coincide now
>   with what should be totally reentrant, and h_errno values will now
>   be preserved correctly, but this does not affect interfaces such as
>   gethostbyname(3) which are still mostly non-reentrant.

Geez, I certainly hope no English teachers ever see that paragraph.

This has been tested by several other -CURRENT users with no issues, so be 
certain to report any as they come up.  There shouldn't be much software 
which has to be recompiled, outside of the base system.  The resolver(3) 
interface is not very portable, so usage of the _res structure should be 
relatively rare, and threaded programs should already be using 
getaddrinfo(3) and getting error returns via that API, and not via
h_errno.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green at FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\




More information about the cvs-src mailing list