From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.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 dcvr.yhbt.net (Postfix) with ESMTPS id 54BB41F4B4 for ; Sat, 3 Apr 2021 19:43:54 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9AD67388A838; Sat, 3 Apr 2021 19:42:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9AD67388A838 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617478932; 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=mIn0//Bg4rPstUyHjgIy0qf95Ef29eJjDW+R9EwkE6H/w3ZSrskUg8viWJrNaDybF kIrTQM901HyADZDlfQZIuLwz2g88JYim22dLJ6K/cSfx13AyI6WqSEuYEmZsuAkYNb 9lMHyPTlzX1HM2hUwIJQmJLmTpipc4cGy7DhGOFU= Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 81321388A42C for ; Sat, 3 Apr 2021 19:42:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 81321388A42C Received: by mail-wr1-x42a.google.com with SMTP id v4so7456676wrp.13 for ; Sat, 03 Apr 2021 12:42:07 -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=fdQNnEf093lC78RtJTx/tUGCw9oSgXgj1U36E4q+fbeHgySYxMAwVJk6MGY5sjh6dg 4fne4d9JK4qj8nvffKs5GtbjkT7R6Lq5/KRfync/SmqG5mV71QFx2m8uTiD0iXZxgtSO iwvcBKne3wymsiMI8hQ6mFb0eKNB0VkKWAJ2S/Ko0oNct7w46h1bkez2BPXNzNGuQ+55 5njNfZOPcI2nOBZaIgN4tyNa11whOVoYv+2im64B6U57q7Acg7Bq18wZT3nfjFrSgxyL JrNm2W+xVI298gm4xXUPNIPR5Ff8Az/82b/XOqXT5W8kAxH54+4rbVoRARRWO4iL6qzS K54A== X-Gm-Message-State: AOAM530Y8h3Q5hBjVtYWd3Vjg/W24Wn2GKTDOiNflo24JEwbwfAZVZ7x UdNiZZN1OebJPuQKamuQ6rc= X-Google-Smtp-Source: ABdhPJzE7Be8O2vg1BgD9je8hjiibyTBn0H+M5iw2N6p3aJARXYZG9xV4mtho5Zaj0kAn2CFquy8xg== X-Received: by 2002:adf:f94c:: with SMTP id q12mr21222253wrr.283.1617478926696; Sat, 03 Apr 2021 12:42:06 -0700 (PDT) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id n1sm25211056wro.36.2021.04.03.12.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Apr 2021 12:42:06 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH v4 28/35] io_cancel.2: Use syscall(SYS_...); for system calls without a wrapper Date: Sat, 3 Apr 2021 21:40:20 +0200 Message-Id: <20210403194026.102818-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 Content-Transfer-Encoding: 8bit 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: , From: Alejandro Colomar via Libc-alpha 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 -- 2.31.0