change log for rtems (2011-12-13)
rtems-vc at rtems.org
rtems-vc at rtems.org
Tue Dec 13 07:12:21 UTC 2011
*ralf*:
2011-12-13 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Check for getrusage decl.
* psxgetrusage01/init.c:
Fix header file inclusion order.
Move configuration section up.
Apply HAVE_DECL_GETRUSAGE.
M 1.379 testsuites/psxtests/ChangeLog
M 1.90 testsuites/psxtests/configure.ac
M 1.3 testsuites/psxtests/psxgetrusage01/init.c
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
@@ -1,3 +1,11 @@
+2011-12-13 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * configure.ac: Check for getrusage decl.
+ * psxgetrusage01/init.c:
+ Fix header file inclusion order.
+ Move configuration section up.
+ Apply HAVE_DECL_GETRUSAGE.
+
2011-12-09 Sebastian Huber <sebastian.huber at embedded-brains.de>
* psxconfig01/init.c: Fix due to alignment issue.
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
@@ -50,6 +50,9 @@
# Added to pthreads after initial revision. May not be in toolset
AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
+# Mandated by POSIX, not declared in some versions of newlib.
+AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
+
# FIXME: adjtime is a non-standardized BSD/Linux extension
# RTEMS should not rely on adjtime
AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]])
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
@@ -13,14 +13,28 @@
#include "config.h"
#endif
-#include <tmacros.h>
-#include "test_support.h"
-
#include <sys/time.h>
#include <sys/resource.h>
#include <errno.h>
-int getrusage(int who, struct rusage *usage);
+#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>
rtems_task Init(
rtems_task_argument argument
@@ -65,16 +79,3 @@
rtems_test_exit(0);
}
-
-/* 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 */
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111213/cb547df4/attachment-0001.html>
More information about the vc
mailing list