itimerfix - check that a timeval value is valid, and correct
#include <sys/time.h>
int
itimerfix(struct timeval *tv);
The itimerfix function checks that the value in tv is valid (0 <=
tv->tv_sec 0 <= tv->tv_usec < 1000000), and that the total time represented
is at least tick.
If it is smaller, then it is adjusted to tick.
itimerfix returns 0 on success or EINVAL if tv is invalid.
nanosleep(2), poll(2), select(2), setitimer(2)
BSD November 23, 2001 BSD
[ Back ] |