public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* Bug man page futex(2) FUTEX_CMP_REQUEUE
@ 2019-09-27  0:43 Carlo Wood
  0 siblings, 0 replies; only message in thread
From: Carlo Wood @ 2019-09-27  0:43 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man

Man page http://man7.org/linux/man-pages/man2/futex.2.html
states for FUTEX_CMP_REQUEUE

              Typical values to specify for val are 0 or 1.

How is a value of 0 useful?

              (Specifying
              INT_MAX is not useful, because it would make the
              FUTEX_CMP_REQUEUE operation equivalent to FUTEX_WAKE.)

This is incorrect because FUTEX_WAKE doesn't have the expected (val3)
parameter.

Same for the remark that follows this statement after "The
              limit value specified via val2 is typically either 1 or
              INT_MAX.":

              (Specifying the argument as 0 is not useful, because
              it would make the FUTEX_CMP_REQUEUE operation equivalent
              to FUTEX_WAIT.)


-- 
Carlo Wood <carlo@alinoe.com>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-27  1:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-27  0:43 Bug man page futex(2) FUTEX_CMP_REQUEUE Carlo Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox