elf_version man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

ELF_VERSION(3)		 BSD Library Functions Manual		ELF_VERSION(3)

     elf_version — retrieve or set ELF library operating version

     library “libelf”

     #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 sup‐
     ported by the ELF library, function elf_version() sets the library's
     operating version to version, and returns the previous value of the oper‐
     ating 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 snip‐

	   if (elf_version(EV_CURRENT) == EV_NONE)
		   err(EX_SOFTWARE, "ELF library too old");

     Function elf_version() may fail with the following error:

     [ELF_E_VERSION]   An unsupported library version number was requested.

     elf(3), gelf(3)

BSD				 June 1, 2006				   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net