<!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 (2010-08-10)</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>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-10 Bharath Suri <bharath.s.jois@gmail.com>

        PR 1663/testing
        * spmkdir/init.c: New cases to get the error path in rtems_mkdir
        routine.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.413&r2=text&tr2=1.414&diff_format=h">M</a></td><td width='1%'>1.414</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spmkdir/init.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>testsuites/sptests/spmkdir/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.413 rtems/testsuites/sptests/ChangeLog:1.414
--- rtems/testsuites/sptests/ChangeLog:1.413    Mon Aug  9 09:29:36 2010
+++ rtems/testsuites/sptests/ChangeLog  Tue Aug 10 12:34:12 2010
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2010-08-10    Bharath Suri <bharath.s.jois@gmail.com>
+
+       PR 1663/testing
+       * spmkdir/init.c: New cases to get the error path in rtems_mkdir
+       routine.
+
</font> 2010-08-09        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        PR 1661/testing

<font color='#006600'>diff -u rtems/testsuites/sptests/spmkdir/init.c:1.1 rtems/testsuites/sptests/spmkdir/init.c:1.2
--- rtems/testsuites/sptests/spmkdir/init.c:1.1 Tue Jun  8 08:22:58 2010
+++ rtems/testsuites/sptests/spmkdir/init.c     Tue Aug 10 12:34:12 2010
</font><font color='#997700'>@@ -64,6 +64,12 @@
</font>   test_mkdir("a/b/c/4", S_IRWXO, 0);
   test_mkdir("a/b", omode, 0);
   test_mkdir("a", omode, 0);
<font color='#000088'>+  test_mkdir("a/b/x", S_IRUSR, 0);
+  test_mkdir("a/b/x/y", S_IRUSR, -1);
+<span style="background-color: #FF0000">  </span>
+  rv = mknod("a/n", S_IRWXU | S_IFREG, 0LL);
+
+  test_mkdir("a/n/b", S_IRUSR, -1);
</font> 
   rv = open ("b", O_CREAT | O_RDONLY, omode);
   rtems_test_assert(rv >= 0);
</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>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>

        PR 1660/filesystem
        * libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed
        int pipe_release to void pipe_release.
        * libfs/src/imfs/imfs_fifo.c: Corresponding change to
        IMFS_fifo_close since pipe_release does not return any error.
        * libfs/src/imfs/imfs_initsupp.c: Changes to improve
        IMFS_determine_bytes_per_block
</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.2557&r2=text&tr2=1.2558&diff_format=h">M</a></td><td width='1%'>1.2558</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/imfs/imfs_fifo.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/libfs/src/imfs/imfs_fifo.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/imfs/imfs_initsupp.c.diff?r1=text&tr1=1.23&r2=text&tr2=1.24&diff_format=h">M</a></td><td width='1%'>1.24</td><td width='100%'>cpukit/libfs/src/imfs/imfs_initsupp.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/pipe/fifo.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>cpukit/libfs/src/pipe/fifo.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/pipe/pipe.h.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>cpukit/libfs/src/pipe/pipe.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/object.h.diff?r1=text&tr1=1.80&r2=text&tr2=1.81&diff_format=h">M</a></td><td width='1%'>1.81</td><td width='100%'>cpukit/score/include/rtems/score/object.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/objectgetinfo.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>cpukit/score/src/objectgetinfo.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/objectinitializeinformation.c.diff?r1=text&tr1=1.18&r2=text&tr2=1.19&diff_format=h">M</a></td><td width='1%'>1.19</td><td width='100%'>cpukit/score/src/objectinitializeinformation.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2557 rtems/cpukit/ChangeLog:1.2558
--- rtems/cpukit/ChangeLog:1.2557       Tue Aug 10 08:15:30 2010
+++ rtems/cpukit/ChangeLog      Tue Aug 10 12:41:29 2010
</font><font color='#997700'>@@ -1,3 +1,13 @@
</font><font color='#000088'>+2010-08-09    Bharath Suri <bharath.s.jois@gmail.com>
+
+       PR 1660/filesystem
+       * libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed
+       int pipe_release to void pipe_release.
+       * libfs/src/imfs/imfs_fifo.c: Corresponding change to
+       IMFS_fifo_close since pipe_release does not return any error.
+       * libfs/src/imfs/imfs_initsupp.c: Changes to improve
+       IMFS_determine_bytes_per_block
+
</font> 2010-08-10        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        PR 1661/testing

<font color='#006600'>diff -u rtems/cpukit/libfs/src/imfs/imfs_fifo.c:1.6 rtems/cpukit/libfs/src/imfs/imfs_fifo.c:1.7
--- rtems/cpukit/libfs/src/imfs/imfs_fifo.c:1.6 Thu Jul 15 03:10:48 2010
+++ rtems/cpukit/libfs/src/imfs/imfs_fifo.c     Tue Aug 10 12:41:31 2010
</font><font color='#997700'>@@ -49,15 +49,14 @@
</font>   rtems_libio_t *iop
 )
 {
<font color='#000088'>+  int err = 0;
</font>   IMFS_jnode_t *jnode = iop->pathinfo.node_access;
 
<font color='#880000'>-  int err = pipe_release(&JNODE2PIPE(jnode), iop);
-
-  if (err == 0) {
-    iop->flags &= ~LIBIO_FLAGS_OPEN;
-    IMFS_check_node_remove(jnode);
-  }
</font><font color='#000088'>+  pipe_release(&JNODE2PIPE(jnode), iop);
</font> 
<font color='#000088'>+  iop->flags &= ~LIBIO_FLAGS_OPEN;
+  IMFS_check_node_remove(jnode);
+<span style="background-color: #FF0000">  </span>
</font>   IMFS_FIFO_RETURN(err);
 }
 

