diff options
Diffstat (limited to 'cpukit/posix/src/aio_return.c')
-rw-r--r-- | cpukit/posix/src/aio_return.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/cpukit/posix/src/aio_return.c b/cpukit/posix/src/aio_return.c new file mode 100644 index 0000000000..2a9e56ae7a --- /dev/null +++ b/cpukit/posix/src/aio_return.c @@ -0,0 +1,37 @@ +/* + * 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. + * + * $Id$ + */ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#include <aio.h> +#include <errno.h> + +#include <rtems/system.h> +#include <rtems/seterr.h> + +/* + * 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) +{ + return aiocbp->return_value; +} |