AIO.H(7) Miscellaneous Information Manual AIO.H(7)

aio.hasynchronous input and output (REALTIME)

#include <aio.h>

The <aio.h> header defines the aiocb structure which includes at least 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   signal number and value
int             aio_lio_opcode operation to be performed

This header also includes the following constants: AIO_CANCELED AIO_NOTCANCELED AIO_ALLDONE LIO_WAIT LIO_NOWAIT LIO_READ LIO_WRITE LIO_NOP

The following are declared as functions and may also be declared as macros. Function prototypes must be provided for use with an ISO C compiler. int aio_cancel(int, struct aiocb *); int aio_error(const struct aiocb *); int aio_fsync(int, struct aiocb *); int aio_read(struct aiocb *); ssize_t aio_return(struct aiocb *); int aio_suspend(const struct aiocb *const[], int, const struct timespec *); int aio_write(struct aiocb *); int lio_listio(int, struct aiocb *const[], int, struct sigevent *);

Inclusion of the <aio.h> header may make visible symbols defined in the headers <fcntl.h>, <signal.h>, <sys/types.h> and <time.h>.

None.

None.

fsync(3) , lseek(3) , read(3) , write(3) , <fcntl.h> , <signal.h> , <sys/types.h> , <time.h> .

February 1997 posix.fail