-.\" -*- nroff -*-
.\" Copyright 1995 Yggdrasil Computing, Incorporated.
.\" written by Adam J. Richter (adam@yggdrasil.com),
.\" with typesetting help from Daniel Quinlan (quinlan@yggdrasil.com).
.\" and Copyright 2003 Michael Kerrisk (mtk.manpages@gmail.com).
.\"
+.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
-.\" License along with this manual; if not, write to the Free
-.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
-.\" USA.
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
.\"
.\" Modified by David A. Wheeler <dwheeler@dwheeler.com> 2000-11-28.
.\" Applied patch by Terran Melconian, aeb, 2001-12-14.
.BR dlclose (),
.BR dlerror ()
implement the interface to the dynamic linking loader.
-.SS "dlerror()"
+.SS dlerror()
The function
.BR dlerror ()
returns a human readable string describing the most recent error
.BR dlerror ().
It returns NULL if no errors have occurred since initialization or since
it was last called.
-.SS "dlopen()"
+.SS dlopen()
The function
.BR dlopen ()
loads the dynamic library file named by the null-terminated
If
.BR dlopen ()
fails for any reason, it returns NULL.
-.SS "dlsym()"
+.SS dlsym()
The function
.BR dlsym ()
takes a "handle" of a dynamic library returned by
after the current library.
This allows one to provide a wrapper
around a function in another shared library.
-.SS "dlclose()"
+.SS dlclose()
The function
.BR dlclose ()
decrements the reference count on the dynamic library handle
The function
.BR dlclose ()
returns 0 on success, and nonzero on error.
-.SS "The obsolete symbols _init() and _fini()"
+.SS The obsolete symbols _init() and _fini()
The linker recognizes special symbols
.B _init
and
does the same as
.BR dlsym ()
but takes a version string as an additional argument.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
POSIX.1-2001 describes
.BR dlclose (),
.BR dlerror (),
.LP
gcc \-shared \-nostartfiles \-o bar bar.c
.in
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR ld (1),
.BR ldd (1),
.BR dl_iterate_phdr (3),
.BR rtld-audit (7),
.BR ld.so (8),
-.BR ldconfig (8),
+.BR ldconfig (8)
+
ld.so info pages, gcc info pages, ld info pages