mirror of https://github.com/mkerrisk/man-pages
Explicitly describe return value in the event of an error.
This commit is contained in:
parent
4701fc284e
commit
f867dcc700
10
man2/futex.2
10
man2/futex.2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue