close a dynamically linked library
cc . . . -lc
int dlclose(void *handle);
disassociates a shared object (a dynamically linked library
in our case) previously opened by
from the current process.
Once an object has been closed using
its symbols are no longer available to
All objects loaded automatically as a result of invoking
on the referenced object
are also closed. handle
is the value returned by a previous invocation of
If the referenced object was successfully closed,
If the object could not be closed, or if
handle does not refer to an open object,
returns a non-zero value.
More detailed diagnostic information is
A successful invocation of
does not guarantee that the objects associated with handle
have actually been removed from the address space of the process.
Objects loaded by one invocation of
may also be loaded by another invocation of
The same object may also be opened multiple times.
An object is not removed from the address space until
all references to that object through an explicit
invocation have been closed and
all other objects implicitly referencing that object have also
Once an object has been closed by
referencing symbols contained in that object can cause
is not part of any currently supported standard;
it is an extension of AT&T System V provided by
The Santa Cruz Operation, Inc.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003