File:  [Research Unix] / researchv10dc / dist / man / v4 / man3 / nlist.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.th NLIST III 6/12/72
.sh NAME
nlist \*- get entries from name list
.sh SYNOPSIS
.ft B
.lp +6 6
	jsr	r5,nlist; file; list
.lp +6 6
	...
.lp +6 6
file:	<file name\\0>; .even
.lp +6 6
list:	<name1xxx>; type1; value1
.lp +6 6
	<name2xxx>; type2; value2
.lp +6 6
	...
.lp +6 6
	0
.s3
.nf
.i0
nlist(filename, nl)
char *filename;
.dt
struct {
	char	name[8];
	int	type;
	int	value;
} nl[ ];
.fi
.ft R
.sh DESCRIPTION
.it Nlist
examines the name list in
the given executable output file
and selectively extracts a
list of values.
The name list consists of
a list of 8-character names (null padded)
each followed by two words.
The list is terminated with a null name.
Each name is looked up in the name list of
the file.
If the name is found, the type and value of the
name are placed in the two words following
the name.
If the name is not found, the type entry is set to \*-1.
.s3
This subroutine is useful for
examining the system name list kept in
the file
\fB/usr/sys/unix\fR.
In this way programs can obtain system addresses
that are up to date.
.sh "SEE ALSO"
a.out(V)
.sh DIAGNOSTICS
All
type entries are set to \*-1 if the file cannot be found
or if it is not a valid namelist.
.sh BUGS

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.