diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-11 20:23:34 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-11 20:23:34 +0200 |
commit | 464763202be7bdafa703c8c2ecfe1f4a5142f26f (patch) | |
tree | 76487fcd0124776ac366efb1bbcb4b408aea46a9 /sys/src/ape/lib/9/ctime.c | |
parent | 21aee5d8cbd1ebae796cdc58404b8d8902738370 (diff) |
ape: add libauth, libbio, libmp and libsec as replacements for openssl
Diffstat (limited to 'sys/src/ape/lib/9/ctime.c')
-rw-r--r-- | sys/src/ape/lib/9/ctime.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/src/ape/lib/9/ctime.c b/sys/src/ape/lib/9/ctime.c new file mode 100644 index 000000000..d8cdcef4c --- /dev/null +++ b/sys/src/ape/lib/9/ctime.c @@ -0,0 +1,22 @@ +#include "libc.h" + +#undef gmtime + +Tm* +_gmtime(time_t t) +{ + static Tm r; + struct tm *p; + + p = gmtime(&t); + r.sec = p->tm_sec; + r.min = p->tm_min; + r.hour = p->tm_hour; + r.mday = p->tm_mday; + r.mon = p->tm_mon; + r.year = p->tm_year; + r.wday = p->tm_wday; + r.yday = p->tm_yday; + strcpy(r.zone, "GMT"); + return &r; +} |