mirror of https://github.com/mkerrisk/man-pages
futex.2: Clarify return value details
Reporte-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
943ccc5228
commit
a5c5a06aba
|
@ -53,7 +53,7 @@ anyone waiting for a particular condition.
|
|||
The condition is represented by the futex word, which is an address
|
||||
in memory supplied to the
|
||||
.BR futex ()
|
||||
system call, and the value at this memory location.
|
||||
system call, and the 32-bit value at this memory location.
|
||||
(While the virtual addresses for the same physical memory address
|
||||
in separate processes may be different,
|
||||
the same physical address may be shared by the processes using
|
||||
|
@ -1117,7 +1117,11 @@ operation.
|
|||
.\"
|
||||
.SH RETURN VALUE
|
||||
.PP
|
||||
In the event of an error, all operations return \-1 and set
|
||||
In the event of an error (and assuming that
|
||||
.BR futex ()
|
||||
was invoked via
|
||||
.BR syscall (2)),
|
||||
all operations return \-1 and set
|
||||
.I errno
|
||||
to indicate the cause of the error.
|
||||
The return value on success depends on the operation,
|
||||
|
|
Loading…
Reference in New Issue