summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/aio_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/aio_error.c')
-rw-r--r--cpukit/posix/src/aio_error.c35
1 files changed, 22 insertions, 13 deletions
diff --git a/cpukit/posix/src/aio_error.c b/cpukit/posix/src/aio_error.c
index 06b60d2420..1c0e582bc9 100644
--- a/cpukit/posix/src/aio_error.c
+++ b/cpukit/posix/src/aio_error.c
@@ -1,14 +1,11 @@
/*
- * 6.7.5 Retrieve Error of Asynchronous I/O Operation, P1003.1b-1993, p. 161
+ * Copyright 2010, Alin Rus <alin.codejunkie@gmail.com>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*
- * COPYRIGHT (c) 1989-2007.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
+ * $Id$
*/
#if HAVE_CONFIG_H
@@ -21,9 +18,21 @@
#include <rtems/system.h>
#include <rtems/seterr.h>
-int aio_error(
- const struct aiocb *aiocbp __attribute__((unused))
-)
+/*
+ * aio_error
+ *
+ * Retrieve errors status for an asynchronous I/O operation
+ *
+ * Input parameters:
+ * aiocbp - asynchronous I/O control block
+ *
+ * Output parameters:
+ * aiocbp->error_code
+ */
+
+
+int
+aio_error (const struct aiocb *aiocbp)
{
- rtems_set_errno_and_return_minus_one( ENOSYS );
+ return aiocbp->error_code;
}