![]() |
![]()
| ![]() |
![]()
NAMEgetosreldate —
get the value of
__FreeBSD_version LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h>
int
DESCRIPTIONThegetosreldate () 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:
RETURN VALUESUpon 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
EXAMPLESAn example can be found in /usr/share/examples/FreeBSD_version.ERRORSThegetosreldate () function may fail and set
errno for any of the errors specified for the library
function
sysctl(3).
SEE ALSOThe Porter's Handbook. HISTORYThegetosreldate () function appeared in
FreeBSD 2.0.
|