[PATCH] man: fix io_getevents() signature

Caleb Sander Mateos <[email protected]>
Newsgroups gmane.linux.kernel.aio.general
Message-ID <[email protected]>
Fix the man page signature of io_getevents() and io_pgetevents() to
match their actual signatures in libaio.h. Add the missing argument
long min_nr. Remove the extra pointer indirection on events.

Signed-off-by: Caleb Sander Mateos <[email protected]>
---
 man/io_getevents.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/io_getevents.3 b/man/io_getevents.3
index 6ff686d..0d4c506 100644
--- a/man/io_getevents.3
+++ b/man/io_getevents.3
@@ -40,12 +40,12 @@ struct io_event {
         unsigned        PADDED(obj,  __pad2);
         unsigned        PADDED(res,  __pad3);
         unsigned        PADDED(res2, __pad4);
 };
 .sp
-.BI "int io_getevents(io_context_t " ctx ", long " nr ", struct io_event *" events "[], struct timespec *" timeout ");"
-.BI "int io_pgetevents(io_context_t " ctx ", long " nr ", struct io_event *" events "[], struct timespec *" timeout ", sigset_t *" sigmask ");"
+.BI "int io_getevents(io_context_t " ctx ", long " min_nr ", long " nr ", struct io_event *" events ", struct timespec *" timeout ");"
+.BI "int io_pgetevents(io_context_t " ctx ", long " min_nr ", long " nr ", struct io_event *" events ", struct timespec *" timeout ", sigset_t *" sigmask ");"
 .fi
 .SH DESCRIPTION
 Attempts to read up to
 .I nr
 events from the completion queue for the aio_context specified by
-- 
2.45.2


--
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.