From 2b454faf137960da9b7c783a159902ac1cc02469 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 26 Apr 2002 23:56:56 +0000 Subject: 2001-04-26 Joel Sherrill * include/rtems/score/object.h, inline/rtems/score/object.inl, src/objectcomparenamestring.c: Address PR81 that reworked POSIX message queues to add a descriptor separate from the underlying message queue. This allows non-blocking to follow the "open" not the underlying queue. As part of debugging this it became clear that _Objects_Compare_name_string was broken and a simple version using strncmp() was substituted. --- cpukit/score/inline/rtems/score/object.inl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cpukit/score/inline/rtems/score/object.inl') diff --git a/cpukit/score/inline/rtems/score/object.inl b/cpukit/score/inline/rtems/score/object.inl index c24e43f276..ae36d1c819 100644 --- a/cpukit/score/inline/rtems/score/object.inl +++ b/cpukit/score/inline/rtems/score/object.inl @@ -242,7 +242,8 @@ RTEMS_INLINE_ROUTINE void _Objects_Open( _Objects_Set_local_object( information, index, the_object ); if ( information->is_string ) - _Objects_Copy_name_string( name, the_object->name ); + /* _Objects_Copy_name_string( name, the_object->name ); */ + the_object->name = name; else _Objects_Copy_name_raw( name, the_object->name, information->name_length ); } @@ -266,7 +267,8 @@ RTEMS_INLINE_ROUTINE void _Objects_Close( index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); - _Objects_Clear_name( the_object->name, information->name_length ); + /* _Objects_Clear_name( the_object->name, information->name_length ); */ + the_object->name = 0; } /*PAGE @@ -283,7 +285,8 @@ RTEMS_INLINE_ROUTINE void _Objects_Namespace_remove( Objects_Control *the_object ) { - _Objects_Clear_name( the_object->name, information->name_length ); + /* _Objects_Clear_name( the_object->name, information->name_length ); */ + the_object->name = 0; } #endif -- cgit v1.2.3