From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751808AbcFXKAL (ORCPT ); Fri, 24 Jun 2016 06:00:11 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:35144 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750956AbcFXKAI (ORCPT ); Fri, 24 Jun 2016 06:00:08 -0400 Subject: Re: futex: Allow FUTEX_CLOCK_REALTIME with FUTEX_WAIT op To: Thomas Gleixner References: <20160620162652.2c4619c3@perruche.parrot.biz> <20160623044828.GA3379@f23x64.localdomain> <520d203a-83ad-0277-79d5-2209d6853628@gmail.com> <20160623161643.GA106079@f23x64.localdomain> <20160623182821.GB106079@f23x64.localdomain> <20160623195515.GD106079@f23x64.localdomain> <20160623203144.GE106079@f23x64.localdomain> Cc: mtk.manpages@gmail.com, Darren Hart , Matthieu CASTET , linux-kernel@vger.kernel.org, Darren Hart , Peter Zijlstra , Davidlohr Bueso , Eric Dumazet From: "Michael Kerrisk (man-pages)" Message-ID: <2649c14b-bee1-f94c-4e59-769a096af391@gmail.com> Date: Fri, 24 Jun 2016 12:00:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/24/2016 11:52 AM, Thomas Gleixner wrote: > On Fri, 24 Jun 2016, Michael Kerrisk (man-pages) wrote: >> By the way, I just realized something that wasn't initially obvious >> to me, and documented it in the futex(2) man page: >> >> Note: for FUTEX_WAIT, timeout is interpreted as a >> relative value. This differs from other futex oper‐ >> ations, where timeout is interpreted as an absolute >> value. To obtain the equivalent of FUTEX_WAIT with >> an absolute timeout, employ FUTEX_WAIT_BITSET with >> val3 specified as FUTEX_BITSET_MATCH_ANY. >> >> Okay? > > Yes. Thanks, Thomas. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/