aboutsummaryrefslogtreecommitdiffstats
path: root/man3/dlopen.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/dlopen.3')
-rw-r--r--man3/dlopen.362
1 files changed, 31 insertions, 31 deletions
diff --git a/man3/dlopen.3 b/man3/dlopen.3
index 38f29a2d79..410a29fa49 100644
--- a/man3/dlopen.3
+++ b/man3/dlopen.3
@@ -357,6 +357,37 @@ The function
does the same as
.BR dlsym ()
but takes a version string as an additional argument.
+.SH "CONFORMING TO"
+POSIX.1-2001 describes
+.BR dlclose (),
+.BR dlerror (),
+.BR dlopen (),
+and
+.BR dlsym ().
+.SH NOTES
+The symbols RTLD_DEFAULT and RTLD_NEXT are defined by
+.I <dlfcn.h>
+only when _GNU_SOURCE was defined before including it.
+.\" .LP
+.\" The string returned by
+.\" .BR dlerror ()
+.\" should not be modified.
+.\" Some systems give the prototype as
+.\" .sp
+.\" .in +5
+.\" .B "const char *dlerror(void);"
+.\" .in
+
+Since glibc 2.2.3,
+.BR atexit (3)
+can be used to register an exit handler that is automatically
+called when a library is unloaded.
+.SS History
+The dlopen interface standard comes from SunOS.
+That system also has
+.BR dladdr (),
+but not
+.BR dlvsym ().
.SH EXAMPLE
Load the math library, and print the cosine of 2.0:
.RS
@@ -410,37 +441,6 @@ follows, using bar.c as the example name:
.LP
gcc \-shared \-nostartfiles \-o bar bar.c
.RE
-.SH NOTES
-The symbols RTLD_DEFAULT and RTLD_NEXT are defined by
-.I <dlfcn.h>
-only when _GNU_SOURCE was defined before including it.
-.\" .LP
-.\" The string returned by
-.\" .BR dlerror ()
-.\" should not be modified.
-.\" Some systems give the prototype as
-.\" .sp
-.\" .in +5
-.\" .B "const char *dlerror(void);"
-.\" .in
-
-Since glibc 2.2.3,
-.BR atexit (3)
-can be used to register an exit handler that is automatically
-called when a library is unloaded.
-.SS History
-The dlopen interface standard comes from SunOS.
-That system also has
-.BR dladdr (),
-but not
-.BR dlvsym ().
-.SH "CONFORMING TO"
-POSIX.1-2001 describes
-.BR dlclose (),
-.BR dlerror (),
-.BR dlopen (),
-and
-.BR dlsym ().
.SH "SEE ALSO"
.BR ld (1),
.BR ldd (1),