diff options
| author | Florian Weimer <fweimer@redhat.com> | 2017-03-09 16:33:57 +0100 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2017-03-09 16:34:11 +0100 |
| commit | 60a91a23d61a48162f428e6031d8e2c36ca3ea9f (patch) | |
| tree | 89d4cb34531757daec7d82c9e8750fe180c4aaf6 /time/localtime.c | |
| parent | c9611e6f0e631edbc043986e3030d57e70fafb90 (diff) | |
| download | glibc-fw/bug16145.tar.xz glibc-fw/bug16145.zip | |
WIP reorganization to improve scalability of localtimefw/bug16145
Diffstat (limited to 'time/localtime.c')
| -rw-r--r-- | time/localtime.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/time/localtime.c b/time/localtime.c index 3a38cde809..2a95994c72 100644 --- a/time/localtime.c +++ b/time/localtime.c @@ -18,6 +18,7 @@ #include <time.h> #include <time/time-variables.h> +#include <time/time-private.h> /* The C Standard says that localtime and gmtime return the same pointer. */ struct tm _tmbuf; @@ -28,7 +29,7 @@ struct tm _tmbuf; struct tm * __localtime_r (const time_t *t, struct tm *tp) { - return __tz_convert (t, 1, tp); + return __tz_convert (t, /* reentrant */ true, /* localtime */ true, tp); } weak_alias (__localtime_r, localtime_r) @@ -37,6 +38,7 @@ weak_alias (__localtime_r, localtime_r) struct tm * localtime (const time_t *t) { - return __tz_convert (t, 1, &_tmbuf); + return __tz_convert (t, /* reentrant */ false, /* localtime */ true, + &_tmbuf); } libc_hidden_def (localtime) |
