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: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 51F921F4B4 for ; Mon, 5 Apr 2021 11:33:35 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 254B63851C24; Mon, 5 Apr 2021 11:33:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 254B63851C24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617622414; bh=PqLfD+7ZN9uCbHIyrZxYxLrfulKfRalUA9IZBo4qDak=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=kgM9IAH2LIW2PhAtmYZY6Qt2gUJTPHTU+KTGfMgbB/jaYlSNRjnV6Xsfv8sSSJ+wr pV19ziCc1cFNN4uX/4t5T0fSWxmho2EKcrLImrojvE47flfnL1Kmq8mY8iMsrdWzkO K9VctbHszbJYikwvnJqnnoy7VXkfpcKyh+MRdfvM= Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 79DC53857829 for ; Mon, 5 Apr 2021 11:33:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 79DC53857829 Received: by mail-ej1-x62f.google.com with SMTP id qo10so6004651ejb.6 for ; Mon, 05 Apr 2021 04:33:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PqLfD+7ZN9uCbHIyrZxYxLrfulKfRalUA9IZBo4qDak=; b=iMO86XKSWSGPbn/weiJT1zDkl/s1Of8YgKPNhLIpAMMxI4zOSj3Vx/Mnpe0gJQQ6pj 0sMsJ0VlmtW1utfLVO+EHp/M0/TXMW1MSObgT2qT6Debt3zdHKEtZJL11ez+dTF9rMI2 nWvIXIAKitfU0AEoEbrhpNmuZpAL02od4Qcnql5ZGVT1YXrnYQy+pcbLW/1X7cSvl/dZ INczkDJYn1EW6jYBwaMdIH5/Hb6RxleJeBcOJ255f1XYxZ9545IniiU7pU6Uj8k4TG2h lwDSRXR29eul6ShJBnEnOmlpJSODY9be+KsTVuInSQ6Gk4GxqFtlqyJn2ot3Nhwacyxv 0zbA== X-Gm-Message-State: AOAM5300O1HTFkTVxtZQUkPiJ6bjMlTcdjKeoUEAp6N5sBKdq6unIkaZ S5+skvHHZD0WgPbFVOfEq2OW853huls= X-Google-Smtp-Source: ABdhPJwmrnpp8b4ovCteNDnYj7/W6T5BvL6uMr2FMiNQo8WFzx95qOrFL4W2Bilt5d8307PbOPQwmw== X-Received: by 2002:a17:907:628a:: with SMTP id nd10mr28097409ejc.326.1617622410339; Mon, 05 Apr 2021 04:33:30 -0700 (PDT) Received: from ?IPv6:2001:a61:2553:a401:cfc6:2039:a9ec:21ff? ([2001:a61:2553:a401:cfc6:2039:a9ec:21ff]) by smtp.gmail.com with ESMTPSA id eo22sm8652089ejc.0.2021.04.05.04.33.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Apr 2021 04:33:30 -0700 (PDT) Subject: Re: [PATCH v5 14/35] execveat.2: Use syscall(SYS_...); for system calls without a wrapper To: Alejandro Colomar References: <20210403194026.102818-1-alx.manpages@gmail.com> <20210404115847.78166-15-alx.manpages@gmail.com> Message-ID: Date: Mon, 5 Apr 2021 13:33:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210404115847.78166-15-alx.manpages@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "Michael Kerrisk \(man-pages\) via Libc-alpha" Reply-To: "Michael Kerrisk \(man-pages\)" Cc: linux-man@vger.kernel.org, libc-alpha@sourceware.org, mtk.manpages@gmail.com Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Hi Alex, On 4/4/21 1:58 PM, Alejandro Colomar wrote: > Add , which contains AT_* definitions used by > execveat(). > > Signed-off-by: Alejandro Colomar Patch applied. Thanks, Michael > --- > man2/execveat.2 | 14 +++++--------- > 1 file changed, 5 insertions(+), 9 deletions(-) > > diff --git a/man2/execveat.2 b/man2/execveat.2 > index 855832765..c566f53df 100644 > --- a/man2/execveat.2 > +++ b/man2/execveat.2 > @@ -28,15 +28,14 @@ > execveat \- execute program relative to a directory file descriptor > .SH SYNOPSIS > .nf > +.BR "#include " " /* Definition of " AT_* " constants */" > +.BR "#include " " /* Definition of " SYS_* " constants */" > .B #include > .PP > -.BI "int execveat(int " dirfd ", const char *" pathname , > -.BI " const char *const " argv "[], const char *const " envp [], > -.BI " int " flags ); > +.BI "int syscall(SYS_execveat, int " dirfd ", const char *" pathname , > +.BI " const char *const " argv "[], const char *const " envp [], > +.BI " int " flags ); > .fi > -.PP > -.IR Note : > -There is no glibc wrapper for this system call; see NOTES. > .\" FIXME . See https://sourceware.org/bugzilla/show_bug.cgi?id=27364 > .SH DESCRIPTION > .\" commit 51f39a1f0cea1cacf8c787f652f26dfee9611874 > @@ -209,9 +208,6 @@ the natural idiom when using > is to set the close-on-exec flag on > .IR dirfd . > (But see BUGS.) > -.PP > -Glibc does not provide a wrapper for this system call; call it using > -.BR syscall (2). > .SH BUGS > The > .B ENOENT > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/