Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-07-17 00:06:11 +0400
committerChristopher Faylor <me@cgf.cx>2000-07-17 00:06:11 +0400
commit0763ee9d8324d1a0c1a26057e90719f21a13e826 (patch)
tree07a632e5bb42d0861cb409860f8014246229836f /winsup/cygwin/winsup.h
parentb4e59f5f1419800d7a2248d3721a9db88e80d4d8 (diff)
* 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.h4
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;