#include <libkern/version.h>

libkern/version.h Kernel.framework

15 macros · 12 variables

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"

macroOSTYPE

OSTYPE, ostype, is a string as returned by uname -s
#define OSTYPE "Darwin"

macroOSRELEASE

OSRELEASE, osrelease, is a string as returned by uname -r
#define OSRELEASE "25.4.0"

variableversion_major

Build-time value of VERSION_MAJOR
extern const int version_major

variableversion_minor

Build-time value of VERSION_MINOR
extern const int version_minor

variableversion_variant

Build-time value of VERSION_VARIANT
extern const char version_variant[]

variableversion_revision

Build-time value of VERSION_REVISION
extern const int version_revision

variableversion_stage

Build-time value of VERSION_STAGE
extern const int version_stage

variableversion_prerelease_level

Build-time value of VERSION_PRERELEASE_LEVEL
extern const int version_prerelease_level

variableosbuild_config

Build-time value of CURRENT_KERNEL_CONFIG
extern const char osbuild_config[]

variableostype

Build-time value of OSTYPE
extern const char ostype[]

variableosrelease

Build-time value of OSRELEASE
extern const char osrelease[]

variableosbuilder

osbuilder is a string as returned by uname -r
extern const char osbuilder[]

variableversion

extern const char version[]

macroOSVERSIZE

#define OSVERSIZE 256

variableosversion

extern char osversion[]