This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: fix perror POSIX compliance
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 24 May 2011 12:08:13 +0200
- Subject: Re: fix perror POSIX compliance
- References: <4DDAEAC3.90306@redhat.com>
- Reply-to: newlib at sourceware dot org
On May 23 17:16, Eric Blake wrote:
> * libc/string/strerror.c (strerror): Split body into...
> (_strerror_r): ...new reentrant function.
> * libc/string/u_strerr.c (_user_strerror): Update signature.
> * libc/include/stdio.h (_strerror_r): New prototype.
> * libc/posix/collate.c (__collate_err): Adjust callers.
> * libc/stdio/perror.c (_perror_r): Likewise.
> * libc/string/strerror_r.c (strerror_r): Likewise.
> * libc/string/xpg_strerror_r.c (__xpg_strerror_r): Likewise.
Looks good to me. It build and runs for me on Cygwin. You did test it,
also with the newlib strerror and strerror_r functions, right? If so,
please apply.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat