<!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-07-21)</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>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>

        PR 1842/cpukit
        * score/include/rtems/score/basedefs.h: Added RTEMS_STATIC_ASSERT().
</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.2882&r2=text&tr2=1.2883&diff_format=h">M</a></td><td width='1%'>1.2883</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/basedefs.h.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>cpukit/score/include/rtems/score/basedefs.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2882 rtems/cpukit/ChangeLog:1.2883
--- rtems/cpukit/ChangeLog:1.2882       Tue Jul 19 13:35:30 2011
+++ rtems/cpukit/ChangeLog      Thu Jul 21 07:00:20 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-07-21    Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+       PR 1842/cpukit
+       * score/include/rtems/score/basedefs.h: Added RTEMS_STATIC_ASSERT().
+
</font> 2011-07-19        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * score/include/rtems/score/chain.h: Fix typo.

<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/basedefs.h:1.4 rtems/cpukit/score/include/rtems/score/basedefs.h:1.5
--- rtems/cpukit/score/include/rtems/score/basedefs.h:1.4       Fri Jun 24 12:50:31 2011
+++ rtems/cpukit/score/include/rtems/score/basedefs.h   Thu Jul 21 07:00:20 2011
</font><font color='#997700'>@@ -165,6 +165,9 @@
</font>   #define RTEMS_COMPILER_DEPRECATED_ATTRIBUTE
 #endif
 
<font color='#000088'>+#define RTEMS_STATIC_ASSERT(cond, msg) \
+  typedef int rtems_static_assert ## msg [(cond) ? 1 : -1]
+
</font> #ifndef ASM
   #ifdef RTEMS_DEPRECATED_TYPES
     typedef bool boolean;
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>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().
</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.2883&r2=text&tr2=1.2884&diff_format=h">M</a></td><td width='1%'>1.2884</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/include/rtems/libio_.h.diff?r1=text&tr1=1.41&r2=text&tr2=1.42&diff_format=h">M</a></td><td width='1%'>1.42</td><td width='100%'>cpukit/libcsupport/include/rtems/libio_.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/dosfs/msdos_dir.c.diff?r1=text&tr1=1.20&r2=text&tr2=1.21&diff_format=h">M</a></td><td width='1%'>1.21</td><td width='100%'>cpukit/libfs/src/dosfs/msdos_dir.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/dosfs/msdos_eval.c.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>cpukit/libfs/src/dosfs/msdos_eval.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/imfs/imfs_directory.c.diff?r1=text&tr1=1.28&r2=text&tr2=1.29&diff_format=h">M</a></td><td width='1%'>1.29</td><td width='100%'>cpukit/libfs/src/imfs/imfs_directory.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/imfs/imfs_eval.c.diff?r1=text&tr1=1.33&r2=text&tr2=1.34&diff_format=h">M</a></td><td width='1%'>1.34</td><td width='100%'>cpukit/libfs/src/imfs/imfs_eval.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2883 rtems/cpukit/ChangeLog:1.2884
--- rtems/cpukit/ChangeLog:1.2883       Thu Jul 21 07:00:20 2011
+++ rtems/cpukit/ChangeLog      Thu Jul 21 07:03:25 2011
</font><font color='#997700'>@@ -1,5 +1,13 @@
</font> 2011-07-21        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
<font color='#000088'>+   * 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().
+
+2011-07-21     Sebastian Huber <sebastian.huber@embedded-brains.de>
+
</font>   PR 1842/cpukit
        * score/include/rtems/score/basedefs.h: Added RTEMS_STATIC_ASSERT().
 

<font color='#006600'>diff -u rtems/cpukit/libcsupport/include/rtems/libio_.h:1.41 rtems/cpukit/libcsupport/include/rtems/libio_.h:1.42
--- rtems/cpukit/libcsupport/include/rtems/libio_.h:1.41        Fri Jun 24 12:52:55 2011
+++ rtems/cpukit/libcsupport/include/rtems/libio_.h     Thu Jul 21 07:03:25 2011
</font><font color='#997700'>@@ -238,6 +238,13 @@
</font>                                   int *index,
                                        rtems_filesystem_location_info_t *loc);
 
<font color='#000088'>+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;
+}
+
</font> #ifdef __cplusplus
 }
 #endif

