summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lo <kevlo@cvs.openbsd.org>2003-08-14 05:34:48 +0000
committerKevin Lo <kevlo@cvs.openbsd.org>2003-08-14 05:34:48 +0000
commite37462c57e2b609bb6438cf547935c0b9b7dd634 (patch)
treea1543dce13e206c2f8bc3d32a89e61a786fc18f8
parentb3000f2ff28c5da98faa23f1bdcb1d2ddc7037be (diff)
add itimerspec data structure, defined by POSIX 1003.1b. ok marc@
-rw-r--r--sys/sys/time.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/sys/time.h b/sys/sys/time.h
index fc23d91daf3..40bdcc90579 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.h,v 1.16 2003/08/11 05:37:59 kevlo Exp $ */
+/* $OpenBSD: time.h,v 1.17 2003/08/14 05:34:47 kevlo Exp $ */
/* $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $ */
/*
@@ -141,6 +141,15 @@ struct itimerval {
};
/*
+ * Structure defined by POSIX 1003.1b to be like a itimerval,
+ * but with timespecs. Used in the timer_*() system calls.
+ */
+struct itimerspec {
+ struct timespec it_interval; /* timer interval */
+ struct timespec it_value; /* timer expiration */
+};
+
+/*
* Getkerninfo clock information structure
*/
struct clockinfo {