Message ID | 20210510175546.28445-31-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=jowp4YbE; 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 4Ff81G0L6vz9sWl for <incoming@patchwork.ozlabs.org>; Tue, 11 May 2021 03:58:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B550139888A0; Mon, 10 May 2021 17:57:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B550139888A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669423; bh=xjxtXDywb0s139fONhfnTw35XQrmKhcgjPyWrpJqsa0=; 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=jowp4YbE/B5jqYIKu7EbZTq1MJscUtfuLMT6a5ZPXrwriH1/ywER6rSJAw9n4py1z HOLfN9R7wGnrUOrLjKqlLMH0dXBpYUwmmMOn7ZmC6697WUdGjZFlD86O/ZgxDYrHkJ riZbtOpa3b1Qg1eTgKu0o3mbpQbLjQvZwfWQQvlg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 44CD23987C3D for <libc-alpha@sourceware.org>; Mon, 10 May 2021 17:57:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 44CD23987C3D Received: by mail-wr1-x429.google.com with SMTP id v12so17518317wrq.6 for <libc-alpha@sourceware.org>; Mon, 10 May 2021 10:57:01 -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=xjxtXDywb0s139fONhfnTw35XQrmKhcgjPyWrpJqsa0=; b=BCv+FlDRcVcyQQrafvlEQVNoWXXSDkE8XBv2jic3ygUJuoSMBoZhRZHk/Z3JlgsFAn tCpFgbScbRnpWcRy/wI7tDM+bNEW7a6tW5vXYX1slrp6pOK0tuklqY18pLq9b5P9ZpA+ zHxUfAdas6rw0RnD58VtU4yempNuk1qleFZPMkXx1Lx66NSaj6cgCcdBKLFDSALiAyKq UD6dmkSlRC/zQEqeAjh0H/34SnhhZxOSS8r41Byqns0s7TGM3OX0Y526qfJ729eJvp8l wvs1Fg3wIGEsXTzQUxdzUfbp4o4CHnddx43upm8vsvkj2KjoGfXj0WyjI6h0HoCuMyVH iwcA== X-Gm-Message-State: AOAM5331xOfwiQK6wBskWaTLhtwXkUmutZB+jxr1o1LAGLwphj+hjU9p UtW8vbBFwlWhj8QiRq8/nzc= X-Google-Smtp-Source: ABdhPJwT0SfNY/VAmKey/5nRXYDl01hC5QVlGcYQPJMoCqVwReVp23aQK6lER6R9HFhchBvpNtnX8A== X-Received: by 2002:adf:d1c4:: with SMTP id b4mr32651069wrd.301.1620669420410; Mon, 10 May 2021 10:57:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:00 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 30/39] pidfd_open.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:39 +0200 Message-Id: <20210510175546.28445-31-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_open.2 b/man2/pidfd_open.2 index d0bb1769b..cb91ce71f 100644 --- a/man2/pidfd_open.2 +++ b/man2/pidfd_open.2 @@ -27,11 +27,17 @@ pidfd_open \- obtain a file descriptor that refers to a process .SH SYNOPSIS .nf -.BI "int pidfd_open(pid_t " pid ", unsigned int " flags ); +.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */" +.B #include <unistd.h> +.PP +.BI "int syscall(SYS_pidfd_open, pid_t " pid ", 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_open (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR pidfd_open () @@ -89,9 +95,6 @@ first appeared in Linux 5.3. .BR pidfd_open () is Linux specific. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -.PP The following code sequence can be used to obtain a file descriptor for the child of .BR fork (2):
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man2/pidfd_open.2 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)