From patchwork Sun Apr 4 11:58:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 42887 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B1DC438515DF; Sun, 4 Apr 2021 11:59:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1DC438515DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617537583; bh=mrkfk1quWdjBX9VDibOMAzdhIk8NhlqMcKJaPgXG5vw=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=eGc1tTOlAP19YY+iUBW1OUcHDD+7qOboEwkm9+8FnGeH0JVE+9aYFs2GOsNecw2kJ fjEN03c+jKl1ibVxiq1KauW+zI7TOzpW+PFtT4udw98yk7CtXDab397wLL5k0frQqS uXRPcsAkFtnNu5o4TZwpB7pUZcjCnvciMr9QqRpo= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 52F523851C27 for ; Sun, 4 Apr 2021 11:59:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 52F523851C27 Received: by mail-wm1-x32a.google.com with SMTP id a76so1299658wme.0 for ; Sun, 04 Apr 2021 04:59:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mrkfk1quWdjBX9VDibOMAzdhIk8NhlqMcKJaPgXG5vw=; b=COg7M6W7P2Aj6LyspDYlRTw6II0lecgXFgqPE3LkT8CGDVkAlcxJV6CLaxN7WNa/9p Za9OCTkto75OeWlk9dH8PSgtcUNjNTjhyuVVOf9utjd+cn/Go4i074HJ+vJwDguXwC8D iZdDsoNC6ySUmRoe7sTXfnlTPk4M0ChwKpyRNNxFc+biEr5Pn6jDiyJwd/y8c5gqLB7y dML2P+V3pGSW9cXPZk3/fexgST4RyhUcOQMmgJ+E2xosg3e4bzXErPJf7pLLeircKW/1 9mDTxIr4I69+/iPz6WCPlHM7ge0wN8QxjdWv38onKNPixp0AulSUOrsQ8D8UqhXjUYab ETzw== X-Gm-Message-State: AOAM533HGayVI19su9EDMvZoiGWCsQLuH+YWdCYOREGtDwQ6GdQpoSyK 0vMmRKi1ezp9FIVvTedUtZo= X-Google-Smtp-Source: ABdhPJxG+SOFZJR7Bk04BCZO77MXxTTD7ZvJLFBIfXRv7y4L3E5zFGllTnT3SZzCuTAsOUgHelpWtQ== X-Received: by 2002:a05:600c:4242:: with SMTP id r2mr2256700wmm.77.1617537578545; Sun, 04 Apr 2021 04:59:38 -0700 (PDT) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id u2sm23786967wrp.12.2021.04.04.04.59.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Apr 2021 04:59:38 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH v5 08/35] arch_prctl.2: Use syscall(SYS_...); for system calls without a wrapper Date: Sun, 4 Apr 2021 13:58:21 +0200 Message-Id: <20210404115847.78166-9-alx.manpages@gmail.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210403194026.102818-1-alx.manpages@gmail.com> References: <20210403194026.102818-1-alx.manpages@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, 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-Patchwork-Original-From: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Signed-off-by: Alejandro Colomar --- man2/arch_prctl.2 | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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