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   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to