From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id BBDA3396E877 for ; Mon, 10 May 2021 17:56:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BBDA3396E877 Received: by mail-wr1-x434.google.com with SMTP id a4so17542787wrr.2 for ; Mon, 10 May 2021 10:56:24 -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=d3zHX7Dlp02I5BnX6mFdOXVUY5GkHLAIfSnGnLi6sLM=; b=aj1KDjT7WJzb3+rxxI0q61ShI4VT6pgkDnUc0QcHAcojYP59ccvTxqrEgd702W8pOa aPnc87K2e8p44joUw+ymJTAYkBkIvO2RHAMXglYvNFATgTwxljKw8Fm//cAP/7wTD0YI YKTy/AeXbjq2nE6TzCJbivWaxs4jbwPVJd2LLs76bTo9+pTmelS12nPJjvC2PlLhLezQ pdjJsg9FHfQO1w0sLO+FHqn0Mk891iN++jssAggfBVaNqjZU1i7wFDL/wCwIIDrueHm+ StUMiZLyX8JPgUrfrwiw7Lsj2XIbEFM2s4j5/GgCHR9nXHXnRAWHUlAv8/rSH3eNeZDZ UP5Q== X-Gm-Message-State: AOAM530O5tfTqsyiEMqIrGjz+lgXkE8XlTBw1juf9Wv9yo0ETDluT/ln xs+awAzPjxHHSZi6Zsl75+Y= X-Google-Smtp-Source: ABdhPJyW3xPlmH48LxB56tuI0zi6sScxLMoCpFesl/Fo/Rt+F7h4joPND+JyWU61Pkx0BCvavAgcrg== X-Received: by 2002:a5d:570e:: with SMTP id a14mr32480587wrv.254.1620669383917; Mon, 10 May 2021 10:56:23 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:23 -0700 (PDT) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: Florian Weimer , Jakub Wilk , Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Subject: [PATCH 05/39] io_destroy.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:14 +0200 Message-Id: <20210510175546.28445-6-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2021 17:56:26 -0000 In this case there's a wrapper provided by libaio, but this page documents the raw syscall. Signed-off-by: Alejandro Colomar --- man2/io_destroy.2 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/man2/io_destroy.2 b/man2/io_destroy.2 index b439f1184..c9418336f 100644 --- a/man2/io_destroy.2 +++ b/man2/io_destroy.2 @@ -9,13 +9,18 @@ io_destroy \- destroy an asynchronous I/O context .SH SYNOPSIS .nf -.BR "#include " " /* Defines needed types */" +.BR "#include " " /* Definition of " aio_context_t " */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int io_destroy(aio_context_t " ctx_id ); +.BI "int syscall(SYS_io_destroy, aio_context_t " ctx_id ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR io_destroy (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .IR Note : this page describes the raw Linux system call interface. @@ -57,10 +62,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_destroy () wrapper function provided by .\" http://git.fedorahosted.org/git/?p=libaio.git -- 2.31.1