1 2 3 4 5 6 7 8 9 10 11
#include <linux/version.h> #ifndef UTS_RELEASE #include <linux/utsrelease.h> #endif #include <stdio.h> main() { printf("%s", UTS_RELEASE); }