MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


ELF Library Functions                           elf32fsize(3ELF)



NAME
     elf32fsize, elf64fsize - return the size of an object file
     type

SYNOPSIS
     cc [ flag ... ] file ... -lelf [ library ... ]
     #include 

     sizet elf32fsize(ElfType type, sizet count, unsigned ver);


     sizet elf64fsize(ElfType type, sizet count, unsigned ver);


DESCRIPTION
     elf32fsize() gives the size in bytes  of  the  32-bit  file
     representation  of  count  data objects with the given type.
     The library uses version ver  to  calculate  the  size.  See
     elf(3ELF) and elfversion(3ELF).


     Constant values are available for the sizes  of  fundamental
     types:

       ElfType  File Size Memory Size
       ELFTADR     ELF32FSZADR sizeof(Elf32Addr)
       ELFTBYTE     1    sizeof(unsigned char)
       ELFTHALF     ELF32FSZHALF sizeof(Elf32Half)
       ELTOF ELF32FSZOF  sizeof(Elf32Off)
       ELFTSWORD    ELF32FSZSWORD     sizeof(Elf32Sword)
       ELFTWORD     ELF32FSZWORD sizeof(Elf32Word)



     elf32fsize() returns 0 if the  value  of  type  or  ver  is
     unknown.  See  elf32xlatetof(3ELF)  for  a list of the type
     values.


     For the 64-bit class, replace 32 with 64 as appropriate.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:











SunOS 5.11          Last change: 11 Jul 2001                    1






ELF Library Functions                           elf32fsize(3ELF)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Stable                      
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     elf(3ELF),     elf32xlatetof(3ELF),      elfversion(3ELF),
     libelf(3LIB), attributes(5)











































SunOS 5.11          Last change: 11 Jul 2001                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™