source: rtems/cpukit/posix/src/aio_error.c @ 77fbbd6

5
Last change on this file since 77fbbd6 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 763 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Returns the error status for the Asynchronous I/O request
5 * @ingroup POSIXAPI
6 */
7
8/*
9 * Copyright 2010, Alin Rus <alin.codejunkie@gmail.com>
10 *
11 * The license and distribution terms for this file may be
12 * found in the file LICENSE in this distribution or at
13 * http://www.rtems.org/license/LICENSE.
14 */
15
16#if HAVE_CONFIG_H
17#include "config.h"
18#endif
19
20#include <aio.h>
21#include <errno.h>
22
23#include <rtems/system.h>
24#include <rtems/seterr.h>
25
26/*
27 *  aio_error
28 *
29 * Retrieve errors status for an asynchronous I/O operation
30 *
31 *  Input parameters:
32 *        aiocbp - asynchronous I/O control block
33 *
34 *  Output parameters:
35 *        aiocbp->error_code
36 */
37
38
39int
40aio_error (const struct aiocb *aiocbp)
41{
42  return aiocbp->error_code;
43}
Note: See TracBrowser for help on using the repository browser.