4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-17 03:49:46 +08:00
Corinna Vinschen 4de8596b8e Fix __getreent function for Cygwin
So far the lib function __getreent always returned _impure_ptr.  On Cygwin
this is only correct after _impure_ptr got initialized.  The inline
function in include/cygwin/config.h always returns the right _reent ptr,
though.

After introducing per-thread locales, the __getreent function is called
prior to initialization of _impure_ptr (from dll_crt0_0) to access the
locale pointer, which leads to a crash.

Fix the __getreent lib function for Cygwin to return the correct _reent
pointer all the time.  Rename inline function to __inline_getreent
and introduce a macro __getreent calling the inline function.  Change
the lib function __getreent to call __inline_getreent on Cygwin.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-08-18 10:27:14 +02:00
..
2016-08-15 10:56:58 +02:00
2016-06-25 00:43:01 +02:00
2016-06-24 23:32:39 +02:00
2016-06-24 23:32:39 +02:00
2016-06-25 00:43:01 +02:00
2015-03-03 12:58:34 +00:00
2016-06-25 00:43:01 +02:00
2016-06-24 23:32:39 +02:00
2015-11-18 19:09:47 +01:00
2016-06-25 17:08:18 +01:00
2015-08-17 11:05:43 +02:00
2016-06-23 16:56:41 +02:00
2016-06-24 23:32:39 +02:00
2016-06-23 21:30:15 +02:00
2016-06-25 00:43:01 +02:00
2016-06-23 21:30:15 +02:00
2016-03-29 13:41:11 +02:00
2016-06-24 23:32:39 +02:00
2016-06-24 23:32:39 +02:00
2016-06-24 23:32:39 +02:00
2016-07-27 17:02:08 +01:00
2016-06-23 16:56:41 +02:00
2016-07-22 09:41:23 +02:00
2016-06-24 21:00:04 +02:00
2016-06-24 21:00:04 +02:00
2016-06-24 23:33:01 +02:00