Adding putenv/setenv functionality to libiberty (for fixincl)

Jeffrey A Law law@upchuck.cygnus.com
Wed May 26 03:14:00 GMT 1999


  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


More information about the Gcc-patches mailing list