Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ elf_kind(3E) — Amiga System V Release 4 Version 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

elf(3E)

ar(4)



elf_kind(3E)      MISC. REFERENCE MANUAL PAGES       elf_kind(3E)



NAME
     elfkind - determine file type

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

     #include <libelf.h>

     ElfKind elfkind(Elf *elf);

DESCRIPTION
     This function returns a value identifying the kind  of  file
     associated  with an ELF descriptor (elf).  Currently defined
     values appear below.

     ELFKAR        The file is an archive [see ar(4)].  An  ELF
                     descriptor  may  also  be associated with an
                     archive member, not the archive itself,  and
                     then elfkind identifies the member's type.

     ELFKCOFF      The   file   is   a   COFF   object    file.
                     elfbegin(3E)  describes  the library's han-
                     dling for COFF files.

     ELFKELF       The file is an ELF file.   The  program  may
                     use  elfgetident  to  determine  the class.
                     Other functions, such  as  elfgetehdr,  are
                     available  to  retrieve  other file informa-
                     tion.

     ELFKNONE      This indicates a kind of file unknown to the
                     library.   Other  values are reserved, to be
                     assigned as needed to new  kinds  of  files.
                     elf should be a value previously returned by
                     elfbegin.  A null pointer  is  allowed,  to
                     simplify error handling, and causes elfkind
                     to return ELFKNONE.

SEE ALSO
     elf(3E), elfbegin(3E), elfgetehdr(3E), elfgetident(3E),
     ar(4).














                    Last change: ELF Library                    1



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