Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | /* * Copyright (c) 2004 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ #ifndef LIBKERN_VERSION_H #define LIBKERN_VERSION_H /* Kernel versions conform to kext version strings, as described in: * http://developer.apple.com/technotes/tn/tn1132.html */ /* VERSION_MAJOR, version_major is an integer that represents that major version * of the kernel */ #define VERSION_MAJOR ###KERNEL_VERSION_MAJOR### /* VERSION_MINOR, version_minor is an integer that represents the minor version * of the kernel */ #define VERSION_MINOR ###KERNEL_VERSION_MINOR### /* VERSION_VARIANT, version_variant is a string that contains the revision, * stage, and prerelease level of the kernel */ #define VERSION_VARIANT "###KERNEL_VERSION_VARIANT###" /* VERSION_REVISION, version_revision is an integer that represents the revision * of the kernel */ #define VERSION_REVISION ###KERNEL_VERSION_REVISION### /* VERSION_STAGE, version_stage, is an integer set to one of the following: */ #define VERSION_STAGE_DEV 0x20 #define VERSION_STAGE_ALPHA 0x40 #define VERSION_STAGE_BETA 0x60 #define VERSION_STAGE_RELEASE 0x80 #define VERSION_STAGE ###KERNEL_VERSION_STAGE### /* VERSION_PRERELEASE_LEVEL, version_prerelease_level, is an integer sequence * number to distinguish between pre-release builds */ #define VERSION_PRERELEASE_LEVEL ###KERNEL_VERSION_PRERELEASE_LEVEL### /* OSBUILD_CONFIG, osbuild_config is a one-word string describing the build * configuration of the kernel, e.g., development or release */ #define OSBUILD_CONFIG "###KERNEL_BUILD_CONFIG###" /* OSTYPE, ostype, is a string as returned by uname -s */ #define OSTYPE "Darwin" /* OSRELEASE, osrelease, is a string as returned by uname -r */ #define OSRELEASE "###KERNEL_VERSION_LONG###" #ifndef ASSEMBLER #if defined(__cplusplus) extern "C" { #endif /* Build-time value of VERSION_MAJOR */ extern const int version_major; /* Build-time value of VERSION_MINOR */ extern const int version_minor; /* Build-time value of VERSION_VARIANT */ extern const char version_variant[]; /* Build-time value of VERSION_REVISION */ extern const int version_revision; /* Build-time value of VERSION_STAGE */ extern const int version_stage; /* Build-time value of VERSION_PRERELEASE_LEVEL */ extern const int version_prerelease_level; /* Build-time value of CURRENT_KERNEL_CONFIG */ extern const char osbuild_config[]; /* Build-time value of OSTYPE */ extern const char ostype[]; /* Build-time value of OSRELEASE */ extern const char osrelease[]; /* osbuilder is a string as returned by uname -r */ extern const char osbuilder[]; /* version is a string of the following form, as returned by uname -v: * "Darwin Kernel Version <osrelease>: <build date>; <osbuilder>:<build root>" */ extern const char version[]; #define OSVERSIZE 256 extern char osversion[]; #if defined(__cplusplus) } #endif #endif /* !ASSEMBLER */ #endif /* LIBKERN_VERSION_H */ |