[PATCH 02/14] score: Remove bogus thread object name support

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Oct 29 09:03:11 UTC 2018


Update #2514.
---
 cpukit/include/rtems/score/threadimpl.h |  4 +---
 cpukit/posix/src/pthread.c              |  4 +---
 cpukit/rtems/src/tasks.c                |  4 +---
 cpukit/score/src/thread.c               | 12 ++++--------
 4 files changed, 7 insertions(+), 17 deletions(-)

diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h
index 530035ff67..39937f9283 100644
--- a/cpukit/include/rtems/score/threadimpl.h
+++ b/cpukit/include/rtems/score/threadimpl.h
@@ -103,9 +103,7 @@ void _Thread_Initialize_information(
   Thread_Information  *information,
   Objects_APIs         the_api,
   uint16_t             the_class,
-  uint32_t             maximum,
-  bool                 is_string,
-  uint32_t             maximum_name_length
+  uint32_t             maximum
 );
 
 /**
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index e05d4f3d19..7d1674694f 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -181,10 +181,8 @@ static void _POSIX_Threads_Manager_initialization(void)
     &_POSIX_Threads_Information, /* object information table */
     OBJECTS_POSIX_API,           /* object API */
     OBJECTS_POSIX_THREADS,       /* object class */
-    Configuration_POSIX_API.maximum_threads,
+    Configuration_POSIX_API.maximum_threads
                                  /* maximum objects of this class */
-    true,                        /* true if names for this object are strings */
-    _POSIX_PATH_MAX              /* maximum length of each object's name */
   );
 
   /*
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
index 9f7a5d1f12..55dd1dc334 100644
--- a/cpukit/rtems/src/tasks.c
+++ b/cpukit/rtems/src/tasks.c
@@ -73,10 +73,8 @@ static void _RTEMS_tasks_Manager_initialization(void)
     &_RTEMS_tasks_Information, /* object information table */
     OBJECTS_CLASSIC_API,       /* object API */
     OBJECTS_RTEMS_TASKS,       /* object class */
-    Configuration_RTEMS_API.maximum_tasks,
+    Configuration_RTEMS_API.maximum_tasks
                                /* maximum objects of this class */
-    false,                     /* true if the name is a string */
-    RTEMS_MAXIMUM_NAME_LENGTH  /* maximum length of an object name */
   );
 
   /*
diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c
index 70bcccf70e..b63a6b14cd 100644
--- a/cpukit/score/src/thread.c
+++ b/cpukit/score/src/thread.c
@@ -49,9 +49,7 @@ void _Thread_Initialize_information(
   Thread_Information  *information,
   Objects_APIs         the_api,
   uint16_t             the_class,
-  uint32_t             maximum,
-  bool                 is_string,
-  uint32_t             maximum_name_length
+  uint32_t             maximum
 )
 {
   _Objects_Initialize_information(
@@ -60,8 +58,8 @@ void _Thread_Initialize_information(
     the_class,
     maximum,
     _Thread_Control_size,
-    is_string,
-    maximum_name_length,
+    false,
+    RTEMS_MAXIMUM_NAME_LENGTH,
     NULL
   );
 
@@ -102,9 +100,7 @@ void _Thread_Handler_initialization(void)
     &_Thread_Internal_information,
     OBJECTS_INTERNAL_API,
     OBJECTS_INTERNAL_THREADS,
-    _Thread_Get_maximum_internal_threads(),
-    false,                      /* true if names for this object are strings */
-    8                           /* maximum length of each object's name */
+    _Thread_Get_maximum_internal_threads()
   );
 
 }
-- 
2.16.4




More information about the devel mailing list