diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-03-31 12:22:50 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-04-23 22:57:08 +0300 |
commit | b3a09ae34bd691c95bc41a594a40a808455d748a (patch) | |
tree | a5a692e255bbc1ee7473c4a5426e333e51858464 /newlib/ChangeLog | |
parent | c11779332651dd2f3b12f5ec48202fa7e547272b (diff) |
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>
Diffstat (limited to 'newlib/ChangeLog')
-rw-r--r-- | newlib/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 420354ef6..e615421d1 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,5 +1,13 @@ 2015-03-31 Corinna Vinschen <vinschen@redhat.com> + * 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). + +2015-03-31 Corinna Vinschen <vinschen@redhat.com> + * libc/time/local.h (_tzset_unlocked_r): Add prototype. (_tzset_unlocked): Ditto. * libc/time/tzset.c (_tzset_unlocked): New function, call |