1NLIST(3bsd) LOCAL NLIST(3bsd)
2
4 nlist — retrieve symbol table name list from an executable file
5
7 Utility functions from BSD systems (libbsd, -lbsd)
8
10 #include <nlist.h>
11 (See libbsd(7) for include usage.)
12
13 int
14 nlist(const char *filename, struct nlist *nl);
15
17 The nlist() function retrieves name list entries from the symbol table of
18 an executable file (see a.out(5)). The argument nl is set to reference
19 the beginning of the list. The list is preened of binary and invalid
20 data; if an entry in the name list is valid, the n_type and n_value for
21 the entry are copied into the list referenced by nl. No other data is
22 copied. The last entry in the list is always NULL.
23
25 The number of invalid entries is returned if successful; otherwise, if
26 the file filename does not exist or is not executable, the returned value
27 is -1.
28
30 a.out(5)
31
33 A nlist() function appeared in Version 6 AT&T UNIX.
34
35BSD April 19, 1994 BSD