<!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-06-22)</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>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>

        * posix/src/nanosleep.c, posix/src/timersettime.c: Removed redundent
        code and cleaned up error checking code.
</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.2449&r2=text&tr2=1.2450&diff_format=h">M</a></td><td width='1%'>1.2450</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/nanosleep.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/posix/src/nanosleep.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/timersettime.c.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</td><td width='100%'>cpukit/posix/src/timersettime.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2449 rtems/cpukit/ChangeLog:1.2450
--- rtems/cpukit/ChangeLog:1.2449       Tue Jun 22 08:31:13 2010
+++ rtems/cpukit/ChangeLog      Tue Jun 22 10:36:05 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-06-22    Jennifer Averett <Jennifer.Averett@OARcorp.com>
+
+       * posix/src/nanosleep.c, posix/src/timersettime.c: Removed redundent
+       code and cleaned up error checking code.
+
</font> 2010-06-22        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * libcsupport/src/mount.c: Fixed string assignment in mount entry

<font color='#006600'>diff -u rtems/cpukit/posix/src/nanosleep.c:1.10 rtems/cpukit/posix/src/nanosleep.c:1.11
--- rtems/cpukit/posix/src/nanosleep.c:1.10     Sun Sep 13 19:14:22 2009
+++ rtems/cpukit/posix/src/nanosleep.c  Tue Jun 22 10:36:06 2010
</font><font color='#997700'>@@ -36,8 +36,6 @@
</font> {
   Watchdog_Interval  ticks;
 
<font color='#880000'>-  if ( !_Timespec_Is_valid( rqtp ) )
-    rtems_set_errno_and_return_minus_one( EINVAL );
</font> 
   /*
    *  Return EINVAL if the delay interval is negative.
<font color='#997700'>@@ -45,7 +43,7 @@
</font>    *  NOTE:  This behavior is beyond the POSIX specification.
    *         FSU and GNU/Linux pthreads shares this behavior.
    */
<font color='#880000'>-  if ( rqtp->tv_sec < 0 || rqtp->tv_nsec < 0 )
</font><font color='#000088'>+  if ( !_Timespec_Is_valid( rqtp ) )
</font>     rtems_set_errno_and_return_minus_one( EINVAL );
 
   ticks = _Timespec_To_ticks( rqtp );

<font color='#006600'>diff -u rtems/cpukit/posix/src/timersettime.c:1.9 rtems/cpukit/posix/src/timersettime.c:1.10
--- rtems/cpukit/posix/src/timersettime.c:1.9   Thu Dec 10 16:20:11 2009
+++ rtems/cpukit/posix/src/timersettime.c       Tue Jun 22 10:36:06 2010
</font><font color='#997700'>@@ -42,12 +42,14 @@
</font>   if ( !value )
     rtems_set_errno_and_return_minus_one( EINVAL );
 
<font color='#880000'>-  /* First, it verifies if the structure "value" is correct */
-  if ( ( value->it_value.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) ||
-       ( value->it_value.tv_nsec < 0 ) ||
-       ( value->it_interval.tv_nsec >= TOD_NANOSECONDS_PER_SECOND) ||
-       ( value->it_interval.tv_nsec < 0 )) {
-    /* The number of nanoseconds is not correct */
</font><font color='#000088'>+  /*<span style="background-color: #FF0000"> </span>
+   * First, it verifies if the structure "value" is correct<span style="background-color: #FF0000">   </span>
+   * if the number of nanoseconds is not correct return EINVAL
+   */
+  if ( !_Timespec_Is_valid( &(value->it_value) ) ) {
+    rtems_set_errno_and_return_minus_one( EINVAL );
+  }
+  if ( !_Timespec_Is_valid( &(value->it_interval) ) ) {
</font>     rtems_set_errno_and_return_minus_one( EINVAL );
   }
 
</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>