#include <syms.h> pCHDRR st_cuinit () void st_setchdr (pchdr) pCHDRR pchdr; pCHDRR st_currentpchdr() void st_free() long st_extadd (iss, value, st, sc, index) long iss; long value; long st; long sc; long index; pEXTR st_pext_iext (iext) long iext; pEXTR st_pext_rndx (rndx) RNDXR rndx; long st_iextmax() long st_extstradd (str) char *str; char *st_str_extiss (iss) long iss; long st_idn_index_fext (index, fext) long index; long fext; long st_idn_rndx (rndx) RNDXR rndx; pRNDXR st_pdn_idn (idn) long idn; RNDXR st_rndx_idn (idn) long idn; void st_setidn (idndest, idnsrc) long idndest; long idnsrc;
The stcu routines provide an interface to objects that occur once per object rather than once per file descriptor (for example, external symbols, strings, and dense numbers). The routines provide access to the current chdr (compile time hdr), which represents the symbol table in running processes with pointers to symbol table sections rather than indices and offsets used in the disk file representation.
A new symbol table can be created with st_cuinit. This routine creates and initializes a CHDRR. The CHDRR is the current chdr and is used in all later calls. NOTE: A chdr can also be created with the read routines (see stio(3)). The st_cuinit routine returns a pointer to the new CHDRR record. Returns a pointer the current chdr. Sets the current chdr to the pchdr argument and sets the per file structures to reflect a change in symbol tables. Frees all constituent structures associated with the current chdr. Lets you add to the externals table. It returns the index to the new external for future reference and use. The ifd field for the external is filled in by the current file (see stfd(3)). Returns pointers to the external, given a index referencing them. The latter routine requires a relative index where the index field should be the index in external symbols and the rfd field should be the constant ST_EXTIFD. NOTE: The externals contain the same structure as symbols (see the SYMR and EXTR definitions). Returns the current number of entries in the external symbol table.
stfe(3), stfd(3) delim off