From patchwork Sat Apr 3 19:40:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 42850 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 78275386103E; Sat, 3 Apr 2021 19:41:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78275386103E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617478919; 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=q7LcCM0c/+Jo0qAsaw/7FuLh82+sqI1fk8gSLi+SdloTx2sYETvKzLk3JDaI6N590 umyfW0YgdmyC/9OT49izX4IKwXjdz8WZ3OdpBa6bHIUAFB828AVCOV8rMEApqJenfC ygBykHe9AaVOqDmi5E+/qywi1GNs58zD5kE6Hn4g= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 566CF3851C19 for ; Sat, 3 Apr 2021 19:41:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 566CF3851C19 Received: by mail-wm1-x336.google.com with SMTP id b2-20020a7bc2420000b029010be1081172so3804769wmj.1 for ; Sat, 03 Apr 2021 12:41:54 -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=i9Qa1wXPqirHN3l+hxFrjV9YjVt5t3A6QQApwG5Tult5soCI3vhchEuHOuNgEtONPg p7GgyJz+scwXNJBzrnFn/GzHI+ePEYYrBjDX41haAS/SnRePVL+h1vNuQekrP/9XXuDX K++gYCuBLsWdiwk5AA0se0StQUNI54MVEvMV84O2sQdwYS3mr86WiI4IknUpcugGcaGG Aqjykpo0ZFGaOe5Ytq2Yw+YGZFJ0kSD6vU33KkCFhfSH/0uwLS2lwGlZ1idbVaqFB1eK ilfsnOvT3Zbj35PT51qex46CAlJTK1H2amVvMqPxYf4D+V0ZzLLs8dbzWImUhg9ihBWp rAtw== X-Gm-Message-State: AOAM531pNv7CS2vq9iNaDmwBXIuARxJYTQyGQ1EkJqU9mwQJ38cJzkzk aSnhuOw+OSjjqWYYkzCkcOM= X-Google-Smtp-Source: ABdhPJyG61E8VOsYvZFS+o+IivYLoPJK4N6RLwtIsQvAE3y8TVoA/aiXvjfCbaso0qcdN4cVejbQLw== X-Received: by 2002:a05:600c:2204:: with SMTP id z4mr18813744wml.31.1617478913506; Sat, 03 Apr 2021 12:41:53 -0700 (PDT) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id n1sm25211056wro.36.2021.04.03.12.41.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Apr 2021 12:41:53 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH v4 08/35] arch_prctl.2: Use syscall(SYS_...); for system calls without a wrapper Date: Sat, 3 Apr 2021 21:40:00 +0200 Message-Id: <20210403194026.102818-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=-11.9 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