Support for setitimer(ITIMER_REAL).

This commit is contained in:
David van Moolenbroek
2009-08-15 16:09:32 +00:00
parent 062bb2c1e8
commit d82e260a90
20 changed files with 449 additions and 111 deletions

View File

@@ -24,4 +24,19 @@ int gettimeofday(struct timeval *_RESTRICT tp, void *_RESTRICT tzp);
/* Compatibility with other Unix systems */
int settimeofday(const struct timeval *tp, const void *tzp);
/* setitimer/getitimer interface */
struct itimerval
{
struct timeval it_interval;
struct timeval it_value;
};
#define ITIMER_REAL 0
#define ITIMER_VIRTUAL 1 /* Not implemented */
#define ITIMER_PROF 2 /* Not implemented */
int getitimer(int which, struct itimerval *value);
int setitimer(int which, const struct itimerval *_RESTRICT value,
struct itimerval *_RESTRICT ovalue);
#endif /* _SYS__TIME_H */