diff options
author | Sahil Patnayakunii <sahilp@rtems.org> | 2013-07-24 13:09:27 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-07-24 13:14:29 -0500 |
commit | 4343f5b4c7ad41647a83cbb54a778ad1682df3e3 (patch) | |
tree | 4d44bb3f5da9133b6804ac138416f95ac62b7934 | |
parent | POSIX mqueue.h: Add restrict keyword per Single UNIX Specification (diff) | |
download | rtems-4343f5b4c7ad41647a83cbb54a778ad1682df3e3.tar.bz2 |
POSIX AIO: Add restrict keyword per Single UNIX Specification
-rw-r--r-- | cpukit/posix/include/aio.h | 9 | ||||
-rw-r--r-- | cpukit/posix/src/lio_listio.c | 8 |
2 files changed, 9 insertions, 8 deletions
diff --git a/cpukit/posix/include/aio.h b/cpukit/posix/include/aio.h index 8896fa168e..6bcfc672f1 100644 --- a/cpukit/posix/include/aio.h +++ b/cpukit/posix/include/aio.h @@ -19,6 +19,7 @@ #ifndef _AIO_H #define _AIO_H +#include <sys/cdefs.h> #include <unistd.h> #ifdef __cplusplus @@ -115,10 +116,10 @@ int aio_write( */ int lio_listio( - int mode, - struct aiocb * const list[], - int nent, - struct sigevent *sig + int mode, + struct aiocb *__restrict const list[__restrict], + int nent, + struct sigevent *__restrict sig ); /* diff --git a/cpukit/posix/src/lio_listio.c b/cpukit/posix/src/lio_listio.c index 64a578f22b..f1e826edb5 100644 --- a/cpukit/posix/src/lio_listio.c +++ b/cpukit/posix/src/lio_listio.c @@ -27,10 +27,10 @@ #include <rtems/seterr.h> int lio_listio( - int mode __attribute__((unused)), - struct aiocb * const list[] __attribute__((unused)), - int nent __attribute__((unused)), - struct sigevent *sig __attribute__((unused)) + int mode __attribute__((unused)), + struct aiocb *__restrict const list[__restrict] __attribute__((unused)), + int nent __attribute__((unused)), + struct sigevent *__restrict sig __attribute__((unused)) ) { rtems_set_errno_and_return_minus_one( ENOSYS ); |