summaryrefslogtreecommitdiff
path: root/share/man/man9/hzto.9
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-09-01 20:52:14 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-09-01 20:52:14 +0000
commit9a5357844082c016551f34cb234e8e2c3ac772b6 (patch)
treed688a4345e40e86299660e9c82a52affbaa1b88c /share/man/man9/hzto.9
parentefb700f0913bcb93835dd4d43b10086c08fc707c (diff)
Import some documentation from NetBSD, after checking that details match.
hz.9 and hzto.9 from scratch
Diffstat (limited to 'share/man/man9/hzto.9')
-rw-r--r--share/man/man9/hzto.957
1 files changed, 57 insertions, 0 deletions
diff --git a/share/man/man9/hzto.9 b/share/man/man9/hzto.9
new file mode 100644
index 00000000000..35bd4ea0792
--- /dev/null
+++ b/share/man/man9/hzto.9
@@ -0,0 +1,57 @@
+.\" $OpenBSD: hzto.9,v 1.1 1999/09/01 20:52:12 espie Exp $
+.\"
+.\" Copyright (c) 1999 Marc Espie
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\" must display the following acknowledgement:
+.\" This product includes software developed by Marc Espie
+.\" for the OpenBSD Project.
+.\" 3. The name of the author may not be used to endorse or promote products
+.\" derived from this software without specific prior written permission
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd August 31, 1999
+.Dt HZTO 9
+.Os
+.Sh NAME
+.Nm hzto
+.Nd translate absolute time to timeout delay.
+.Sh SYNOPSIS
+.Fd #include <sys/types.h>
+.Fd #include <sys/time.h>
+.Fd #include <sys/systm.h>
+.Ft int
+.Fn hzto "struct timeval *tv"
+.Sh DESCRIPTION
+The
+.Fn hzto
+function computes the number of
+.Va hz
+until the specified time occurs. This is mainly used to translate a timeval
+into a suitable argument for
+.Xr timeout 9 .
+.Sh CODE REFERENCES
+This function is implemented in the file
+.Pa sys/kern/kern_clock.c .
+.Sh SEE ALSO
+.Xr hz 9 ,
+.Xr timeout 9