diff --git a/utils/uname.cpp b/utils/uname.cpp index ad7746c7..d19f12b6 100644 --- a/utils/uname.cpp +++ b/utils/uname.cpp @@ -1,7 +1,18 @@ +#include +#include #include +#include +#include int main(int argc, char* argv[]) { - printf("Sortix %zu bit\n", sizeof(size_t) * 8UL); + size_t VERSIONSIZE = 256UL; + char version[VERSIONSIZE]; + if ( kernelinfo("version", version, VERSIONSIZE) ) + { + error(1, errno, "kernelinfo(\"version\")"); + } + printf("Sortix %zu bit (%s)\n", sizeof(size_t) * 8UL, version); return 0; } +