diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2022-07-28 23:00:40 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-07-28 23:00:40 +0300 |
commit | 7f42498be6cd47e9d3d46ec82374d703e3275ddf (patch) | |
tree | 5a9645f5af3bd64039e84f76d9695e91c7741008 /winsup/cygwin/pinfo.cc | |
parent | cea26c75705b3a56b3f211bb083b8e9afe319e1c (diff) |
Cygwin: rename __cygwin_environ and drop env redirection via cur_environ()
Back in early Cygwin development a function based access to the
environment was exported, the internal environ in Cygwin was called
__cygwin_environ and cur_environ() was used to access the environment
indirectly . The history of that necessity is not documented,
but kept in i686 for backward compatibility.
The x86_64 port eventually used __cygwin_environ directly and exported
it as DATA under the usual name environ.
We don't need the i686 workaround anymore, so just rename
__cygwin_environ to environ, drop the cur_environ() macro and
simply export environ under its own name.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 832a3e6bc..2e336c1a3 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -769,7 +769,7 @@ commune_process (void *arg) { sigproc_printf ("processing PICOM_ENVIRON"); unsigned n = 0; - char **env = cur_environ (); + char **env = environ; if (env) for (char **e = env; *e; e++) n += strlen (*e) + 1; @@ -1210,7 +1210,7 @@ _pinfo::environ (size_t& n) return cr.s; } else - env = cur_environ (); + env = ::environ; if (env == NULL) return NULL; |