HP-UX Reference (11i v2 04/09) - 3 Library Functions A-M (vol 6)

d
dladdr(3C) dladdr(3C)
MULTITHREAD USAGE
This routine is thread-safe.
RETURN VALUE
If the specified address does not fall within one of the load modules,
0 is returned; the contents of the
Dl_info structure are not modified. Otherwise, a non-zero value is returned and the fields of the
Dl_info structure are set.
DIAGNOSTICS
If no symbol is found within the load module containing address whose value is less than or equal to
address, the dli_sname, dli_saddr and dli_size fields are set to
0; the dli_bind field is set to STB_LOCAL,
and the dli_type field is set to
STT_NOTYPE.
For
a.out’s, only a subset of externally visible symbols are typically exported: specifically those refer-
enced by the load modules with which the
a.out is linked. The exact set of exported symbols for any
shared library or the
a.out can be controlled using the linker (see ld(1)).
SEE ALSO
cc(1), ld(1), sh(1), exec(2), dlclose(3C), dlerror(3C), dlsym(3C).
Texts and Tutorials:
HP-UX Linker and Libraries Online User Guide
(See the
+help option)
HP-UX Linker and Libraries User’s Guide
(See manuals(5) for ordering information)
HP-UX 11i Version 2: September 2004 2 Hewlett-Packard Company Section 3203