From patchwork Sun Apr 4 11:58:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 42907 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 4D617388A417; Sun, 4 Apr 2021 11:59:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D617388A417 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617537597; bh=cjP+0WLA+OK4vEf2vwLQ9Kext4PONnX5i2wBNqV4HN4=; 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=sM80cE1QRlTmw/HeuB0uFIu3gvy/6i9JlfzxtmCmjZlwFqwJIyQtkCAAanHjDfbhc vCHwDaOLKlbCHv1BIQNhYazNHbR1j1/Wph+7DwBpMs3pGmDc43fNQCjJr30jGKTIkQ y7V/RogkS0e7kFPrcAU9CkDhA2J/jynMbqaD8uVE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id 7B9DD3850429 for ; Sun, 4 Apr 2021 11:59:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7B9DD3850429 Received: by mail-wm1-x333.google.com with SMTP id z6-20020a1c4c060000b029010f13694ba2so4366061wmf.5 for ; Sun, 04 Apr 2021 04:59:53 -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=cjP+0WLA+OK4vEf2vwLQ9Kext4PONnX5i2wBNqV4HN4=; b=Hly0WtgmW96sjx9gI9mkOQx461lYKrGdZed+Zk3nvGnL9yOGqH+7N2C6L9ew6/xKu7 irB1rINnTTktoL4BFg7e4dT8y83qQCFlfKFGAmrGLMtEgoC57XD/zev8op4OVd6uZKEo LbppJvd5FU+ikxXvCc/bXtHvxA5OB2Tb2hd2t/xCzf+RhQs/LC6mcrgBOgv8Lm5dLiry sd6Tj34zni723l4QOUuBNB9DkV4STcBDx7XmWfQNx21xLKGkdXkmRJMmqFQ3HSRhr6cq Tw1oHAnKwzjO7JGjlt4oPj7s7UeCLKNGwEuS5+2LIwNaaiAZYj98cKLzMUXnyER0jlBO zF9A== X-Gm-Message-State: AOAM533wTh2qAjXLT2jvgQPvvyp9DMrjBMuGgFrz19fF52LlWkiSLG0Q vK8NzzBMyhZOWd5SHKgltUru9Ter2KY= X-Google-Smtp-Source: ABdhPJwrYU10nioOR/dTl7z+GQqr7Mw6ggby9DGqrhtlk4T5e6tCfNkauDviTHsJSj1tuboBUzD5/Q== X-Received: by 2002:a1c:9d4d:: with SMTP id g74mr20613904wme.77.1617537592634; Sun, 04 Apr 2021 04:59:52 -0700 (PDT) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id u2sm23786967wrp.12.2021.04.04.04.59.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Apr 2021 04:59:52 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH v5 28/35] io_cancel.2: Use syscall(SYS_...); for system calls without a wrapper Date: Sun, 4 Apr 2021 13:58:41 +0200 Message-Id: <20210404115847.78166-29-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=-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 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" In this case there's a wrapper provided by libaio, but this page documents the raw kernel syscall. Signed-off-by: Alejandro Colomar --- man2/io_cancel.2 | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/man2/io_cancel.2 b/man2/io_cancel.2 index e09984ecd..248fe5791 100644 --- a/man2/io_cancel.2 +++ b/man2/io_cancel.2 @@ -9,14 +9,13 @@ io_cancel \- cancel an outstanding asynchronous I/O operation .SH SYNOPSIS .nf -.BR "#include " " /* Defines needed types */" +.BR "#include " " /* Definition of needed types */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int io_cancel(aio_context_t " ctx_id ", struct iocb *" iocb , -.BI " struct io_event *" result ); +.BI "int syscall(SYS_io_cancel, aio_context_t " ctx_id ", struct iocb *" iocb , +.BI " struct io_event *" result ); .fi -.PP -.IR Note : -There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION .IR Note : this page describes the raw Linux system call interface. @@ -68,10 +67,7 @@ The asynchronous I/O system calls first appeared in Linux 2.5. is Linux-specific and should not be used in programs that are intended to be portable. .SH NOTES -Glibc does not provide a wrapper for this system call. -You could invoke it using -.BR syscall (2). -But instead, you probably want to use the +You probably want to use the .BR io_cancel () wrapper function provided by .\" http://git.fedorahosted.org/git/?p=libaio.git