📄 ldfhread.3x
字号:
.TH ldfhread 3x RISC.SH Nameldfhread \- read the file header of a common object file.SH Syntax.nf.ta \w'LDFILE\ \ \ 'u.B #include <stdio.h>.ie '\*p'' \{\.B #include <filehdr.h>.B #include <syms.h>.B #include <ldfcn.h>\}.el \{\.B #include "\s-1INCDIR\s+1\/filehdr.h".B #include "\s-1INCDIR\s+1\/syms.h".B #include "\s-1INCDIR\s+1\/ldfcn.h"\}.PP.BR "int ldfhread (" "ldptr, filehead" ).BR "\s-1LDFILE\s+1 \(**" ldptr ;.BR "\s-1FILHDR\s+1 \(**" filehead ;.fi.DT.SH DescriptionThe .PN ldfhreadfunctionreads the file header of the common object file currently associated with.I ldptr .It reads the file headerinto the area of memory beginning at.IR filehead ..PPThe.PN ldfhreadfunction.RB "returns " \s-1success \s+1 " or " \s-1failure\s+1 .If \fIldfhread\fR cannot read the file header, it fails..PPUsually,.PN ldfhreadcan be avoided by using the macro.BI \s-1HEADER\s+1\*S( ldptr )defined in.B <ldfcn.h>see .MS ldfcn 5 ).Note that the information in HEADER is swapped, if necessary.The information in any field,.IR fieldname ,of the file header can be accessed using.SM.BI HEADER\*S( ldptr ). fieldname\c\&..SH See Alsointro(3x), ldclose(3x), ldopen(3x), ldfcn(5).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -