cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Error messages for threaded resolver

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 27 Apr 2011 13:25:12 +0200 (CEST)

On Tue, 26 Apr 2011, Guenter wrote:

> NetWare doesnt have gai_strerror(), and I believe a couple more platforms
> dont have it - just take a look at f.e. PostgreSQL where they provide an own
> implementation for platforms which lack of it.

Right, the functionality is ridiculously simple as there's only 10 documented
error codes in POSIX...

> Also the Windows implementation is not thread-safe;

Given an error code the function should return a fixed string and they manage
to do that not thread-safe? Amazing...

I took Jeff's original patch and your feedback and ended up the following two
patches. Comments?

-- 
  / daniel.haxx.se



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

Received on 2011-04-27