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.
This commit is contained in:
Jennifer Averett
1999-11-18 19:50:15 +00:00
parent 17879f4750
commit 105d787200
2 changed files with 34 additions and 0 deletions

View File

@@ -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 */