[Top][All Lists]

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

Re: [PATCH] strerror_r: simplify AIX code.

From: Eric Blake
Subject: Re: [PATCH] strerror_r: simplify AIX code.
Date: Fri, 20 May 2011 17:27:00 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 05/20/2011 05:21 PM, Eric Blake wrote:
> But both errors are allowed by POSIX, and we have the case that glibc's
> __xpg_strerror_r favors EINVAL while cygwin's _xpg_strerror_r favors
> ERANGE.  The testsuite tests for both codes, because there is no
> heirarchy in POSIX on which error code if more than one error code
> simultaneously applies.

One more point - if http://austingroupbugs.net/view.php?id=398 is
approved, then ERANGE will be changed to a shall fail while EINVAL
remains only a may fail (right now, both errors are only a 'may fail',
but we are doing users a disservice by truncating without an error).  In
my mind, a 'shall fail' tends to have higher priority than a 'may fail',
even when both situations apply.

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]