Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2887348imu; Sun, 11 Nov 2018 03:12:31 -0800 (PST) X-Google-Smtp-Source: AJdET5e3c2rVt1xFb+4oSIOC19GvjcuLSF10stA1eFUVyhvqZG5a0HHOdk5c5kCSE3CBkXz3fQNx X-Received: by 2002:a65:6447:: with SMTP id s7mr13598250pgv.226.1541934751079; Sun, 11 Nov 2018 03:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541934751; cv=none; d=google.com; s=arc-20160816; b=LklhadhAHKitRJBnV9WIPXqFcUxkuil+BS5yJ0UDe23UEnl8YYOZNTcrI/AXvdPJtm Ph8n2FtojJNB/ftSB/7AdqiEe16jOK40soeZP2nqc8ETNwQD4glahYQpi2ufoKZZ/blk X+O5Dwd12RQWTmqEqjYzZJEpkuCbdZqcAzF9BsC8ivRlGhROS6CfpxVdg6+VN7mx2bi4 w/XlAgWUswqudQ8S8uKWfFIlIbeMyDGYiEsdWqC49B/2aGaJBVGmcAmRjNl1LT/ih9Yz FkDSJPIHx6J9Cc0nYFztu/dVWENZKWwJwpFhDLjb9hqX/j4CgF7o1ORYa18QBNkV4ivu EuJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3Xy5Vu7zqFUtx5vom9C9zPbWgDLKdNe6DKgRwb98Haw=; b=BfQgjJFUN/1NYARkOOLC7w7ztl2X66eM8oDsdq197FTAAppaz8DOm/3c4lT8uNWida zoVqiPHBi6vMwSuaOvBU/+9mCHEqQppiGh03/kgYqRV4oJRNqdxS6TyPb6VPJ4+pNOtm N4nNyFC0BYKoHao0L0IUlp0763aLxmQ8p8VFvV86wZoJu0cgYAr9tm2zGp4fh7FrtqF3 +JUCgw2kkmM+PcO1K+IN5wyE/TdhoRAJiEEuYqJIJ1o1wyZvAPtLeUUcHlfzVas94yCn 36EuP7ECOkV8xRKSXTqjmbqTyHs1wJ+JgkbzJTrrORMf2GkIqFr/Qmvm4I/oCWEfpTwq Hr4A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si15771pgm.467.2018.11.11.03.12.15; Sun, 11 Nov 2018 03:12:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727597AbeKKVAL (ORCPT + 99 others); Sun, 11 Nov 2018 16:00:11 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:41866 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727440AbeKKVAL (ORCPT ); Sun, 11 Nov 2018 16:00:11 -0500 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id wABBBhdp004380; Sun, 11 Nov 2018 12:11:43 +0100 Date: Sun, 11 Nov 2018 12:11:43 +0100 From: Willy Tarreau To: "Michael Kerrisk (man-pages)" Cc: Daniel Colascione , linux-kernel , Joel Fernandes , Linux API , Vlastimil Babka , Florian Weimer , "Carlos O'Donell" , "libc-alpha@sourceware.org" Subject: Re: Official Linux system wrapper library? Message-ID: <20181111111143.GB4189@1wt.eu> References: <20181111081725.GA30248@1wt.eu> <3664a508-ca74-4ff0-39a6-34543194a24e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3664a508-ca74-4ff0-39a6-34543194a24e@gmail.com> User-Agent: Mutt/1.6.1 (2016-04-27) 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 11:53:54AM +0100, Michael Kerrisk (man-pages) wrote: > I'm not sure I'd view the glibc position quite so harshly (although > it is disappointing to me that bug 6399 remains open). I think they > are simply short of people to work on this task. I think so as well and really have great respect for this limitation, which differs from the technical arguments on the bugzilla trying to find every single good reason why using this syscall was wrong. (...) > A converse question that one could ask is: why did a culture > evolve whereby kernel developers don't take responsibility for > working with the major libc to ensure that wrappers are added as > part of the job of adding each new system call? Yes, I know, there > are some historical reasons (and even today, IMO, they do > themselves no favors by requiring a CLA), but glibc really is > a different place today, compared to where it was a few years > ago. I think the issue is a bit more complex : - linux doesn't support a single libc - glibc doesn't support a single OS In practice we all know (believe?) that both statements above are true but in practice 99% of the time there's a 1:1 relation between these two components. What we'd really need would be to have the libc interface as part of the operating system itself. I'm perfectly fine with glibc providing all the "high-level" stuff like strcpy(), FILE* operations etc, and all this probably is mostly system-independent. But the system interface could possibly be handled easier in the system itself, which would also provide a smoother adoption of new syscalls and API updates. It would also limit the hassle required to provide new syscalls, as if you start to have to contribute to two projects at once for a single syscall, it becomes really painful. But I don't know what changes that would require and it could really turn out that in the end I'm totally wrong about the expected benefits. Cheers, Willy