Explicitly describe return value in the event of an error.

This commit is contained in:
Michael Kerrisk 2008-01-31 10:41:08 +00:00
parent 4701fc284e
commit f867dcc700
1 changed files with 7 additions and 3 deletions

View File

@ -12,7 +12,7 @@
.\" to be documented in the manual page. Probably there is sufficient
.\" material in the kernel source file Documentation/pi-futex.txt.
.\"
.TH FUTEX 2 2004-10-07 "Linux" "Linux Programmer's Manual"
.TH FUTEX 2 2007-01-31 "Linux" "Linux Programmer's Manual"
.SH NAME
futex \- Fast Userspace Locking system call
.SH SYNOPSIS
@ -173,8 +173,8 @@ The argument
is ignored.
.SH "RETURN VALUE"
.PP
Depending on which operation was executed, the returned value can have
differing meanings.
Depending on which operation was executed,
the returned value for a successful call can have differing meanings.
.TP
.B FUTEX_WAIT
Returns 0 if the process was woken by a
@ -203,6 +203,10 @@ Returns the number of processes woken up.
.TP
.B FUTEX_CMP_REQUEUE
Returns the number of processes woken up.
.PP
In the event of an error, all operations return \-1, and set
.I errno
to indicate the error.
.SH ERRORS
.TP
.B EACCES