Fwd: Re: Will all 4 of these functions be in 3.7?
Thiago Macieira
thiago.macieira at kdemail.net
Fri Feb 11 23:27:05 GMT 2005
Dave Feustel wrote:
>---------- Forwarded Message ----------
>
>Subject: Re: Will all 4 of these functions be in 3.7?
>Date: Thursday 10 February 2005 11:05 pm
>From: "Todd C. Miller" <Todd.Miller at courtesan.com>
>To: dfeustel at mindspring.com
>Cc: misc at openbsd.org
>
>The code in OpenBSD-current for getprotobyname_r, getprotobynumber_r
>and getservbyport_r is what will appear in 3.7. We don't currently
>have a gethostbyname_r and I doubt we will by 3.7 since making the
>resolver re-entrant is a non-trivial task.
The glibc people made their resolver reentrant by using thread-local
storage for all resolver-related variables. So the global 'res' state
variable (resolv.h) is actually #defined to call a function that returns
the thread-local version.
But that begs the question: if their resolver is non-reentrant, do they
have getaddrinfo (which is mandatorily thread-safe)?
--
Thiago Macieira - thiago (AT) macieira (DOT) info
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
1. On frumscafte, hwonne time_t wæs náht, se scieppend þone circolwyrde
wundorcræftlíge cennede and seo eorðe wæs idel and hit wæs gód.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050211/b8a35b66/attachment.sig>
More information about the kde-core-devel
mailing list