01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NLIST (3C) NLIST (3C)<br />

NAME<br />

nlist - get entries from name list<br />

SYNOPSIS<br />

#include <br />

int nlist (file-name, nl)<br />

char •file-name;<br />

struct nlist •nl[ ];<br />

DESCRIPTION<br />

Nlist examines the name list in the executable file whose name is<br />

pointed to by file-name, and selectively extracts a list of values<br />

and puts them in the array of nlist structures pointed to by nl .<br />

The name list nl consists of an array of structures containing<br />

names of variables, types and values. The list is terminated with<br />

a null name; that is, a null string is in the name position of the<br />

structure. Each variable name is looked up in the name list of the<br />

file. If the name is found, the type and value of the name are<br />

inserted in the next two fields. If the name is not found, both<br />

entries are set to 0. See a. out( 4) for a discussion of the symbol<br />

table structure.<br />

This subroutine is useful for examining the system name list kept<br />

in the file /unix. In this way programs can obtain system<br />

addresses that are up to date.<br />

SEE ALSO<br />

a.out(4).<br />

DIAGNOSTICS<br />

All type entries are set to 0 if the file cannot be read or if it<br />

doesn't contain a valid name list.<br />

Nlist returns - 1 upon error; otherwise it returns 0.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!