Message ID | 20210510175546.28445-9-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=L17l/rjk; 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 4Ff7zS4d0Qz9sWp for <incoming@patchwork.ozlabs.org>; Tue, 11 May 2021 03:56:52 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BC9E739730FF; Mon, 10 May 2021 17:56:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC9E739730FF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669391; bh=1AJWufCrkVXWZOOZCDdsOIRBksNWYtEU13pLODmBf3U=; 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=L17l/rjky064JkPMEdRouPXkRylgKoqHxKPF7kl5Ny1Udn4tRPvx55A5ghOYdj1wI Vonlt7/sHryitBA41ZGUyDzPlP6eewDAVY+pFaEopFhMvPVLe9i+RtpFVhjsq5plzU jBWT9rfcywJ10mBRZ0XNu2c40pWOoCjW0wUYGvJo= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 360403982072 for <libc-alpha@sourceware.org>; Mon, 10 May 2021 17:56:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 360403982072 Received: by mail-wm1-x32f.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso11643184wmh.4 for <libc-alpha@sourceware.org>; Mon, 10 May 2021 10:56:29 -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=1AJWufCrkVXWZOOZCDdsOIRBksNWYtEU13pLODmBf3U=; b=gxjAb2E+f8HjzSb/LkTLraFLizOuDrrYhckYUcZe1N71gaQCRBzyByroK7AU5Ye7zg /qv+JdEJktZHsWoizJ1HC2kj1tYLHS2k+eV3KhrqyYqhvqkx7ioBma5qXlrVB4OqWS++ vPTSpj9nkiPFZLSAOiG8FY+7t7mgUqqJtnz5ATdnWE1JJCc9jbkk7YhzZZ1M7ldHyz7+ ONMdOKswI0U/eClcdBcovkAOS19sRo6NS7vwxcZEmZW8dJ68P3nxh7ImQZ5Iugo1ya6W Q/2UABecI7bBjH8gThwdUdkUhf8tBDtVSLRdMMu83EfzNd9qHB+9Otl/jlOHB9g00hOE BQxQ== X-Gm-Message-State: AOAM530HycRIyoBpDh2oy3TvqTG9aIJIixFKfGjkQ2x13UxU1FD1EYTS jYAKRrTPdHz0pe3JKzg3/CA= X-Google-Smtp-Source: ABdhPJy0pT+FCZcCouB+LMY1ikpGqHgiaiT3R+knl33nNk+bKl0Gh0b4aTKWv4x5zLHufu+rPfXj3g== X-Received: by 2002:a1c:b783:: with SMTP id h125mr378168wmf.182.1620669388398; Mon, 10 May 2021 10:56:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:28 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 08/39] ioprio_set.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:17 +0200 Message-Id: <20210510175546.28445-9-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.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 <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/ioprio_set.2 b/man2/ioprio_set.2 index 91ec03f3b..c110725f0 100644 --- a/man2/ioprio_set.2 +++ b/man2/ioprio_set.2 @@ -26,12 +26,18 @@ ioprio_get, ioprio_set \- get/set I/O scheduling class and priority .SH SYNOPSIS .nf -.BI "int ioprio_get(int " which ", int " who ); -.BI "int ioprio_set(int " which ", int " who ", int " ioprio ); +.BR "#include <linux/ioprio.h> " "/* Definition of " IOPRIO_* " constants */" +.BR "#include <sys/syscall.h> " "/* Definition of " SYS_* " constants */" +.B #include <unistd.h> +.PP +.BI "int syscall(SYS_ioprio_get, int " which ", int " who ); +.BI "int syscall(SYS_ioprio_set, int " which ", int " who ", int " ioprio ); .fi .PP .IR Note : -There are no glibc wrappers for these system calls; see NOTES. +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR ioprio_get () @@ -199,9 +205,6 @@ kernel 2.6.13. .SH CONFORMING TO These system calls are Linux-specific. .SH NOTES -Glibc does not provide a wrapper for these system calls; call them using -.BR syscall (2). -.PP Two or more processes or threads can share an I/O context. This will be the case when .BR clone (2)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> --- man2/ioprio_set.2 | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)