Query: ntp_gettime
OS: sunos
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ntp_gettime(2) System Calls ntp_gettime(2)NAMEntp_gettime - get local clock valuesSYNOPSIS#include <sys/timex.h> int ntp_gettime(struct ntptimeval *tptr);DESCRIPTIONThe ntp_gettime() function reads the local clock value and dispersion, returning the information in tptr. The ntptimeval structure contains the following members: struct ntptimeval { struct timeval time; /* current time (ro) */ int32_t maxerror; /* maximum error (us) (ro) */ int32_t esterror; /* estimated error (us) (ro) */ };RETURN VALUESUpon successful completion, ntp_gettime() returns the current clock state (see <sys/timex.h>). Otherwise, it returns -1 and sets errno to indicate the error.ERRORSThe ntp_gettime() function will fail if: EFAULT The tptr argument points to an invalid address. The ntp_gettime() function will fail for 32-bit interfaces if: EOVERFLOW The size of the time.tv_sec member of the ntptimeval structure pointed to by tptr is too small to contain the correct num- ber of seconds.SEE ALSOxntpd(1M), ntp_adjtime(2) SunOS 5.10 9 Nov 1999 ntp_gettime(2)
Related Man Pages |
---|
ntp_gettime(2) - opensolaris |
ntp_adjtime(2) - sunos |
ntp_gettime(3) - linux |
ntp_gettime(3) - php |
ntp_gettime(3) - osx |
Similar Topics in the Unix Linux Community |
---|
Solaris NTP client |
NTP sync problem |
C terminal commands |
NTP synchronised problem in our Centos 7.6 node |