This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Bogus putenv?
- From: Ralf Corsepius <ralf_corsepius at rtems dot org>
- To: Newlib List <newlib at sources dot redhat dot com>
- Date: Mon, 22 Nov 2004 16:03:31 +0100
- Subject: Bogus putenv?
Hi,
newlib's stdlib.h declares
int putenv( const char* );
According to SUSv3, Linux and Solaris, this should be (without const)
int putenv( char* );
FreeBSD, however has the same declaration as newlib (with const).
At least I am in favor of following SUSv3 and to ignore BSD's behaviour,
i.e. I vote for changing newlib's putenv to match with SUSv3.
Ralf