diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-08-16 05:46:09 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-08-16 05:46:09 +0000 |
commit | d8a7e180245bc00dbf55fa3e40135a4a94117ab9 (patch) | |
tree | dd764a507afa6f31d2ad7d5ae736661e56ffd738 /cpukit/posix/src/aio_return.c | |
parent | Regenerate. (diff) | |
download | rtems-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_return.c')
-rw-r--r-- | cpukit/posix/src/aio_return.c | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/cpukit/posix/src/aio_return.c b/cpukit/posix/src/aio_return.c index caa3179700..2a9e56ae7a 100644 --- a/cpukit/posix/src/aio_return.c +++ b/cpukit/posix/src/aio_return.c @@ -1,15 +1,11 @@ /* - * 6.7.6 Retrieve Return Status of Asynchronous I/O Operation, - * P1003.1b-1993, p. 162 + * 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 @@ -22,9 +18,20 @@ #include <rtems/system.h> #include <rtems/seterr.h> -ssize_t aio_return( - const struct aiocb *aiocbp __attribute__((unused)) -) +/* + * aio_return + * + * Retrieve return status of an asynchronous I/O operation + * + * Input parameters: + * aiocbp - asynchronous I/O control block + * + * Output parameters: + * aiocbp->return_value + */ + +ssize_t +aio_return (const struct aiocb *aiocbp) { - rtems_set_errno_and_return_minus_one( ENOSYS ); + return aiocbp->return_value; } |