This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [patch] eliminate use-cases of obsolete functions
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 23 Aug 2011 12:55:20 +0200
- Subject: Re: [patch] eliminate use-cases of obsolete functions
- References: <4E5335F6.7020603@rtems.org>
- Reply-to: newlib at sourceware dot org
On Aug 23 07:09, Ralf Corsepius wrote:
> Hi,
>
> The patch below is aiming at eliminating two use-cases of functions
> POSIX has declared obsolete.
>
> Ralf
>
> NB.: I am not sure, if using memcpy instead of bcopy is correct or
> if this bcopy should better be replaced with memmove, because I
> don't know if setenv_r's src/dst memory areas may overlap or not.
> 2011-08-23 Ralf Cors??pius <...>
>
> * libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index".
> * libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".
Excellent. Please go ahead.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat