Changeset 1e0f63b5 in rtems
- Timestamp:
- 11/03/11 22:02:01 (12 years ago)
- Branches:
- 4.11, 5, master
- Children:
- abe5612
- Parents:
- 6167a5b
- Location:
- cpukit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r6167a5b r1e0f63b5 1 2011-11-04 Chris Johns <chrisj@rtems.org> 2 3 * libfs/src/rfs/rtems-rfs-dir.h: Commit the missing change. Part 4 of removing the hardcoded dir string. 5 1 6 2011-11-03 Chris Johns <chrisj@rtems.org> 2 7 -
cpukit/libfs/src/rfs/rtems-rfs-dir.h
r6167a5b r1e0f63b5 30 30 31 31 /** 32 * The current directory string as held in directory lists. 33 */ 34 #define RTEMS_RFS_CURRENT_DIR_STR "." 35 36 /** 37 * The size of the current directory. 38 */ 39 #define RTEMS_RFS_CURRENT_DIR_SIZE (1) 40 41 /** 32 42 * Test if the path provided is a current directory. 33 43 * … … 36 46 */ 37 47 #define rtems_rfs_current_dir(_p) \ 38 ((_p[0] == '.') && ((_p[1] == '\0') || rtems_filesystem_is_separator (_p[1]))) 48 ((_p[0] == RTEMS_RFS_CURRENT_DIR_STR[0]) && \ 49 ((_p[1] == '\0') || rtems_filesystem_is_separator (_p[1]))) 50 51 /** 52 * The parent directory string as held in directory lists. 53 */ 54 #define RTEMS_RFS_PARENT_DIR_STR ".." 55 56 /** 57 * The size of the parent directory. 58 */ 59 #define RTEMS_RFS_PARENT_DIR_SIZE (2) 39 60 40 61 /** … … 45 66 */ 46 67 #define rtems_rfs_parent_dir(_p) \ 47 ((_p[0] == '.') && (_p[1] == '.') && \ 68 ((_p[0] == RTEMS_RFS_PARENT_DIR_STR[0]) && \ 69 (_p[1] == RTEMS_RFS_PARENT_DIR_STR[1]) && \ 48 70 ((_p[2] == '\0') || rtems_filesystem_is_separator (_p[2]))) 49 71
Note: See TracChangeset
for help on using the changeset viewer.