aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/getitimer.2
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-08-14 08:26:25 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-08-14 08:26:25 +0000
commit422ff09040e90b129b58ebefb43f7eea66755bb2 (patch)
tree93eaefbfea194d78c3500aec300377bca1c84616 /lib/libc/sys/getitimer.2
parentcd9f713d4503908567e36128531f222f74d4d023 (diff)
downloadsrc-422ff09040e90b129b58ebefb43f7eea66755bb2.tar.gz
src-422ff09040e90b129b58ebefb43f7eea66755bb2.zip
Explicitly point that it_value == 0 disables timer regardles of
it_interval value. It is backward-compatible with previous usage and SunOS-compatible now.
Notes
Notes: svn path=/head/; revision=28214
Diffstat (limited to 'lib/libc/sys/getitimer.2')
-rw-r--r--lib/libc/sys/getitimer.24
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2
index 23877a622af5..171bc42a5711 100644
--- a/lib/libc/sys/getitimer.2
+++ b/lib/libc/sys/getitimer.2
@@ -85,7 +85,9 @@ is non-zero, it specifies a value to be used in reloading
when the timer expires.
Setting
.Fa it_value
-to 0 disables a timer. Setting
+to 0 disables a timer, regardless of the value of
+.Fa it_interval .
+Setting
.Fa it_interval
to 0 causes a timer to be disabled after its next expiration (assuming
.Fa it_value