How to use __DYNAMIC_REENT__ correctly in multithreaded applications ?

Tue Aug 19 07:19:00 GMT 2003

At 17.10 18/08/2003, Thomas Pfaff wrote:
>some time ago i have added a __DYNAMIC_REENT__ to the cygwin part of 
>config.h. The main purpose was to get thread safe errnos (without this 
>define errno is stored process global in _impure_ptr).

it's a problem in newlib' design that I've noted too. It has a single 
reentrancy structure, while it would need at least two (global and thread-local)

More information about the Newlib mailing list