Searched refs:atv (Results 1 – 3 of 3) sorted by relevance
48 struct timeval atv, oatv; in adjtime() local58 if (copyin(delta, &atv, sizeof (atv))) in adjtime()65 TIMEVAL32_TO_TIMEVAL(&atv, &atv32); in adjtime()68 if (atv.tv_usec <= -MICROSEC || atv.tv_usec >= MICROSEC) in adjtime()75 ndelta = (int64_t)atv.tv_sec * NANOSEC + atv.tv_usec * 1000; in adjtime()
42 static struct timeval32 tv_subt(struct timeval32 atv, struct timeval32 btv);300 tv_subt(struct timeval32 atv, struct timeval32 btv) in tv_subt() argument302 if ((atv.tv_usec < btv.tv_usec) && atv.tv_sec) { in tv_subt()303 atv.tv_usec += 1000000; in tv_subt()304 atv.tv_sec--; in tv_subt()306 if (atv.tv_usec > btv.tv_usec) in tv_subt()307 atv.tv_usec -= btv.tv_usec; in tv_subt()309 atv.tv_usec = 0; in tv_subt()310 if (atv.tv_sec > btv.tv_sec) in tv_subt()311 atv.tv_sec -= btv.tv_sec; in tv_subt()[all …]
166 struct timeval atv; in gettimeofday() local169 uniqtime(&atv); in gettimeofday()171 if (copyout(&atv, tp, sizeof (atv))) in gettimeofday()176 if (TIMEVAL_OVERFLOW(&atv)) in gettimeofday()178 TIMEVAL_TO_TIMEVAL32(&tv32, &atv); in gettimeofday()