diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-31 16:15:34 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-31 16:15:34 +0000 |
commit | 74d0cb441aee70c3bc87032fbac23ea4b7437b8b (patch) | |
tree | 167bdb4ddccfb3a3c65b1b590348bde2af8dba0c /cpukit/score/src/objectnametoidstring.c | |
parent | 2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-74d0cb441aee70c3bc87032fbac23ea4b7437b8b.tar.bz2 |
2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/cond.c, posix/src/key.c, posix/src/mqueuenametoid.c,
posix/src/mutex.c, posix/src/pbarrier.c, posix/src/prwlock.c,
posix/src/pspin.c, posix/src/pthread.c, posix/src/ptimer.c,
posix/src/semaphorenametoid.c: Add option for all POSIX objects
whether named or unnamed to have a string name. If the API does
not directly support having a name, then the user must explicitly
assign it using rtems_object_set_name().
* rtems/src/rtemsobjectgetapiclassname.c: Improved testability.
* score/include/rtems/score/object.h,
score/src/objectgetnameasstring.c, score/src/objectnametoidstring.c,
score/src/objectsetname.c: Modifications required to pass testing of
recently modified object name operations. Also eliminated
multiprocessing related code that was not reachable.
Diffstat (limited to 'cpukit/score/src/objectnametoidstring.c')
-rw-r--r-- | cpukit/score/src/objectnametoidstring.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/cpukit/score/src/objectnametoidstring.c b/cpukit/score/src/objectnametoidstring.c index 2ab5d7e0c2..ffffe5819d 100644 --- a/cpukit/score/src/objectnametoidstring.c +++ b/cpukit/score/src/objectnametoidstring.c @@ -40,7 +40,6 @@ * Input parameters: * information - object information * name - user defined object name - * node - node indentifier (0 indicates any node) * id - address of return ID * * Output parameters: @@ -52,11 +51,9 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string( Objects_Information *information, const char *name, - uint32_t node, Objects_Id *id ) { - boolean search_local_node; Objects_Control *the_object; uint32_t index; uint32_t name_length; @@ -72,16 +69,7 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string( if ( !name ) return OBJECTS_INVALID_NAME; - search_local_node = FALSE; - - if ( information->maximum != 0 && - (node == OBJECTS_SEARCH_ALL_NODES || - node == OBJECTS_SEARCH_LOCAL_NODE || - _Objects_Is_local_node( node ) - )) - search_local_node = TRUE; - - if ( search_local_node ) { + if ( information->maximum != 0 ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { @@ -99,13 +87,5 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string( } } -#if defined(RTEMS_MULTIPROCESSING) - if ( _Objects_Is_local_node( node ) || node == OBJECTS_SEARCH_LOCAL_NODE ) - return OBJECTS_INVALID_NAME; - - name_for_mp.name_p = name; - return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); -#else return OBJECTS_INVALID_NAME; -#endif } |