Bogus putenv?
Jeff Johnston
jjohnstn@redhat.com
Thu Nov 25 09:36:00 GMT 2004
Jeff Johnston wrote:
> Ralf Corsepius wrote:
>
>> On Mon, 2004-11-22 at 14:07 -0500, Jeff Johnston wrote:
>>
>>> Ralf Corsepius wrote:
>>>
>>>> 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
>>>>
>>>>
>>>
>
> The same functionality is described by glibc. Not sure why they
> wouldn't have specified const, but regardless, we might as well be
> consistent with Single Unix and glibc. I will change this.
>
> -- Jeff J.
>
Done.
-- Jeff J.
More information about the Newlib
mailing list