cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: hostthre.c on POSIX

From: Constantine Sapuntzakis <csapuntz_at_gmail.com>
Date: Mon, 25 Jan 2010 10:07:41 -0800

> Few notes:
>
> - gethostbyname_r is not thread safe on all systems :-(
>
> - gethostbyname/gethostbyaddr are reported to be thread-safe on
> 32/64-bit Windows, AIX 4.3 and HP-UX 11. They use per-thread storage
> for the returned structure.
>
> - DragonFly: The test for DragonFly BSD is unsafe, because it sets
> have_threadsafe_resolver=yes on versions of DragonFly where it is
> not safe. If you don't know what version, there is no safe version.
>
>
Thanks for the details! The patch attached uses the test Yang put in to
curl-functions.m4 instead.

-Costa

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-01-25