* 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().
This commit is contained in:
Sebastian Huber
2011-07-21 12:03:26 +00:00
parent 51ab73b5d2
commit a2900a8b4b
6 changed files with 21 additions and 9 deletions

View File

@@ -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