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

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

ldshread(3)

Contents


NAME    [Toc]    [Back]

       ldshread, ldnshread - read an indexed/named section header
       of a common object file

SYNOPSIS    [Toc]    [Back]

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

       int ldshread(
               LDFILE *ldptr,
               unsigned short sectindx,
               SCNHDR *secthead ); int ldnshread(
               LDFILE *ldptr,
               char *sectname,
               SCNHDR *secthead );

DESCRIPTION    [Toc]    [Back]

       The  ldshread() routine reads the section header specified
       by sectindx of the common object file currently associated
       with  ldptr into the area of memory beginning at secthead.

       The ldnshread() routine reads the section header specified
       by sectname into the area of memory beginning at secthead.

       Both routines return SUCCESS or FAILURE.  If  sectindx  is
       greater  than  the  number of sections in the object file,
       ldshread() fails, If there is no section name  corresponding
  with  sectname,  ldnshread() fails. If it cannot read
       the specified section header, either function fails.

       Note: The first section header has an index of one.

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

SEE ALSO    [Toc]    [Back]

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



                                                      ldshread(3)
[ Back ]
 Similar pages
Name OS Title
ldnsseek Tru64 seek to an indexed/named section of a common object file
ldsseek Tru64 seek to an indexed/named section of a common object file
ldsseek IRIX seek to an indexed/named section of a common object file
ldtbread Tru64 read an indexed symbol table entry of a common object file
ldtbread IRIX read an indexed symbol table entry of a common object file
ldfhread IRIX read the file header of a common object file
ldfhread Tru64 read the file header of a common object file
ldrseek IRIX seek to relocation entries of a section of a common object file
ldnrseek Tru64 seek to relocation entries of a section of a common object file
ldrseek Tru64 seek to relocation entries of a section of a common object file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service