This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] getnameinfo: Do not restore errno on error
- From: Zack Weinberg <zackw at panix dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 8 Mar 2016 10:14:24 -0500
- Subject: Re: [PATCH] getnameinfo: Do not restore errno on error
- Authentication-results: sourceware.org; auth=none
- References: <56DEE16A dot 5010305 at redhat dot com>
On Tue, Mar 8, 2016 at 9:27 AM, Florian Weimer <fweimer@redhat.com> wrote:
> POSIX does not require it, and this behavior is not documented
> in the manual page, either.
This might be OK in the actual error case, but you're stomping on
errno in the *non*-error case too, which, even if allowed, should be
avoided as a matter of QoI.
zw