Changeset 1e0f63b5 in rtems


Ignore:
Timestamp:
11/03/11 22:02:01 (12 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, 5, master
Children:
abe5612
Parents:
6167a5b
Message:

2011-11-04 Chris Johns <chrisj@…>

  • libfs/src/rfs/rtems-rfs-dir.h: Commit the missing change. Part of removing the hardcoded dir string.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r6167a5b r1e0f63b5  
     12011-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       
    162011-11-03      Chris Johns <chrisj@rtems.org>
    27
  • cpukit/libfs/src/rfs/rtems-rfs-dir.h

    r6167a5b r1e0f63b5  
    3030
    3131/**
     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/**
    3242 * Test if the path provided is a current directory.
    3343 *
     
    3646 */
    3747#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)
    3960
    4061/**
     
    4566 */
    4667#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]) && \
    4870   ((_p[2] == '\0') || rtems_filesystem_is_separator (_p[2])))
    4971
Note: See TracChangeset for help on using the changeset viewer.