mirror of https://github.com/mkerrisk/man-pages
Added notes on non-standard behaviour: Linux allows 'buf' to
be NULL, but POSIX.1 doesn't specify this and it's non-portable.
This commit is contained in:
parent
31830ef083
commit
b6ac53546a
12
man2/times.2
12
man2/times.2
|
@ -31,6 +31,9 @@
|
||||||
.\" Modified 2004-11-16, mtk, Noted that the non-conformance when
|
.\" Modified 2004-11-16, mtk, Noted that the non-conformance when
|
||||||
.\" SIGCHLD is being ignored is fixed in 2.6.9; other minor changes
|
.\" 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
|
.\" Modified 2004-12-08, mtk, in 2.6 times() return value changed
|
||||||
|
.\" 2005-04-13, mtk
|
||||||
|
.\" Added notes on non-standard behaviour: Linux allows 'buf' to
|
||||||
|
.\" be NULL, but POSIX.1 doesn't specify this and it's non-portable.
|
||||||
.\"
|
.\"
|
||||||
.TH TIMES 2 2002-06-14 "Linux" "Linux Programmer's Manual"
|
.TH TIMES 2 2002-06-14 "Linux" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
|
@ -133,6 +136,15 @@ This non-conformance is rectified in Linux 2.6.9 and later.
|
||||||
.\" See the description of times() in XSH, which says:
|
.\" See the description of times() in XSH, which says:
|
||||||
.\" The times of a terminated child process are included... when wait()
|
.\" The times of a terminated child process are included... when wait()
|
||||||
.\" or waitpid() returns the process ID of this termianted child.
|
.\" or waitpid() returns the process ID of this termianted child.
|
||||||
|
|
||||||
|
On Linux, the
|
||||||
|
.I buf
|
||||||
|
argument can be specified as NULL, with the result that
|
||||||
|
.BR times ()
|
||||||
|
just returns a function result.
|
||||||
|
However, POSIX does not specify this behaviour, and most
|
||||||
|
other Unix implementations require a non-NULL value for
|
||||||
|
.IR buf .
|
||||||
.LP
|
.LP
|
||||||
Note that
|
Note that
|
||||||
.BR clock (3)
|
.BR clock (3)
|
||||||
|
|
Loading…
Reference in New Issue