aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-06-24 09:35:44 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-06-24 09:42:15 +0200
commit6c38ce7f1f52ed566d71426a428efeb12f837c0b (patch)
tree6f81bdddfd0133980daa6df25adaadae74e6eb5b
parent84abf4ba9793d5b8fedd49efbc08bc9f9a644168 (diff)
downloadman-pages-6c38ce7f1f52ed566d71426a428efeb12f837c0b.tar.gz
futex.2: Note that at least one bit must be set in mask for BITSET operations
At least one bit must be set in the 'val3' mask supplied for the FUTEX_WAIT_BITSET and FUTEX_WAKE_BITSET operations. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/futex.26
1 files changed, 4 insertions, 2 deletions
diff --git a/man2/futex.2 b/man2/futex.2
index 7e065e7ab6..5146a1146c 100644
--- a/man2/futex.2
+++ b/man2/futex.2
@@ -694,7 +694,8 @@ This operation is like
except that
.I val3
is used to provide a 32-bit bit mask to the kernel.
-This bit mask is stored in the kernel-internal state of the waiter.
+This bit mask, in which at least one bit must be set,
+is stored in the kernel-internal state of the waiter.
See the description of
.BR FUTEX_WAKE_BITSET
for further details.
@@ -722,7 +723,8 @@ This operation is the same as
except that the
.I val3
argument is used to provide a 32-bit bit mask to the kernel.
-This bit mask is used to select which waiters should be woken up.
+This bit mask, in which at least one bit must be set,
+is used to select which waiters should be woken up.
The selection is done by a bit-wise AND of the "wake" bit mask
(i.e., the value in
.IR val3 )