diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-06-29 14:10:33 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-06-29 14:10:33 +0000 |
commit | 56f6529fc36c6db13ad6ff247464d6b0c9e0d023 (patch) | |
tree | 370910d2e05f30a3e4f78b5160a518c3222aa9f9 /lib/libc/sys/clock_gettime.2 | |
parent | 7e10459e58879c6c2e91c7f14687227390272c68 (diff) |
- change references to nil to null; tschroed@acm.org
- remove trailing spaces from end of lines
- add some .Dv
- change -1 to \-1, so `-' is taken as a negative sign
- other misc formatting fixes
Diffstat (limited to 'lib/libc/sys/clock_gettime.2')
-rw-r--r-- | lib/libc/sys/clock_gettime.2 | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/libc/sys/clock_gettime.2 b/lib/libc/sys/clock_gettime.2 index 8ba27046e2d..37a3eccc052 100644 --- a/lib/libc/sys/clock_gettime.2 +++ b/lib/libc/sys/clock_gettime.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: clock_gettime.2,v 1.6 1999/05/23 14:10:50 aaron Exp $ +.\" $OpenBSD: clock_gettime.2,v 1.7 1999/06/29 14:09:52 aaron Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -57,15 +57,19 @@ which is specifed by .Fa clock_id . .Pp .Fa clock_id -can be one of three values: CLOCK_REALTIME for time that increments as -a wall clock should, CLOCK_VIRTUAL for time that increments only when +can be one of three values: +.Dv CLOCK_REALTIME +for time that increments as +a wall clock should, +.Dv CLOCK_VIRTUAL +for time that increments only when the CPU is running in user mode on behalf of the calling process, or -CLOCK_PROF for time that increments when the CPU is running in user or -kernel mode. +.Dv CLOCK_PROF +for time that increments when the CPU is running in user or kernel mode. .Pp The structure pointed to by .Fa tp -is defined in +is defined in .Ao Pa sys/time.h Ac as: .Pp @@ -88,11 +92,11 @@ system call even when the system is secure. .Pp The resolution (granularity) of a clock is returned by the .Fn clock_getres -call. This value is placed in a (non-NULL) +call. This value is placed in a (non-null) .Fa *tp . .Sh RETURN A 0 return value indicates that the call succeeded. -A -1 return value indicates an error occurred, and in this +A \-1 return value indicates an error occurred, and in this case an error code is stored into the global variable .Va errno . .Sh ERRORS |