times.2: ERRORS: Add EFAULT

As Simone notes, RETURN VALUE says:

On error, (clock_t) -1 is returned, and errno is set appropriately

but no value for errno is specified.  The only error case is
EFAULT, so let's add that.

Reported-by: Simone Piccardi <piccardi@truelite.it>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2012-04-16 08:51:50 +12:00
parent 20d58e69bd
commit 962232bffc
1 changed files with 6 additions and 2 deletions

View File

@ -35,7 +35,7 @@
.\" Added notes on nonstandard behavior: Linux allows 'buf' to
.\" be NULL, but POSIX.1 doesn't specify this and it's nonportable.
.\"
.TH TIMES 2 2008-06-25 "Linux" "Linux Programmer's Manual"
.TH TIMES 2 2012-04-16 "Linux" "Linux Programmer's Manual"
.SH NAME
times \- get process times
.SH SYNOPSIS
@ -107,7 +107,11 @@ The return value may overflow the possible range of type
On error, \fI(clock_t)\ \-1\fP is returned, and
.I errno
is set appropriately.
.\" The only possible error is EFAULT.
.SH ERRORS
.TP
.B EFAULT
.I tms
points outside the process's address space.
.SH "CONFORMING TO"
SVr4, 4.3BSD, POSIX.1-2001.
.SH NOTES