Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

nlist(3) OSS Library Calls Reference Manual
NAME
nlist - Gets entries from name list
LIBRARY
G-series native OSS processes: /G/system/sysnn/zutilsrl
H-series OSS processes: /G/system/zdllnnn/zutildll
SYNOPSIS
#include <nlist.h>
int nlist(
char *lename,
struct nlist n1[] );
PARAMETERS
filename Species the name of the le to examine.
n1[] Species the array in which the entry list is returned.
DESCRIPTION
The nlist() function examines the name list in the executable le specied by lename and selec-
tively extracts a list of values. The name list consists of an array of structures containing names,
types, and values. The list is terminated with a null name. Each name is looked up in the name
list of the le. If the name is found, the type and value of the name are inserted in the next two
elds. If the name is not found, both entries are set to 0 (zero). See the header le nlist.h for the
structure declaration.
RETURN VALUES
If the le cannot be found, the le is not an HP NonStop server object le, or the name list is not
valid, -1 is returned. Otherwise, the number of unfound name list entries is returned.
ERRORS
None. This function does not set errno.
RELATED INFORMATION
Commands: nm(1).
514 Hewlett-Packard Company 527187-007