Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7034217imu; Wed, 14 Nov 2018 10:37:41 -0800 (PST) X-Google-Smtp-Source: AJdET5ccsh8IUqg4iqZwbHsdnocQqlunzwdyHTMyEdreaY7zjoEllsM+IzYzkWRTRITkC5ep/R8I X-Received: by 2002:a63:344e:: with SMTP id b75mr2717067pga.184.1542220661746; Wed, 14 Nov 2018 10:37:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542220661; cv=none; d=google.com; s=arc-20160816; b=fEPUGY6wywHkWDfmA6dzhoRGlebWGc2QR2o/cXTwkHYTnfmyTC5Q+9w0xf8WU+ohxg 2cPlHLZVDQFc1wyccm75Do0Y+Lx/bjiHwyh6hUoscJZ1BnPlgEA4SC88u6LEda9xlnbb jlGiYryqBtDAi0U2eG8p4IIu2FUSFxvS3iAdGWLlZL5J4VphTIIY7ZYeqsDf1WnzGHYh bdRU+Y1mftxTucHcOF7wGYAMC/cFEs8vNGuYf/OZyEOucNZUWIyG0j3xKTyGRHalJcZ8 ATIV6KTn2T3iwR53sWy5KDh0fBqJmpNVivHrLiWoDciTcy+UzVgV5d1uUYgVNYdvEtZj Ds1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=xG9XBQgbQTRXyxbdTuCiqMyDaePdt/QZjbM0mDgrRZc=; b=ggH9gEJgrSxOb+SyGGNTepiovytswoePydhQp+OlMhn2WuLxawDndNPR/UwBJShbkA nWERTCmb6qH382w30gS7eXrjvzSyhoHDrJxQ5Ba5HDOmcvNTFK+8Pi8U2jA1JgKkOBw/ LQJkHNVFXONYRmjMTdXD62zOvzA7TA0LaaoHbAsxpXu4D5EasbLXQv61+xCkkJrAQYfR jY1MAf3BlI4C69qKvhDWl4XNaqYQEcmzJrVTnbc1vG+1TmlTWgK1bIlTvYtmp8rEQ9je BOQAO2SyaRPGCPxKnUxl1ntJqB/JuLxdn2Z1nt/ZcsvDI8DCokypa1rMOWrH7y0n9Mtd lZiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kx4+YPnj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23-v6si25703468plo.265.2018.11.14.10.37.25; Wed, 14 Nov 2018 10:37:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kx4+YPnj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731448AbeKOEkG (ORCPT + 99 others); Wed, 14 Nov 2018 23:40:06 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:44260 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727251AbeKOEkF (ORCPT ); Wed, 14 Nov 2018 23:40:05 -0500 Received: by mail-vs1-f65.google.com with SMTP id g68so10116265vsd.11 for ; Wed, 14 Nov 2018 10:35:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xG9XBQgbQTRXyxbdTuCiqMyDaePdt/QZjbM0mDgrRZc=; b=kx4+YPnj8xW7r8u8WR5tpO+OaQHtMPmwkS3kI+DkSPUj72UkNEjfxtG9FreoYFcAqP wG/CObSc23iDMAyb8kRuXISIpi1L5JAOQOKAJiY7BPBiKGZVWtHC5Uwucs11hIXDZhgv E6mVR402kf1CuFLVyGaw3kG4V6hWYHREaZ9FjxTIi8RDxDJPD3cm7IR/KxKPN/aSPqip XZrOU4MdPrg4ke5JTC2Tx1s+tY7+EmQXkulcjoThqc8jnBLamxoLYIT+4+yXZGT2vkj3 LJTeM2Dj+AJsv/lgrn8+gCSFJx2bs4Rxk1y4RtQTQ+xLbTC0CrwBsk+oKUqJ6ezXRPeE uxFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xG9XBQgbQTRXyxbdTuCiqMyDaePdt/QZjbM0mDgrRZc=; b=MPl1oYAOogaJUXJZHPomA7J1gnNyEuU2qwf+on2xrafFZHus+vRms2yA65liIzxCFg WZmzdTQRHgloEGXivAD9N4ZCxscFGCfGz85Ms72Xytrj7prNY5Q3HDxJ5Mb+gcbBGdJu r6MJCNGllhH9TlCmTNMGiJDI32Wte6bgVtMGyWNFFmYqCA59kbdbgQ9ClxiqhmbN+S2P 7p7LU5CH/E+QrFhNp4D4a6puKLkce6CJPMxY4wd7x0BvuWqCv/MP4rUlSzKqKOKRym6t B0eMEPtQP9RmVON1OzFNPxvwQEidQLUs83nGngT6J5U5FUU4yIa6kwqt8Pb7xcgms9Ab 1ipg== X-Gm-Message-State: AGRZ1gJYI+BC/YlckizYctbr8tmqd/EFePsAdukTBOwmxrRBFsFK6XtY iOSGiP1u6KMk23lY2gQGsyxelcyJP2yikHbWnD00iw== X-Received: by 2002:a67:6cc1:: with SMTP id h184mr1347124vsc.149.1542220543757; Wed, 14 Nov 2018 10:35:43 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a67:f48d:0:0:0:0:0 with HTTP; Wed, 14 Nov 2018 10:35:42 -0800 (PST) In-Reply-To: References: <877ehjx447.fsf@oldenburg.str.redhat.com> <875zx2vhpd.fsf@oldenburg.str.redhat.com> <20181113193859.GJ3505@e103592.cambridge.arm.com> <5853c297-9d84-86e5-dede-aa2957562c6b@arm.com> From: Daniel Colascione Date: Wed, 14 Nov 2018 10:35:42 -0800 Message-ID: Subject: Re: Official Linux system wrapper library? To: Joseph Myers Cc: Szabolcs Nagy , Dave P Martin , nd , Florian Weimer , "Michael Kerrisk (man-pages)" , linux-kernel , Joel Fernandes , Linux API , Willy Tarreau , Vlastimil Babka , "Carlos O'Donell" , "libc-alpha@sourceware.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 14, 2018 at 10:15 AM, Joseph Myers wrote: > Any > feature (e.g. syscall library) with a design coming solely from the kernel > rather than a cooperative process is also likely to have an unsuitable > design meaning it doesn't get used. Is that so? membarrier came directly from the kernel. It gets used and appears to have a suitable design. That something isn't used by libc doesn't mean that it doesn't get used in general. > Once we have sufficient communication > to design suitable interfaces *together*, "avoiding the need to > communicate" becomes irrelevant as a design criterion anyway. If that approach is going to go work, the libc maintainership needs to be more pragmatic, less idealistic, and less likely to block work on purity grounds, e.g., we shouldn't do X because the dynamic linker really should be out-of-process, we can't do Y because nobody should be using signals, and we can't do Z because the kernel uses IDs that have such-and-such ugly properties. A good demonstration of a new commitment to pragmatism would be merging the trivial wrappers for gettid(2).