bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: Re: error.c: "Unknown system error" should report errno value


From: Eric Blake
Subject: Re: Fwd: Re: error.c: "Unknown system error" should report errno value
Date: Sat, 29 Sep 2007 11:27:29 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Martin Koeppe on 9/26/2007 7:02 PM:

Hi Martin,

>> rather than patching error.c, I went with the option of fixing Interix's
>> non-POSIX strerror instead (C99 and POSIX require strerror to always
>> return non-NULL, even on failure).  Perhaps you can give it a spin, since
>> I don't have an Interix environment set up?
> 
> Wait with the change! I just tested strerror() and strerror_r() on
> Interix, and they already report "Unknown error: 4294967294" for e.g.
> -2. Sorry.

Does the test-strerror.c program pass without the use of a replacement?
If so, then maybe the easiest thing is to just delete the strerror module,
under the assumption that it is portable after all for modern hosts.

> 
> While trying to debug this I noticed the missing translation from errno
> -1. But I now think it is probably a memory corruption issue or
> something like that, so that strerror()/strerror_r() gets confused, too.
> 
> Sorry for the inconvenience.

That's okay.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG/osB84KuGfSFAYARAs3pAJ46YQtz5r1OGebRKAfCslwom+DpSwCg1pSb
q+pQtUzlLJTo4FO+r150OcE=
=5/rJ
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]