up | Inhaltsverzeichniss | Kommentar

Manual page for LDGETNAME(3X)

ldgetname - retrieve symbol name for COFF file symbol table entry

SYNOPSIS

#include <stdio.h>
#include <filehdr.h>
#include <syms.h>
#include <ldfcn.h>

char *ldgetname (ldptr, symbol) LDFILE *ldptr; SYMENT *symbol;

AVAILABILITY

Available only on Sun 386i systems running a SunOS 4.0.x release or earlier. Not a SunOS 4.1 release feature.

DESCRIPTION

ldgetname() returns a pointer to the name associated with symbol as a string. The string is contained in a static buffer local to ldgetname() that is overwritten by each call to ldgetname(), and therefore must be copied by the caller if the name is to be saved.

ldgetname() can be used to retrieve names from object files without any backward compatibility problems. ldgetname() will return NULL (defined in stdio.h) for an object file if the name cannot be retrieved. This situation can occur:

Typically, ldgetname() will be called immediately after a successful call to ldtbread() to retrieve the name associated with the symbol table entry filled by ldtbread().

The program must be loaded with the object file access routine library libld.a.

SEE ALSO

ldclose.3x ldfcn.3 ldopen.3x ldtbread.3x ldtbseek.3x


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97