summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2011-05-10 01:03:28 +0000
committerdlg <dlg@openbsd.org>2011-05-10 01:03:28 +0000
commit6a47393cf84e5ff1b7819f42873d6c59f8a3acb4 (patch)
treea700f45dce42801e86185aac7a29b21e725d2af2
parenttweak timeout_del so it can tell the caller if it actually did remove a (diff)
downloadwireguard-openbsd-6a47393cf84e5ff1b7819f42873d6c59f8a3acb4.tar.xz
wireguard-openbsd-6a47393cf84e5ff1b7819f42873d6c59f8a3acb4.zip
timeout_del now returns an int.
this could probably be explained a bit better :/
-rw-r--r--share/man/man9/timeout.99
1 files changed, 6 insertions, 3 deletions
diff --git a/share/man/man9/timeout.9 b/share/man/man9/timeout.9
index 92f9086743f..c99bed4f1e8 100644
--- a/share/man/man9/timeout.9
+++ b/share/man/man9/timeout.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: timeout.9,v 1.30 2011/05/09 22:08:25 dlg Exp $
+.\" $OpenBSD: timeout.9,v 1.31 2011/05/10 01:03:28 dlg Exp $
.\"
.\" Copyright (c) 2000 Artur Grabowski <art@openbsd.org>
.\" All rights reserved.
@@ -23,7 +23,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 9 2011 $
+.Dd $Mdocdate: May 10 2011 $
.Dt TIMEOUT 9
.Os
.Sh NAME
@@ -48,7 +48,7 @@
.Fn "timeout_set" "struct timeout *to" "void (*fn)(void *)" "void *arg"
.Ft void
.Fn "timeout_add" "struct timeout *to" "int ticks"
-.Ft void
+.Ft int
.Fn "timeout_del" "struct timeout *to"
.Ft int
.Fn "timeout_pending" "struct timeout *to"
@@ -144,6 +144,9 @@ will cancel the timeout in the argument
.Fa to .
If the timeout has already executed or has never been added
the call will have no effect.
+If the timeout was actually removed by
+.Fn timeout_del
+it will return 1.
.Pp
The
.Fn timeout_pending