[PATCH v2 1/3] tst-realloc: do not check for errno on success [BZ #22611]

Dmitry V. Levin ldv@altlinux.org
Fri Dec 29 12:39:00 GMT 2017


On Fri, Dec 22, 2017 at 08:30:59PM +0100, Aurelien Jarno wrote:
> POSIX explicitly says that applications should check errno only after
> failure, so the errno value can be clobbered on success as long as it
> is not set to zero.

The trailing part "as long as it is not set to zero." sounds confusing
in this context, I think "the errno value can be clobbered on success."
is good enough by itself.

The patch is fine, please commit.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20171229/6af58721/attachment.sig>


More information about the Libc-alpha mailing list