From 105d787200ff6962264a34eaa2801deb95539a86 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Thu, 18 Nov 1999 19:50:15 +0000 Subject: Added routine to remove an object from the namespace. It just clears its name in the name_table. This was required by the POSIX semaphore and message queue managers which support a concept of open, close, and unlink. The object becomes "invisible" to further opens following an unlink but all open sessions remain active until they are closed. This requires that the removal of an object ID be separate from the removal of its name. --- c/src/exec/score/inline/rtems/score/object.inl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'c/src/exec') diff --git a/c/src/exec/score/inline/rtems/score/object.inl b/c/src/exec/score/inline/rtems/score/object.inl index b4de63034c..1b435b4d4f 100644 --- a/c/src/exec/score/inline/rtems/score/object.inl +++ b/c/src/exec/score/inline/rtems/score/object.inl @@ -269,5 +269,22 @@ RTEMS_INLINE_ROUTINE void _Objects_Close( _Objects_Clear_name( the_object->name, information->name_length ); } +/*PAGE + * + * _Objects_Namespace_remove + * + * DESCRIPTION: + * + * This function removes the_object from the namespace. + */ + +RTEMS_INLINE_ROUTINE void _Objects_Namespace_remove( + Objects_Information *information, + Objects_Control *the_object +) +{ + _Objects_Clear_name( the_object->name, information->name_length ); +} + #endif /* end of include file */ -- cgit v1.2.3