From patchwork Sat Mar 13 19:25:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1452549 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=xbnQfS4X; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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 ozlabs.org (Postfix) with ESMTPS id 4DyXkF4l12z9sRR for ; Sun, 14 Mar 2021 06:27:01 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DA720388E812; Sat, 13 Mar 2021 19:26:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA720388E812 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615663565; bh=hSTdDcjje/hceZMxpO7qDIzVpu8KWXMOYCef8SD5Sy4=; 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=xbnQfS4X17caGB98CE8se/Zu9UVfvVunRR+vTc29KgPFhajdsXrFXG8YyRs07ct8X 1jAGec+r1pzwvjuGlTtMmuI8Yyevj4J+9ECbFDMs1yLyLJkrZeUQL+L+5H5FxorQDT cpxfuGdZ9zsAQg+dTepzZM2fZAtxALF9K8IhAROw= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 7130C388C00F for ; Sat, 13 Mar 2021 19:26:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7130C388C00F Received: by mail-wm1-x332.google.com with SMTP id b2-20020a7bc2420000b029010be1081172so17104518wmj.1 for ; Sat, 13 Mar 2021 11:26:01 -0800 (PST) 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=hSTdDcjje/hceZMxpO7qDIzVpu8KWXMOYCef8SD5Sy4=; b=H8UNDWApPG7tNyi8WRmvjL4LtLoTPzSkZxfwxUsVHagXFeZhDjLXQKV133cW7mEMDJ hBIjxpF2l7veVgELKkE3399fy5Qadx81crcm8wMtbxeqM06uefAUIG+nzSkNevSIFvY5 An2H1O1b8xSWv0JIAesuq/u668rdyajIqoM9qrIODGtcpRjZd8Kb7AX3s5o86w5BOcsu 6JYyZZHRkb8KVq5J8cgxdBFKtv7KpoHZfwksKtYy27x1tWyo1ZmsCHd5zwPfqBmpS6jw hpCKcavxAp15ropmVQciXy20f9hpxCX/hVoMVR1wtJV3Tmk3NPSXBBkoV+rGrjuGE4fB h6lw== X-Gm-Message-State: AOAM531S2a1w1tPE6mQ0wxFQ3CNYN8ZQbIfR03LzROOQxwtW46+iJw5A 776quMZSxPU2bP47SLJ3vwXJ9BUEFMpBxQ== X-Google-Smtp-Source: ABdhPJwdRHI7UONCGKpzUUYdG5/c4LkiL+jfrlZ1Xo34nkDe10cswmF2DmJkFx8O2heFSuKKL01mzw== X-Received: by 2002:a05:600c:4f14:: with SMTP id l20mr18692607wmq.71.1615663560662; Sat, 13 Mar 2021 11:26:00 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id j136sm7670964wmj.35.2021.03.13.11.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Mar 2021 11:26:00 -0800 (PST) To: mtk.manpages@gmail.com Subject: [RFC v3 14/17] get_robust_list.2: Use syscall(SYS_...); for system calls without a wrapper Date: Sat, 13 Mar 2021 20:25:24 +0100 Message-Id: <20210313192526.350200-15-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210214133907.157320-1-alx.manpages@gmail.com> References: <20210214133907.157320-1-alx.manpages@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 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, linux-kernel@vger.kernel.org, Florian Weimer Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Also remove unused includes. Signed-off-by: Alejandro Colomar --- man2/get_robust_list.2 | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/man2/get_robust_list.2 b/man2/get_robust_list.2 index b1ae42dbd..9c8f14443 100644 --- a/man2/get_robust_list.2 +++ b/man2/get_robust_list.2 @@ -32,17 +32,16 @@ get_robust_list, set_robust_list \- get/set list of robust futexes .SH SYNOPSIS .nf -.B #include -.B #include -.B #include +.BR "#include " \ +" /* Definition of " "struct robust_list_head" " */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "long get_robust_list(int " pid ", struct robust_list_head **" head_ptr , -.BI " size_t *" len_ptr ); -.BI "long set_robust_list(struct robust_list_head *" head ", size_t " len ); +.BI "long syscall(SYS_get_robust_list, int " pid , +.BI " struct robust_list_head **" head_ptr ", size_t *" len_ptr ); +.BI "long syscall(SYS_set_robust_list," +.BI " struct robust_list_head *" head ", size_t " len ); .fi -.PP -.IR Note : -There are no glibc wrappers for these system calls; see NOTES. .SH DESCRIPTION These system calls deal with per-thread robust futex lists. These lists are managed in user space: @@ -139,9 +138,6 @@ could be found. These system calls were added in Linux 2.6.17. .SH NOTES These system calls are not needed by normal applications. -No support for them is provided in glibc. -In the unlikely event that you want to call them directly, use -.BR syscall (2). .PP A thread can have only one robust futex list; therefore applications that wish