|
|
HP-UX Reference > Ddlgetname(3C)ELF Application OnlyHP-UX 11i Version 2: December 2007 Update |
|
NAMEdlgetname() — retrieve the name of a load module given a load module descriptor SYNOPSIScc [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); DESCRIPTIONdlgetname() is one of a family of routines that give the user direct access to the dynamic linking facilities. 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(). See dlmodinfo(3C). The caller of dlgetname() must copy the return value to insure that it is not corrupted. RETURN VALUEIf desc does not describe a loaded module, then NULL is returned. More detailed diagnostic information is available through dlerror(). ERRORSIf dlgetname() fails, a subsequent call to dlerrno returns one of the following values:
SEE ALSOMiscellaneous
Texts and Tutorials
|
|