summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/time/gmtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/time/gmtime.c')
-rw-r--r--libc-top-half/musl/src/time/gmtime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/time/gmtime.c b/libc-top-half/musl/src/time/gmtime.c
new file mode 100644
index 0000000..6320b63
--- /dev/null
+++ b/libc-top-half/musl/src/time/gmtime.c
@@ -0,0 +1,8 @@
+#include "time_impl.h"
+#include <errno.h>
+
+struct tm *gmtime(const time_t *t)
+{
+ static struct tm tm;
+ return __gmtime_r(t, &tm);
+}