Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

<span class='option'>aio_error</span>

Returns error status for asynchronous I/O requests.

Syntax

int aio_error(const struct aiocb *aiocbp);

Arguments

*aiocbp

Pointer to control block from where asynchronous I/O request is generated

Description

The aio_error() function returns the error status for the asynchronous I/O request in the control block, which is pointed to by aiocbp.

Returns

EINPROGRESS: When asynchronous I/O request is not completed

ECANCELED: When asynchronous I/O request is cancelled

0: On success

Error value: On error

To get the correct error value/code, use errno. This is the same error value returned when an error occurs during a ReadFile(), WriteFile(), or a FlushFileBuffers() operation.