change log for rtems (2011-03-09)

rtems-vc at rtems.org rtems-vc at rtems.org
Wed Mar 9 17:12:01 UTC 2011


 *joel*:
2011-03-09	Joel Sherrill <joel.sherrill at oarcorp.com>

	* score/src/threadget.c: Remove conditional since this path can be
	tested with and without POSIX enabled.

M 1.2768  cpukit/ChangeLog
M   1.17  cpukit/score/src/threadget.c

diff -u rtems/cpukit/ChangeLog:1.2767 rtems/cpukit/ChangeLog:1.2768
--- rtems/cpukit/ChangeLog:1.2767	Tue Mar  8 17:55:24 2011
+++ rtems/cpukit/ChangeLog	Wed Mar  9 10:19:36 2011
@@ -1,3 +1,8 @@
+2011-03-09	Joel Sherrill <joel.sherrill at oarcorp.com>
+
+	* score/src/threadget.c: Remove conditional since this path can be
+	tested with and without POSIX enabled.
+
 2011-03-08	Joel Sherrill <joel.sherrilL at OARcorp.com>
 
 	* score/src/objectinitializeinformation.c: Reverse sense of conditional

diff -u rtems/cpukit/score/src/threadget.c:1.16 rtems/cpukit/score/src/threadget.c:1.17
--- rtems/cpukit/score/src/threadget.c:1.16	Fri Jan 28 14:24:53 2011
+++ rtems/cpukit/score/src/threadget.c	Wed Mar  9 10:19:37 2011
@@ -1,7 +1,7 @@
 /*
  *  Thread Handler - Object Id to Thread Pointer
  *
- *  COPYRIGHT (c) 1989-2010.
+ *  COPYRIGHT (c) 1989-2011.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -76,14 +76,15 @@
 
   api_information = _Objects_Information_table[ the_api ];
   /*
-   *  There is no way for this to happen if POSIX is enabled.
+   *  There is no way for this to happen if POSIX is enabled.  But there
+   *  is actually a test case in sp43 for this which trips it whether or
+   *  not POSIX is enabled.  So in the interest of safety, this is left
+   *  on in all configurations.
    */ 
-  #if !defined(RTEMS_POSIX_API)
-    if ( !api_information ) {
-      *location = OBJECTS_ERROR;
-      goto done;
-    }
-  #endif
+  if ( !api_information ) {
+    *location = OBJECTS_ERROR;
+    goto done;
+  }
 
   information = api_information[ the_class ];
   if ( !information ) {



--

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/20110309/3621cce8/attachment-0001.html>


More information about the vc mailing list