cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: [PATCH, RFC] Make hostthre.c work on POSIX

From: Yang Tse <yangsita_at_gmail.com>
Date: Thu, 12 Nov 2009 23:20:45 +0100

2009/11/12, Constantine Sapuntzakis wrote:

> > The same way as other functions check for specific function
> > capabilities, the getaddrinfo function check now will also attempt to
> > find out if it happens to be threadsafe.
>
> Looking at your recent checkin... getaddrinfo is also probably thread
> safe if gethostbyname_r exists.
> I think it would be most straightforward HAVE_GETADDRINFO_THREADSAFE
> be defined to 1 then too.

Nope, better not go that route. Each system libraries have their own
quirks, and the configure script should not make any assumtions that
jump across functions existance and capabilities. This configure
script runs on all sorts of systems new and ancient.

Take for example systems that expose all four getaddrinfo,
gethostbyname, getaddrinfo_r and gethostbyname_r, when this happens
the non *_r functions might not be threadsafe while the *_r ones are
granted to be so.

> Also, based on my casual read of libinfo, Darwin getaddrinfo should be
> thread safe back to 10.0.

Right now the script is assuming that Darwin 9.X and later have a
threadsafe getaddrinfo. Does your comment imply that there is some
Darwin 9.X version which has a thtread-UNsafe getaddrinfo ?

If this is the case can you find out which is the first Darwin version
that has threadsafe getaddrinfo?

-- 
-=[Yang]=-
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-12

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET