Merge pull request #4316 from mysterywolf/gettimeofday

[libc][time] 修复多处bug;增加time相关函数
This commit is contained in:
Bernard Xiong
2021-02-11 23:37:25 +08:00
committed by GitHub
2 changed files with 92 additions and 43 deletions
+3 -1
View File
@@ -48,8 +48,10 @@ struct timezone {
int tz_dsttime; /* type of dst correction */
};
int gettimeofday(struct timeval *tp, struct timezone *tz);
int stime(const time_t *t);
time_t timegm(struct tm * const t);
int gettimeofday(struct timeval *tv, struct timezone *tz);
int settimeofday(const struct timeval *tv, const struct timezone *tz);
#ifdef __cplusplus
}
File diff suppressed because it is too large Load Diff