dlclose man page on HP-UX

Printed from http://www.polarhome.com/service/man/?qf=dlclose&af=0&tf=2&of=HP-UX

dlclose(3C)							   dlclose(3C)

       dlclose() - close a shared library

       [flag ... ] file ...  [library]...

   Multithread Usage
       This routine is thread-safe.

       NOTE: The dynamic loader serializes the loading and unloading of shared
       libraries in multithreaded applications using a recursive pthread mutex
       lock.  See the for more information.

       is  one of a family of routines that give the user direct access to the
       dynamic linking facilities (using the option on the compiler or command
       line).	disassociates  a  shared  object 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 (see  dlopen(3C))  are	 also  closed.
       handle is the value returned by a previous invocation of

       If the referenced object was successfully closed, returns If the object
       could not be closed, or if handle does not refer	 to  an	 open  object,
       returns	a non-0 value.	More detailed diagnostic information is avail‐
       able through

       If fails, a subsequent call to returns one of the following values.
	      Cannot apply relocation in library.

	      Cannot close library due to remaining dependencies.

	      Invalid handle.

	      Out of memory.

	      failed on entry to or exit from

	      failed on exit from

	      failed on entry to

	      Unknown handle.

       A successful invocation of does not guarantee that the objects  associ‐
       ated  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  ref‐
       erences	to that object through an explicit invocation have been closed
       and all other objects implicitly referencing that object have also been

       Once an object has been closed by referencing symbols contained in that
       object can cause undefined behavior.

       dlerrno(3C), dlerror(3C), dlopen(3C), dlsym(3C).

   Texts and Tutorials
       (See the		 option)
       (See		 manuals(5) for ordering information)


List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net