mirror of https://github.com/mkerrisk/man-pages
In Linux 2.6, the return value of times() changed
This commit is contained in:
parent
8b6aacb004
commit
e263839c06
11
man2/times.2
11
man2/times.2
|
@ -30,6 +30,7 @@
|
|||
.\" 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; other minor changes
|
||||
.\" Modified 2004-12-08, mtk, in 2.6 times() return value changed
|
||||
.\"
|
||||
.TH TIMES 2 2002-06-14 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
|
@ -96,11 +97,11 @@ All times reported are in clock ticks.
|
|||
.SH "RETURN VALUE"
|
||||
.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.
|
||||
.\" FIXME In Linux 2.6, the arbitrary point no longer appears
|
||||
.\" to be since system boot -- what is it then? MTK, Nov 04
|
||||
This return value may overflow the possible range of type
|
||||
an arbitrary point in the past.
|
||||
For Linux 2.4 and earlier this point is the moment the system was booted.
|
||||
Since Linux 2.6, this point is (2^32/HZ) - 300 (i.e., about 429 million)
|
||||
seconds before system boot time.
|
||||
The return value may overflow the possible range of type
|
||||
.I clock_t.
|
||||
On error, \fI(clock_t) \-1\fP is returned, and
|
||||
.I errno
|
||||
|
|
Loading…
Reference in New Issue