From 0f5ed9f4205280d240aebbeb3e4c1951fd598135 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 8 May 1997 13:48:47 +0000 Subject: [PATCH] Add posix clock and timer definitions Obtained from: NetBSD --- sys/sys/time.h | 9 ++++++++- sys/sys/timetc.h | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/sys/sys/time.h b/sys/sys/time.h index a17a035c3736..f7c526079173 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)time.h 8.5 (Berkeley) 5/4/95 - * $Id: time.h,v 1.11 1997/02/22 09:46:08 peter Exp $ + * $Id: time.h,v 1.12 1997/03/22 06:53:24 bde Exp $ */ #ifndef _SYS_TIME_H_ @@ -129,6 +129,13 @@ struct clockinfo { int profhz; /* profiling clock frequency */ }; +#define CLOCK_REALTIME 0 +#define CLOCK_VIRTUAL 1 +#define CLOCK_PROF 2 + +#define TIMER_RELTIME 0x0 /* relative timer */ +#define TIMER_ABSTIME 0x1 /* absolute timer */ + #ifdef KERNEL void gettime __P((struct timeval *tv)); int itimerfix __P((struct timeval *tv)); diff --git a/sys/sys/timetc.h b/sys/sys/timetc.h index a17a035c3736..f7c526079173 100644 --- a/sys/sys/timetc.h +++ b/sys/sys/timetc.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)time.h 8.5 (Berkeley) 5/4/95 - * $Id: time.h,v 1.11 1997/02/22 09:46:08 peter Exp $ + * $Id: time.h,v 1.12 1997/03/22 06:53:24 bde Exp $ */ #ifndef _SYS_TIME_H_ @@ -129,6 +129,13 @@ struct clockinfo { int profhz; /* profiling clock frequency */ }; +#define CLOCK_REALTIME 0 +#define CLOCK_VIRTUAL 1 +#define CLOCK_PROF 2 + +#define TIMER_RELTIME 0x0 /* relative timer */ +#define TIMER_ABSTIME 0x1 /* absolute timer */ + #ifdef KERNEL void gettime __P((struct timeval *tv)); int itimerfix __P((struct timeval *tv));