Query: elf_version
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ELF_VERSION(3) BSD Library Functions Manual ELF_VERSION(3)NAMEelf_version -- retrieve or set ELF library operating versionLIBRARYELF Access Library (libelf, -lelf)SYNOPSIS#include <libelf.h> unsigned int elf_version(unsigned int version);DESCRIPTIONThe elf_version() function is used to query the current operating version of the ELF library, and to inform the ELF library about the appli- cation's desired operating version. If the argument version is EV_NONE, the elf_version() function returns the currently configured operating version for the ELF library. If the argument version is not EV_NONE, and if argument version is supported by the ELF library, function elf_version() sets the library's operating version to version, and returns the previous value of the operating version. If argument version cannot be supported, then the elf_version() function returns EV_NONE.RETURN VALUESThe elf_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 snip- pet: if (elf_version(EV_CURRENT) == EV_NONE) err(EXIT_FAILURE, "ELF library too old");ERRORSFunction elf_version() may fail with the following error: [ELF_E_VERSION] An unsupported library version number was requested.SEE ALSOelf(3), gelf(3)BSDNovember 9, 2011 BSD
Related Man Pages |
---|
elf_version(3elf) - opensolaris |
elf_version(3elf) - sunos |
elf_version(3elf) - osx |
elf_version(3elf) - xfree86 |
elf_version(3elf) - minix |
Similar Topics in the Unix Linux Community |
---|
get library version |
ELF format shared library? |
A help to create an ELF file |