[rtems commit] statvfs filesystem handlers: Remove restrict

Joel Sherrill joel at rtems.org
Wed Nov 27 19:11:14 UTC 2013


Module:    rtems
Branch:    master
Commit:    03e54614a3ca200d67736b8f0ae73a3063edcbee
Changeset: http://git.rtems.org/rtems/commit/?id=03e54614a3ca200d67736b8f0ae73a3063edcbee

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Nov 27 13:06:16 2013 -0600

statvfs filesystem handlers: Remove restrict

---

 cpukit/libcsupport/include/rtems/libio.h    |    8 ++++----
 cpukit/libfs/src/defaults/default_statvfs.c |    4 ++--
 cpukit/libfs/src/dosfs/msdos.h              |   12 ++++++------
 cpukit/libfs/src/dosfs/msdos_dir.c          |    4 ++--
 cpukit/libfs/src/dosfs/msdos_file.c         |    4 ++--
 5 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h
index c1b7b73..21d57eb 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 *__restrict loc,
-  struct statvfs *__restrict buf
+  const rtems_filesystem_location_info_t *loc,
+  struct statvfs *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 *__restrict loc,
-  struct statvfs *__restrict buf
+  const rtems_filesystem_location_info_t *loc,
+  struct statvfs *buf
 );
 
 /** @} */
diff --git a/cpukit/libfs/src/defaults/default_statvfs.c b/cpukit/libfs/src/defaults/default_statvfs.c
index 41ac1c0..139d0b0 100644
--- a/cpukit/libfs/src/defaults/default_statvfs.c
+++ b/cpukit/libfs/src/defaults/default_statvfs.c
@@ -21,8 +21,8 @@
 #include <rtems/seterr.h>
 
 int rtems_filesystem_default_statvfs(
-  const rtems_filesystem_location_info_t *__restrict loc,
-  struct statvfs *__restrict buf
+  const rtems_filesystem_location_info_t *loc,
+  struct statvfs *buf
 )
 {
   rtems_set_errno_and_return_minus_one( ENOSYS );
diff --git a/cpukit/libfs/src/dosfs/msdos.h b/cpukit/libfs/src/dosfs/msdos.h
index 2fa3b58..57865d5 100644
--- a/cpukit/libfs/src/dosfs/msdos.h
+++ b/cpukit/libfs/src/dosfs/msdos.h
@@ -313,8 +313,8 @@ int msdos_rename(
 );
 
 int msdos_statvfs(
-  const rtems_filesystem_location_info_t *__restrict root_loc,
-  struct statvfs *__restrict sb);
+  const rtems_filesystem_location_info_t *root_loc,
+  struct statvfs *sb);
 
 void msdos_lock(const rtems_filesystem_mount_table_entry_t *mt_entry);
 
@@ -348,8 +348,8 @@ ssize_t msdos_file_write(
 );
 
 int msdos_file_stat(
-  const rtems_filesystem_location_info_t *__restrict loc,
-  struct stat *__restrict buf
+  const rtems_filesystem_location_info_t *loc,
+  struct stat *buf
 );
 
 int
@@ -371,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 *__restrict loc,
-  struct stat *__restrict buf
+  const rtems_filesystem_location_info_t *loc,
+  struct stat *buf
 );
 
 /**
diff --git a/cpukit/libfs/src/dosfs/msdos_dir.c b/cpukit/libfs/src/dosfs/msdos_dir.c
index ffc9f7f..d7f6823 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 *__restrict loc,
-    struct stat *__restrict buf
+    const rtems_filesystem_location_info_t *loc,
+    struct stat *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 03bf6d6..b19b848 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 *__restrict loc,
-    struct stat *__restrict buf
+    const rtems_filesystem_location_info_t *loc,
+    struct stat *buf
 )
 {
     rtems_status_code  sc = RTEMS_SUCCESSFUL;




More information about the vc mailing list