elf_errno - Man Page
retrieve the error code of the last failing libelf function call.
Synopsis
#include <libelf.h>
int elf_errno(void);
Description
The elf_errno function retrieves the error code of the last failing libelf library function. This error code indicates the type of error that occurred during the failing function call. Each thread maintains its own separate error code.
Parameters
This function does not take any parameters.
Return Value
The elf_errno function returns an integer representing the most recent error code for the current thread. If no error has occurred, it returns 0. If an error occurred, the function returns a non-zero error code that corresponds to the specific error. Error codes can be passed to elf_errmsg in order to create a string describing the error.
See Also
Reporting Bugs
Report bugs to <elfutils-devel@sourceware.org> or https://sourceware.org/bugzilla/.
Referenced By
elf32_checksum(3), elf32_fsize(3), elf32_getchdr(3), elf32_getehdr(3), elf32_getphdr(3), elf32_getshdr(3), elf32_newehdr(3), elf32_newphdr(3), elf32_xlatetom(3), elf64_getehdr(3), elf_errmsg(3), elf_getscn(3).