|
NAMEelf_version —
retrieve or set ELF library operating version
LIBRARYELF Access Library (libelf, -lelf)SYNOPSIS#include <libelf.h>
unsigned int
DESCRIPTIONTheelf_version () function is used to query the current
operating version of the ELF library, and to inform the ELF library about the
application's desired operating version.
If the argument version is
If the argument version is not
RETURN VALUESTheelf_version () function returns the currently
configured ELF library version, or EV_NONE if an
unsupported version is requested.
EXAMPLESAn application program would inform the ELF library about its desired operating version and check for an error using the following code snippet:if (elf_version(EV_CURRENT) == EV_NONE) err(EXIT_FAILURE, "ELF library too old"); ERRORSFunctionelf_version () may fail with the following
error:
SEE ALSOelf(3), gelf(3)
Visit the GSP FreeBSD Man Page Interface. |