summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormk <mk@openbsd.org>2008-07-24 17:31:59 +0000
committermk <mk@openbsd.org>2008-07-24 17:31:59 +0000
commitb3d98cb0df32822bafe3a23ec2f117eed1306293 (patch)
treee50de37c19f1e86873732d838e550d033506bdea
parentSpecify a cdroot entry that will actually work on a CD. (diff)
downloadwireguard-openbsd-b3d98cb0df32822bafe3a23ec2f117eed1306293.tar.xz
wireguard-openbsd-b3d98cb0df32822bafe3a23ec2f117eed1306293.zip
Add timeout_add_sec() etc. to .Nm and, on jmc's request, tweak
some other stuff. ok art jmc blambert
-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 .