From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 834C6C43441 for ; Fri, 23 Nov 2018 14:16:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 505CA20861 for ; Fri, 23 Nov 2018 14:16:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 505CA20861 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=davidnewall.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436561AbeKXBA5 (ORCPT ); Fri, 23 Nov 2018 20:00:57 -0500 Received: from hawking.davidnewall.com ([203.20.69.83]:46199 "EHLO hawking.rebel.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391062AbeKXBA5 (ORCPT ); Fri, 23 Nov 2018 20:00:57 -0500 X-Greylist: delayed 325 seconds by postgrey-1.27 at vger.kernel.org; Fri, 23 Nov 2018 20:00:56 EST Received: from [172.30.0.109] (124-169-190-170.dyn.iinet.net.au [::ffff:124.169.190.170]) (AUTH: PLAIN davidn, SSL: TLSv1/SSLv3,128bits,AES128-SHA) by hawking.rebel.net.au with ESMTPSA; Sat, 24 Nov 2018 00:41:06 +1030 id 0000000000064BC2.5BF80A7C.00004D42 Subject: Re: Official Linux system wrapper library? To: Florian Weimer , Daniel Colascione Cc: "Michael Kerrisk (man-pages)" , linux-kernel , Joel Fernandes , Linux API , Willy Tarreau , Vlastimil Babka , Carlos O'Donell , "libc-alpha@sourceware.org" References: <877ehjx447.fsf@oldenburg.str.redhat.com> <875zx2vhpd.fsf@oldenburg.str.redhat.com> <87efbbvrx9.fsf@oldenburg.str.redhat.com> From: David Newall Message-ID: Date: Sat, 24 Nov 2018 00:41:05 +1030 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <87efbbvrx9.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-AU Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/11/18 12:04 am, Florian Weimer wrote: > But socketcall does not exist on all architectures. Neither does > getpid, it's called getxpid on some architectures. > ... > I think it would be a poor approach to expose application developers to > these portability issues. We need to abstract over these differences at > a certain layer, and applications are too late. Interesting.  I think the opposite.  I think exposing the OS's interfaces is exactly what a c-library should do.  It might also provide alternative interfaces that work consistently across different platforms, but in addition to, not instead of the OS interface.