<font color='#006600'>diff -u rtems/cpukit/libfs/src/imfs/imfs_initsupp.c:1.23 rtems/cpukit/libfs/src/imfs/imfs_initsupp.c:1.24
--- rtems/cpukit/libfs/src/imfs/imfs_initsupp.c:1.23    Thu Jun 24 16:31:22 2010
+++ rtems/cpukit/libfs/src/imfs/imfs_initsupp.c Tue Aug 10 12:41:32 2010
</font><font color='#997700'>@@ -48,7 +48,10 @@
</font>   for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
     if (bit_mask == requested_bytes_per_block) {
       is_valid = true;
<font color='#000088'>+      break;
</font>     }
<font color='#000088'>+    if(bit_mask > requested_bytes_per_block)
+      break;
</font>   }
   *dest_bytes_per_block = ((is_valid)
                           ? requested_bytes_per_block

<font color='#006600'>diff -u rtems/cpukit/libfs/src/pipe/fifo.c:1.10 rtems/cpukit/libfs/src/pipe/fifo.c:1.11
--- rtems/cpukit/libfs/src/pipe/fifo.c:1.10     Mon Aug  2 13:27:23 2010
+++ rtems/cpukit/libfs/src/pipe/fifo.c  Tue Aug 10 12:41:32 2010
</font><font color='#997700'>@@ -241,7 +241,7 @@
</font>  * *pipep points to pipe control structure. When the last user releases pipe,
  * it will be set to NULL.
  */
<font color='#880000'>-int pipe_release(
</font><font color='#000088'>+void pipe_release(
</font>   pipe_control_t **pipep,
   rtems_libio_t *iop
 )
<font color='#997700'>@@ -286,17 +286,16 @@
</font> 
 #if 0
   if (! delfile)
<font color='#880000'>-    return 0;
</font><font color='#000088'>+    return;
</font>   if (iop->pathinfo.ops->unlink_h == NULL)
<font color='#880000'>-    return 0;
</font><font color='#000088'>+    return;
</font> 
   /* This is safe for IMFS, but how about other FSes? */
   iop->flags &= ~LIBIO_FLAGS_OPEN;
   if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
<font color='#880000'>-    return -errno;
</font><font color='#000088'>+    return;
</font> #endif
 
<font color='#880000'>-  return 0;
</font> }
 
 /*

<font color='#006600'>diff -u rtems/cpukit/libfs/src/pipe/pipe.h:1.5 rtems/cpukit/libfs/src/pipe/pipe.h:1.6
--- rtems/cpukit/libfs/src/pipe/pipe.h:1.5      Mon Jun 14 00:49:44 2010
+++ rtems/cpukit/libfs/src/pipe/pipe.h  Tue Aug 10 12:41:32 2010
</font><font color='#997700'>@@ -52,7 +52,7 @@
</font>  * *pipep points to pipe control structure. When the last user releases pipe,
  * it will be set to NULL.
  */
<font color='#880000'>-extern int pipe_release(
</font><font color='#000088'>+extern void pipe_release(
</font>   pipe_control_t **pipep,
   rtems_libio_t *iop
 );

<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/object.h:1.80 rtems/cpukit/score/include/rtems/score/object.h:1.81
--- rtems/cpukit/score/include/rtems/score/object.h:1.80        Thu Jun 17 23:21:19 2010
+++ rtems/cpukit/score/include/rtems/score/object.h     Tue Aug 10 12:41:32 2010
</font><font color='#997700'>@@ -476,7 +476,7 @@
</font> void _Objects_Initialize_information (
   Objects_Information *information,
   Objects_APIs         the_api,
<font color='#880000'>-  uint32_t             the_class,
</font><font color='#000088'>+  uint16_t             the_class,
</font>   uint32_t             maximum,
   uint16_t             size,
   bool                 is_string,
<font color='#997700'>@@ -754,7 +754,7 @@
</font>  */
 Objects_Information *_Objects_Get_information(
   Objects_APIs   the_api,
<font color='#880000'>-  uint32_t       the_class
</font><font color='#000088'>+  uint16_t       the_class
</font> );
 
 /**

<font color='#006600'>diff -u rtems/cpukit/score/src/objectgetinfo.c:1.7 rtems/cpukit/score/src/objectgetinfo.c:1.8
--- rtems/cpukit/score/src/objectgetinfo.c:1.7  Wed Jul  8 12:56:07 2009
+++ rtems/cpukit/score/src/objectgetinfo.c      Tue Aug 10 12:41:32 2010
</font><font color='#997700'>@@ -20,7 +20,7 @@
</font> 
 Objects_Information *_Objects_Get_information(
   Objects_APIs   the_api,
<font color='#880000'>-  uint32_t       the_class
</font><font color='#000088'>+  uint16_t       the_class
</font> )
 {
   Objects_Information *info;

<font color='#006600'>diff -u rtems/cpukit/score/src/objectinitializeinformation.c:1.18 rtems/cpukit/score/src/objectinitializeinformation.c:1.19
--- rtems/cpukit/score/src/objectinitializeinformation.c:1.18   Wed Mar 10 12:15:33 2010
+++ rtems/cpukit/score/src/objectinitializeinformation.c        Tue Aug 10 12:41:32 2010
</font><font color='#997700'>@@ -49,7 +49,7 @@
</font> void _Objects_Initialize_information(
   Objects_Information *information,
   Objects_APIs         the_api,
<font color='#880000'>-  uint32_t             the_class,
</font><font color='#000088'>+  uint16_t             the_class,
</font>   uint32_t             maximum,
   uint16_t             size,
   bool                 is_string,
</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>