[rtems commit] statvfs and ALL filesystem handlers: Add restrict keyword.

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Nov 22 07:55:38 UTC 2013


On 2013-11-21 23:50, Joel Sherrill wrote:
> diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h
> index 21d57eb..c1b7b73 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,

Why do we have now the __restrict for the "loc" parameter?  Provided it is 
justified to use it here, why only in this handler?

> +  struct statvfs *__restrict buf
>   );
>
>   /**


-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list