Minor formatting changes

This commit is contained in:
Michael Kerrisk 2004-11-16 17:08:25 +00:00
parent 81841f39af
commit 4c926acf03
1 changed files with 20 additions and 16 deletions

View File

@ -28,8 +28,8 @@
.\" Modified 001213 by Michael Haardt (michael@moria.de)
.\" Modified 13 Jun 02, Michael Kerrisk <mtk-manpages@gmx.net>
.\" Added note on non-standard behaviour when SIGCHLD is ignored.
.\" Modified 2004-11-16, mtk, Noted that the non-conformance
.\" when SIGCHLD is being ignored is fixed in 2.6.9.
.\" Modified 2004-11-16, mtk, Noted that the non-conformance when
.\" SIGCHLD is being ignored is fixed in 2.6.9; other minor changes
.\"
.TH TIMES 2 2002-06-14 "Linux" "Linux Programmer's Manual"
.SH NAME
@ -39,10 +39,9 @@ times \- get process times
.sp
.BI "clock_t times(struct tms *" buf );
.SH DESCRIPTION
The
.BR times ()
function stores the current process times in the
.B "struct tms"
stores the current process times in the
.I "struct tms"
that
.IR buf
points to.
@ -95,13 +94,13 @@ that the children did not wait for are never seen.
.LP
All times reported are in clock ticks.
.SH "RETURN VALUE"
The function
.B times
.BR times ()
returns the number of clock ticks that have elapsed since
an arbitrary point in the past. For Linux this point is
the moment the system was booted.
This return value may overflow the possible range of type clock_t.
On error, (clock_t) \-1 is returned, and
This return value may overflow the possible range of type
.I clock_t.
On error, \fI(clock_t) \-1\fP is returned, and
.I errno
is set appropriately.
.SH NOTES
@ -114,7 +113,9 @@ In POSIX-1996 the symbol CLK_TCK (defined in
is mentioned as obsolescent. It is obsolete now.
.PP
In Linux kernel versions before 2.6.9,
if the disposition of SIGCHLD is set to
if the disposition of
.B SIGCHLD
is set to
.B SIG_IGN
then the times of terminated children
are automatically included in the
@ -132,19 +133,22 @@ This non-conformance is rectified in Linux 2.6.9 and later.
.LP
Note that
.BR clock (3)
returns values of type clock_t that are not measured in clock ticks
but in CLOCKS_PER_SEC.
returns values of type
.I clock_t
that are not measured in clock ticks
but in
.BR CLOCKS_PER_SEC .
.SH "CONFORMING TO"
SVr4, SVID, POSIX, X/OPEN, BSD 4.3
.SH "HISTORICAL NOTES"
SVr1-3 returns
.B long
.I long
and the struct members are of type
.B time_t
.I time_t
although they store clock ticks, not seconds since the epoch. V7 used
.B long
.I long
for the struct members, because it had no type
.B time_t
.I time_t
yet.
.PP
On older systems the number of clock ticks per second is given