*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> ldfhread (3)              
Title
Content
Arch
Section
 

ldfhread(3)

Contents


NAME    [Toc]    [Back]

       ldfhread - read the file header of a common object file

SYNOPSIS    [Toc]    [Back]

       #include <stdio.h>

       #include <filehdr.h> #include <syms.h> #include <ldfcn.h>

       int ldfhread(
               LDFILE *ldptr,
               FILHDR *filehead );

DESCRIPTION    [Toc]    [Back]

       The ldfhread() routine reads the file header of the common
       object file currently associated with ldptr. It reads  the
       file header into the area of memory beginning at filehead.

       The ldfhread() routine returns  SUCCESS  or  FAILURE.   If
       ldfhread() cannot read the file header, it fails.

       Usually,  ldfhread()  can  be  avoided  by using the macro
       HEADER(ldptr) defined in <ldfcn.h>  (see  ldfcn(4)).  Note
       that  the  information in HEADER is swapped, if necessary.
       The information in  any  field,  fieldname,  of  the  file
       header can be accessed using HEADER(ldptr).fieldname.

       The  program  must  be  loaded with the object file access
       routine library libmld.a.

SEE ALSO    [Toc]    [Back]

      
      
       ldclose(3), ldopen(3), ldfcn(4)



                                                      ldfhread(3)
[ Back ]
 Similar pages
Name OS Title
ldshread Tru64 read an indexed/named section header of a common object file
ldnshread Tru64 read an indexed/named section header of a common object file
ldshread IRIX read an indexed/named section header of a common object file
ldohseek Tru64 seek to the optional file header of a common object file
ldohseek IRIX seek to the optional file header of a common object file
ldtbread IRIX read an indexed symbol table entry of a common object file
ldtbread Tru64 read an indexed symbol table entry of a common object file
ldaclose Tru64 close a common object file
ldclose IRIX close a common object file
ldclose Tru64 close a common object file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service