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/common.din | |
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/common.din')
-rw-r--r-- | winsup/cygwin/common.din | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/common.din b/winsup/cygwin/common.din index 751ab3754..afcb71725 100644 --- a/winsup/cygwin/common.din +++ b/winsup/cygwin/common.din @@ -18,6 +18,7 @@ _sys_errlist DATA _sys_nerr DATA _timezone DATA _tzname DATA +environ DATA error_message_count DATA error_one_per_line DATA error_print_progname DATA |