curl-library
Re: Error messages for threaded resolver
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
- TEXT/x-diff attachment: 0002-gai_strerror-provide-private-implementation.patch
- TEXT/x-diff attachment: 0001-treaded-resolver-better-error-messages.patch