Searched refs:atv (Results 1 – 3 of 3) sorted by relevance
46 struct timeval atv, oatv; in adjtime() local56 if (copyin(delta, &atv, sizeof (atv))) in adjtime()63 TIMEVAL32_TO_TIMEVAL(&atv, &atv32); in adjtime()66 if (atv.tv_usec <= -MICROSEC || atv.tv_usec >= MICROSEC) in adjtime()73 ndelta = (int64_t)atv.tv_sec * NANOSEC + atv.tv_usec * 1000; in adjtime()
40 static struct timeval32 tv_subt(struct timeval32 atv, struct timeval32 btv);298 tv_subt(struct timeval32 atv, struct timeval32 btv) in tv_subt() argument300 if ((atv.tv_usec < btv.tv_usec) && atv.tv_sec) { in tv_subt()301 atv.tv_usec += 1000000; in tv_subt()302 atv.tv_sec--; in tv_subt()304 if (atv.tv_usec > btv.tv_usec) in tv_subt()305 atv.tv_usec -= btv.tv_usec; in tv_subt()307 atv.tv_usec = 0; in tv_subt()308 if (atv.tv_sec > btv.tv_sec) in tv_subt()309 atv.tv_sec -= btv.tv_sec; in tv_subt()[all …]
167 struct timeval atv; in gettimeofday() local170 uniqtime(&atv); in gettimeofday()172 if (copyout(&atv, tp, sizeof (atv))) in gettimeofday()177 if (TIMEVAL_OVERFLOW(&atv)) in gettimeofday()179 TIMEVAL_TO_TIMEVAL32(&tv32, &atv); in gettimeofday()