clearenv for newlib

Ralf Corsepius
Sat Sep 15 07:35:00 GMT 2007

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().


More information about the Newlib mailing list