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


Manual Reference Pages  -  GETOSRELDATE (3)

NAME

getosreldate - get the value of __FreeBSD_version

CONTENTS

Library
Synopsis
Description
Return Values
Environment
Examples
Errors
See Also
History

LIBRARY


.Lb libc

SYNOPSIS


.In unistd.h int getosreldate void

DESCRIPTION

The getosreldate function returns an integer showing the version of the currently running
.Fx kernel. Definitions of the values can be found in which is usually installed at /usr/share/doc/en_US.ISO8859-1/books/porters-handbook/.

RETURN VALUES

Upon successful completion, getosreldate returns the value requested; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

ENVIRONMENT

OSVERSION
  If the environment variable OSVERSION is set, it will override the getosreldate return value.

EXAMPLES

An example can be found in /usr/share/examples/FreeBSD_version.

ERRORS

The getosreldate function may fail and set errno for any of the errors specified for the library function sysctl(3).

SEE ALSO


.Rs
.Re

HISTORY

The getosreldate function appeared in
.Fx 2.0 .
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 manServer 1.07.