File:  [MW Coherent from dump] / coherent / a / usr / man / COHERENT / nlist
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



nlist()                  General Function                 nlist()




Symbol table lookup

#include <l.out.h>
iinntt nnlliisstt(_f_i_l_e, _n_l_p)
cchhaarr *_f_i_l_e;
ssttrruucctt nnlliisstt *_n_l_p;

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
(/ccoohheerreenntt) to  obtain the addresses  of system tables  in memory
(/ddeevv/mmeemm).

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



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.