.\" Copyright (C) 2003 Free Software Foundation, Inc.
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
.\" This file is distributed according to the GNU General Public License.
-.\" See the file COPYING in the top level source directory for details.
+.\" %%%LICENSE_END
.\"
-.\" ..
-.TH IO_DESTROY 2 2012-05-08 "Linux" "Linux Programmer's Manual"
+.TH IO_DESTROY 2 2012-07-13 "Linux" "Linux Programmer's Manual"
.SH NAME
io_destroy \- destroy an asynchronous I/O context
-.SH "SYNOPSIS"
+.SH SYNOPSIS
.nf
.BR "#include <linux/aio_abi.h>" " /* Defines needed types */"
.BI "int io_destroy(aio_context_t " ctx_id );
.fi
-.SH "DESCRIPTION"
+
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
+.SH DESCRIPTION
.PP
The
.BR io_destroy ()
I/O contexts and then destroys it.
It can also cancel any outstanding asynchronous I/O
actions on \fIctx_id\fP and block on completion.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
On success,
.BR io_destroy ()
returns 0.
For the failure return, see NOTES.
-.SH "ERRORS"
+.SH ERRORS
.TP
.B EFAULT
The context pointed to is invalid.
.B ENOSYS
.BR io_destroy ()
is not implemented on this architecture.
-.SH "VERSIONS"
+.SH VERSIONS
.PP
The asynchronous I/O system calls first appeared in Linux 2.5.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
.PP
.BR io_destroy ()
is Linux-specific and should not be used in programs
indicating an error: \-1, with
.I errno
set to a (positive) value that indicates the error.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR io_cancel (2),
.BR io_getevents (2),
.BR io_setup (2),