This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: clearenv for newlib
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- Cc: Newlib Mailing List <newlib at sourceware dot org>
- Date: Sat, 15 Sep 2007 07:33:18 +0200
- Subject: Re: clearenv for newlib
- References: <46EAABBF.5010705@oarcorp.com>
On Fri, 2007-09-14 at 10:41 -0500, Joel Sherrill wrote:
> Hi,
>
> I am porting a library to RTEMS that is calling clearenv().
> I am willing to implement one for newlib.
Frankly speaking, I am opposed to letting clearenv() into newlib,
because it is a non-standardized, non-documented function.
>From Linux's man-pages:
Various Unix variants (DG/UX, HP-UX, QNX, ...). POSIX.9 (bindings for
FORTRAN77). POSIX.1-1996 did not accept clearenv() and putenv(), but
changed its mind and scheduled these functions for some later issue of
this standard (cf. B.4.6.1). However, POSIX.1-2001 only adds putenv(),
and rejected clearenv().
Ralf