1 /* $NetBSD: timex.h,v 1.1.68.2 2008/03/30 20:55:35 christos Exp $ */
4 ***********************************************************************
6 * Copyright (c) David L. Mills 1993-2001 *
8 * Permission to use, copy, modify, and distribute this software and *
9 * its documentation for any purpose and without fee is hereby *
10 * granted, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission *
12 * notice appear in supporting documentation, and that the name *
13 * University of Delaware not be used in advertising or publicity *
14 * pertaining to distribution of the software without specific, *
15 * written prior permission. The University of Delaware makes no *
16 * representations about the suitability this software for any *
17 * purpose. It is provided "as is" without express or implied *
20 **********************************************************************/
21 #ifndef _COMPAT_SYS_TIMEX_H_
22 #define _COMPAT_SYS_TIMEX_H_ 1
24 #include <compat/sys/time.h>
26 * NTP user interface (ntp_gettime()) - used to read kernel clock values
28 * Note: The time member is in microseconds if STA_NANO is zero and
32 struct timespec50 time
; /* current time (ns) (ro) */
33 long maxerror
; /* maximum error (us) (ro) */
34 long esterror
; /* estimated error (us) (ro) */
35 long tai
; /* TAI offset */
36 int time_state
; /* time status */
40 struct timeval50 time
; /* current time (ro) */
41 long maxerror
; /* maximum error (us) (ro) */
42 long esterror
; /* estimated error (us) (ro) */
46 #include <sys/cdefs.h>
48 int ntp_gettime(struct ntptimeval30
*);
49 int __ntp_gettime30(struct ntptimeval50
*);
50 int __ntp_gettime50(struct ntptimeval
*);
54 #endif /* _COMPAT_SYS_TIMEX_H_ */