Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ elf_fsize(3E) — Dell System V Release 4 Issue 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

elf(3E)



elf_fsize(3E)             UNIX System V(ELF Library)              elf_fsize(3E)


NAME
      elffsize: elf32fsize - return the size of an object file type

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

      #include <libelf.h>
      sizet elf32fsize(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(3E) and elfversion(3E)].

      Constant values are available for the sizes of fundamental types.

                 ElfType        File Size           Memory Size
                ___________|_________________|_______________________
                ELFTADDR |  ELF32FSZADDR |  sizeof(Elf32Addr)
                ELFTBYTE |  1              |  sizeof(unsigned char)
                ELFTHALF |  ELF32FSZHALF |  sizeof(Elf32Half)
                ELTTOFF  |  ELF32FSZOFF  |  sizeof(Elf32Off)
                ELFTSWORD|  ELF32FSZSWORD|  sizeof(Elf32Sword)
                ELFTWORD |  ELF32FSZWORD |  sizeof(Elf32Word)
                ___________|_________________|_______________________

      elf32fsize returns zero if the value of type or ver is unknown.  See
      elfxlate(3E) for a list of the type values.

SEE ALSO
      elf(3E), elfversion(3E), elfxlate(3E)























10/89                                                                    Page 1





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026