BSD 4_2 development
[unix-history] / usr / man / man3 / nlist.3
CommitLineData
cfd13a90
C
1.TH NLIST 3 "19 January 1983"
2.UC 4
3.SH NAME
4nlist \- get entries from name list
5.SH SYNOPSIS
6.nf
7.B #include <nlist.h>
8.PP
9.B nlist(filename, nl)
10.B char *filename;
11.B struct nlist nl[];
12.fi
13.SH DESCRIPTION
14.I Nlist
15examines the name list in the given executable output file
16and selectively extracts a list of values.
17The name list consists of an array of structures containing names,
18types and values.
19The list is terminated with a null name.
20Each name is looked up in the name list of the file.
21If the name is found, the type and value of the
22name are inserted in the next two fields.
23If the name is not found, both entries are set to 0.
24See
25.IR a.out (5)
26for the structure declaration.
27.PP
28This subroutine is useful for examining the system name list kept in the file
29.BR /vmunix .
30In this way programs can obtain system addresses that are up to date.
31.SH "SEE ALSO"
32a.out(5)
33.SH DIAGNOSTICS
34All type entries are set to 0 if the file cannot be found
35or if it is not a valid namelist.