Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/param.h
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
| * The approved way to obtain this from a shell script is: | * The approved way to obtain this from a shell script is: | ||||
| * awk '/^\#define[[:space:]]*__FreeBSD_version/ {print $3}' | * awk '/^\#define[[:space:]]*__FreeBSD_version/ {print $3}' | ||||
| * Other methods to parse this file may work, but are not guaranteed against | * Other methods to parse this file may work, but are not guaranteed against | ||||
| * future changes. The above script works back to FreeBSD 3.x when this macro | * future changes. The above script works back to FreeBSD 3.x when this macro | ||||
| * was introduced. This number is propagated to other places needing it that | * was introduced. This number is propagated to other places needing it that | ||||
| * cannot include sys/param.h and should only be updated here. | * cannot include sys/param.h and should only be updated here. | ||||
| */ | */ | ||||
| #undef __FreeBSD_version | #undef __FreeBSD_version | ||||
| #define __FreeBSD_version 1600020 | #define __FreeBSD_version 1600021 | ||||
| /* | /* | ||||
| * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, | * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, | ||||
| * which by definition is always true on FreeBSD. This macro is also defined | * which by definition is always true on FreeBSD. This macro is also defined | ||||
| * on other systems that use the kernel of FreeBSD, such as GNU/kFreeBSD. | * on other systems that use the kernel of FreeBSD, such as GNU/kFreeBSD. | ||||
| * | * | ||||
| * It is tempting to use this macro in userland code when we want to enable | * It is tempting to use this macro in userland code when we want to enable | ||||
| * kernel-specific routines, and in fact it's fine to do this in code that | * kernel-specific routines, and in fact it's fine to do this in code that | ||||
| ▲ Show 20 Lines • Show All 302 Lines • Show Last 20 Lines | |||||