replacing getenv/setenv on Windows - ticket 2636
jhutz at cmu.edu
Thu Sep 21 19:53:55 EDT 2006
On Thursday, September 21, 2006 10:40:21 AM -0400 Jeffrey Altman
<jaltman at mit.edu> wrote:
> I would like to bring this topic back to the foreground.
> As a refresher, the Kerberos libraries and applications make
> extensive use of getenv() and setenv() for manipulating the
> environment. On Windows this is problem because the getenv
> and setenv CRT functions do not access the real environment
> of the application. Instead they manipulate a private
> implementation of environ.
Note that this is effectively what UNIX systems do as well. The
environment is not shared; it is copied from parent to child as one of the
arguemnts to execve(2).
More information about the krbdev