Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Document a bit CLOCK_VIRTUAL and CLOCK_PROF
details: https://anonhg.NetBSD.org/src/rev/460e6bda8fe5
branches: trunk
changeset: 328162:460e6bda8fe5
user: degroote <degroote%NetBSD.org@localhost>
date: Fri Mar 28 15:03:41 2014 +0000
description:
Document a bit CLOCK_VIRTUAL and CLOCK_PROF
diffstat:
lib/libc/sys/clock_settime.2 | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r a51c63c63b88 -r 460e6bda8fe5 lib/libc/sys/clock_settime.2
--- a/lib/libc/sys/clock_settime.2 Fri Mar 28 15:02:34 2014 +0000
+++ b/lib/libc/sys/clock_settime.2 Fri Mar 28 15:03:41 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: clock_settime.2,v 1.20 2009/03/11 13:39:14 joerg Exp $
+.\" $NetBSD: clock_settime.2,v 1.21 2014/03/28 15:03:41 degroote Exp $
.\"
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -105,6 +105,20 @@
.Fn clock_settime .
The origin of the clock is unspecified.
.Pp
+A
+.Fa clock_id
+of
+.Dv CLOCK_VIRTUAL
+identifies a clock that increments only when the CPU is running in
+user mode on behalf of the calling process.
+.Pp
+A
+.Fa clock_id
+of
+.Dv CLOCK_PROF
+identifies a clock that increments when the CPU is running in user
+or kernel mode on behalf of the calling process.
+.Pp
If the calling user is not the super-user, then the
.Fn clock_settime
function in the standard C library will try to use the
Home |
Main Index |
Thread Index |
Old Index