This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/3] Fix wrong assumption about errno
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Aurelien Jarno <aurelien at aurel32 dot net>, libc-alpha at sourceware dot org
- Date: Thu, 21 Dec 2017 19:28:12 -0800
- Subject: Re: [PATCH 0/3] Fix wrong assumption about errno
- Authentication-results: sourceware.org; auth=none
- References: <20171221225453.13158-1-aurelien@aurel32.net>
On 12/21/2017 02:54 PM, Aurelien Jarno wrote:
> These 3 patches fixes the wrong assumption that a successful function
> does not change errno. POSIX explicitly says that applications should
> check errno only after failure (or if the function specification
> provides additional scenarios where it has a defined value).
>
> Aurelien Jarno (3):
> tst-realloc: do not check for errno on success [BZ #22611]
> manual: clarify errno value on success [BZ #22615]
> scandir: fix wrong assumption about errno [BZ #17804]
>
> ChangeLog | 18 ++++++++++++++++++
> dirent/scandir-tail.c | 7 +++++--
> malloc/tst-realloc.c | 4 ----
> manual/errno.texi | 12 ++++++------
> 4 files changed, 29 insertions(+), 12 deletions(-)
Thank you very much for cleaning these things up.
Incremental improvements like this bring me holiday cheer :-)
--
Cheers,
Carlos.