<!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.h decl.
        * libcsupport/src/getrusage.c:
        Apply HAVE_DECL_GETRUSAGE (Missing prototypes).
</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.3086&r2=text&tr2=1.3087&diff_format=h">M</a></td><td width='1%'>1.3087</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/configure.ac.diff?r1=text&tr1=1.208&r2=text&tr2=1.209&diff_format=h">M</a></td><td width='1%'>1.209</td><td width='100%'>cpukit/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/getrusage.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%'>cpukit/libcsupport/src/getrusage.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.3086 rtems/cpukit/ChangeLog:1.3087
--- rtems/cpukit/ChangeLog:1.3086       Mon Dec 12 09:17:32 2011
+++ rtems/cpukit/ChangeLog      Tue Dec 13 00:47:21 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-12-13    Ralf Corsépius <ralf.corsepius@rtems.org>
+
+       * configure.ac: Check for getrusage.h decl.
+       * libcsupport/src/getrusage.c:<span style="background-color: #FF0000"> </span>
+       Apply HAVE_DECL_GETRUSAGE (Missing prototypes).
+
</font> 2011-12-12        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * score/src/wkstringduplicate.c: New file.

<font color='#006600'>diff -u rtems/cpukit/configure.ac:1.208 rtems/cpukit/configure.ac:1.209
--- rtems/cpukit/configure.ac:1.208     Tue Dec  6 02:15:32 2011
+++ rtems/cpukit/configure.ac   Tue Dec 13 00:47:21 2011
</font><font color='#997700'>@@ -98,6 +98,9 @@
</font> RTEMS_CHECK_FUNC([pthread_attr_setstack],[#include <pthread.h>])
 RTEMS_CHECK_FUNC([pthread_attr_getstack],[#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> # Newlib's unix/ directory
 AC_CHECK_FUNCS([ttyname getcwd])
 # </FIXME>

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/getrusage.c:1.2 rtems/cpukit/libcsupport/src/getrusage.c:1.3
--- rtems/cpukit/libcsupport/src/getrusage.c:1.2        Mon Jul  5 20:15:44 2010
+++ rtems/cpukit/libcsupport/src/getrusage.c    Tue Dec 13 00:47:21 2011
</font><font color='#997700'>@@ -19,6 +19,10 @@
</font> #include <rtems.h>
 #include <rtems/seterr.h>
 
<font color='#000088'>+#if !HAVE_DECL_GETRUSAGE
+extern int getrusage(int who, struct rusage *usage);
+#endif
+
</font> int getrusage(int who, struct rusage *usage)
 {
   struct timespec uptime;
</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>