From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753943AbaEOAgL (ORCPT ); Wed, 14 May 2014 20:36:11 -0400 Received: from mail-ve0-f181.google.com ([209.85.128.181]:42216 "EHLO mail-ve0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753902AbaEOAgH (ORCPT ); Wed, 14 May 2014 20:36:07 -0400 MIME-Version: 1.0 In-Reply-To: <53740A30.20807@zytor.com> References: <537346E5.4050407@gmail.com> <1400100977.3865.30.camel@buesod1.americas.hpqcorp.net> <53740A30.20807@zytor.com> From: Andy Lutomirski Date: Wed, 14 May 2014 17:35:46 -0700 Message-ID: Subject: Re: futex(2) man page update help request To: "H. Peter Anvin" Cc: Davidlohr Bueso , Michael Kerrisk-manpages , Darren Hart , Thomas Gleixner , Ingo Molnar , Jakub Jelinek , "linux-man@vger.kernel.org" , lkml , Davidlohr Bueso , Arnd Bergmann , Steven Rostedt , Peter Zijlstra , Linux API , "Carlos O'Donell" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 14, 2014 at 5:28 PM, H. Peter Anvin wrote: > On 05/14/2014 01:56 PM, Davidlohr Bueso wrote: >>> >>>> However, unless I'm sorely mistaken, the larger problem is that glibc >>>> removed the futex() call entirely, so these man pages don't describe >>> >>> I don't think futex() ever was in glibc--that's by design, and >>> completely understandable: no user-space application would want to >>> directly use futex(). >> >> That's actually not quite true. There are plenty of software efforts out >> there that use futex calls directly to implement userspace serialization >> mechanisms as an alternative to the bulky sysv semaphores. I worked >> closely with an in-memory DB project that makes heavy use of them. Not >> everyone can simply rely on pthreads. >> > > More fundamentally, futex(2), like clone(2), are things that can be > legitimately by user space without automatically breaking all of glibc. I'm lost -- I think the missing verb is important :) > There are some other things where that is *not* true, because glibc > relies on being able to mediate all accesses to a kernel facility, but > not here. --Andy