<font color='#006600'>diff -u rtems/cpukit/libfs/src/dosfs/msdos_dir.c:1.20 rtems/cpukit/libfs/src/dosfs/msdos_dir.c:1.21
--- rtems/cpukit/libfs/src/dosfs/msdos_dir.c:1.20       Thu Jul 15 03:10:47 2010
+++ rtems/cpukit/libfs/src/dosfs/msdos_dir.c    Thu Jul 21 07:03:25 2011
</font><font color='#997700'>@@ -679,7 +679,7 @@
</font>     /*
      * You cannot remove the file system root node.
      */
<font color='#880000'>-    if (pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access)
</font><font color='#000088'>+    if (rtems_filesystem_is_root_location(pathloc))
</font>     {
         rtems_semaphore_release(fs_info->vol_sema);
         rtems_set_errno_and_return_minus_one(EBUSY);

<font color='#006600'>diff -u rtems/cpukit/libfs/src/dosfs/msdos_eval.c:1.13 rtems/cpukit/libfs/src/dosfs/msdos_eval.c:1.14
--- rtems/cpukit/libfs/src/dosfs/msdos_eval.c:1.13      Sun Jul  4 09:53:46 2010
+++ rtems/cpukit/libfs/src/dosfs/msdos_eval.c   Thu Jul 21 07:03:25 2011
</font><font color='#997700'>@@ -128,8 +128,7 @@
</font>                 /*
                  *  Am I at the root of this mounted filesystem?
                  */
<font color='#880000'>-                if (pathloc->node_access ==
-                    pathloc->mt_entry->mt_fs_root.node_access)
</font><font color='#000088'>+                if (rtems_filesystem_is_root_location(pathloc))
</font>                 {
                     /*
                      *  Am I at the root of all filesystems?
<font color='#997700'>@@ -310,8 +309,7 @@
</font>                 /*
                  *  Am I at the root of this mounted filesystem?
                  */
<font color='#880000'>-                if (pathloc->node_access ==
-                    pathloc->mt_entry->mt_fs_root.node_access)
</font><font color='#000088'>+                if (rtems_filesystem_is_root_location(pathloc))
</font>                 {
                     /*
                      *  Am I at the root of all filesystems?

<font color='#006600'>diff -u rtems/cpukit/libfs/src/imfs/imfs_directory.c:1.28 rtems/cpukit/libfs/src/imfs/imfs_directory.c:1.29
--- rtems/cpukit/libfs/src/imfs/imfs_directory.c:1.28   Thu Nov 25 03:27:05 2010
+++ rtems/cpukit/libfs/src/imfs/imfs_directory.c        Thu Jul 21 07:03:25 2011
</font><font color='#997700'>@@ -300,7 +300,7 @@
</font>    * You cannot remove the file system root node.
    */
 
<font color='#880000'>-  if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
</font><font color='#000088'>+  if ( rtems_filesystem_is_root_location(pathloc) )
</font>      rtems_set_errno_and_return_minus_one( EBUSY );
 
   /*

<font color='#006600'>diff -u rtems/cpukit/libfs/src/imfs/imfs_eval.c:1.33 rtems/cpukit/libfs/src/imfs/imfs_eval.c:1.34
--- rtems/cpukit/libfs/src/imfs/imfs_eval.c:1.33        Tue May 10 22:01:54 2011
+++ rtems/cpukit/libfs/src/imfs/imfs_eval.c     Thu Jul 21 07:03:26 2011
</font><font color='#997700'>@@ -346,7 +346,7 @@
</font>          * Am I at the root of this mounted filesystem?
          */
 
<font color='#880000'>-        if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
</font><font color='#000088'>+        if ( rtems_filesystem_is_root_location( pathloc ) ) {
</font> 
           /*
            *  Am I at the root of all filesystems?
<font color='#997700'>@@ -544,8 +544,7 @@
</font>          *  Am I at the root of this mounted filesystem?
          */
 
<font color='#880000'>-        if (pathloc->node_access ==
-            pathloc->mt_entry->mt_fs_root.node_access) {
</font><font color='#000088'>+        if ( rtems_filesystem_is_root_location( pathloc ) ) {
</font> 
           /*
            *  Am I at the root of all filesystems?
</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>