Changeset bb81e04 in rtems


Ignore:
Timestamp:
Nov 21, 2013, 10:54:21 PM (6 years ago)
Author:
Daniel Ramirez <javamonn@…>
Branches:
4.11, master
Children:
27116f25
Parents:
4ea97d24
git-author:
Daniel Ramirez <javamonn@…> (11/21/13 22:54:21)
git-committer:
Joel Sherrill <joel.sherrill@…> (11/21/13 22:56:48)
Message:

statvfs and ALL filesystem handlers: Add restrict keyword.

Location:
cpukit
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio.h

    r4ea97d24 rbb81e04  
    486486 */
    487487typedef int (*rtems_filesystem_statvfs_t)(
    488   const rtems_filesystem_location_info_t *loc,
    489   struct statvfs *buf
     488  const rtems_filesystem_location_info_t *__restrict loc,
     489  struct statvfs *__restrict buf
    490490);
    491491
     
    739739 */
    740740int rtems_filesystem_default_statvfs(
    741   const rtems_filesystem_location_info_t *loc,
    742   struct statvfs *buf
     741  const rtems_filesystem_location_info_t *__restrict loc,
     742  struct statvfs *__restrict buf
    743743);
    744744
  • cpukit/libcsupport/include/sys/statvfs.h

    r4ea97d24 rbb81e04  
    5151};
    5252
    53 extern int statvfs(const char *, struct statvfs *);
     53extern int statvfs(const char *__restrict , struct statvfs *__restrict);
    5454extern int fstatvfs(int, struct statvfs *);
    5555
  • cpukit/libcsupport/src/__usrenv.c

    r4ea97d24 rbb81e04  
    187187
    188188static int null_op_statvfs(
    189   const rtems_filesystem_location_info_t *loc,
    190   struct statvfs *buf
     189  const rtems_filesystem_location_info_t *__restrict loc,
     190  struct statvfs *__restrict buf
    191191)
    192192{
  • cpukit/libcsupport/src/statvfs.c

    r4ea97d24 rbb81e04  
    2020#include <rtems/libio_.h>
    2121
    22 int statvfs( const char *path, struct statvfs *buf )
     22int statvfs( const char *__restrict path, struct statvfs *__restrict buf )
    2323{
    2424  int rv = 0;
  • cpukit/libfs/src/defaults/default_statvfs.c

    r4ea97d24 rbb81e04  
    2222
    2323int rtems_filesystem_default_statvfs(
    24   const rtems_filesystem_location_info_t *loc,
    25   struct statvfs *buf
     24  const rtems_filesystem_location_info_t *__restrict loc,
     25  struct statvfs *__restrict buf
    2626)
    2727{
  • cpukit/libfs/src/dosfs/msdos.h

    r4ea97d24 rbb81e04  
    313313);
    314314
    315 int msdos_statvfs(const rtems_filesystem_location_info_t *root_loc,
    316   struct statvfs *sb);
     315int msdos_statvfs(
     316  const rtems_filesystem_location_info_t *__restrict root_loc,
     317  struct statvfs *__restrict sb);
    317318
    318319void msdos_lock(const rtems_filesystem_mount_table_entry_t *mt_entry);
     
    348349
    349350int msdos_file_stat(
    350   const rtems_filesystem_location_info_t *loc,
    351   struct stat *buf
     351  const rtems_filesystem_location_info_t *__restrict loc,
     352  struct stat *__restrict buf
    352353);
    353354
     
    371372
    372373int msdos_dir_stat(
    373   const rtems_filesystem_location_info_t *loc,
    374   struct stat *buf
     374  const rtems_filesystem_location_info_t *__restrict loc,
     375  struct stat *__restrict buf
    375376);
    376377
  • cpukit/libfs/src/dosfs/msdos_dir.c

    r4ea97d24 rbb81e04  
    384384int
    385385msdos_dir_stat(
    386     const rtems_filesystem_location_info_t *loc,
    387     struct stat *buf
     386    const rtems_filesystem_location_info_t *__restrict loc,
     387    struct stat *__restrict buf
    388388)
    389389{
  • cpukit/libfs/src/dosfs/msdos_file.c

    r4ea97d24 rbb81e04  
    190190int
    191191msdos_file_stat(
    192     const rtems_filesystem_location_info_t *loc,
    193     struct stat *buf
     192    const rtems_filesystem_location_info_t *__restrict loc,
     193    struct stat *__restrict buf
    194194)
    195195{
  • cpukit/libfs/src/dosfs/msdos_statvfs.c

    r4ea97d24 rbb81e04  
    1919#include "msdos.h"
    2020
    21 int msdos_statvfs(const rtems_filesystem_location_info_t *root_loc,
    22     struct statvfs *sb)
     21int msdos_statvfs(
     22  const rtems_filesystem_location_info_t *__restrict root_loc,
     23  struct statvfs *__restrict sb)
    2324{
    2425  msdos_fs_info_t *fs_info = root_loc->mt_entry->fs_info;
  • cpukit/libfs/src/jffs2/src/fs-rtems.c

    r4ea97d24 rbb81e04  
    10161016
    10171017static int rtems_jffs2_statvfs(
    1018         const rtems_filesystem_location_info_t *loc,
    1019         struct statvfs *buf
     1018        const rtems_filesystem_location_info_t *__restrict loc,
     1019        struct statvfs *__restrict buf
    10201020)
    10211021{
  • cpukit/libfs/src/rfs/rtems-rfs-rtems.c

    r4ea97d24 rbb81e04  
    741741 */
    742742static int
    743 rtems_rfs_rtems_statvfs (const rtems_filesystem_location_info_t* pathloc,
    744                          struct statvfs*                         sb)
     743rtems_rfs_rtems_statvfs (
     744  const rtems_filesystem_location_info_t *__restrict pathloc,
     745  struct statvfs *__restrict                         sb)
    745746{
    746747  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
Note: See TracChangeset for help on using the changeset viewer.