HP-UX Reference (11i v2 04/09) - 3 Library Functions A-M (vol 6)
d
dlgetname(3C) dlgetname(3C)
(ELF Application Only)
NAME
dlgetname - retrieve the name of a load module given a load module descriptor
SYNOPSIS
cc [flag]... file ...
-ldl [library]...
#include <dlfcn.h>
char *dlgetname(struct load_module_desc *desc,
size_t desc_size,
void *(*read_tgt_mem)(void* buffer,
unsigned long long ptr,
size_t bufsiz,
int ident),
int ident_parm,
unsigned long long load_map_parm);
DESCRIPTION
dlgetname is one of a family of routines that give the user direct access to the dynamic linking facili-
ties. dlgetname returns the pathname of a load module represented by desc. The read_tgt_mem ,
ident_parm , and load_map_parm parameters are identical to those for
dlmodinfo.
The caller of
dlgetname must copy the return value to insure that it is not corrupted. If desc does not
describe a loaded module, then NULL is returned.
MULTITHREAD USAGE
This routine is thread-safe.
AUTHOR
dlgetname() was developed by HP.
SEE ALSO
System Tools
exec(2) System loader.
ld(1) Invokes the link editor.
Miscellaneous
a.out(4) Assembler, compiler, and linker output.
dlclose(3C) Unloads a shared library previously loaded by
dlopen().
dlerror(3C) Prints the last error message recorded by dld.
dlget(3C) Returns information on a loaded module.
dlmodinfo(3C) Returns information about a loaded module.
dlopen(3C) Loads a shared library.
dlsym(3C) Gets the address of a symbol in a shared library.
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 − 1 − Hewlett-Packard Company Section 3−−209