This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Adding putenv/setenv functionality to libiberty (for fixincl)



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]