ELF_GETARHDR(3) | MidnightBSD Library Functions Manual | ELF_GETARHDR(3) |
elf_getarhdr
—
retrieve ar(1) header for an archive member
ELF Access Library (libelf, -lelf)
#include
<libelf.h>
Elf_Arhdr *
elf_getarhdr
(Elf
*elf);
The
elf_getarhdr
()
function returns a pointer to an archive member header for a descriptor
elf. This descriptor must have been returned by a
prior call to
elf_begin(3), and must
be a descriptor for a member inside an
ar(1) archive.
Structure Elf_Arhdr includes the following members:
This function returns a valid pointer to an Elf_Arhdr structure if successful, or NULL if an error is encountered.
Function elf_getarhdr
() may fail with the
following errors:
ELF_E_ARGUMENT
]ELF_E_ARGUMENT
]August 15, 2006 | midnightbsd-3.1 |