getosreldate man page on PC-BSD

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

GETOSRELDATE(3)		 BSD Library Functions Manual	       GETOSRELDATE(3)

NAME
     getosreldate — get the value of __FreeBSD_version

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <unistd.h>

     int
     getosreldate(void);

DESCRIPTION
     The getosreldate() function returns an integer showing the version of the
     currently running FreeBSD kernel.	Definitions of the values can be found
     in The Porter's Handbook 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
     The Porter's Handbook,
     /usr/share/doc/en_US.ISO8859-1/books/porters-handbook/.

HISTORY
     The getosreldate() function appeared in FreeBSD 2.0.

BSD			      September 30, 2008			   BSD
[top]

List of man pages available for PC-BSD

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]
Tweet
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