GSP
Quick Navigator

Search Site

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

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

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

elftc_version
return a project-wide version identifier string

library “libelftc”

#include <libelftc.h>
const char *
elftc_version(void);

Function elftc_version() returns a project-wide identifier string that encodes the source revision of the project source tree.
The returned identifier has four space-separated fields:
Project-Name
This is always “elftoolchain”.
Project-Branch
The branch name for the project source tree.
Build-OS
The operating system that the tool chain was compiled for.
Version-Number
A tree-wide version number extracted from the version control system in use.

Function elftc_program_version() returns a pointer to an internal character buffer.

To retrieve and print the current toolchain version identifier, use:
#include <sys/types.h> 
#include <libelftc.h> 
 
(void) printf("%s\n", elftc_version());
On the HEAD branch of the project's sources, when checked out using Subversion and compiled on a NetBSD host, this would print:
“elftoolchain HEAD NetBSD svn:REVINFO
where REVINFO would be the current revision information for the project source tree.

Function elftc_program_version() always succeeds.
December 30, 2012 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.