This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unsetenv() patch for TZ


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
that.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgpnw30Tokqc4.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]