diff options
author | Christopher Faylor <me@cgf.cx> | 2000-07-16 20:06:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-07-16 20:06:11 +0000 |
commit | 0763ee9d8324d1a0c1a26057e90719f21a13e826 (patch) | |
tree | 07a632e5bb42d0861cb409860f8014246229836f /winsup/cygwin/winsup.h | |
parent | b4e59f5f1419800d7a2248d3721a9db88e80d4d8 (diff) | |
download | cygnal-0763ee9d8324d1a0c1a26057e90719f21a13e826.tar.gz cygnal-0763ee9d8324d1a0c1a26057e90719f21a13e826.tar.bz2 cygnal-0763ee9d8324d1a0c1a26057e90719f21a13e826.zip |
* environ.cc: Use new definition of "environ" throughout.
(environ_init): Explicitly initialize __cygwin_environ.
(cur_environ): New function. Detects when user has updated their environment.
* exec.cc: Use 'environ' define throughout rather than __cygwin_environ.
* spawn.cc: Ditto.
* winsup.h: Declare cur_environ, main_environ, environ.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 5a1ff2ff1..4141aa74c 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -477,7 +477,9 @@ win_env * __stdcall getwinenv (const char *name, const char *posix = NULL); void __stdcall update_envptrs (); char * __stdcall winenv (const char * const *, int); -extern char **__cygwin_environ; +extern char **__cygwin_environ, ***main_environ; +extern char __stdcall **cur_environ (); +#define environ (cur_environ ()) /* The title on program start. */ extern char *old_title; |