Home
last modified time | relevance | path

Searched refs:ntv (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/syscall/
H A Dntptime.c77 struct ntptimeval ntv; in ntp_gettime() local
83 ntv.time.tv_sec = tod.tv_sec; in ntp_gettime()
84 ntv.time.tv_usec = tod.tv_nsec / (NANOSEC / MICROSEC); in ntp_gettime()
85 ntv.maxerror = time_maxerror; in ntp_gettime()
86 ntv.esterror = time_esterror; in ntp_gettime()
89 if (copyout(&ntv, tp, sizeof (ntv))) in ntp_gettime()
94 if (TIMEVAL_OVERFLOW(&ntv.time)) in ntp_gettime()
97 TIMEVAL_TO_TIMEVAL32(&ntv32.time, &ntv.time); in ntp_gettime()
99 ntv32.maxerror = ntv.maxerror; in ntp_gettime()
100 ntv32.esterror = ntv.esterror; in ntp_gettime()
[all …]
/illumos-gate/usr/src/cmd/truss/
H A Dexpound.c4019 struct ntptimeval ntv; in show_ntp_gettime() local
4026 if (Pread(Proc, &ntv, sizeof (ntv), offset) in show_ntp_gettime()
4027 != sizeof (ntv)) in show_ntp_gettime()
4036 TIMEVAL32_TO_TIMEVAL(&ntv.time, &ntv32.time); in show_ntp_gettime()
4037 ntv.maxerror = ntv32.maxerror; in show_ntp_gettime()
4038 ntv.esterror = ntv32.esterror; in show_ntp_gettime()
4042 ntv.time.tv_sec, ntv.time.tv_usec); in show_ntp_gettime()
4043 (void) printf("\tmaxerror: %11d usec\n", ntv.maxerror); in show_ntp_gettime()
4044 (void) printf("\testerror: %11d usec\n", ntv.esterror); in show_ntp_gettime()