summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/sys
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-08 00:56:31 +0800
committerMeco Man <[email protected]>2021-02-08 00:56:31 +0800
commit6c7dd305329602611aba93772357aa5a394a3a6e (patch)
tree7c9e3fcb7802500aed14464cc570b95bc3f84e50 /components/libc/compilers/common/sys
parent4c6962436ae8a89252c397dffac4b865f5cb663f (diff)
add function settimeofday & stime
Diffstat (limited to 'components/libc/compilers/common/sys')
-rw-r--r--components/libc/compilers/common/sys/time.h4
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
}