diff --git a/headers/posix/time.h b/headers/posix/time.h index edd2d81b7e..29dee63cbc 100644 --- a/headers/posix/time.h +++ b/headers/posix/time.h @@ -10,6 +10,8 @@ typedef long clock_t; typedef long time_t; +typedef long suseconds_t; +typedef long useconds_t; #define CLOCKS_PER_SEC 1000 #define CLK_TCK CLOCKS_PER_SEC @@ -17,6 +19,16 @@ typedef long time_t; #define MAX_TIMESTR 70 /* maximum length of a string returned by asctime(), and ctime() */ +struct timespec { + time_t tv_sec; /* seconds */ + long tv_nsec; /* and nanoseconds */ +}; + +struct itimerspec { + struct timespec it_interval; + struct timespec it_value; +}; + struct tm { int tm_sec; int tm_min;