Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1399781ybn; Wed, 25 Sep 2019 17:47:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTqgVZpCUllhuuw0tggUzlatXkkdY3ZNS6etPJchz3iWlqn84nr5dZla462vnaqNvf6ZV3 X-Received: by 2002:a50:a8c5:: with SMTP id k63mr877354edc.122.1569458849383; Wed, 25 Sep 2019 17:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569458849; cv=none; d=google.com; s=arc-20160816; b=ro/XgeVJNJTp/mmDD+vXq0S7BYoPKh4wFjrL/wV0n8uppE6JXdMBbMR5Ud8EpRa71A Gu4XAGoLzkY+Fgq5D6OLpKflwmcPenkLIpugWxKVBtp9SClCyu2+ldnaoN+3b6T+9mWL Q2xpge4BGV2UvCuV8I4jD7E0RZuIFk3PGJtTPCPSz9fgRKj1a14xekBTlTRsTrk8d6QK il2sJoC+9Qz6hVvvFGU4KHqAItqaRRs3vphawJ61LANeLlzzyPo5UMnGfZZDNr3iNFE0 5zVt2gL5EkP+RfefHMwg7ebJCvb+5ru1EszGD89fQBicgN/K5TaZERCUe41DWLBb3Qem rUig== 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=sU4erGr2yFCyrujq6kmCZeJgMGgkRwJc82F8pM/PLak=; b=C/G3jwGULAg8h9EL6LTtdr59Df1b9GTmP7ICaBvYKayFjNoJjUt0f4dyBaBsHne8Ve 2f3CST7EHkobj5K1/4mrJpQqDCIzlCbD/eiV786hvxVpoQ+X5VobOi4cv6lgI8FTfOLO NhmX6VfhlDmzqLn9A9w/vrh8NDiHNN6kl5t4lhHcR9fLuBeRxO4YwRQdN91nUzeUKSzI d/IbuPjRxJIWKYyH3gaRww13JrYvLK/Coomz2A2b9c2uxA1ieAUebeVyD2F9/+gUdACP Bb6zgRAwaacHpSNEO/d2GT/TgVSVvK1POxLUtoZUE78U+06J9bb1pOo1NCtfwhWNOtmC uuEw== 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 h2si415789edw.29.2019.09.25.17.47.06; Wed, 25 Sep 2019 17:47:29 -0700 (PDT) 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 S2502827AbfIXHif (ORCPT + 99 others); Tue, 24 Sep 2019 03:38:35 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:38148 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388489AbfIXHif (ORCPT ); Tue, 24 Sep 2019 03:38:35 -0400 Received: from [185.81.136.22] (helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iCfOv-0004Up-Tc; Tue, 24 Sep 2019 07:38:22 +0000 Date: Tue, 24 Sep 2019 09:38:18 +0200 From: Christian Brauner To: Florian Weimer Cc: "Michael Kerrisk (man-pages)" , Jann Horn , Daniel Colascione , "Eric W. Biederman" , Joel Fernandes , Linux API , lkml , linux-man , Oleg Nesterov Subject: Re: For review: pidfd_open(2) manual page Message-ID: <20190924073817.zb7vr5he4wbibl7j@wittgenstein> References: <90399dee-53d8-a82c-3871-9ec8f94601ce@gmail.com> <87tv939td6.fsf@mid.deneb.enyo.de> <63566f1f-667d-50ca-ae85-784924d09af4@gmail.com> <874l12924w.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <874l12924w.fsf@mid.deneb.enyo.de> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 23, 2019 at 10:41:19PM +0200, Florian Weimer wrote: > * Michael Kerrisk: > > >>> static > >>> int pidfd_open(pid_t pid, unsigned int flags) > >>> { > >>> return syscall(__NR_pidfd_open, pid, flags); > >>> } > >> > >> Please call this function something else (not pidfd_open), so that the > >> example continues to work if glibc provides the system call wrapper. > > > > I figured that if the syscall does get added to glibc, then I would > > modify the example. In the meantime, this does seem the most natural > > way of doing things, since the example then uses the real syscall > > name as it would be used if there were a wrapper function. > > The problem is that programs do this as well, so they fail to build > once they are built on a newer glibc version. > > > But, this leads to the question: what do you think the likelihood > > is that this system call will land in glibc? > > Quite likely. It's easy enough to document, there are no P&C issues, > and it doesn't need any new types. My previous mail probably didn't make it so here it is again: I think especially with the recently established glibc consensus to provide wrappers for all new system calls (with some sensible exceptions) I'd expect this to be the case. > > pidfd_send_signal is slightly more difficult because we probably need > to add rt_sigqueueinfo first, for consistency. Oh, huh. Somehow I thought we already provide that. Christian