Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


nlist()                  General Function                 nlist()




Symbol table lookup

#include <l.out.h>
int nlist(file, nlp)
char *file;
struct nlist *nlp;

nlist searches  the name list  (symbol table) of  the load module
file for  each symbol in  the array pointed  to by nlp.   For ex-
ample, the command ps uses this routine on the system load module
(/coherent) to  obtain the addresses  of system tables  in memory
(/dev/mem).

nlp  points to  an  array of  nlist structures,  terminated by  a
structure with  a null string  as its n_name  member.  The header
file l.out.h defines nlist as follows:


#define   NCPLN16

struct nlist {
     char n_name[NCPLN];
     int  n_type;
     unsignedn_value;
};


The caller  should set the  entry n_name; nlist will  fill in the
other entries.  nlist sets both n_type and n_value to zero if the
symbol is not found.

***** Files *****

l.out.h

***** See Also *****

general functions, l.out.h, nm, strip

***** Diagnostics *****

If  file  is not  a  load  module or  has  had  its symbol  table
stripped, all returned n_type and n_value entries will be zero.













COHERENT Lexicon                                           Page 1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026