|
̾??ntp_gettime —
NTP
?桼?????ץꥱ???????ե?????
????<sys/timex.h>
int
ntp_gettime (struct ntptimeval
*ntv)
????ntp_gettime ()
?ˤ??ä??֤??????????ϡ?
timespec
??¤?Τ˳?Ǽ?????ޤ??????ޥ???????
(?äȥޥ???????) ?ޤ??? ?ʥ???
(?äȥʥ???)
?Τɤ??餫?η????Ǥ??뤳?Ȥ??Ǥ??ޤ???
??????????ͭ?η????ϡ? ntp_adjtime ()
?????ƥॳ?????ˤ??ä??֤????? status
??ɤ? STA_NANO
?ӥåȤˤ??äƷ??ꤵ???ޤ???
ntp_gettime ()
?ϰʲ??Υ????Ф????? ntptimeval
??¤?ΤؤΥݥ????????Ȥ??ƻ????ޤ?:
struct ntptimeval { struct timespec time; /* ???ߤλ??? (ns) (ro) */ long maxerror; /* ???????? (us) (ro) */ long esterror; /* ???????? (us) (ro) */ long tai; /* TAI-UTC ???ե??å? */ int time_state; /* ???־??? */ }; ???????ϰʲ??Τ褦???????ޤ?:
??????Thentp_gettime () function returns the value 0 if
successful; otherwise the value -1 is returned and the global variable
errno is set to indicate the error.
?????ꤦ?륯???å??ξ??֤ϰʲ??ΤȤ????Ǥ?: ??Ϣ????ntp_adjtime(2), ntpd(8)
???????Υޥ˥奢???ڡ????? Tom Rhodes ⟨trhodes@FreeBSD.org⟩ ???ޤ?????
Visit the GSP FreeBSD Man Page Interface. |