*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> getosreldate (3)              
Title
Content
Arch
Section
 

GETOSRELDATE(3)

Contents


NAME    [Toc]    [Back]

     getosreldate -- get the value of __FreeBSD_version

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <osreldate.h>

     int
     getosreldate(void);

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     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.

EXAMPLES    [Toc]    [Back]

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

ERRORS    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

      
      
     The Porter's Handbook,
     /usr/share/doc/en_US.ISO8859-1/books/porters-handbook/.

HISTORY    [Toc]    [Back]

     The getosreldate() function appeared in FreeBSD 2.0.


FreeBSD 5.2.1		       January 30, 2003 		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service