unsetenv() patch for TZ

Corinna Vinschen vinschen@redhat.com
Tue Mar 31 09:58:00 GMT 2015

On Mar 30 16:19, Craig Howland wrote:
> On 03/30/2015 03:45 PM, Corinna Vinschen wrote:
> >On Mar 30 21:30, Corinna Vinschen wrote:
> >>On Mar 30 11:38, Craig Howland wrote:
> >>>On 06/07/2013 06:23 AM, Corinna Vinschen wrote:
> >>Btw., was there some (historical?) reason that _setenv_r called tzset,
> >>and not _tzset_r?
> >
> Patch modified to call _tzset_r() instead of tzset(), to save that 1 level
> of overhead.  (Pending the general lock question.)

Original patch applied.  I didn't realize that the localtime_r function
has nothing to do with struct reent, so the call to _tzset_r is not
required.  I applied my changes to avoid multiple locking on top of


Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20150331/e427ed50/attachment.sig>

More information about the Newlib mailing list