Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/a/aio_error.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/a/aio_error.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/a/aio_error.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/a/aio_error.html on line 8

aio_error()

Get the error status for an asynchronous I/O operation

Synopsis:

#include <aio.h>

int aio_error( const struct aiocb * aiocbptr );

Arguments:

aiocbptr
A pointer to an asynchronous I/O control block of type aiocb that you want the error status for.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The aio_error() function returns the error status associated with the aiocb structure referenced by the aiocbptr argument. The error status for an asynchronous I/O operation is the errno value that's set by the corresponding read(), write(), or fsync() operation. If the operation hasn't yet been completed, the error status is EINPROGRESS.

Returns:

One of:

Errors:

EINVAL
The aiocbptr argument doesn't refer to an asynchronous operation whose return status hasn't yet been retrieved.

Classification:

POSIX 1003.1 AIO

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

Caveats:

The first time you call an aio_* function, a thread pool is created, making your process multithreaded if it isn't already. The thread pool isn't destroyed until your process ends.

See also:

aio_cancel(), aio_fsync(), aio_read(), aio_return(), aio_suspend(), aio_write(), aiocb


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/a/aio_error.html on line 150

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/a/aio_error.html on line 150