浏览代码

[Libc][Minilibc] Add some function declaration to time.h .

armink 7 年之前
父节点
当前提交
9c620cb2f1
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      components/libc/compilers/minilibc/time.h

+ 10 - 0
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