<!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-04-25)</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-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* bspcmdline01/init.c: Fix assert conditional.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.172&r2=text&tr2=1.173&diff_format=h">M</a></td><td width='1%'>1.173</td><td width='100%'>testsuites/libtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/bspcmdline01/init.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%'>testsuites/libtests/bspcmdline01/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.172 rtems/testsuites/libtests/ChangeLog:1.173
--- rtems/testsuites/libtests/ChangeLog:1.172 Sun Apr 11 11:44:52 2010
+++ rtems/testsuites/libtests/ChangeLog Sun Apr 25 14:12:22 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ * bspcmdline01/init.c: Fix assert conditional.
+
</font> 2010-04-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/flockfile.c, POSIX/funlockfile.c, POSIX/ftrylockfile.c: New.
<font color='#006600'>diff -u rtems/testsuites/libtests/bspcmdline01/init.c:1.6 rtems/testsuites/libtests/bspcmdline01/init.c:1.7
--- rtems/testsuites/libtests/bspcmdline01/init.c:1.6 Mon Dec 28 10:42:08 2009
+++ rtems/testsuites/libtests/bspcmdline01/init.c Sun Apr 25 14:12:22 2010
</font><font color='#997700'>@@ -51,7 +51,7 @@
</font> bsp_boot_cmdline = "edit";
puts ( "rtems_bsp_cmdline_get_param - bsp_boot_cmdline = edit name = edit -no error" );
p = rtems_bsp_cmdline_get_param("edit", result, 5);
<font color='#880000'>- rtems_test_assert( p == NULL );
</font><font color='#000088'>+ rtems_test_assert( p != NULL );
</font> }
void test_search(
</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-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* psxreaddir/psxreaddir.scn, psxreaddir/test.c: Do not test for
rewinddir(NULL) since we are now using newlib's implementation and it
does not check for NULL. This causes a fault on some targets.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.257&r2=text&tr2=1.258&diff_format=h">M</a></td><td width='1%'>1.258</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxreaddir/psxreaddir.scn.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%'>testsuites/psxtests/psxreaddir/psxreaddir.scn</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxreaddir/test.c.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>testsuites/psxtests/psxreaddir/test.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.257 rtems/testsuites/psxtests/ChangeLog:1.258
--- rtems/testsuites/psxtests/ChangeLog:1.257 Sat Apr 3 01:07:34 2010
+++ rtems/testsuites/psxtests/ChangeLog Sun Apr 25 14:17:52 2010
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ * psxreaddir/psxreaddir.scn, psxreaddir/test.c: Do not test for
+ rewinddir(NULL) since we are now using newlib's implementation and it
+ does not check for NULL. This causes a fault on some targets.
+
</font> 2010-04-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx07/init.c, psx09/init.c, psx12/init.c, psxhdrs/pthread11.c,
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxreaddir/psxreaddir.scn:1.4 rtems/testsuites/psxtests/psxreaddir/psxreaddir.scn:1.5
--- rtems/testsuites/psxtests/psxreaddir/psxreaddir.scn:1.4 Fri Nov 17 13:06:40 2000
+++ rtems/testsuites/psxtests/psxreaddir/psxreaddir.scn Sun Apr 25 14:17:52 2010
</font><font color='#997700'>@@ -170,7 +170,6 @@
</font> e 9 1340 268 0x010c
f 10 1608 268 0x010c
many 16 1876 268 0x010c
<font color='#880000'>-Send rewinddir a NULL pointer
</font> Seek directory
telldir() should report only sizeof(struct dirent) increments
in position. Sizeof(struct dirent): 268
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxreaddir/test.c:1.17 rtems/testsuites/psxtests/psxreaddir/test.c:1.18
--- rtems/testsuites/psxtests/psxreaddir/test.c:1.17 Tue Dec 8 11:52:53 2009
+++ rtems/testsuites/psxtests/psxreaddir/test.c Sun Apr 25 14:17:52 2010
</font><font color='#997700'>@@ -409,9 +409,11 @@
</font> rewinddir( directory );
printdir(directory);
<font color='#880000'>-/* Don't know how to check this one automatically. */
</font><font color='#000088'>+#if 0
+ /* Newlib's implementation does not check for NULL */
</font> printf( "Send rewinddir a NULL pointer\n");
rewinddir( NULL );
<font color='#000088'>+#endif
</font>
printf( "\nSeek directory\n" );
printf( "telldir() should report only sizeof(struct dirent) increments \n" );
</pre>
<p> </p>
<a name='cs3'></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-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx07/init.c, psx07/task.c: Introduce enough of a delay so the Init()
thread can reliably reach the pthread_join() call.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.258&r2=text&tr2=1.259&diff_format=h">M</a></td><td width='1%'>1.259</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psx07/init.c.diff?r1=text&tr1=1.32&r2=text&tr2=1.33&diff_format=h">M</a></td><td width='1%'>1.33</td><td width='100%'>testsuites/psxtests/psx07/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psx07/task.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%'>testsuites/psxtests/psx07/task.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.258 rtems/testsuites/psxtests/ChangeLog:1.259
--- rtems/testsuites/psxtests/ChangeLog:1.258 Sun Apr 25 14:17:52 2010
+++ rtems/testsuites/psxtests/ChangeLog Sun Apr 25 14:40:12 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * psx07/init.c, psx07/task.c: Introduce enough of a delay so the Init()
+ thread can reliably reach the pthread_join() call.
+
</font> 2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* psxreaddir/psxreaddir.scn, psxreaddir/test.c: Do not test for
<font color='#006600'>diff -u rtems/testsuites/psxtests/psx07/init.c:1.32 rtems/testsuites/psxtests/psx07/init.c:1.33
--- rtems/testsuites/psxtests/psx07/init.c:1.32 Sat Apr 3 01:07:23 2010
+++ rtems/testsuites/psxtests/psx07/init.c Sun Apr 25 14:40:12 2010
</font><font color='#997700'>@@ -583,7 +583,7 @@
</font>
puts( "Init - pthread_attr_setinheritsched - EXPLICIT - SUCCESSFUL" );
status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
<font color='#880000'>- rtems_test_assert( !status );
</font><font color='#000088'>+ rtems_test_assert( !status );
</font>
schedparam.sched_ss_repl_period.tv_sec = 3;
schedparam.sched_ss_repl_period.tv_nsec = 3;
<font color='#006600'>diff -u rtems/testsuites/psxtests/psx07/task.c:1.9 rtems/testsuites/psxtests/psx07/task.c:1.10
--- rtems/testsuites/psxtests/psx07/task.c:1.9 Sun Nov 29 21:33:23 2009
+++ rtems/testsuites/psxtests/psx07/task.c Sun Apr 25 14:40:12 2010
</font><font color='#997700'>@@ -40,6 +40,11 @@
</font> time_t now, start;
/*
<font color='#000088'>+ * sleep long enough to let the init thread join with us.
+ */
+ usleep(10000);
+
+ /*
</font> * Change our priority so we are running at a logically higher
* priority than our "ss_high_priority". This should result in
* our replenishment period not touching our priority.
</pre>
<p> </p>
<a name='cs4'></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-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/readv.c: Check for < 0 on iov_len, not <= 0. A
readv() with all iov_len equal to 0 should have no effect.
</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.2266&r2=text&tr2=1.2267&diff_format=h">M</a></td><td width='1%'>1.2267</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/src/readv.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/libcsupport/src/readv.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2266 rtems/cpukit/ChangeLog:1.2267
--- rtems/cpukit/ChangeLog:1.2266 Wed Apr 14 07:43:21 2010
+++ rtems/cpukit/ChangeLog Sun Apr 25 14:50:04 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * libcsupport/src/readv.c: Check for < 0 on iov_len, not <= 0. A
+ readv() with all iov_len equal to 0 should have no effect.
+
</font> 2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/mbuf.h: Use uintptr_t instead of u_long
<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/readv.c:1.3 rtems/cpukit/libcsupport/src/readv.c:1.4
--- rtems/cpukit/libcsupport/src/readv.c:1.3 Sun Nov 29 07:35:32 2009
+++ rtems/cpukit/libcsupport/src/readv.c Sun Apr 25 14:50:05 2010
</font><font color='#997700'>@@ -74,7 +74,7 @@
</font> if ( !iov[v].iov_base )
rtems_set_errno_and_return_minus_one( EINVAL );
<font color='#880000'>- if ( iov[v].iov_len <= 0 )
</font><font color='#000088'>+ if ( iov[v].iov_len < 0 )
</font> rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
</pre>
<p> </p>
<a name='cs5'></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-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/pthread.c: Make default pthread_attr_t match the
conditionals in the version in newlib. This way it will always be
right.
</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.2267&r2=text&tr2=1.2268&diff_format=h">M</a></td><td width='1%'>1.2268</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/pthread.c.diff?r1=text&tr1=1.79&r2=text&tr2=1.80&diff_format=h">M</a></td><td width='1%'>1.80</td><td width='100%'>cpukit/posix/src/pthread.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2267 rtems/cpukit/ChangeLog:1.2268
--- rtems/cpukit/ChangeLog:1.2267 Sun Apr 25 14:50:04 2010
+++ rtems/cpukit/ChangeLog Sun Apr 25 14:51:11 2010
</font><font color='#997700'>@@ -1,5 +1,11 @@
</font> 2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#000088'>+ * posix/src/pthread.c: Make default pthread_attr_t match the
+ conditionals in the version in newlib. This way it will always be
+ right.
+
+2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font> * libcsupport/src/readv.c: Check for < 0 on iov_len, not <= 0. A
readv() with all iov_len equal to 0 should have no effect.
<font color='#006600'>diff -u rtems/cpukit/posix/src/pthread.c:1.79 rtems/cpukit/posix/src/pthread.c:1.80
--- rtems/cpukit/posix/src/pthread.c:1.79 Sat Apr 3 00:55:59 2010
+++ rtems/cpukit/posix/src/pthread.c Sun Apr 25 14:51:12 2010
</font><font color='#997700'>@@ -48,12 +48,17 @@
</font> SCHED_FIFO, /* schedpolicy */
{ /* schedparam */
2, /* sched_priority */
<font color='#880000'>- 0, /* sched_ss_low_priority */
- { 0L, 0 }, /* sched_ss_repl_period */
- { 0L, 0 } /* sched_ss_init_budget */
</font><font color='#000088'>+ #if defined(_POSIX_SPORADIC_SERVER) || \
+ defined(_POSIX_THREAD_SPORADIC_SERVER)
+ 0, /* sched_ss_low_priority */
+ { 0L, 0 }, /* sched_ss_repl_period */
+ { 0L, 0 } /* sched_ss_init_budget */
+ #endif
</font> },
<font color='#000088'>+ #if defined(_POSIX_THREAD_CPUTIME)
+ 1, /* cputime_clock_allowed */
+ #endif
</font> PTHREAD_CREATE_JOINABLE, /* detachstate */
<font color='#880000'>- 1 /* cputime_clock_allowed */
</font> };
/*
</pre>
<p> </p>
<a name='cs6'></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-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.259&r2=text&tr2=1.260&diff_format=h">M</a></td><td width='1%'>1.260</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxrdwrv/test.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%'>testsuites/psxtests/psxrdwrv/test.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.259 rtems/testsuites/psxtests/ChangeLog:1.260
--- rtems/testsuites/psxtests/ChangeLog:1.259 Sun Apr 25 14:40:12 2010
+++ rtems/testsuites/psxtests/ChangeLog Sun Apr 25 14:53:38 2010
</font><font color='#997700'>@@ -1,5 +1,9 @@
</font> 2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#000088'>+ * psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX.
+
+2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font> * psx07/init.c, psx07/task.c: Introduce enough of a delay so the Init()
thread can reliably reach the pthread_join() call.
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxrdwrv/test.c:1.3 rtems/testsuites/psxtests/psxrdwrv/test.c:1.4
--- rtems/testsuites/psxtests/psxrdwrv/test.c:1.3 Mon Dec 28 10:43:10 2009
+++ rtems/testsuites/psxtests/psxrdwrv/test.c Sun Apr 25 14:53:38 2010
</font><font color='#997700'>@@ -316,11 +316,11 @@
</font>
/* writev -- iov_len total overflows */
vec[0].iov_base = vec;
<font color='#880000'>- vec[0].iov_len = SSIZE_MAX;
</font><font color='#000088'>+ vec[0].iov_len = SIZE_MAX;
</font> vec[1].iov_base = vec;
<font color='#880000'>- vec[1].iov_len = SSIZE_MAX;
</font><font color='#000088'>+ vec[1].iov_len = SIZE_MAX;
</font> vec[2].iov_base = vec;
<font color='#880000'>- vec[2].iov_len = SSIZE_MAX;
</font><font color='#000088'>+ vec[2].iov_len = SIZE_MAX;
</font> puts("writev iov_len total overflows -- EINVAL");
rc = writev(fd, vec, 3);
if ( (rc != -1) || (errno != EINVAL) ) {
<font color='#997700'>@@ -331,9 +331,9 @@
</font>
/* readv -- iov_len total overflows */
vec[0].iov_base = vec;
<font color='#880000'>- vec[0].iov_len = SSIZE_MAX;
</font><font color='#000088'>+ vec[0].iov_len = SIZE_MAX;
</font> vec[1].iov_base = vec;
<font color='#880000'>- vec[1].iov_len = SSIZE_MAX;
</font><font color='#000088'>+ vec[1].iov_len = SIZE_MAX;
</font> puts("readv iov_len total overflows -- EINVAL");
rc = readv(fd, vec, 2);
if ( (rc != -1) || (errno != 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>