Added struct timespec, and struct itimerspec to time.h.

Added missing typedefs (suseconds_t, useconds_t).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1737 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-10-28 18:36:26 +00:00
parent d068515fcb
commit f647a9d57c

View File

@ -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;