Lines Matching +full:lsb +full:- +full:release

1 //===--- Distro.cpp - Linux distribution detection support ------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
25 VFS.getBufferForFile("/etc/os-release"); in DetectOsRelease()
27 File = VFS.getBufferForFile("/usr/lib/os-release"); in DetectOsRelease()
32 File.get()->getBuffer().split(Lines, "\n"); in DetectOsRelease()
43 // On SLES, /etc/os-release was introduced in SLES 11. in DetectOsRelease()
53 VFS.getBufferForFile("/etc/lsb-release"); in DetectLsbRelease()
58 File.get()->getBuffer().split(Lines, "\n"); in DetectLsbRelease()
106 // Newer freedesktop.org's compilant systemd-based systems in DetectDistro()
107 // should provide /etc/os-release or /usr/lib/os-release. in DetectDistro()
112 // Older systems might provide /etc/lsb-release. in DetectDistro()
117 // Otherwise try some distro-specific quirks for Red Hat... in DetectDistro()
119 VFS.getBufferForFile("/etc/redhat-release"); in DetectDistro()
122 StringRef Data = File.get()->getBuffer(); in DetectDistro()
123 if (Data.starts_with("Fedora release")) in DetectDistro()
127 if (Data.contains("release 7")) in DetectDistro()
129 else if (Data.contains("release 6")) in DetectDistro()
131 else if (Data.contains("release 5")) in DetectDistro()
140 StringRef Data = File.get()->getBuffer(); in DetectDistro()
180 File = VFS.getBufferForFile("/etc/SuSE-release"); in DetectDistro()
182 StringRef Data = File.get()->getBuffer(); in DetectDistro()
205 if (VFS.exists("/etc/gentoo-release")) in DetectDistro()
223 // is cross-compiling from BSD or Windows to Linux, and it would be in GetDistro()
224 // meaningless to try to figure out the "distro" of the non-Linux host. in GetDistro()