Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2780183imu; Sun, 11 Nov 2018 00:25:57 -0800 (PST) X-Google-Smtp-Source: AJdET5dAyh0Mw/vuPImc8qMq/AI5ucm+TMDr3ZnmBoI6QSYOD4yBY+pGanVJgSmuKokAqHBAsH9f X-Received: by 2002:a17:902:2ec1:: with SMTP id r59-v6mr15611587plb.61.1541924757789; Sun, 11 Nov 2018 00:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541924757; cv=none; d=google.com; s=arc-20160816; b=KQUTFPPEIG1KFoqEctgx0V+l8YjiMeENAa7QPQzIRVjBIvU4Ywkdk7FodPuxTWN+ao nGhbXL2SNxbTTDITjE4Hbt6UgByr0C0eBQTEjJzuOVb8najD/Li97yExaLNRbbf+/ViG AhJx19aA6qb2ScFKIfUCNZEjiAec0JqP/qSydXiDilJ32ZWo1YUAqnRztwJQp+aIEd/X aJD00ea4nn0Bftsg5gc5lJ7QJEGJJ7ObuWCWyNf6DTO48MbF5ro7y0aLqeoT9/bmsXQ8 rhEacuMC6d9GFU93pqXKMt0T3oUW+2b57XCLmpknX4iPyDTFSYiG9cN/i0jdCKwY1Ptu yAfA== 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=VHcMal053iY1si/FR52u6YhGXz7e+lO/js4vmvP0hWE=; b=KinG4TSwqMYA1NTCi6banGuSL23QXS6u3Zq6n93X1TOz4HiOr5bd2ER9ZDw6t1QdOG HIz0PfI4ysfRnaIWy5wV9XVVlkdVK5qv/nQb5Ej2sYawqlVqzRp1b5WkOEz6YxVizNJ8 4eYThVd0JkE3XZ+n5AArRw1FiqBdD2hJ0/UEJcKhmFv9nkvxbPlzIHJNNaA1JHlqhqlL upVgslO3+RxhgwD6xq0fKSi0aMKCMH/HGUHSUJUSWPY4Vc6cR1AQ8Lhndc0Lg9TL5oAY 2P5QICW3xvjec5wVdb/gNBVtXdGi3BZ2vqMZMOxaCR7/ZH+CT5PGFeL/Jt7gFqZ4wnfv HeFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jk368l5Y; 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 31si12800327pgl.595.2018.11.11.00.25.37; Sun, 11 Nov 2018 00:25:57 -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=jk368l5Y; 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 S1727462AbeKKSNA (ORCPT + 99 others); Sun, 11 Nov 2018 13:13:00 -0500 Received: from mail-vs1-f68.google.com ([209.85.217.68]:33689 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727334AbeKKSNA (ORCPT ); Sun, 11 Nov 2018 13:13:00 -0500 Received: by mail-vs1-f68.google.com with SMTP id p74so3453293vsc.0 for ; Sun, 11 Nov 2018 00:25:05 -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=VHcMal053iY1si/FR52u6YhGXz7e+lO/js4vmvP0hWE=; b=jk368l5Yv1IvALlHmcTi9DxOA1Wt265ShOLlw2HnASIzH37B3am3rsggZNRgYXSO02 PaQpxcbYtXDeU1QQb4+dmBd6l2XYSeM3KwgLUn1BvyhXWUNslU+6yXFVCzKe06ZxJutw OGXp4SHatfHw3WHlTOmPAd+J7e2U2Fvev9usYiGjzb2FNlDVuRDsObsL5tT66QmSagrm km4YapzPzcazlhGyZcOyNU90+Syng041R+USDSKqA3PvjY3w7WR1zq60OiLdGBP5zVAM nTun0WN3YtLbsNo/CFP2CUpQ9tOwok0kru1eVX4ah8WTpXXuOBJEWqZXhj564QeDVemb SuyA== 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=VHcMal053iY1si/FR52u6YhGXz7e+lO/js4vmvP0hWE=; b=AUNu87Anhwr1hSMgEZG4SSdxLfD9f0FGMrqWdcFUlTycmXAf1sdbAVsy3UAUbOz67O nQllKsSJanxkW8MOVK1hkYkepFRhWWHHhpHgiJlNAfb0gz/Zd6fr5S5POXUH5fHi/0gg HrvhW6V/0CwDYKMYQI0o82SLOFWFnGs2DrFuYKcxfFa0B7aoBdGqNqa9lFpoICanMHk3 rHdQ1qSoBzz0HBJva/YKZOKbwu89QmsbEk1xtShH8dLe2/BQ/JFGe5gtqBdwdPn65C0X dlph/Jp89419jhmICP8v7g2rxBMqEC5D7OLLHItXab7HrXr6IJVi2qwG9LfdCK115LVC ntHA== X-Gm-Message-State: AGRZ1gIE2T4MBwpnz2QbMDD5WqdJ5Eq/vIGaV8UDVDqdX4DYyng9ofHA 0A2InmvtZ28YcxZOoBLywW51/5rhVvcFE2Tfut6xHw== X-Received: by 2002:a67:6cc1:: with SMTP id h184mr6439343vsc.149.1541924703893; Sun, 11 Nov 2018 00:25:03 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a67:f48d:0:0:0:0:0 with HTTP; Sun, 11 Nov 2018 00:25:03 -0800 (PST) In-Reply-To: <20181111081725.GA30248@1wt.eu> References: <20181111081725.GA30248@1wt.eu> From: Daniel Colascione Date: Sun, 11 Nov 2018 00:25:03 -0800 Message-ID: Subject: Re: Official Linux system wrapper library? To: Willy Tarreau Cc: "Michael Kerrisk (man-pages)" , linux-kernel , Joel Fernandes , Linux API , Vlastimil Babka , Florian Weimer , "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 Sun, Nov 11, 2018 at 12:17 AM, Willy Tarreau wrote: > > On Sun, Nov 11, 2018 at 07:55:30AM +0100, Michael Kerrisk (man-pages) wrote: > > [1] https://sourceware.org/ > > > Bah, after all, this > > wipes quite a bit of the shame I feel every time I do something to > > bypass it :-/ > > > The sad thing is that the energy wasted arguing in the bug above could > > have been better spent designing and implementing a generic solution > > to expose syscalls without depending on glibc's politics anymore. > > > Willy > > bugzilla/show_bug.cgi?id=6399 is a > > longstanding example. > > This one was a sad read and shows that applications will continue to > suffer from glibc's prehistorical view on operating systems Yes. I'm really not sure what glibc's current policies are meant to accomplish. They don't serve any useful purpose. There seems to be this weird subtext that glibc has leverage to change OS design, and it really doesn't. It's a misplaced idealism and ends up just hurting everyone. > > Seeing comments suggesting an application should open > /proc/$PID makes me really wonder if people actually want to use slow > and insecure applications designed this way. That's a separate point. Yes, gettid should have a wrapper, but *also* we should have an FD-based interface to processes, because outside specialized contexts (e.g., parent-child waiting), the traditional Unix process API really is impossible to use safely. But that's a separate ongoing discussion.