Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ elf_fsize(3E) — DG/UX 5.4.2A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

elf(3E)



elf_fsize(3E)                    DG/UX 5.4.2                   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).


























Licensed material--property of copyright holder(s)                         1


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