cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: sys_nerr warning

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 5 Apr 2004 10:36:08 +0200 (CEST)

On Sun, 4 Apr 2004, Joe Halpin wrote:

> > I could almost have guessed this. So we need to rewrite the
> > Curl_strerror() function to avoid using 'sys_nerr' to avoid having to
> > check for it with yet another configure test. At least for non-Windows
> > platforms.
>
> Maybe testing for implementations of strerror() that don't check the value
> passed to it would be easier? After Googling around a bit I get the
> impression that only older systems are guilty of that.

I'm not sure we need to do that. We can just document that Curl_strerror()
must only be called with an actual 'errno' variable, and then I think we can
expect the strerror() (or replacement) function to deal with it nicely.

Or have I had too little coffee?

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-04-05