Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
ELF_VERSION(3) FreeBSD Library Functions Manual ELF_VERSION(3)

retrieve or set ELF library operating version

ELF Access Library (libelf, -lelf)

#include <libelf.h>
unsigned int
elf_version(unsigned int version);

The elf_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 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.

The elf_version() function returns the currently configured ELF library version, or EV_NONE if an unsupported version is requested.

An 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");

Function elf_version() may fail with the following error:
An unsupported library version number was requested.

elf(3), gelf(3)
November 9, 2011 FreeBSD 12.0-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.