forked from Imagelibrary/rtems
2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user