nlist.3

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

3
48
字号
.\" SCCSID: @(#)nlist.3	3.1	11/24/87.TH nlist 3 RISC.SH Namenlist \- get entries from name list.SH Syntax.nf.B #include <nlist.h>.PP.B nlist(filename, nl).B char *filename;.B struct nlist nl[];.fi.SH Description.NXR "nlist subroutine".NXR "name list" "defined".NXR "/vmunix file" "examining name list"The.PN nlistsubroutineexamines the name list in the given executable output fileand selectively extracts a list of values.The name list consists of an array of structures containing names,types and values.The list is terminated with a null name.Each name is looked up in the name list of the file.If the name is found, the type and value of thename are inserted in the next two fields.If the name is not found, both entries are set to 0.See .MS a.out 5for the structure declaration..PPThis subroutine is usefulfor examining the system name list kept in the file .PN /vmunix .In this way programs can obtain system addresses that are up to date..SH Diagnostics.\"VAX.\"All type entries are set to 0 if the file cannot be found.\"VAX.\"or if it is not a valid name list.If the file cannot be found or if it is not a valid namelist \-1 is returned;otherwise, the number of unfound namelist entries is returned..PPThe type entry is set to 0 if the symbol is not found..SH See Alsoa.out(5)

⌨️ 快捷键说明

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