The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

aio.h - asynchronous input and output (REALTIME)

 SYNOPSIS



#include <aio.h>

 DESCRIPTION

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>.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

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

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]