diff --git a/components/libc/compilers/minilibc/sys/types.h b/components/libc/compilers/minilibc/sys/types.h index 7f27de468f480d88bb0bde8d0d110ad875f11616..cdd17e600dedd10432065309719a29322b2e258c 100644 --- a/components/libc/compilers/minilibc/sys/types.h +++ b/components/libc/compilers/minilibc/sys/types.h @@ -15,6 +15,8 @@ typedef int mode_t; typedef unsigned long clockid_t; typedef int pid_t; +typedef unsigned long clock_t; /* clock() */ + #ifndef NULL #define NULL (0) #endif diff --git a/components/libc/compilers/minilibc/time.h b/components/libc/compilers/minilibc/time.h index 2f8ad23c7173e01640eb10557c2083e1d4c0754f..d64feba0b8af639bb6eb92b4aa0febc7e5c9611d 100644 --- a/components/libc/compilers/minilibc/time.h +++ b/components/libc/compilers/minilibc/time.h @@ -3,4 +3,14 @@ #include +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