summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/sys/timex.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-07 11:57:41 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-07 11:57:41 +0000
commit997d6467bec4d5c03f79ee4c45d9f77827cca1b7 (patch)
treeec57c0c87a28f3680626b3bca378f6a64acee199 /sysdeps/unix/sysv/linux/sys/timex.h
parentb92ad8d61f18a3e9a61434e2e3252efd862bd7f4 (diff)
Update.
* sysdeps/unix/sysv/linux/Makefile [subdir=time] (sysdep_routines): Add ntp_adjtime and ntp_gettime. * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add ntp_adjtime and ntp_gettime. 1998-12-29 Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> * manual/time.texi (Precision Time): Add documentation for ntp_gettime and ntp_adjtime. 1998-12-28 Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> * sysdeps/unix/sysv/linux/ntp_gettime.c: Created new file * sysdeps/unix/sysv/linux/ntp_adjtime.c: Created new file * sysdeps/unix/sysv/linux/sys/timex.h (struct ntptimeval): Added. Add prototypes for ntp_adjtime and ntp_gettime. 1999-01-07 Ulrich Drepper <drepper@cygnus.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/sys/timex.h')
-rw-r--r--sysdeps/unix/sysv/linux/sys/timex.h44
1 files changed, 27 insertions, 17 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/timex.h b/sysdeps/unix/sysv/linux/sys/timex.h
index aa3ee39d22..da1e33e85a 100644
--- a/sysdeps/unix/sysv/linux/sys/timex.h
+++ b/sysdeps/unix/sysv/linux/sys/timex.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -24,28 +24,35 @@
/* These definitions from linux/timex.h as of 2.1.130. */
+struct ntptimeval
+{
+ struct timeval time; /* current time (ro) */
+ long int maxerror; /* maximum error (us) (ro) */
+ long int esterror; /* estimated error (us) (ro) */
+};
+
struct timex
{
unsigned int modes; /* mode selector */
- long offset; /* time offset (usec) */
- long freq; /* frequency offset (scaled ppm) */
- long maxerror; /* maximum error (usec) */
- long esterror; /* estimated error (usec) */
+ long int offset; /* time offset (usec) */
+ long int freq; /* frequency offset (scaled ppm) */
+ long int maxerror; /* maximum error (usec) */
+ long int esterror; /* estimated error (usec) */
int status; /* clock command/status */
- long constant; /* pll time constant */
- long precision; /* clock precision (usec) (read only) */
- long tolerance; /* clock frequency tolerance (ppm) (read only) */
+ long int constant; /* pll time constant */
+ long int precision; /* clock precision (usec) (read only) */
+ long int tolerance; /* clock frequency tolerance (ppm) (read only) */
struct timeval time; /* (read only) */
- long tick; /* (modified) usecs between clock ticks */
+ long int tick; /* (modified) usecs between clock ticks */
- long ppsfreq; /* pps frequency (scaled ppm) (ro) */
- long jitter; /* pps jitter (us) (ro) */
- int shift; /* interval duration (s) (shift) (ro) */
- long stabil; /* pps stability (scaled ppm) (ro) */
- long jitcnt; /* jitter limit exceeded (ro) */
- long calcnt; /* calibration intervals (ro) */
- long errcnt; /* calibration errors (ro) */
- long stbcnt; /* stability limit exceeded (ro) */
+ long int ppsfreq; /* pps frequency (scaled ppm) (ro) */
+ long int jitter; /* pps jitter (us) (ro) */
+ int shift; /* interval duration (s) (shift) (ro) */
+ long int stabil; /* pps stability (scaled ppm) (ro) */
+ long int jitcnt; /* jitter limit exceeded (ro) */
+ long int calcnt; /* calibration intervals (ro) */
+ long int errcnt; /* calibration errors (ro) */
+ long int stbcnt; /* stability limit exceeded (ro) */
/* ??? */
int :32; int :32; int :32; int :32;
@@ -109,6 +116,9 @@ __BEGIN_DECLS
extern int __adjtimex __P ((struct timex *__ntx));
extern int adjtimex __P ((struct timex *__ntx));
+extern int ntp_gettime __P ((struct ntptimeval *__ntv));
+extern int ntp_adjtime __P ((int __amode, struct timex *__tntx));
+
__END_DECLS
#endif /* sys/timex.h */