Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nlist_pa(3c) [hpux man page]

nlist_pa(3C)															      nlist_pa(3C)

NAME
nlist_pa: nlist(), nlist64() - get entries from name list on PA-RISC systems SYNOPSIS
nlist() Command: [flag]... cfile... nlist64() Command: [flag]... cfile... [library]... Remarks The use of symbol table type and value information is inherently nonportable. The use of or should reduce the effort required to port a program that uses such information, but complete portability across all HP-UX implementations cannot be expected. This manpage describes and for PA-RISC systems. For and on Integrity systems, see nlist_ia(3C). DESCRIPTION
and have basically the same functionality except that uses the structure and can process SOM or ELF files. uses the structure and can only process SOM files. The or function examines the name list in the executable file whose name is pointed to by file_name, and selectively extracts a list of values and puts them in the array of structures pointed to by nl. The array of structures initially contains only the names of variables. Once the or function has been called, the variable names are augmented with symbol information. The list is terminated by a null name, which consists of a null string in the variable-name position of the structure. The name list of the file is searched for each variable name. If the name is found, the symbol's type, scope, and value in the file is inserted into the name list structure. For if the file searched is an ELF file, the section index is also inserted. For and SOM files, the subspace index is inserted. On wide-mode systems, the symbol value is 64-bit. If the file searched is a SOM file, then the value field is zero padded. If the name is not found, the fields in the name list structure are set to 0. The structures and are defined in the include file See a.out(4) and nlist(4) for further description of the symbol table structure. The file must have the organization and symbol table described for an file in a.out(4). The information is extracted from the symbol table used by the linker, ld(1). On machines that have such a file, this subroutine is useful for examining the system name list kept in file In this way programs can obtain system addresses that are up to date. RETURN VALUE
All structure fields are set to 0 if the file cannot be found or if it is not a valid object file containing a linker symbol table. and return: An error occurred. Success. WARNINGS
The header file is automatically included by for compatibility. However, including is discouraged if the only information needed from is for use by or If is included, the line may need to follow it. SEE ALSO
ld(1), elf(3E), a.out(4), nlist(4). STANDARDS CONFORMANCE
PA-RISC Systems Only nlist_pa(3C)

Check Out this Related Man Page

kvm_nlist(3KVM)                                             Kernel VM Library Functions                                            kvm_nlist(3KVM)

NAME
kvm_nlist - get entries from kernel symbol table SYNOPSIS
cc [ flag... ] file... -lkvm [ library...] #include <kvm.h> #include <nlist.h> int kvm_nlist(kvm_t *kd, struct nlist *nl); DESCRIPTION
The kvm_nlist() function examines the symbol table from the kernel image identified by kd (see kvm_open(3KVM)) and selectively extracts a list of values and puts them in the array of nlist structures pointed to by nl. The name list pointed to by nl consists of an array of structures containing names, types and values. The n_name field of each such structure is taken to be a pointer to a character string rep- resenting a symbol name. The list is terminated by an entry with a null pointer (or a pointer to a null string) in the n_name field. For each entry in nl, if the named symbol is present in the kernel symbol table, its value and type are placed in the n_value and n_type fields. If a symbol cannot be located, the corresponding n_type field of nl is set to 0. RETURN VALUES
The kvm_nlist() functions returns the value of nlist(3UCB) or nlist(3ELF), depending on the library used. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
kvm_open(3KVM), kvm_kread(3KVM), nlist(3ELF), nlist(3UCB), attributes(5) NOTES
Although the libkvm API is Stable, the symbol names and data values that can be accessed through this set of interfaces are Private and are subject to ongoing change. SunOS 5.10 2 May 2002 kvm_nlist(3KVM)
Man Page