summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/aio_error.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-08-16 05:46:09 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-08-16 05:46:09 +0000
commitd8a7e180245bc00dbf55fa3e40135a4a94117ab9 (patch)
treedd764a507afa6f31d2ad7d5ae736661e56ffd738 /cpukit/posix/src/aio_error.c
parentRegenerate. (diff)
downloadrtems-d8a7e180245bc00dbf55fa3e40135a4a94117ab9.tar.bz2
2010-08-16 Alin Rus <alin.codejunkie@gmail.com>
* posix/src/aio_misc.c: New. * posix/src/aio_error.c, posix/src/aio_read.c, * posix/src/aio_return.c, posix/src/aio_write.c: New implementation.
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;
}