.TH io 3 2002-09-12 "Linux 2.4" Linux IO"
.SH NAME
io \- Asynchronous IO
-.SH SYNOPSYS
+.SH SYNOPSIS
.nf
.B #include <errno.h>
.sp
.TH io_fsync 3 2002-09-12 "Linux 2.4" Linux AIO"
.SH NAME
io_fsync \- Synchronize a file's complete in-core state with that on disk
-.SH SYNOPSYS
+.SH SYNOPSIS
.nf
.B #include <errno.h>
.sp
.TP
.B EINVAL
.I ctx
-refers to an unitialized aio context, the iocb pointed to by
+refers to an uninitialized aio context, the iocb pointed to by
.I iocbs
contains an improperly initialized iocb,
.TP
.BR select (2)
and
.BR pselect (2):
-similar
+similar to
.BR pselect (2),
.BR pgetevents ()
allows an application to safely wait until either an aio completion
-events happens or until a signal is caught.
+event happens or until a signal is caught.
.PP
The following
.BR io_pgetevents ()
.TH io_prep_fsync 3 2002-09-12 "Linux 2.4" Linux AIO"
.SH NAME
io_prep_fsync \- Synchronize a file's complete in-core state with that on disk
-.SH SYNOPSYS
+.SH SYNOPSIS
.nf
.B #include <errno.h>
.br
.TH io_prep_pread 3 2002-09-12 "Linux 2.4" Linux AIO"
.SH NAME
io_prep_pread \- Set up asynchronous read
-.SH SYNOPSYS
+.SH SYNOPSIS
.nf
.B #include <errno.h>
.sp
.TH io_prep_pwrite 3 2002-09-12 "Linux 2.4" Linux AIO"
.SH NAME
io_prep_pwrite \- Set up iocb for asynchronous writes
-.SH SYNOPSYS
+.SH SYNOPSIS
.nf
.B #include <errno.h>
.br
};
.fi
.SH DESCRIPTION
-io_prep_write is a convenicence function for setting up parallel writes.
+io_prep_write is a convenience function for setting up parallel writes.
The first
.TP
.I maxevents
is <= 0 or
.IR ctx
-is an invalid memory locattion.
+is an invalid memory location.
.TP
.B ENOSYS
Not implemented.
.TP
.B EINVAL
.I ctx
-refers to an unitialized aio context, the iocb pointed to by
+refers to an uninitialized aio context, the iocb pointed to by
.I iocbs
contains an improperly initialized iocb,
.TP
.fi
.SH DESCRIPTION
.B io_queue_run
-Attempts to read all the events events from
+Attempts to read all the events from
the completion queue for the aio_context specified by ctx_id.
.SH "RETURN VALUES"
May return
.TP
.B EINVAL
.I ctx
-refers to an unitialized aio context, the iocb pointed to by
+refers to an uninitialized aio context, the iocb pointed to by
.I iocbs
contains an improperly initialized iocb.
.TP
.TP
.B EINVAL
.I ctx
-refers to an unitialized aio context, the iocb pointed to by
+refers to an uninitialized aio context, the iocb pointed to by
.I iocbs
contains an improperly initialized iocb.
.TP
.TH io_set_callback 3 2002-09-12 "Linux 2.4" Linux AIO"
.SH NAME
io_set_callback \- Set up io completion callback function
-.SH SYNOPSYS
+.SH SYNOPSIS
.nf
.B #include <errno.h>
.br
.TP
.B EINVAL
.I ctx
-refers to an unitialized aio context, the iocb pointed to by
+refers to an uninitialized aio context, the iocb pointed to by
.I iocbs
contains an improperly initialized iocb,
.TP