1NLIST(3) Library Functions Manual NLIST(3)
2
3
4
6 nlist - get entries from name list
7
9 #include <nlist.h>
10
11 nlist(filename, nl)
12 char *filename;
13 struct nlist nl[];
14
16 Nlist examines the name list in the given executable output file and
17 selectively extracts a list of values. The name list consists of an
18 array of structures containing names, types and values. The list is
19 terminated with a null name. Each name is looked up in the name list
20 of the file. If the name is found, the type and value of the name are
21 inserted in the next two fields. If the name is not found, both
22 entries are set to 0. See a.out(5) for the structure declaration.
23
24 This subroutine is useful for examining the system name list kept in
25 the file /vmunix. In this way programs can obtain system addresses
26 that are up to date.
27
29 a.out(5)
30
32 If the file cannot be found or if it is not a valid namelist -1 is
33 returned; otherwise, the number of unfound namelist entries is
34 returned.
35
36 The type entry is set to 0 if the symbol is not found.
37
38
39
404th Berkeley Distribution May 15, 1985 NLIST(3)