ntp_gettime man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

NTP_GETTIME(2)							NTP_GETTIME(2)

NAME
       ntp_gettime - get local clock values

SYNOPSIS
       #include <sys/timex.h>

       int ntp_gettime(struct ntptimeval *tptr);

DESCRIPTION
       The  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 VALUES
       Upon successful completion, ntp_gettime()  returns  the	current	 clock
       state  (see  <sys/timex.h>). Otherwise, it returns −1 and sets errno to
       indicate the error.

ERRORS
       The 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 number of seconds.

SEE ALSO
       ntp_adjtime(2)

       See the ntpd man page, delivered in the SUNWntpu package (not  a	 SunOS
       man page).

				 May 21, 2009			NTP_GETTIME(2)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net