bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 3/3] perror: work around FreeBSD bug


From: Eric Blake
Subject: Re: [PATCH 3/3] perror: work around FreeBSD bug
Date: Tue, 24 May 2011 13:23:16 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 05/20/2011 11:59 AM, Eric Blake wrote:
> POSIX requires that 'errno = 0; perror ("")' print the same message
> as strerror(0), but this failed if we were replacing strerror to work
> around the FreeBSD bug of treating 0 as a failure.
> 
> * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
> is broken.  Move AC_LIBOBJ...
> * modules/perror (configure.ac): Here.
> * doc/posix-functions/perror.texi (perror): Document this.
> * tests/test-perror2.c (main): Enhance test.

This patch is incomplete - I'm still seeing perror failures on at least
AIX and Irix, due to strerror_r but not perror being replaced.  I'm not
quite sure of the right m4 fix to make, but hopefully I can fix this
soon (first, though, I plan on completing my strerror_r work).

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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