summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/dosfs
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/libfs/src/dosfs
parentscore/rbtree: Remove "unprotected" from API (diff)
downloadrtems-bb81e04ae3a88ce37de8718ef112ace59b3975af.tar.bz2
statvfs and ALL filesystem handlers: Add restrict keyword.
Diffstat (limited to 'cpukit/libfs/src/dosfs')
-rw-r--r--cpukit/libfs/src/dosfs/msdos.h13
-rw-r--r--cpukit/libfs/src/dosfs/msdos_dir.c4
-rw-r--r--cpukit/libfs/src/dosfs/msdos_file.c4
-rw-r--r--cpukit/libfs/src/dosfs/msdos_statvfs.c5
4 files changed, 14 insertions, 12 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos.h b/cpukit/libfs/src/dosfs/msdos.h
index 6da47cc5e2..2fa3b58887 100644
--- a/cpukit/libfs/src/dosfs/msdos.h
+++ b/cpukit/libfs/src/dosfs/msdos.h
@@ -312,8 +312,9 @@ int msdos_rename(
size_t new_namelen
);
-int msdos_statvfs(const rtems_filesystem_location_info_t *root_loc,
- struct statvfs *sb);
+int msdos_statvfs(
+ const rtems_filesystem_location_info_t *__restrict root_loc,
+ struct statvfs *__restrict sb);
void msdos_lock(const rtems_filesystem_mount_table_entry_t *mt_entry);
@@ -347,8 +348,8 @@ ssize_t msdos_file_write(
);
int msdos_file_stat(
- const rtems_filesystem_location_info_t *loc,
- struct stat *buf
+ const rtems_filesystem_location_info_t *__restrict loc,
+ struct stat *__restrict buf
);
int
@@ -370,8 +371,8 @@ ssize_t msdos_dir_read(
int msdos_dir_sync(rtems_libio_t *iop);
int msdos_dir_stat(
- const rtems_filesystem_location_info_t *loc,
- struct stat *buf
+ const rtems_filesystem_location_info_t *__restrict loc,
+ struct stat *__restrict buf
);
/**
diff --git a/cpukit/libfs/src/dosfs/msdos_dir.c b/cpukit/libfs/src/dosfs/msdos_dir.c
index d7f6823ec9..ffc9f7f7a9 100644
--- a/cpukit/libfs/src/dosfs/msdos_dir.c
+++ b/cpukit/libfs/src/dosfs/msdos_dir.c
@@ -383,8 +383,8 @@ msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
*/
int
msdos_dir_stat(
- const rtems_filesystem_location_info_t *loc,
- struct stat *buf
+ const rtems_filesystem_location_info_t *__restrict loc,
+ struct stat *__restrict buf
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
diff --git a/cpukit/libfs/src/dosfs/msdos_file.c b/cpukit/libfs/src/dosfs/msdos_file.c
index b19b848786..03bf6d608e 100644
--- a/cpukit/libfs/src/dosfs/msdos_file.c
+++ b/cpukit/libfs/src/dosfs/msdos_file.c
@@ -189,8 +189,8 @@ msdos_file_write(rtems_libio_t *iop,const void *buffer, size_t count)
*/
int
msdos_file_stat(
- const rtems_filesystem_location_info_t *loc,
- struct stat *buf
+ const rtems_filesystem_location_info_t *__restrict loc,
+ struct stat *__restrict buf
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
diff --git a/cpukit/libfs/src/dosfs/msdos_statvfs.c b/cpukit/libfs/src/dosfs/msdos_statvfs.c
index 1a1d974fc3..87d863ed86 100644
--- a/cpukit/libfs/src/dosfs/msdos_statvfs.c
+++ b/cpukit/libfs/src/dosfs/msdos_statvfs.c
@@ -18,8 +18,9 @@
#include "fat_fat_operations.h"
#include "msdos.h"
-int msdos_statvfs(const rtems_filesystem_location_info_t *root_loc,
- struct statvfs *sb)
+int msdos_statvfs(
+ const rtems_filesystem_location_info_t *__restrict root_loc,
+ struct statvfs *__restrict sb)
{
msdos_fs_info_t *fs_info = root_loc->mt_entry->fs_info;
fat_vol_t *vol = &fs_info->fat.vol;