summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorDaniel Ramirez <javamonn@gmail.com>2013-11-21 16:54:21 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-21 16:56:48 -0600
commitbb81e04ae3a88ce37de8718ef112ace59b3975af (patch)
tree3ade9b3de36057f6ba755cd74a17aa63c2eb7729 /cpukit/libcsupport
parentscore/rbtree: Remove "unprotected" from API (diff)
downloadrtems-bb81e04ae3a88ce37de8718ef112ace59b3975af.tar.bz2
statvfs and ALL filesystem handlers: Add restrict keyword.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/include/rtems/libio.h8
-rw-r--r--cpukit/libcsupport/include/sys/statvfs.h2
-rw-r--r--cpukit/libcsupport/src/__usrenv.c4
-rw-r--r--cpukit/libcsupport/src/statvfs.c2
4 files changed, 8 insertions, 8 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h
index 21d57ebddf..c1b7b73d7f 100644
--- a/cpukit/libcsupport/include/rtems/libio.h
+++ b/cpukit/libcsupport/include/rtems/libio.h
@@ -485,8 +485,8 @@ typedef int (*rtems_filesystem_rename_t)(
* @see rtems_filesystem_default_statvfs().
*/
typedef int (*rtems_filesystem_statvfs_t)(
- const rtems_filesystem_location_info_t *loc,
- struct statvfs *buf
+ const rtems_filesystem_location_info_t *__restrict loc,
+ struct statvfs *__restrict buf
);
/**
@@ -738,8 +738,8 @@ int rtems_filesystem_default_rename(
* @see rtems_filesystem_statvfs_t.
*/
int rtems_filesystem_default_statvfs(
- const rtems_filesystem_location_info_t *loc,
- struct statvfs *buf
+ const rtems_filesystem_location_info_t *__restrict loc,
+ struct statvfs *__restrict buf
);
/** @} */
diff --git a/cpukit/libcsupport/include/sys/statvfs.h b/cpukit/libcsupport/include/sys/statvfs.h
index eccc7d2881..01f827e297 100644
--- a/cpukit/libcsupport/include/sys/statvfs.h
+++ b/cpukit/libcsupport/include/sys/statvfs.h
@@ -50,7 +50,7 @@ struct statvfs
unsigned long f_namemax; /**< Maximum filename length. */
};
-extern int statvfs(const char *, struct statvfs *);
+extern int statvfs(const char *__restrict , struct statvfs *__restrict);
extern int fstatvfs(int, struct statvfs *);
#ifdef __cplusplus
diff --git a/cpukit/libcsupport/src/__usrenv.c b/cpukit/libcsupport/src/__usrenv.c
index 8e9e8c15ad..88058c4714 100644
--- a/cpukit/libcsupport/src/__usrenv.c
+++ b/cpukit/libcsupport/src/__usrenv.c
@@ -186,8 +186,8 @@ static int null_op_rename(
}
static int null_op_statvfs(
- const rtems_filesystem_location_info_t *loc,
- struct statvfs *buf
+ const rtems_filesystem_location_info_t *__restrict loc,
+ struct statvfs *__restrict buf
)
{
return -1;
diff --git a/cpukit/libcsupport/src/statvfs.c b/cpukit/libcsupport/src/statvfs.c
index 163d51eb1a..dfca09f529 100644
--- a/cpukit/libcsupport/src/statvfs.c
+++ b/cpukit/libcsupport/src/statvfs.c
@@ -19,7 +19,7 @@
#include <rtems/libio_.h>
-int statvfs( const char *path, struct statvfs *buf )
+int statvfs( const char *__restrict path, struct statvfs *__restrict buf )
{
int rv = 0;
rtems_filesystem_eval_path_context_t ctx;