<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-11-03)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ccj</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-11-04      Chris Johns <chrisj@rtems.org>

        * libfs/src/rfs/rtems-rfs-dir.h: Commit the missing change. Part
        of removing the hardcoded dir string.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2975&r2=text&tr2=1.2976&diff_format=h">M</a></td><td width='1%'>1.2976</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-dir.h.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-dir.h</td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-11-04      Chris Johns <chrisj@rtems.org>
+
+       * libfs/src/rfs/rtems-rfs-dir.h: Commit the missing change. Part
+       of removing the hardcoded dir string.
+<span style="background-color: #FF0000">       </span>
</font> 2011-11-03      Chris Johns <chrisj@rtems.org>
 
        PR 1948/filesystem

<font color='#006600'>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
</font><font color='#997700'>@@ -29,13 +29,34 @@
</font> #include <rtems/rfs/rtems-rfs-inode.h>
 
 /**
<font color='#000088'>+ * 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)
+
+/**
</font>  * 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) \
<font color='#880000'>-  ((_p[0] == '.') && ((_p[1] == '\0') || rtems_filesystem_is_separator (_p[1])))
</font><font color='#000088'>+  ((_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)
</font> 
 /**
  * Test if the path provided is a parent directory.
<font color='#997700'>@@ -44,7 +65,8 @@
</font>  * @return bool True if the path is a parent directory.
  */
 #define rtems_rfs_parent_dir(_p) \
<font color='#880000'>-  ((_p[0] == '.') && (_p[1] == '.') && \
</font><font color='#000088'>+  ((_p[0] == RTEMS_RFS_PARENT_DIR_STR[0]) && \
+   (_p[1] == RTEMS_RFS_PARENT_DIR_STR[1]) && \
</font>    ((_p[2] == '\0') || rtems_filesystem_is_separator (_p[2])))
 
 /**
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>