<!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-12-13)</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>2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>

        * configure.ac: Check for getrusage decl.
        * psxgetrusage01/init.c:
        Fix header file inclusion order.
        Move configuration section up.
        Apply HAVE_DECL_GETRUSAGE.
</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.378&r2=text&tr2=1.379&diff_format=h">M</a></td><td width='1%'>1.379</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/configure.ac.diff?r1=text&tr1=1.89&r2=text&tr2=1.90&diff_format=h">M</a></td><td width='1%'>1.90</td><td width='100%'>testsuites/psxtests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxgetrusage01/init.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>testsuites/psxtests/psxgetrusage01/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.378 rtems/testsuites/psxtests/ChangeLog:1.379
--- rtems/testsuites/psxtests/ChangeLog:1.378   Fri Dec  9 10:44:15 2011
+++ rtems/testsuites/psxtests/ChangeLog Tue Dec 13 00:52:09 2011
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2011-12-13    Ralf Corsépius <ralf.corsepius@rtems.org>
+
+       * configure.ac: Check for getrusage decl.
+       * psxgetrusage01/init.c:
+       Fix header file inclusion order.
+       Move configuration section up.
+       Apply HAVE_DECL_GETRUSAGE.
+
</font> 2011-12-09        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * psxconfig01/init.c: Fix due to alignment issue.

<font color='#006600'>diff -u rtems/testsuites/psxtests/configure.ac:1.89 rtems/testsuites/psxtests/configure.ac:1.90
--- rtems/testsuites/psxtests/configure.ac:1.89 Fri Dec  9 10:27:11 2011
+++ rtems/testsuites/psxtests/configure.ac      Tue Dec 13 00:50:47 2011
</font><font color='#997700'>@@ -50,6 +50,9 @@
</font> # Added to pthreads after initial revision.  May not be in toolset
 AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
 
<font color='#000088'>+# Mandated by POSIX, not declared in some versions of newlib.
+AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
+
</font> # FIXME: adjtime is a non-standardized BSD/Linux extension
 # RTEMS should not rely on adjtime
 AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]])

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxgetrusage01/init.c:1.2 rtems/testsuites/psxtests/psxgetrusage01/init.c:1.3
--- rtems/testsuites/psxtests/psxgetrusage01/init.c:1.2 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxgetrusage01/init.c     Tue Dec 13 00:50:47 2011
</font><font color='#997700'>@@ -13,14 +13,28 @@
</font> #include "config.h"
 #endif
 
<font color='#880000'>-#include <tmacros.h>
-#include "test_support.h"
-
</font> #include <sys/time.h>
 #include <sys/resource.h>
 #include <errno.h>
 
<font color='#880000'>-int getrusage(int who, struct rusage *usage);
</font><font color='#000088'>+#if !HAVE_DECL_GETRUSAGE
+extern int getrusage(int who, struct rusage *usage);
+#endif
+
+#include <tmacros.h>
+#include "test_support.h"
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS             1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
</font> 
 rtems_task Init(
   rtems_task_argument argument
<font color='#997700'>@@ -65,16 +79,3 @@
</font> 
   rtems_test_exit(0);
 }
<font color='#880000'>-
-/* configuration information */
-
-#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
-#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
-
-#define CONFIGURE_MAXIMUM_TASKS             1
-#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-
-#define CONFIGURE_INIT
-
-#include <rtems/confdefs.h>
-/* end of file */
</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>