summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-08-09 07:37:18 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-08-09 07:37:18 +0000
commit63e508e807cc036c0111b9f2cfd998f8ca03c97f (patch)
tree2d8b6f7b00e9505e419a6cfdd8c37917d53de87c /cpukit
parent2010-08-03 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-63e508e807cc036c0111b9f2cfd998f8ca03c97f.tar.bz2
2010-08-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/include/aio.h, posix/src/aio_return.c: Let aio_return return ssize_t (Mandated by POSIX).
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/posix/include/aio.h6
-rw-r--r--cpukit/posix/src/aio_return.c2
3 files changed, 9 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index be45203b42..be7ec36ad2 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-09 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * posix/include/aio.h, posix/src/aio_return.c:
+ Let aio_return return ssize_t (Mandated by POSIX).
+
2010-07-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio_.h: Removed
diff --git a/cpukit/posix/include/aio.h b/cpukit/posix/include/aio.h
index 85255ed25a..7472d8a54d 100644
--- a/cpukit/posix/include/aio.h
+++ b/cpukit/posix/include/aio.h
@@ -16,12 +16,12 @@
#ifndef _AIO_H
#define _AIO_H
+#include <unistd.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <unistd.h>
-
#if defined(_POSIX_ASYNCHRONOUS_IO)
/*
@@ -109,7 +109,7 @@ int aio_error(
* P1003.1b-1993, p. 162
*/
-int aio_return(
+ssize_t aio_return(
const struct aiocb *aiocbp
);
diff --git a/cpukit/posix/src/aio_return.c b/cpukit/posix/src/aio_return.c
index da3f640bc8..caa3179700 100644
--- a/cpukit/posix/src/aio_return.c
+++ b/cpukit/posix/src/aio_return.c
@@ -22,7 +22,7 @@
#include <rtems/system.h>
#include <rtems/seterr.h>
-int aio_return(
+ssize_t aio_return(
const struct aiocb *aiocbp __attribute__((unused))
)
{