summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2003-02-14 10:54:37 +0000
committerphantom <phantom@FreeBSD.org>2003-02-14 10:54:37 +0000
commit66ff4bf786804e01c9b3f9c9a8bf72344f699ce9 (patch)
treef06a7739720bb03e8bf978fee76bccd73e6f3507 /lib/libc/gen
parent097a9bfb28369a77c57b622bf2243795f5fc670d (diff)
downloadFreeBSD-src-66ff4bf786804e01c9b3f9c9a8bf72344f699ce9.zip
FreeBSD-src-66ff4bf786804e01c9b3f9c9a8bf72344f699ce9.tar.gz
Follow Solaris's manual page and describe Link_map structure here
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/dlinfo.330
1 files changed, 29 insertions, 1 deletions
diff --git a/lib/libc/gen/dlinfo.3 b/lib/libc/gen/dlinfo.3
index d8d9fb8..48b5373 100644
--- a/lib/libc/gen/dlinfo.3
+++ b/lib/libc/gen/dlinfo.3
@@ -93,7 +93,33 @@ and
are called.
See
.Sx EXAMPLES
-(Example 1)
+(Example 1.)
+.Pp
+The
+.Ft Link_map
+structure is defined in <link.h> and have following members:
+.Pp
+.Bd -literal
+ caddr_t l_addr; /* Base Address of library */
+ const char *l_name; /* Absolute Path to Library */
+ const void *l_ld; /* Pointer to .dynamic in memory */
+ struct link_map *l_next, /* linked list of of mapped libs */
+ *l_prev;
+.Ed
+.Bl -tag -width Ds
+.It l_addr
+The base address of the object loaded into memory.
+.It l_name
+The full name of loaded shared object.
+.It l_ld
+The address of dynamic linking information segment
+.Dv ( PT_DYNAMIC )
+loaded into memory.
+.It l_next
+The next Link_map structure on the link-map list.
+.It l_prev
+The previous Link_map structure on the link-map list.
+.El
.It RTLD_DI_SERINFO
Retrieve the library search paths associated with given
.Fa handle
@@ -178,6 +204,8 @@ it first appeared in
.Fx 4.8 .
.Sh AUTHORS
The
+.Fx
+implementation of
.Fn dlinfo
function was originally written by
.An Alexey Zelkin
OpenPOWER on IntegriCloud