diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-11 14:54:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-11 14:54:29 +0000 |
commit | 47988fb37bf1f5aac757c92e3ac8be6f0d027d04 (patch) | |
tree | 869cfe18d218535f112630df116c62bb773e3b7d /cpukit/score/include | |
parent | 2009-09-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-47988fb37bf1f5aac757c92e3ac8be6f0d027d04.tar.bz2 |
2009-09-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/object.h,
score/inline/rtems/score/object.inl,
score/src/objectgetnameasstring.c, score/src/objectidtoname.c,
score/src/objectinitializeinformation.c,
score/src/objectnamespaceremove.c, score/src/objectnametoidstring.c,
score/src/objectsetname.c, score/src/thread.c,
score/src/threadcreateidle.c: Disable object string name support when
POSIX is not enabled.
Diffstat (limited to 'cpukit/score/include')
-rw-r--r-- | cpukit/score/include/rtems/score/object.h | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/cpukit/score/include/rtems/score/object.h b/cpukit/score/include/rtems/score/object.h index 5cf770ef91..c8e3036a7c 100644 --- a/cpukit/score/include/rtems/score/object.h +++ b/cpukit/score/include/rtems/score/object.h @@ -25,6 +25,10 @@ #include <rtems/score/chain.h> #include <rtems/score/isr.h> +#if defined(RTEMS_POSIX_API) + #define RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES +#endif + #ifdef __cplusplus extern "C" { #endif @@ -40,8 +44,10 @@ extern "C" { * object names. */ typedef union { - /** This is a pointer to a string name. */ - const char *name_p; + #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) + /** This is a pointer to a string name. */ + const char *name_p; + #endif /** This is the actual 32-bit "raw" integer name. */ uint32_t name_u32; } Objects_Name; @@ -355,16 +361,18 @@ typedef struct { uint32_t *inactive_per_block; /** This is a table to the chain of inactive object memory blocks. */ void **object_blocks; - /** This is true if names are strings. */ - bool is_string; + #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) + /** This is true if names are strings. */ + bool is_string; + #endif /** This is the maximum length of names. */ uint16_t name_length; /** This is this object class' method called when extracting a thread. */ Objects_Thread_queue_Extract_callout extract; -#if defined(RTEMS_MULTIPROCESSING) - /** This is this object class' pointer to the global name table */ - Chain_Control *global_table; -#endif + #if defined(RTEMS_MULTIPROCESSING) + /** This is this object class' pointer to the global name table */ + Chain_Control *global_table; + #endif } Objects_Information; /** @@ -609,6 +617,7 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32( Objects_Id *id ); +#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /** * This method converts an object name to an Id. It performs a look up * using the object information block for this object class. @@ -627,6 +636,7 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string( const char *name, Objects_Id *id ); +#endif /** * This function implements the common portion of the object Id |