change log for rtems (2011-11-03)

rtems-vc at rtems.org rtems-vc at rtems.org
Thu Nov 3 22:10:43 UTC 2011


 *ccj*:
2011-11-04      Chris Johns <chrisj at rtems.org>

        * libfs/src/rfs/rtems-rfs-dir.h: Commit the missing change. Part
        of removing the hardcoded dir string.

M 1.2976  cpukit/ChangeLog
M    1.3  cpukit/libfs/src/rfs/rtems-rfs-dir.h

diff -u rtems/cpukit/ChangeLog:1.2975 rtems/cpukit/ChangeLog:1.2976
--- rtems/cpukit/ChangeLog:1.2975	Thu Nov  3 09:11:07 2011
+++ rtems/cpukit/ChangeLog	Thu Nov  3 17:02:01 2011
@@ -1,3 +1,8 @@
+2011-11-04      Chris Johns <chrisj at rtems.org>
+
+	* libfs/src/rfs/rtems-rfs-dir.h: Commit the missing change. Part
+	of removing the hardcoded dir string.
+	
 2011-11-03      Chris Johns <chrisj at rtems.org>
 
 	PR 1948/filesystem

diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.h:1.2 rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.h:1.3
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.h:1.2	Sat Jun 12 00:18:02 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.h	Thu Nov  3 17:02:01 2011
@@ -29,13 +29,34 @@
 #include <rtems/rfs/rtems-rfs-inode.h>
 
 /**
+ * The current directory string as held in directory lists.
+ */
+#define RTEMS_RFS_CURRENT_DIR_STR "."
+
+/**
+ * The size of the current directory.
+ */
+#define RTEMS_RFS_CURRENT_DIR_SIZE (1)
+
+/**
  * Test if the path provided is a current directory.
  *
  * @param _p Pointer to the path string.
  * @return bool True if the path is a current directory.
  */
 #define rtems_rfs_current_dir(_p) \
-  ((_p[0] == '.') && ((_p[1] == '\0') || rtems_filesystem_is_separator (_p[1])))
+  ((_p[0] == RTEMS_RFS_CURRENT_DIR_STR[0]) && \
+   ((_p[1] == '\0') || rtems_filesystem_is_separator (_p[1])))
+
+/**
+ * The parent directory string as held in directory lists.
+ */
+#define RTEMS_RFS_PARENT_DIR_STR ".."
+
+/**
+ * The size of the parent directory.
+ */
+#define RTEMS_RFS_PARENT_DIR_SIZE (2)
 
 /**
  * Test if the path provided is a parent directory.
@@ -44,7 +65,8 @@
  * @return bool True if the path is a parent directory.
  */
 #define rtems_rfs_parent_dir(_p) \
-  ((_p[0] == '.') && (_p[1] == '.') && \
+  ((_p[0] == RTEMS_RFS_PARENT_DIR_STR[0]) && \
+   (_p[1] == RTEMS_RFS_PARENT_DIR_STR[1]) && \
    ((_p[2] == '\0') || rtems_filesystem_is_separator (_p[2])))
 
 /**



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111103/c0eb329a/attachment-0001.html>


More information about the vc mailing list