xref: /illumos-gate/usr/src/man/man3head/aio.h.3head (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)

Sun Microsystems, Inc. gratefully acknowledges The Open Group for
permission to reproduce portions of its copyrighted documentation.
Original documentation from The Open Group can be obtained online at
http://www.opengroup.org/bookstore/.

The Institute of Electrical and Electronics Engineers and The Open
Group, have given us permission to reprint portions of their
documentation.

In the following statement, the phrase ``this text'' refers to portions
of the system documentation.

Portions of this text are reprinted and reproduced in electronic form
in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition,
Standard for Information Technology -- Portable Operating System
Interface (POSIX), The Open Group Base Specifications Issue 6,
Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
Engineers, Inc and The Open Group. In the event of any discrepancy
between these versions and the original IEEE and The Open Group
Standard, the original IEEE and The Open Group Standard is the referee
document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html.

This notice shall appear on any product containing this material.

The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.

You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.

When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]


Copyright 1989 AT&T.
Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.

AIO.H 3HEAD "Feb 5, 2008"
NAME
aio.h, aio - asynchronous input and output
SYNOPSIS

#include <aio.h>
DESCRIPTION

The <aio.h> header defines the aiocb structure which includes the following members:

int aio_fildes file descriptor
off_t aio_offset file offset
volatile void* aio_buf location of buffer
size_t aio_nbytes length of transfer
int aio_reqprio request priority offset
struct sigevent aio_sigevent notification type
int aio_lio_opcode listio operation

This header also includes the following constants: AIO_ALLDONE

A return value indicating that none of the requested operations could be canceled since they are already complete.

AIO_CANCELED

A return value indicating that all requested operations have been canceled.

AIO_NOTCANCELED

A return value indicating that some of the requested operations could not be canceled since they are in progress.

LIO_NOP

A lio_listio(3C) element operation option indicating that no transfer is requested.

LIO_NOWAIT

A lio_listio() synchronization operation indicating that the calling thread is to continue execution while the lio_listio() operation is being performed, and notification is to be given when the operation is complete.

LIO_READ

A lio_listio() element operation option requesting a read.

LIO_WAIT

A lio_listio() synchronization operation indicating that the calling thread is to suspend until the lio_listio() operation is complete.

LIO_WRITE

A lio_listio() element operation option requesting a write.

SEE ALSO

lseek (2), read (2), write (2), fsync (3C), lio_listio (3C), libaio (3LIB)