]> sourceware.org Git - newlib-cygwin.git/commit
Avoid excessive locking and calling tzset in time functions.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 31 Mar 2015 09:22:50 +0000 (11:22 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 31 Mar 2015 09:22:50 +0000 (11:22 +0200)
commit70399a721cced0c702f6cfe8a08fb9dae45aa18f
tree44c800edc844c68932da1f642f7a7d91131bf8d8
parent5f4e1e895cf92b25ff59de19215ce41eca5b15a0
Avoid excessive locking and calling tzset in time functions.

* libc/time/lcltime_r.c (localtime_r): Call _tzset_unlocked inside
TZ lock.
* libc/time/mktime.c (mktime):  Ditto.
* libc/time/strftime.c (strftime, wcsftime): Ditto.  Guard against
calling _tzset_unlocked more than once (baring recursion).

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
newlib/ChangeLog
newlib/libc/time/lcltime_r.c
newlib/libc/time/mktime.c
newlib/libc/time/strftime.c
This page took 0.032501 seconds and 5 git commands to generate.