summaryrefslogtreecommitdiff
path: root/src/aio/aio_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/aio/aio_error.c')
-rw-r--r--src/aio/aio_error.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/aio/aio_error.c b/src/aio/aio_error.c
new file mode 100644
index 00000000..169a9a30
--- /dev/null
+++ b/src/aio/aio_error.c
@@ -0,0 +1,6 @@
+#include <aio.h>
+
+int aio_error(struct aiocb *cb)
+{
+ return cb->__err;
+}