linux_version.h 330 B

12345678910111213
  1. #pragma once
  2. #include <tuple>
  3. namespace NYql {
  4. // returns version, patch level, sublevel, e.g. (4, 4, 114) for `uname -r` == "4.4.114-50"
  5. std::tuple<int, int, int> DetectLinuxKernelVersion3();
  6. // returns version, patch level
  7. std::pair<int, int> DetectLinuxKernelVersion2();
  8. bool IsLinuxKernelBelow4_3();
  9. }