stcu.3

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 185 行

3
185
字号
.TH stcu 3 RISC.SH Namestcu, st_cuinit, st_setchdr, st_currentpchdr, st_free, st_extadd, st_pext_iext, st_pext_rndx, st_iextmax, st_extstradd, st_str_extiss, st_idn_index_fext, st_idn_rndx, st_pdn_idn, st_rndx_idn, st_setidn \- routines that provide a compilation unit symbol table interface.SH Syntax.nf.B #include <syms.h>.PP.ft BpCHDRR st_cuinit ().PP.ft Bvoid st_setchdr (pchdr)pCHDRR	pchdr;.PP.ft BpCHDRR st_currentpchdr().PP.ft Bvoid st_free().PP.ft B.PP.ft Blong st_extadd (iss, value, st, sc, index)long iss;long value;long st;long sc;long index;.PP.ft BpEXTR st_pext_iext (iext)long	iext;.PP.ft BpEXTR st_pext_rndx (rndx)RNDXR rndx;.PP.ft Blong st_iextmax().PP.ft Blong st_extstradd (str)char *str;.PP.ft Bchar *st_str_extiss (iss)long iss;.PP.ft Blong st_idn_index_fext (index, fext)long index;long fext;.PP.ft Blong st_idn_rndx (rndx)RNDXR rndx;.PP.ftpRNDXR st_pdn_idn (idn)long idn;.ft BRNDXR st_rndx_idn (idn)long idn;.PP.ft Bvoid st_setidn (idndest, idnsrc)long idndest;long idnsrc;.fi.ft R.br.SH DescriptionThe.B stcuroutines 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.I chdr(compile time hdr), which represents the symbol table in running processes withpointers to symbol table sections rather than indices and offsets used inthe disk file representation..PPA new symbol table can be created with .I st_cuinit.This routine creates and initializes a CHDRR (see .I cmplrs/stsupport.h).The CHDRR is the current chdr and is used in alllater calls.  .NTA chdr can also be created with the readroutines (see .MS stio 3 ). The .I st_cuinitroutine returns a pointer to the new CHDRR record..NE.TP 15.I st_currentchdrReturns a pointer the current chdr..TP 15.I st_setchdrSets the current chdr to the.I pchdrargument and sets the per file structures to reflect a change insymbol tables..TP 15.I st_freeFrees all constituent structures associated with thecurrent chdr..TP 15.I st_extaddLets you add to the externals table. It returns the index tothe new external for future reference and use. The.I ifdfield for the external is filled in by the current file (see .MS stfd 3 ).For more details on the parameters, see .I sym.h..TP 15.I st_pext_iext and st_pext_rndxReturns pointers to the external, given a index referencing them. Thelatter routine requires a relative index where the .I indexfield should be the index in external symbols and the.I rfdfield should be the constant ST_EXTIFD. \fBNOTE\fR:The externals contain the same structure as symbols (see the.I SYMRand.I EXTRdefinitions)..TP 15.I st_iextmaxReturns the current number of entries in the external symbol table..PP.PPThe .I iss field in external symbols (the index into string space) mustpoint into external string space..TP 15.I st_extstraddAdds a null-terminated string to the external string space and returnsits index..TP 15.I st_str_extissConverts that index into a pointer to the external string..PP.PPThe dense number table provides a convenience to the code optimizer,generator, and assembler. This table lets them reference symbols fromdifferent files and externals with unique densely packed numbers..TP 15.I st_idn_index_fextReturns a new dense number table index, given an index into the symboltable of the current file (or if .I fextis set, the externals table)..TP 15.I st_idn_rndxReturns a new dense number, but expects a RNDXR (see .I sym.hto specifyboth the file index and the symbol index rather than implying the fileindex from the current file.TheRNDXR contains two fields: an index into the externals table and a file index .I rsyms can point into the symbol table, as well). The fileindex is ST_EXTIFD (see .I stsupport.h) for externals..TP 15.I st_rndx_idnReturns a RNDX, given an index into the dense number table..TP 15.I st_pdn_idnReturns a pointer to the RNDXR index by the idn argument..SH See Alsostfe(3), stfd(3)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?