Module Name: src Committed By: degroote Date: Fri Mar 28 15:03:41 UTC 2014
Modified Files: src/lib/libc/sys: clock_settime.2 Log Message: Document a bit CLOCK_VIRTUAL and CLOCK_PROF To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/lib/libc/sys/clock_settime.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/sys/clock_settime.2 diff -u src/lib/libc/sys/clock_settime.2:1.20 src/lib/libc/sys/clock_settime.2:1.21 --- src/lib/libc/sys/clock_settime.2:1.20 Wed Mar 11 13:39:14 2009 +++ src/lib/libc/sys/clock_settime.2 Fri Mar 28 15:03:41 2014 @@ -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 @@ error if it's the clock specified in a c .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