delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/28/13:04:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199904281703.MAA01814@modi.xraylith.wisc.edu>
X-Authentication-Warning: modi.xraylith.wisc.edu: localhost.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol
To: Eugene Kanter <eugene AT bgs DOT com>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: putenv does not put env into win32?
In-reply-to: Your message of "Wed, 28 Apr 1999 12:22:31 EDT."
<372735C7 DOT 912BE891 AT bgs DOT com>
Date: Wed, 28 Apr 1999 12:03:42 -0500
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

Eugene Kanter <eugene AT bgs DOT com> writes:
> 
> I guess cygwin putenv() MUST call SetEnvironmentVariable() at the end. I
> see no excuses for that.

Chris/Geoffrey/DJ can comment on the reason, but I'd guess it's mostly a
performance related issue.

> Just for test, I tried to call just SetEnvironmentVariable() and it does
> not update cygwin variable. Are there the different sets of variables?

Cygwin caches the environment variables at startup by calling
GetEnvironmentStrings and then uses its local copies. Performance
again. Using cygwin_conv_* routines are rather heavy-weight.

Perhaps there is a set of env variables, such as PATH, that should always 
be kept in sync at the expense of a little performance loss? 

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019