aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/utils/sys/linux_version.h
blob: c8c32da125c7b2ce4cc28fb9a30605491f550899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <tuple>

namespace NYql {
    // returns version, patch level, sublevel, e.g. (4, 4, 114) for `uname -r` == "4.4.114-50"
    std::tuple<int, int, int> DetectLinuxKernelVersion3();

    // returns version, patch level
    std::pair<int, int> DetectLinuxKernelVersion2();

    bool IsLinuxKernelBelow4_3();
}