From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8B20D1F461 for ; Thu, 27 Jun 2019 10:05:32 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:references :in-reply-to:content-type:content-id:content-transfer-encoding :mime-version; q=dns; s=default; b=QnhOVO6wMD3vws3Zdvb+BVwlH+70j TkrxbaijZUAbjXUl3TnnhhnT117RtHkj8vFKADc9rcKPh7rNPGKZvVZBenf3GxVB ZhT4o5FoAu9cw1bMrUPeJpU/yLMm47d5HGy8PnspdMdhtKLDKJzmeKiOvZ1vd01r I4rcJb8PsdhTmc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:references :in-reply-to:content-type:content-id:content-transfer-encoding :mime-version; s=default; bh=uwe4jp4iJmIX7NlU9sEmrAhhH4Y=; b=sId 97rmQC2fKN+NVSSHdHuT4ttfW3M3V8/yvzPvfj4mtUfd7jWm1cJodri3Mcr2+/2a aI52mGP8J19UWVbn3jjY0qofF2kRJ9BKwlLUVVVg6V4rWulKDEzB8IB5Tcy/5D2r Bcrp10aKd/8ul0IrD/WPrFHpvNS+gNmK2jDwnMNI= Received: (qmail 17846 invoked by alias); 27 Jun 2019 10:05:30 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 17810 invoked by uid 89); 27 Jun 2019 10:05:30 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: EUR04-VI1-obe.outbound.protection.outlook.com ARC-Seal: i=1; a=rsa-sha256; s=testarcselector01; d=microsoft.com; cv=none; b=SGkzI3hz3va+IiDBVvWMq0ad4pCD56m8jZJ2ThEeYSLHwFoGMx/WVqtIweN4az7LZOlEPuhpUj4plOHs9tHVXM2j4KV5ko6Jh3G839W2KJ1ojZ++H4BQ0QOy4EhtS4mobzmOH13YMimZ1uKtT55AA9aeIygCQ3McWkbX7tj9RhU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=testarcselector01; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uq0ILzJs8E+65h3XNTuie1Gld2GP704g8nq1nMMj21g=; b=sOaD+58Lkn6ysQVki/K1tZb7ediUZHM6UKb6YaFHTcsTnfVyqktAvmrAZRl0AnrtVVIpne50dz8l6G5AhSs6uxMNBq99lsDBfDByN3ZieDoAXcNPQ6Oy3bllKFe9BdnuO2Jf47Qvr9udgsap83mVGbmb37uBiudWXXUAaVAcOxg= ARC-Authentication-Results: i=1; test.office365.com 1;spf=none;dmarc=none;dkim=none;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uq0ILzJs8E+65h3XNTuie1Gld2GP704g8nq1nMMj21g=; b=5pQ21W7DsR/r48XnUtT7mWv4TgDSVL+LUIFBItWvHokNuqpFiGKWKFPEwVMeBwFBAvwHtLdWch5QRJYFhfTdEcp9w3KW7ZiIJlmPc6ynTPTB6AqmK0RcRzm/xLMqpO9k8CagCcoTd1a9qYaYmrqikdWIWSly+i9MjgNxLKnZm+Q= From: Szabolcs Nagy To: "Dmitry V. Levin" , Carlos O'Donell CC: nd , Christian Brauner , "libc-alpha@sourceware.org" , Zack Weinberg Subject: Re: glibc at the Toolchains microconference at LPC 2019 Date: Thu, 27 Jun 2019 10:05:24 +0000 Message-ID: <16b23696-9318-714b-07f2-5a57c7c57ed3@arm.com> References: <87o92kibdz.fsf@oldenburg2.str.redhat.com> <20190626163908.GA13251@altlinux.org> <530DF2A2-2D76-43F6-81D0-405EFE097A57@brauner.io> <5f740811-e7d7-6ece-4156-89651666e416@redhat.com> <20190627093928.GA25423@altlinux.org> In-Reply-To: <20190627093928.GA25423@altlinux.org> user-agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; x-ms-exchange-purlcount: 1 x-ms-oob-tlc-oobclassifiers: OLM:10000; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 Content-Type: text/plain; charset="Windows-1252" Content-ID: <89EB67E1D0D6284C832E5A6285C5C5E1@eurprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Szabolcs.Nagy@arm.com On 27/06/2019 10:39, Dmitry V. Levin wrote: > On Wed, Jun 26, 2019 at 05:04:52PM -0400, Carlos O'Donell wrote: > [...] >> Could you please review the language here: >> https://sourceware.org/glibc/wiki/Consensus#WIP:_Kernel_syscalls_wrapper= s >=20 > I suggest adding that there is no need to add wrappers for those syscalls > that already have dedicated libraries. >=20 > For example, such multiplexers as bpf(2) and keyctl(2) already have > dedicated libraries (libbpf and libkeyutils, respectively) that provide > APIs on top of these raw syscalls. there are many issues doing raw syscalls e.g. the x32 type mess or cancellation support. external library projects can have different level of quality, supported abis, header conformance, security process etc. and they almost always mix libc and linux uapi headers and types. so i'm against relying on external libraries doing raw syscalls (they may provide additional functionality but the syscall itself should be in libc) >=20 > keyctl(2) manual page explicitly says that "rather than using this system > call directly, you probably want to use the various library functions > mentioned in the descriptions of individual operations". >=20 >=20