Unlink
decrements the link count of the object referenced by
path
and removes the directory entry named by
path.
If this operation causes the link count of the object to fall to zero,
the referenced object is destroyed. This method is used to destroy
registered objects. Anonymous objects are removed by
OCRef::destroy.
If
unlink
does cause the referenced object to be destroyed, an EX
(exclusive-mode) lock is obtained on the object.
The Shore project is sponsored by the Advanced Research Project Agency, ARPA
order number 018 (formerly 8230), monitored by the U.S. Army Research
Laboratory under contract DAAB07-91-C-Q518.