summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2011-05-10 01:03:29 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2011-05-10 01:03:29 +0000
commitf10e89cb5a708d686ab2cc41111518f616306f8e (patch)
treec8d6130e90d0c540e928652f7a758265f3bf28fe /share
parentfc0034f815003a4d4bc429f4134523af5c99353c (diff)
timeout_del now returns an int.
this could probably be explained a bit better :/
Diffstat (limited to 'share')
-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