Support for setitimer(ITIMER_REAL).
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user