Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ elf_fsize(3E) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

elf(3E)

elf_fsize(3E)                                                 elf_fsize(3E)

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

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 representa-
     tion of count data objects with the given type. The library uses ver-
     sion 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).


















Page 1                       Reliant UNIX 5.44                Printed 11/98

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