summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMichael Knudsen <mk@cvs.openbsd.org>2008-07-24 17:32:00 +0000
committerMichael Knudsen <mk@cvs.openbsd.org>2008-07-24 17:32:00 +0000
commita016708bbb50062df3f96b454f39a2d5e0acfc7a (patch)
tree18cf0186d3e933a2dc59d18e54421678556847da /share
parent2db2052d6285b2b40160a2a21cd33d74a0714e1e (diff)
Add timeout_add_sec() etc. to .Nm and, on jmc's request, tweak
some other stuff. ok art jmc blambert
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/timeout.922
1 files changed, 14 insertions, 8 deletions
diff --git a/share/man/man9/timeout.9 b/share/man/man9/timeout.9
index 33d42fb2367..10257c76cce 100644
--- a/share/man/man9/timeout.9
+++ b/share/man/man9/timeout.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: timeout.9,v 1.26 2008/07/23 11:45:21 art Exp $
+.\" $OpenBSD: timeout.9,v 1.27 2008/07/24 17:31:59 mk Exp $
.\"
.\" Copyright (c) 2000 Artur Grabowski <art@openbsd.org>
.\" All rights reserved.
@@ -23,12 +23,18 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 23 2008 $
+.Dd $Mdocdate: July 24 2008 $
.Dt TIMEOUT 9
.Os
.Sh NAME
.Nm timeout_set ,
.Nm timeout_add ,
+.Nm timeout_add_sec ,
+.Nm timeout_add_nsec ,
+.Nm timeout_add_usec ,
+.Nm timeout_add_tv ,
+.Nm timeout_add_ts ,
+.Nm timeout_add_bt ,
.Nm timeout_del ,
.Nm timeout_pending ,
.Nm timeout_initialized ,
@@ -158,18 +164,18 @@ and
.Fn timeout_del
functions clear the triggered state for that timeout.
.Pp
-When possible, instead of using
-.Fn timeout_add
-the functions
+When possible, use the
.Fn timeout_add_tv ,
.Fn timeout_add_ts ,
.Fn timeout_add_bt ,
.Fn timeout_add_sec ,
.Fn timeout_add_usec ,
+and
.Fn timeout_add_nsec
-should be used.
-Those functions add a timeout doing conversion of the time specified
-by their respective types.
+functions instead of
+.Fn timeout_add .
+Those functions add a timeout whilst converting the time specified
+by the respective types.
.Sh CODE REFERENCES
These functions are implemented in the file
.Pa sys/kern/kern_timeout.c .