aboutsummaryrefslogtreecommitdiff
path: root/time/gmtime.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-03-09 16:33:57 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-03-09 16:34:11 +0100
commit60a91a23d61a48162f428e6031d8e2c36ca3ea9f (patch)
tree89d4cb34531757daec7d82c9e8750fe180c4aaf6 /time/gmtime.c
parentc9611e6f0e631edbc043986e3030d57e70fafb90 (diff)
downloadglibc-fw/bug16145.tar
glibc-fw/bug16145.tar.gz
glibc-fw/bug16145.tar.bz2
glibc-fw/bug16145.zip
WIP reorganization to improve scalability of localtimefw/bug16145
Diffstat (limited to 'time/gmtime.c')
-rw-r--r--time/gmtime.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/time/gmtime.c b/time/gmtime.c
index 1fc129b8e8..8a4a0a4f28 100644
--- a/time/gmtime.c
+++ b/time/gmtime.c
@@ -18,13 +18,14 @@
#include <time.h>
#include <time/time-variables.h>
+#include <time/time-private.h>
/* Return the `struct tm' representation of *T in UTC,
using *TP to store the result. */
struct tm *
__gmtime_r (const time_t *t, struct tm *tp)
{
- return __tz_convert (t, 0, tp);
+ return __tz_convert (t, /* reentrant */ true, /* localtime */ false, tp);
}
libc_hidden_def (__gmtime_r)
weak_alias (__gmtime_r, gmtime_r)
@@ -34,5 +35,6 @@ weak_alias (__gmtime_r, gmtime_r)
struct tm *
gmtime (const time_t *t)
{
- return __tz_convert (t, 0, &_tmbuf);
+ return __tz_convert (t, /* reentrant */ false, /* localtime */ false,
+ &_tmbuf);
}