This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: fix strerror(0)
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Wed, 25 May 2011 21:47:40 +0200
- Subject: Re: fix strerror(0)
- References: <4DDD522C.7010105@redhat.com>
- Reply-to: newlib at sourceware dot org
On May 25 13:02, Eric Blake wrote:
> http://austingroupbugs.net/view.php?id=382 states that POSIX requires
> strerror(0) to emit a message that indicates success, and not modify
> errno to EINVAL.
>
> ---
> newlib/ChangeLog | 4 ++++
> newlib/libc/string/strerror.c | 6 ++++++
> 2 files changed, 10 insertions(+), 0 deletions(-)
>
> 2011-05-25 Eric Blake <...>
>
> * libc/string/strerror.c (_strerror_r): Report "Success" for 0.
Given the official interpretation this is a trivial fix.
Please apply.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat