diff --git a/man2/io_getevents.2 b/man2/io_getevents.2 index 87eefdd92..7c7e625bf 100644 --- a/man2/io_getevents.2 +++ b/man2/io_getevents.2 @@ -9,16 +9,20 @@ io_getevents \- read asynchronous I/O events from the completion queue .SH SYNOPSIS .nf -.BR "#include " " /* Defines needed types */" -.BR "#include " " /* Defines 'struct timespec' */" +.BR "#include " " /* Definition of " *io_* " types */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int io_getevents(aio_context_t " ctx_id ", long " min_nr ", long " nr , -.BI " struct io_event *" events \ -", struct timespec *" timeout ); +.BI "int syscall(SYS_io_getevents, aio_context_t " ctx_id , +.BI " long " min_nr ", long " nr ", struct io_event *" events , +.BI " struct timespec *" timeout ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR io_getevents (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .IR Note : this page describes the raw Linux system call interface. @@ -94,10 +98,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_getevents () wrapper function provided by .\" http://git.fedorahosted.org/git/?p=libaio.git