


     aio_error(rt.os/aioVSRT 5.1.1 (The	Open Groupaio_error(rt.os/aio)



     NAME
	  rt.os/aio/aio_error -	retrieve error status for an
	  Asynchronous I/O request testset

     DESCRIPTION
	  Tests	the aio_error()	function for conformance to System
	  Interfaces and Headers, Issue	5 Page:	aio_error().

     TESTS
     Compliance
	  1    If _POSIX_ASYNCHRONOUS_IO is defined or the
	       implementation supports the aio_error() function	as
	       described in System Interfaces and Headers, Issue 5:
		 A call	to aio_error() when the	asynchronous I/O
		 operation associated with the aiocb structure
		 referenced by aiocbp completed	unsuccessfully shall
		 return	the errno value	that would be set by the
		 corresponding read(), write(),	or fsync() operation.

	  2    If _POSIX_ASYNCHRONOUS_IO is defined or the
	       implementation supports the aio_error() function	as
	       described in System Interfaces and Headers, Issue 5:
		 A call	to aio_error() when the	asynchronous I/O
		 operation associated with the aiocb structure
		 referenced by aiocbp completed	successfully shall
		 return	0.

	  3    If _POSIX_ASYNCHRONOUS_IO is defined or the
	       implementation supports the aio_error() function	as
	       described in System Interfaces and Headers, Issue 5:
		 A call	to aio_error() when the	asynchronous I/O
		 operation associated with the aiocb structure
		 referenced by aiocbp has not yet completed shall
		 return	EINPROGRESS.

     Deviance
	  4    If _POSIX_ASYNCHRONOUS_IO is not	defined	and the
	       implementation does not support the aio_error()
	       function	as described in	System Interfaces and Headers,
	       Issue 5:
		 A call	to aio_error() shall return -1 and set errno
		 to ENOSYS.

     Untestable	Aspects
	  1    If _POSIX_ASYNCHRONOUS_IO is defined or the
	       implementation supports the aio_error() function	as
	       described in System Interfaces and Headers, Issue 5:
		 A call	to aio_error() may return -1 and set errno to
		 EINVAL	if aiocbp refers to an operation whose return
		 status	has not	yet been retrieved.
		 Reason	for omission:  The specification is inadequate
		 for testing (it does not define under what conditions



     Page 1					    (printed 2/21/103)






     aio_error(rt.os/aioVSRT 5.1.1 (The	Open Groupaio_error(rt.os/aio)



		 this error will occur).

     Notes
	  Tests	will be	run against a file type	for which the
	  implementation supports the necessary	types of Realtime I/O
	  and provides an appropriate file for testing.

	  The existence	of at such a file is assumed as	a prerequisite
	  in these tests.

     RELEASE
	  Release VSRT 5.1.1
	  Copyright (c)	1997 X/Open Company Ltd., A member of The Open
	  Group.
	  All rights reserved








































     Page 2					    (printed 2/21/103)



