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

Alejandro Colomar
2026-04-08T09:18:51Z

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 <alx@kernel.org>
---
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