support rusage parameter of wait4

refs #857
This commit is contained in:
Tomoki Shirasawa
2017-06-02 14:05:01 +09:00
committed by Balazs Gerofi
parent a66fb96cd9
commit edf059888d
2 changed files with 29 additions and 10 deletions

View File

@ -428,6 +428,11 @@ static inline void tsc_to_ts(unsigned long tsc, struct timespec *ts)
}
}
static inline unsigned long timeval_to_jiffy(const struct timeval *ats)
{
return ats->tv_sec * 100 + ats->tv_usec / 10000;
}
static inline unsigned long timespec_to_jiffy(const struct timespec *ats)
{
return ats->tv_sec * 100 + ats->tv_nsec / 10000000;