This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Adding putenv/setenv functionality to libiberty (for fixincl)
- To: "Melissa O'Neill" <oneill at cs dot sfu dot ca>
- Subject: Re: Adding putenv/setenv functionality to libiberty (for fixincl)
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Wed, 26 May 1999 04:08:26 -0600
- cc: EGCS Patches <egcs-patches at egcs dot cygnus dot com>, Bruce Korb <fixincludes at autogen dot freeservers dot com>
- Reply-To: law at cygnus dot com
In message <199905230733.AAA05379@aldrington.ppp.cs.sfu.ca>you write:
> The file gcc/fixinc/fixincl.c relies on the function putenv, which is
> not guaranteed to be available on all systems. The putenv function seems
> like a good candidate to be included in the libiberty library (certainly
> better than adding specialized code to fixincl).
>
> Enclosed is a patch to add putenv (and its cousins setenv and unsetenv)
> to libiberty. The code is taken from the glibc-2.0 library, with the
> leading `#include's slightly modified, but the remainder of the code
> unchanged (although clearenv is removed from setenv.c). I wouldn't have
> included setenv/unsetenv were it not for the fact that putenv is
> implemented in terms of setenv.
Thanks. I have installed this patch.
jeff