From 7f42498be6cd47e9d3d46ec82374d703e3275ddf Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 28 Jul 2022 22:00:40 +0200 Subject: 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 --- winsup/cygwin/common.din | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/common.din') 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 -- cgit v1.2.3