|
|
1.1 ! root 1: ! 2: ! 3: nlist() General Function nlist() ! 4: ! 5: ! 6: ! 7: ! 8: Symbol table lookup ! 9: ! 10: #include <l.out.h> ! 11: iinntt nnlliisstt(_f_i_l_e, _n_l_p) ! 12: cchhaarr *_f_i_l_e; ! 13: ssttrruucctt nnlliisstt *_n_l_p; ! 14: ! 15: nlist searches the name list (symbol table) of the load module ! 16: file for each symbol in the array pointed to by nlp. For ex- ! 17: ample, the command ps uses this routine on the system load module ! 18: (/ccoohheerreenntt) to obtain the addresses of system tables in memory ! 19: (/ddeevv/mmeemm). ! 20: ! 21: nlp points to an array of nlist structures, terminated by a ! 22: structure with a null string as its n_name member. The header ! 23: file l.out.h defines nlist as follows: ! 24: ! 25: ! 26: #define NCPLN16 ! 27: ! 28: struct nlist { ! 29: char n_name[NCPLN]; ! 30: int n_type; ! 31: unsignedn_value; ! 32: }; ! 33: ! 34: ! 35: The caller should set the entry n_name; nlist will fill in the ! 36: other entries. nlist sets both n_type and n_value to zero if the ! 37: symbol is not found. ! 38: ! 39: ***** Files ***** ! 40: ! 41: l.out.h ! 42: ! 43: ***** See Also ***** ! 44: ! 45: general functions, l.out.h, nm, strip ! 46: ! 47: ***** Diagnostics ***** ! 48: ! 49: If file is not a load module or has had its symbol table ! 50: stripped, all returned n_type and n_value entries will be zero. ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.