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:
Michael Kerrisk 2005-04-04 15:34:13 +00:00
parent 31830ef083
commit b6ac53546a
1 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,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
.\" 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"
.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:
.\" The times of a terminated child process are included... when wait()
.\" 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
Note that
.BR clock (3)