NLIST(4) — HP-UX
Series 300, 800 Only
NAME
nlist − nlist structure format
SYNOPSIS
#include <nlist.h>
REMARKS
The exact content of the structure defined below can be best found by examining /usr/include/nlist.h. It varies somewhat between the various implementations of HP-UX.
DESCRIPTION
Nlist(3C) can be used to extract information from a the symbol table in an object file. Because symbol tables are machine dependent (as defined in each implementation’s copy of <a.out.h>) a header file, nlist.h is defined to encapsulate the differences.
The nlist function, when used with the nlist structure can be used to extract certain information about selected symbols in the symbol table. The data associated with each symbol is machine specific, thus only the name and position of the n_name field in the nlist structure is standardized by HP-UX. The rest of the structure includes at least the value and type of the symbol. The names and meanings of all fields not standardized will change no more than necessary.
struct nlist {
char*n_name;
/* other fields as needed; the following are suggested
if they apply */
longn_value;
unsigned charn_type;
unsigned charn_length;
shortn_unit;
shortn_sdindex;
};
SEE ALSO
Hewlett-Packard Company — Version B.1, May 11, 2021