summaryrefslogtreecommitdiffstats
path: root/sys/sys/time.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-08 13:48:47 +0000
committerpeter <peter@FreeBSD.org>1997-05-08 13:48:47 +0000
commit6f0f8647e2192233a2e462eb9616e95262750c63 (patch)
treed3623198e82cc920b4452510706cb59ed35ca2ef /sys/sys/time.h
parentcb9f8cce7903ec368e661c17f6a17cfafb0b8707 (diff)
downloadFreeBSD-src-6f0f8647e2192233a2e462eb9616e95262750c63.zip
FreeBSD-src-6f0f8647e2192233a2e462eb9616e95262750c63.tar.gz
Add posix clock and timer definitions
Obtained from: NetBSD
Diffstat (limited to 'sys/sys/time.h')
-rw-r--r--sys/sys/time.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/sys/time.h b/sys/sys/time.h
index a17a035..f7c5260 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));
OpenPOWER on IntegriCloud