Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/simonb-timecounters]: src/sys/sys - simplified interface to ntp_adjtime1
details: https://anonhg.NetBSD.org/src/rev/e895a490c204
branches: simonb-timecounters
changeset: 587906:e895a490c204
user: kardel <kardel%NetBSD.org@localhost>
date: Fri Jun 02 00:18:58 2006 +0000
description:
- simplified interface to ntp_adjtime1
- compatibility definitions
diffstat:
sys/sys/timex.h | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 682a4d56301d -r e895a490c204 sys/sys/timex.h
--- a/sys/sys/timex.h Fri Jun 02 00:14:52 2006 +0000
+++ b/sys/sys/timex.h Fri Jun 02 00:18:58 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: timex.h,v 1.9.6.3 2006/06/01 22:39:27 kardel Exp $ */
+/* $NetBSD: timex.h,v 1.9.6.4 2006/06/02 00:18:58 kardel Exp $ */
#ifdef __HAVE_TIMECOUNTER
/*-
@@ -226,15 +226,22 @@
#ifdef _KERNEL
void ntp_update_second(int64_t *adjustment, time_t *newsec);
#ifdef __NetBSD__
-void ntp_adjtime1(struct timex *, register_t *);
-void ntp_gettime1(struct ntptimeval *, register_t *);
+void ntp_adjtime1(struct timex *);
+void ntp_gettime(struct ntptimeval *);
+register_t ntp_timestatus(void);
#endif /* __NetBSD__ */
#else /* !_KERNEL */
#include <sys/cdefs.h>
__BEGIN_DECLS
-int ntp_adjtime(struct timex *);
-int ntp_gettime(struct ntptimeval *);
+#ifdef __NetBSD__
+#ifndef __LIBC12_SOURCE__
+int ntp_gettime(struct ntptimeval *) __RENAME(__ntp_gettime30);
+#endif
+#else
+int ntp_gettime(struct ntptimeval *);
+#endif
+int ntp_adjtime(struct timex *);
__END_DECLS
#endif /* _KERNEL */
Home |
Main Index |
Thread Index |
Old Index