slightly adjust to clarify handling of zero time (tv_sec == tv_usec == 0)

- itimerfix() leaves the time as zero in this case, doesn't adjust to one tick

also use 'one tick' rather than mere 'tick' in first paragraph
This commit is contained in:
jdolecek 2003-02-01 10:43:20 +00:00
parent 5cbc65eab2
commit 16ebe50674
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: itimerfix.9,v 1.3 2002/02/13 08:18:43 ross Exp $
.\" $NetBSD: itimerfix.9,v 1.4 2003/02/01 10:43:20 jdolecek Exp $
.\"
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -50,10 +50,12 @@ The
function checks that the value in
.Fa tv
is valid (0 \*[Le] tv-\*[Gt]tv_sec \*[Am]\*[Am] 0 \*[Le] tv-\*[Gt]tv_usec \*[Lt] 1000000), and that the
total time represented is at least
.Em tick .
total time represented is at least one
.Em tick ,
or zero.
.Pp
If it is smaller, then it is adjusted to tick.
If the total represented time is nonzero and smaller than tick,
it is adjusted to exacly one tick.
.Sh RETURN VALUES
.Nm
returns 0 on success or