Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Note also that the interaction between setitime...
details: https://anonhg.NetBSD.org/src/rev/ac8becedff3d
branches: trunk
changeset: 764745:ac8becedff3d
user: jruoho <jruoho%NetBSD.org@localhost>
date: Mon May 02 17:14:20 2011 +0000
description:
Note also that the interaction between setitimer(2) and alarm(3) or sleep(3)
is unspecified.
diffstat:
lib/libc/sys/getitimer.2 | 26 ++++++++++++++++++--------
1 files changed, 18 insertions(+), 8 deletions(-)
diffs (53 lines):
diff -r 5d3a2282378b -r ac8becedff3d lib/libc/sys/getitimer.2
--- a/lib/libc/sys/getitimer.2 Mon May 02 17:01:52 2011 +0000
+++ b/lib/libc/sys/getitimer.2 Mon May 02 17:14:20 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: getitimer.2,v 1.25 2011/05/02 17:01:52 jruoho Exp $
+.\" $NetBSD: getitimer.2,v 1.26 2011/05/02 17:14:20 jruoho Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -89,9 +89,6 @@
to 0 causes a timer to be disabled after its next expiration (assuming
.Fa it_value
is non-zero).
-Note that time values smaller than the resolution of the
-system clock are rounded up to this resolution
-(typically 10 milliseconds).
.Pp
The
.Fa which
@@ -124,16 +121,29 @@
Because this signal may interrupt in-progress
system calls, programs using this timer must be prepared to
restart interrupted system calls.
+.El
+Note that:
+.Bl -bullet -offset indent
+.It
+Time values smaller than the resolution of the
+system clock are rounded up to this resolution
+(typically 10 milliseconds).
+.It
+The interaction between
+.Fn setitimer
+and
+.Xr alarm 3
+or
+.Xr sleep 3
+is unspecified by the specification.
+.El
.Sh RETURN VALUES
If the calls succeed, a value of 0 is returned.
If an error occurs, the value \-1 is returned, and a more precise error
code is placed in the global variable
.Va errno .
.Sh ERRORS
-.Fn getitimer
-and
-.Fn setitimer
-will fail if:
+Both functions may fail if:
.Bl -tag -width Er
.It Bq Er EFAULT
The
Home |
Main Index |
Thread Index |
Old Index