INTRO(OC)

Shore Programmer's Manual - 3 November 94

NAME

unlink \- remove a directory entry

SYNOPSIS

#include <ShoreApp.h>
static shrc Shore::unlink(const char *path);

DESCRIPTION

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, then 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, then an EX (exclusive-mode) lock is obtained on the object.

VERSION

This manual page applies to Version 0.1 of theShore software.

SPONSORSHIP

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.

COPYRIGHT

Copyright (c) 1994 Computer Sciences Department, University of Wisconsin -- Madison. All Rights Reserved.

SEE ALSO

destroy(oc) .