[PATCH v1 5/6] man/man2/io_setup.2: Use syscall(2) in the SYNOPSIS

Alejandro Colomar <[email protected]> Wed, 8 Apr 2026 11:18:46 +0200
Newsgroups gmane.linux.kernel.aio.general,gmane.linux.man
Message-ID <7811fd45149427135d6f35938c10ba258e885b0a.1775639353.git.alx@kernel.org>
That's what we do when there's no glibc wrapper.

Also, remove the comment on the existing include, as we usually don't
comment when includes are needed for types; we only comment for
constants.

Signed-off-by: Alejandro Colomar <[email protected]>
---
 man/man2/io_setup.2 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/man/man2/io_setup.2 b/man/man2/io_setup.2
index f2f59c61..398101fb 100644
--- a/man/man2/io_setup.2
+++ b/man/man2/io_setup.2
@@ -15,9 +15,11 @@ .SH LIBRARY
 see VERSIONS.
 .SH SYNOPSIS
 .nf
-.BR "#include <linux/aio_abi.h>" "          /* Defines needed types */"
+.B #include <linux/aio_abi.h>
+.BR "#include <sys/syscall.h>" "    /* Definition of SYS_* constants */"
+.B #include <unistd.h>
 .P
-.BI "long io_setup(unsigned int " n ", aio_context_t *" ctx_idp );
+.BI "long\~syscall(SYS_io_setup, unsigned int " n ", aio_context_t *" ctx_idp );
 .fi
 .P
 .IR Note :
-- 
2.53.0


--
To unsubscribe, send a message with 'unsubscribe linux-aio' in
the body to [email protected].  For more info on Linux AIO,
see: http://www.kvack.org/aio/
Don't email: <a href=mailto:"[email protected]">[email protected]</a>