freebsd-skq/lib/libc/include
green 40452493ee 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.

In all of these relevant functions, the thread-safety has been pushed
down as far as it seems possible right now.  This means that operations
that are selected via nsdispatch(3) (i.e. files, yp, dns) are protected
still under global locks that getaddrinfo(3) defines, but where possible
the locking is greatly reduced.  The most noticeable improvement is
that multiple DNS lookups can now be run at the same time, and this
shows major improvement in performance of DNS-lookup threaded programs,
and solves the "Mozilla tab serialization" problem.

No single-threaded applications need to be recompiled.  Multi-threaded
applications that reference "_res" to change resolver(3) options will
need to be recompiled, and ones which reference "h_errno" will also
if they desire the correct h_errno values.  If the applications already
understood that _res and h_errno were not thread-safe and had their own
locking, they will see no performance improvement but will not
actually break in any way.

Please note that when NSS modules are used, or when nsdispatch(3)
defaults to adding any lookups of its own to the individual libc
_nsdispatch() calls, those MUST be reentrant as well.
2004-02-25 21:03:46 +00:00
..
fpmath.h Add a delta accidentally omitted from the previous commit: 2004-01-18 08:05:21 +00:00
libc_private.h Remove #include of spinlock.h from libc_private.h. Declare spinlocks as 2003-11-05 18:17:30 +00:00
namespace.h Back out the `hiding' of strlcpy and strlcat. Several people 2003-05-01 19:03:14 +00:00
nss_tls.h Correct a bug that was somehow both obvious and hard-to-see. :-) 2003-04-21 15:44:25 +00:00
reentrant.h Make the resolver(3) and many associated interfaces much more reentrant. 2004-02-25 21:03:46 +00:00
spinlock.h Remove #include of spinlock.h from libc_private.h. Declare spinlocks as 2003-11-05 18:17:30 +00:00
un-namespace.h Back out the `hiding' of strlcpy and strlcat. Several people 2003-05-01 19:03:14 +00:00