summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarmink <[email protected]>2018-02-16 20:48:37 +0800
committerarmink <[email protected]>2018-02-16 20:48:37 +0800
commit9c620cb2f18fdf287302a7b4091046ce717891e6 (patch)
treedd7bd94ab20f669ccde8749ac68d494fef3d310c
parent0c4922becbbc8b0eb63c4a5bbb3ae4b749eccd24 (diff)
[Libc][Minilibc] Add some function declaration to time.h .
-rw-r--r--components/libc/compilers/minilibc/time.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/libc/compilers/minilibc/time.h b/components/libc/compilers/minilibc/time.h
index 2f8ad23c71..d64feba0b8 100644
--- a/components/libc/compilers/minilibc/time.h
+++ b/components/libc/compilers/minilibc/time.h
@@ -3,4 +3,14 @@
#include <sys/time.h>
+time_t mktime(struct tm * const t);
+
+char *asctime(const struct tm *timeptr);
+char *ctime(const time_t *timep);
+struct tm* localtime(const time_t* t);
+
+char *asctime_r(const struct tm *t, char *buf);
+struct tm *gmtime_r(const time_t *timep, struct tm *r);
+struct tm* localtime_r(const time_t* t, struct tm* r);
+
#endif