.\"
.TH DLOPEN 3 2015-03-29 "Linux" "Linux Programmer's Manual"
.SH NAME
-dlclose, dlerror, dlopen, dlmopen \-
-programming interface to dynamic linking loader
+dlclose, dlopen, dlmopen \-
+open and close a shared object
.SH SYNOPSIS
.B #include <dlfcn.h>
.sp
.BI "void *dlopen(const char *" filename ", int " flags );
.sp
-.B "char *dlerror(void);"
-.sp
.BI "int dlclose(void *" handle );
.sp
.B #define _GNU_SOURCE
.sp
Link with \fI\-ldl\fP.
.SH DESCRIPTION
-The functions described in this page
-provide an interface to the dynamic linking loader.
-.SS dlerror()
-The function
-.BR dlerror ()
-returns a human-readable string describing the most recent error
-that occurred from
-.BR dlopen (),
-.BR dlsym ()
-.BR dlvsym (),
-or
-.BR dlclose ()
-since the last call to
-.BR dlerror ().
-It returns NULL if no errors have occurred since initialization or since
-it was last called.
.SS dlopen()
The function
.BR dlopen ()
.BR dlclose ()
returns 0 on success, and nonzero on error.
.SH VERSIONS
-.BR dlopen (),
-.BR dlclose (),
+.BR dlopen ()
and
-.BR dlerror ()
+.BR dlclose ()
are present in glibc 2.0 and later.
.BR dlmopen ()
first appeared in glibc 2.3.4.
.SH CONFORMING TO
POSIX.1-2001 describes
-.BR dlclose (),
-.BR dlerror (),
+.BR dlclose ()
and
.BR dlopen ().
The
.BR pldd (1),
.BR dl_iterate_phdr (3),
.BR dladdr (3),
+.BR dlerror (3),
.BR dlinfo (3),
.BR dlsym (3),
.BR rtld-audit (7),