summaryrefslogtreecommitdiff
path: root/libc/time/gmtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/time/gmtime.c')
-rw-r--r--libc/time/gmtime.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/time/gmtime.c b/libc/time/gmtime.c
new file mode 100644
index 0000000..29907d0
--- /dev/null
+++ b/libc/time/gmtime.c
@@ -0,0 +1,15 @@
+
+#include <time.h>
+
+extern void __tm_conv();
+
+struct tm *
+gmtime(timep)
+time_t * timep;
+{
+ static struct tm tmb;
+
+ __tm_conv(&tmb, &timep, 0L);
+
+ return &tmb;
+}