From a2900a8b4b86ae6c81392a0c9247810132e2fdf5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 21 Jul 2011 12:03:26 +0000 Subject: 2011-07-21 Sebastian Huber * libcsupport/include/rtems/libio_.h: Added rtems_filesystem_is_root_location(). * libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_eval.c, libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c: Use rtems_filesystem_is_root_location(). --- cpukit/libcsupport/include/rtems/libio_.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h index f929669359..e9a7dd3cb8 100644 --- a/cpukit/libcsupport/include/rtems/libio_.h +++ b/cpukit/libcsupport/include/rtems/libio_.h @@ -238,6 +238,13 @@ void rtems_filesystem_get_sym_start_loc(const char *path, int *index, rtems_filesystem_location_info_t *loc); +static inline bool rtems_filesystem_is_root_location( + const rtems_filesystem_location_info_t *loc +) +{ + return loc->mt_entry->mt_fs_root.node_access == loc->node_access; +} + #ifdef __cplusplus } #endif -- cgit v1.2.3