diff options
| author | Bernard Xiong <[email protected]> | 2021-02-11 23:37:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-11 23:37:25 +0800 |
| commit | a4dd106d49667aed3ca5e7a7fa3ef8f650070f45 (patch) | |
| tree | 9150992340323657482d81a2bedd9497e9d429ab /components/libc/compilers/common/sys | |
| parent | ff9ef1a5276432e1f37d8f28e0381c2b7ec9176f (diff) | |
| parent | ce4fabe158a9b0367712a4afe904b5d6d7da9f78 (diff) | |
Merge pull request #4316 from mysterywolf/gettimeofday
[libc][time] 修复多处bug;增加time相关函数
Diffstat (limited to 'components/libc/compilers/common/sys')
| -rw-r--r-- | components/libc/compilers/common/sys/time.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index e99fd7d54f..599b8b5262 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -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 } |
