summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/man/man9/timeout.912
1 files changed, 11 insertions, 1 deletions
diff --git a/share/man/man9/timeout.9 b/share/man/man9/timeout.9
index 8659c0780a3..cd69e6fb968 100644
--- a/share/man/man9/timeout.9
+++ b/share/man/man9/timeout.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: timeout.9,v 1.3 2000/03/23 10:10:20 art Exp $
+.\" $OpenBSD: timeout.9,v 1.4 2000/03/23 11:15:21 art Exp $
.\"
.\" Copyright (c) 2000 Artur Grabowski <art@openbsd.org>
.\" All rights reserved.
@@ -40,6 +40,8 @@
.Fn "timeout_set" "struct timeout *to" "void (*fn)(void *)" "void *arg"
.Fn "timeout_add" "struct timeout *to" "int ticks"
.Fn "timeout_del" "struct timeout *to"
+.Fn "timeout_pending" "struct timeout *to"
+.Fn "timeout_initialized" "struct timeout *to"
.Sh DESCRIPTION
The finction
.Fn timeout_set
@@ -98,6 +100,14 @@ will cancel the timeout in the argument
If the timeout has already executed or has never been added
the call will have no effect.
.Pp
+The
+.Fn timeout_pending
+macro can be used to check if a timeout is scheduled to run.
+.Pp
+The
+.Fn timeout_initialized
+macro can be used to check if a timeout has been initialized.
+.Pp
It's the caller responsibility to provide those functions with
the timeout structures. No functions in this API will do memory
allocation. All functions in this API may be called in interrupt