Message ID | 20210510175546.28445-30-alx.manpages@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces@sourceware.org> 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=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=<UNKNOWN>) 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=aMj9z2yF; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4Ff81B1VPXz9sWl for <incoming@patchwork.ozlabs.org>; Tue, 11 May 2021 03:58:22 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 31D223987C3D; Mon, 10 May 2021 17:57:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31D223987C3D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669423; bh=Pii6/qQgkvbHNo1ydpOp5ILPG6p8/mxZOmh0VJJh7ik=; 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=aMj9z2yFx9W/d1GIr0+foRkC7dHI+o20WfRWnW0s63YKwPQIFZjBf5xKqTPJcV5ab CcgtTR9y+J3CD+OlVD7eTr6WHygQsbpyW0S66rA6yAjXXUpNjD2fYklPKXTNsTjIHp iHC9izn6fQ/BsL5zlW5Xbc3uoIa08MCRXFyMRfEE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id EFBA83987C3D for <libc-alpha@sourceware.org>; Mon, 10 May 2021 17:56:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EFBA83987C3D Received: by mail-wr1-x436.google.com with SMTP id d4so17521959wru.7 for <libc-alpha@sourceware.org>; Mon, 10 May 2021 10:56:59 -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=Pii6/qQgkvbHNo1ydpOp5ILPG6p8/mxZOmh0VJJh7ik=; b=ZIeaT/wtSlSD0+9k+5hOO9jupqOL10orc7bLX40/b7fT6E33lXXdgy6j+rKwvHnIoM q1FHXbtYriHdaLFkQmirXxCI8tszXYb6i9pZbIH//w6g3HUAxWaGo1WQNLKqDfoQqaz3 67yzpNsi79uxibVGWrZ2HW4ReLgzwnhhF9iUblJHGhscwT2NO5hCuOiBcSOIh0fAq9H+ u8KVIJYVfncj6sIXash9SSfdTtUt3BrwfsWwf73kJyrzKhJVpGRAIh6fTtoeqk/CVZAy QsnLs3rFCsvQ4hfW55KTZCF435d5htJWPnseU4LT+D9qTQDNmXscimZG1qLIfMnQXQ1f hO2w== X-Gm-Message-State: AOAM5308nqfwkHMGY/qZiFmLO/SZsk4zqZABYfbU4lV9VjTLa6GL5uO5 bwyVlLsR/xIFmBqXHn3ZEAc= X-Google-Smtp-Source: ABdhPJwATkPssAaYhSq/shtUGd8OjVlgaraz5iYMZhDlqNqU8Qi+0D6UhEy77tAlWZfmqXNjhGny2A== X-Received: by 2002:adf:e412:: with SMTP id g18mr32469741wrm.205.1620669419160; Mon, 10 May 2021 10:56:59 -0700 (PDT) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id m13sm24318830wrw.86.2021.05.10.10.56.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:58 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 29/39] pidfd_getfd.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:38 +0200 Message-Id: <20210510175546.28445-30-alx.manpages@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510175546.28445-1-alx.manpages@gmail.com> References: <20210510175546.28445-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.3 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 <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Alejandro Colomar via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Alejandro Colomar <alx.manpages@gmail.com> Cc: Florian Weimer <fweimer@redhat.com>, Jakub Wilk <jwilk@jwilk.net>, Alejandro Colomar <alx.manpages@gmail.com>, libc-alpha@sourceware.org, linux-man@vger.kernel.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series |
man2: SYNOPSIS: Fix headers, use syscall(), and other fixes
|
expand
|
diff --git a/man2/pidfd_getfd.2 b/man2/pidfd_getfd.2 index a4bf5bfa1..71d7ae4db 100644 --- a/man2/pidfd_getfd.2 +++ b/man2/pidfd_getfd.2 @@ -27,11 +27,18 @@ pidfd_getfd \- obtain a duplicate of another process's file descriptor .SH SYNOPSIS .nf -.BI "int pidfd_getfd(int " pidfd ", int " targetfd ", unsigned int " flags ); +.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */" +.B #include <unistd.h> +.PP +.BI "int syscall(SYS_pidfd_getfd, int " pidfd ", int " targetfd , +.BI " unsigned int " flags ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR pidfd_getfd (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR pidfd_getfd () @@ -121,9 +128,6 @@ first appeared in Linux 5.6. .BR pidfd_getfd () is Linux specific. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -.PP For a description of PID file descriptors, see .BR pidfd_open (2). .PP
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man2/pidfd_getfd.2 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)