<!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-24)</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>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>

        * posix/src/aio_read.c: aio_nbytes is always >= 0.
</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.2587&r2=text&tr2=1.2588&diff_format=h">M</a></td><td width='1%'>1.2588</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/aio_read.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cpukit/posix/src/aio_read.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2587 rtems/cpukit/ChangeLog:1.2588
--- rtems/cpukit/ChangeLog:1.2587       Tue Aug 24 01:46:28 2010
+++ rtems/cpukit/ChangeLog      Tue Aug 24 06:50:34 2010
</font><font color='#997700'>@@ -1,5 +1,6 @@
</font> 2010-09-24        Ralf Corsépius <ralf.corsepius@rtems.org>
 
<font color='#000088'>+   * posix/src/aio_read.c: aio_nbytes is always >= 0.
</font>   * posix/src/aio_write.c: aio_nbytes is always >= 0.
        Fix typo in comment.
 

<font color='#006600'>diff -u rtems/cpukit/posix/src/aio_read.c:1.3 rtems/cpukit/posix/src/aio_read.c:1.4
--- rtems/cpukit/posix/src/aio_read.c:1.3       Mon Aug 16 00:46:09 2010
+++ rtems/cpukit/posix/src/aio_read.c   Tue Aug 24 06:50:35 2010
</font><font color='#997700'>@@ -51,7 +51,7 @@
</font>   if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
     rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
   
<font color='#880000'>-  if (aiocbp->aio_offset < 0 || aiocbp->aio_nbytes < 0)
</font><font color='#000088'>+  if (aiocbp->aio_offset < 0)
</font>     rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
 
   req = malloc (sizeof (rtems_aio_request));
</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>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>

        * posix/src/aio_cancel.c: Spray pthread_mutex_unlocks.
</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.2588&r2=text&tr2=1.2589&diff_format=h">M</a></td><td width='1%'>1.2589</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/aio_cancel.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cpukit/posix/src/aio_cancel.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2588 rtems/cpukit/ChangeLog:1.2589
--- rtems/cpukit/ChangeLog:1.2588       Tue Aug 24 06:50:34 2010
+++ rtems/cpukit/ChangeLog      Tue Aug 24 07:04:43 2010
</font><font color='#997700'>@@ -1,5 +1,6 @@
</font> 2010-09-24        Ralf Corsépius <ralf.corsepius@rtems.org>
 
<font color='#000088'>+   * posix/src/aio_cancel.c: Spray pthread_mutex_unlocks.
</font>   * posix/src/aio_read.c: aio_nbytes is always >= 0.
        * posix/src/aio_write.c: aio_nbytes is always >= 0.
        Fix typo in comment.
<font color='#997700'>@@ -31,7 +32,6 @@
</font> 
 2010-08-23     Joel Sherrill <joel.sherrill@oarcorp.com>
 
<font color='#880000'>-
</font>   CID 79/DEADCODE
        CID 78/DEADCODE
        CID 77/DEADCODE

<font color='#006600'>diff -u rtems/cpukit/posix/src/aio_cancel.c:1.3 rtems/cpukit/posix/src/aio_cancel.c:1.4
--- rtems/cpukit/posix/src/aio_cancel.c:1.3     Fri Aug 20 04:08:05 2010
+++ rtems/cpukit/posix/src/aio_cancel.c Tue Aug 24 07:04:43 2010
</font><font color='#997700'>@@ -45,9 +45,11 @@
</font> 
   if (aiocbp == NULL)
     {
<font color='#880000'>-      if (fcntl (fildes, F_GETFL) < 0)
</font><font color='#000088'>+      if (fcntl (fildes, F_GETFL) < 0) {
+        pthread_mutex_unlock(&aio_request_queue.mutex);
</font>   rtems_set_errno_and_return_minus_one (EBADF);
<font color='#880000'>-<span style="background-color: #FF0000">      </span>
</font><font color='#000088'>+      }
+
</font>       r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,
                                     fildes,
                                     0);
<font color='#997700'>@@ -58,8 +60,10 @@
</font>         r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req,
                                             fildes,
                                             0);
<font color='#880000'>-         if (r_chain == NULL)
</font><font color='#000088'>+            if (r_chain == NULL) {
+               pthread_mutex_unlock(&aio_request_queue.mutex);
</font>           return AIO_ALLDONE;
<font color='#000088'>+              }
</font> 
              rtems_chain_extract (&r_chain->next_fd);<span style="background-color: #FF0000">   </span>
              rtems_aio_remove_fd (r_chain);
<font color='#997700'>@@ -84,8 +88,7 @@
</font>     }
   else<span style="background-color: #FF0000"> </span>
     {
<font color='#880000'>-      if (aiocbp->aio_fildes != fildes)
-       {
</font><font color='#000088'>+      if (aiocbp->aio_fildes != fildes) {
</font>     pthread_mutex_unlock (&aio_request_queue.mutex);
          rtems_set_errno_and_return_minus_one (EINVAL);
        }
<font color='#997700'>@@ -120,5 +123,4 @@
</font>     }
   
   return AIO_ALLDONE;
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font> }
</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>