summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/dlopen.3
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2003-02-14 10:57:20 +0000
committerphantom <phantom@FreeBSD.org>2003-02-14 10:57:20 +0000
commita4fe11fb039b87853f7344fe7730c2f3917a6331 (patch)
treecba31dabb56a9059c17e1f67d0c5528d70b2261f /lib/libc/gen/dlopen.3
parent66ff4bf786804e01c9b3f9c9a8bf72344f699ce9 (diff)
downloadFreeBSD-src-a4fe11fb039b87853f7344fe7730c2f3917a6331.zip
FreeBSD-src-a4fe11fb039b87853f7344fe7730c2f3917a6331.tar.gz
o Document that dlsym()'s behaviour with new special handle RTLD_SELF
o Add cross reference to dlinfo(3) o Minor mdoc nits
Diffstat (limited to 'lib/libc/gen/dlopen.3')
-rw-r--r--lib/libc/gen/dlopen.317
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libc/gen/dlopen.3 b/lib/libc/gen/dlopen.3
index d6bb9f9..7cc3f3a 100644
--- a/lib/libc/gen/dlopen.3
+++ b/lib/libc/gen/dlopen.3
@@ -36,7 +36,11 @@
.Os
.Dt DLOPEN 3
.Sh NAME
-.Nm dlopen , dlsym , dlfunc , dlerror , dlclose
+.Nm dlopen ,
+.Nm dlsym ,
+.Nm dlfunc ,
+.Nm dlerror ,
+.Nm dlclose
.Nd programmatic interface to the dynamic linker
.Sh LIBRARY
.Lb libc
@@ -231,6 +235,16 @@ interface, below, should be used, since
.Fn getpid
is a function and not a data object.)
.Pp
+If
+.Fn dlsym
+is called with the special
+.Fa handle
+.Dv RTLD_SELF ,
+then the search for the symbol is limited to the shared object
+issuing the call to
+.Fn dlsym
+and those shared objects which were loaded after it.
+.Pp
The
.Fn dlsym
function
@@ -340,4 +354,5 @@ retrieved via a call to
.Xr ld 1 ,
.Xr rtld 1 ,
.Xr dladdr 3 ,
+.Xr dlinfo 3 ,
.Xr link 5
OpenPOWER on IntegriCloud