From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by sourceware.org (Postfix) with ESMTPS id C2C5D38515E8 for ; Mon, 5 Apr 2021 11:25:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C2C5D38515E8 Received: by mail-ed1-x52c.google.com with SMTP id w23so937001edx.7 for ; Mon, 05 Apr 2021 04:25:38 -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=R8qbYCl0K0scOT2t2Zvk2C6CpQsik38I/CGxVOj6W0o=; b=bEElE1cE/e9P76mls19v4b/5S8t2gYx/omts5XmsYv3fOO1ANuXxLqqbiljaoE5tGM o+6Hl45otunAzIMg8smpoGzMG2phTWF40zQX5JT9X0egrS2Kj01wJmjKCi2MXcqRPgBX a/KyMMtb3yn+ri1+X471EmXdKD53THrNWfK8CtmOW9W05ndSXE7DNNRvs+BqLrv8oQXY NSlsueR9+m99eSba2cA+q9gBmyO+n6Kt7wES6yu+NrQjtik4vphKLcwT5urlnleqU9SE X2GYTRvpnqyCpu3Dum1+IpcxrVHnWQe7UtBP8m9HHj5+P00p9Utspwp3uEHxkdzNCPtU Hycw== X-Gm-Message-State: AOAM5325ePSyxBPfjdWbH6bNUbFs4eetHwQsYJuwy1PObcJT5kTm4SDM ePuwEM0O/4xG4CgScwgF6ziFfaiyVgk= X-Google-Smtp-Source: ABdhPJy6Ceu++kG+RiPCiSCQv8qMxOdlSTGl4/AJG/6volKwBS7jqpCggyllbixTeEGEFbgLtWT5eA== X-Received: by 2002:a05:6402:484:: with SMTP id k4mr30523394edv.321.1617621937684; Mon, 05 Apr 2021 04:25:37 -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 rk11sm2178098ejb.60.2021.04.05.04.25.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Apr 2021 04:25:37 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, libc-alpha@sourceware.org Subject: Re: [PATCH v5 08/35] arch_prctl.2: Use syscall(SYS_...); for system calls without a wrapper To: Alejandro Colomar References: <20210403194026.102818-1-alx.manpages@gmail.com> <20210404115847.78166-9-alx.manpages@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: <6ee823f7-557c-64ca-8f9b-81e397b5a34d@gmail.com> Date: Mon, 5 Apr 2021 13:25:36 +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-9-alx.manpages@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Mon, 05 Apr 2021 11:25:40 -0000 Hi Alex, On 4/4/21 1:58 PM, Alejandro Colomar wrote: > Signed-off-by: Alejandro Colomar > --- > man2/arch_prctl.2 | 14 +++++--------- > 1 file changed, 5 insertions(+), 9 deletions(-) Patch applied. Thanks, Michael > diff --git a/man2/arch_prctl.2 b/man2/arch_prctl.2 > index 1ddeca595..f8073d625 100644 > --- a/man2/arch_prctl.2 > +++ b/man2/arch_prctl.2 > @@ -27,15 +27,14 @@ > arch_prctl \- set architecture-specific thread state > .SH SYNOPSIS > .nf > -.B #include > +.BR "#include " " /* Definition of " ARCH_* " constants */" > .B #include > +.BR "#include " " /* Definition of " SYS_* " constants */" > +.B #include > .PP > -.BI "int arch_prctl(int " code ", unsigned long " addr ); > -.BI "int arch_prctl(int " code ", unsigned long *" addr ); > +.BI "int syscall(SYS_arch_prctl, int " code ", unsigned long " addr ); > +.BI "int syscall(SYS_arch_prctl, int " code ", unsigned long *" addr ); > .fi > -.PP > -.IR Note : > -There is no glibc wrapper for this system call; see NOTES. > .SH DESCRIPTION > .BR arch_prctl () > sets architecture-specific process or thread state. > @@ -177,9 +176,6 @@ and > in the same thread is dangerous, as they may overwrite each other's > TLS entries. > .PP > -Glibc does not provide a wrapper for this system call; call it using > -.BR syscall (2). > -.PP > .I FS > may be already used by the threading library. > Programs that use > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/