Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ aiocancel(3) — SunOS 5.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

aioread(3)

aiowait(3)

aiocancel(3)

NAME

aiocancel − cancel an asynchronous operation

SYNOPSIS

cc [ flag ... ] file ... −laio [ library ... ]

#include <sys/asynch.h>

int aiocancel(aio_result_t ∗resultp);

MT-LEVEL

Unsafe

DESCRIPTION

aiocancel() cancels the asynchronous operation associated with the result buffer pointed to by resultp. It may not be possible to immediately cancel an operation which is in progress and in this case, aiocancel() will not wait to cancel it. 

Upon successful completion, aiocancel() returns 0 and the requested operation is cancelled.  The application will not receive the SIGIO completion signal for an asynchronous operation that is successfully cancelled. 

RETURN VALUES

aiocancel() returns:

0 on success. 

−1 on failure and sets errno to indicate the error. 

ERRORS

aiocancel() will fail if any of the following are true:

EACCES The parameter resultp does not correspond to an outstanding asynchronous operation. 

EFAULT resultp points to an address outside the address space of the requesting process.  See NOTES below. 

EINVAL There are not any outstanding requests to cancel. 

SEE ALSO

aioread(3), aiowait(3)

NOTES

Passing an illegal address as resultp will result in setting errno to EFAULT only if it is detected by the application process. 

Sun Microsystems  —  Last change: 3 Mar 1993

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