summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-09 17:42:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-09 17:42:20 +0000
commit3c88bfc5895f23f9b093854fbb2623d0ed11c61a (patch)
treee7104e156c7ecfd3cf146ec53e2727f5efc4b0cb /sys
parentf5def245cf4080750dca2a1852d506c2912ba6c1 (diff)
unused apis, very dangerous: getbinuptime() getbintime(), ok art
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_tc.c29
-rw-r--r--sys/sys/time.h4
2 files changed, 2 insertions, 31 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index ad815dc1a57..2257eea91b7 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $OpenBSD: kern_tc.c,v 1.8 2007/03/31 14:46:48 kettenis Exp $
+ * $OpenBSD: kern_tc.c,v 1.9 2007/05/09 17:42:19 deraadt Exp $
* $FreeBSD: src/sys/kern/kern_tc.c,v 1.148 2003/03/18 08:45:23 phk Exp $
*/
@@ -179,19 +179,6 @@ microtime(struct timeval *tvp)
}
void
-getbinuptime(struct bintime *bt)
-{
- struct timehands *th;
- u_int gen;
-
- do {
- th = timehands;
- gen = th->th_generation;
- *bt = th->th_offset;
- } while (gen == 0 || gen != th->th_generation);
-}
-
-void
getnanouptime(struct timespec *tsp)
{
struct timehands *th;
@@ -218,20 +205,6 @@ getmicrouptime(struct timeval *tvp)
}
void
-getbintime(struct bintime *bt)
-{
- struct timehands *th;
- u_int gen;
-
- do {
- th = timehands;
- gen = th->th_generation;
- *bt = th->th_offset;
- } while (gen == 0 || gen != th->th_generation);
- bintime_add(bt, &boottimebin);
-}
-
-void
getnanotime(struct timespec *tsp)
{
struct timehands *th;
diff --git a/sys/sys/time.h b/sys/sys/time.h
index 01b239a6134..2104de51506 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.h,v 1.24 2006/06/29 23:09:03 deraadt Exp $ */
+/* $OpenBSD: time.h,v 1.25 2007/05/09 17:42:19 deraadt Exp $ */
/* $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $ */
/*
@@ -294,7 +294,6 @@ void bintime(struct bintime *);
void nanotime(struct timespec *);
void microtime(struct timeval *);
-void getbintime(struct bintime *);
void getnanotime(struct timespec *);
void getmicrotime(struct timeval *);
@@ -302,7 +301,6 @@ void binuptime(struct bintime *);
void nanouptime(struct timespec *);
void microuptime(struct timeval *);
-void getbinuptime(struct bintime *);
void getnanouptime(struct timespec *);
void getmicrouptime(struct timeval *);