Process Control Library Functions pspgloballookup(3PROC)
NAME
pspgloballookup, pspglobalsym - look up a symbol in the
symbol table of the load object in the target process
SYNOPSIS
#include
pserre pspgloballookup(struct psprochandle *ph,
const char *objectname, const char *symname,
psaddrt *symaddr);
pserre pspglobalsym(struct psprochandle *ph,
const char *objectname, const char *symname,
pssymt *sym);
DESCRIPTION
pspgloballookup() looks up the symbol symname in the sym-
bol table of the load object objectname in the target pro-
cess identified by ph. It returns the symbol's value as an
address in the target process in *symaddr.
pspglobalsym() looks up the symbol symname in the symbol
table of the load object objectname in the target process
identified by ph. It returns the symbol table entry in *sym.
The value in the symbol table entry is the symbol's value as
an address in the target process.
RETURN VALUES
PSOK The call completed successfully.
PSNOSYM The specified symbol was not found.
PSER The function did not return successfully.
ATRIBUTES
See attributes(5) for description of the following attri-
butes:
SunOS 5.11 Last change: 16 Jan 1998 1
Process Control Library Functions pspgloballookup(3PROC)
ATRIBUTE TYPE ATRIBUTE VALUE
MT Level Safe
SEE ALSO
kill(2), libcdb(3LIB), procservice(3PROC), attributes(5),
threads(5)
SunOS 5.11 Last change: 16 Jan 1998 2
|