#include <libkern/version.h>
libkern/version.h
macroLIBKERN_VERSION_H
#define LIBKERN_VERSION_H
macroVERSION_MAJOR
VERSION_MAJOR, version_major is an integer that represents that major version
of the kernel
#define VERSION_MAJOR 25
macroVERSION_MINOR
VERSION_MINOR, version_minor is an integer that represents the minor version
of the kernel
#define VERSION_MINOR 4
macroVERSION_VARIANT
VERSION_VARIANT, version_variant is a string that contains the revision,
stage, and prerelease level of the kernel
#define VERSION_VARIANT "0"
macroVERSION_REVISION
VERSION_REVISION, version_revision is an integer that represents the revision
of the kernel
#define VERSION_REVISION 0
macroVERSION_STAGE_DEV
VERSION_STAGE, version_stage, is an integer set to one of the following:
#define VERSION_STAGE_DEV 0x20
macroVERSION_STAGE_ALPHA
#define VERSION_STAGE_ALPHA 0x40
macroVERSION_STAGE_BETA
#define VERSION_STAGE_BETA 0x60
macroVERSION_STAGE_RELEASE
#define VERSION_STAGE_RELEASE 0x80
macroVERSION_STAGE
#define VERSION_STAGE VERSION_STAGE_RELEASE
macroVERSION_PRERELEASE_LEVEL
VERSION_PRERELEASE_LEVEL, version_prerelease_level, is an integer sequence
number to distinguish between pre-release builds
#define VERSION_PRERELEASE_LEVEL 0
macroOSBUILD_CONFIG
OSBUILD_CONFIG, osbuild_config is a one-word string describing the build
configuration of the kernel, e.g., development or release
#define OSBUILD_CONFIG "release"
variableversion_prerelease_level
Build-time value of VERSION_PRERELEASE_LEVEL
extern const int version_prerelease_level
variableversion
extern const char version[]
macroOSVERSIZE
#define OSVERSIZE 256
variableosversion
extern char osversion[]