elf_kind(3E) elf_kind(3E)
NAME
elf_kind - determine file type
SYNOPSIS
[flag... ] file... [library] ...
DESCRIPTION
This function returns a value identifying the kind of file associated with an ELF descriptor elf. Currently defined values appear below.
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 identifies the
member's type.
The file is an ELF file. The program may use
to determine the class. Other functions, such as are available to retrieve other file information.
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 A null pointer is
allowed, to simplify error handling, and causes to return
SEE ALSO
ar(4), elf(3E), elf_begin(3E), elf_getehdr(3E), elf_getident(3E).
elf_kind(3E)