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 BE29D1F461 for ; Fri, 28 Jun 2019 21:35:14 +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:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=IMiIN EMAxoyGkVyr8wnTayFvcJG2kdUmQHJKYKa84+BlGSs0rQ8RL4grde065Sdq0yTQh Zjpe42OSFZkjsy8L598nc81HwiN8D7kh6uDziIFb4AhDUDTMnVHSiVJBGp8SEb/X pzAm57jAPxaTBqyS2sBDvnMg+g/wc0r/zGYFyo= 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:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=kaVyM1AK9S+ nLKNWv8vVepvyDSY=; b=uuN652Fs/ypc/Y3Wt1WTMnLR+NWpWnEhyw3Cebn3TDt mckJeY45KlMUM9G0YnHGOZyAfiorUFc0NH+8x3l5lqVCuagf5hFu6nuZLIpVNSD+ +A2wC5X21+t5Cjpaiih0y9HKpuY+TUL/HN+1pOgrU3oreiEGNYPLNH8+ujG0tUWY = Received: (qmail 60466 invoked by alias); 28 Jun 2019 21:35:12 -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 60458 invoked by uid 89); 28 Jun 2019 21:35:12 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx1.redhat.com From: Florian Weimer To: "Dmitry V. Levin" Cc: Zack Weinberg , Carlos O'Donell , GNU C Library Subject: Re: wrappers for multiplexed syscalls (was Re: glibc at the Toolchains microconference at LPC 2019) 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> <20190627205259.GA818@altlinux.org> <87ef3eu3iy.fsf@mid.deneb.enyo.de> <20190628212040.GB18013@altlinux.org> Date: Fri, 28 Jun 2019 23:35:03 +0200 In-Reply-To: <20190628212040.GB18013@altlinux.org> (Dmitry V. Levin's message of "Sat, 29 Jun 2019 00:20:40 +0300") Message-ID: <87blyhjsvs.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain * Dmitry V. Levin: > What if we start adding separate functions for new interfaces of already > existing multiplexed system call wrappers? > > For example, ptrace is going to gain a new command (PTRACE_GET_SYSCALL_INFO) > in Linux 5.3. My initial plan was just to update sys/ptrace.h with a new > constant and bits/ptrace-shared.h with a new structure, but I could add > a new function as well: > > extern int ptrace_get_syscall_info (__pid_t __pid, > struct __ptrace_syscall_info *__infop) > __THROW; I think this makes a lot of sense. We should also do this for existing constants (and for fcntl, too). Perhaps after we have added more of the wrappers that are *completely* missing, though. For futex, it will also help with the time_t transition. Thanks, Florian