Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ aio_return(3P4) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

aio_read(3P4)

aio_write(3P4)

aio_fsync(3P4)

aio_error(3P4)

aio_cancel(3P4)

aio_suspend(3P4)

lio_listio(3P4)

aio_return(3P4)

NAME

aio_return − retrieve return status of asynchronous I/O operation

SYNOPSIS

#include <aio.h>

int aio_return(aiocbp)

struct aiocb ∗aiocbp;

DESCRIPTION

The aio_return() function returns the return status for the asynchronous I/O operation associated with the aiocbp.  The return status for an asynchronous I/O operation is the value that would be returned by the corresponding read(2) or write(2) or fsync(2) function call.  read(2) returns the number of bytes actually read.  write(2) returns the number of bytes actually written.  fsync(2) returns zero. 

RETURN VALUE

If the asynchronous I/O operation has completed, then the return status, as described for read(2), write(2), and fsync(2), is returned. 

If the asynchronous I/O operation is in progress, then aio_return() will return -1. 

FILES

/usr/include/aio.h

SEE ALSO

aio_read(3P4), aio_write(3P4), aio_fsync(3P4), aio_error(3P4), aio_cancel(3P4), aio_suspend(3P4), lio_listio(3P4), "CX/UX Programmer’s Guide"

WARNING

The interface to aio_return() is based on IEEE Draft Standard P1003.4/D12.  This is an unapproved draft, subject to change.  Use of information contained in this unapproved draft is at your own risk.  This interface will change to reflect any changes made by future drafts of POSIX 1003.4. 
 

CX/UX Programmer’s Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026