diff options
Diffstat (limited to 'include/lldb/Host/posix/HostInfoPosix.h')
-rw-r--r-- | include/lldb/Host/posix/HostInfoPosix.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/lldb/Host/posix/HostInfoPosix.h b/include/lldb/Host/posix/HostInfoPosix.h index dda70f9f5a96a..26910132f3c83 100644 --- a/include/lldb/Host/posix/HostInfoPosix.h +++ b/include/lldb/Host/posix/HostInfoPosix.h @@ -1,9 +1,8 @@ //===-- HostInfoPosix.h -----------------------------------------*- C++ -*-===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -15,14 +14,14 @@ namespace lldb_private { +class UserIDResolver; + class HostInfoPosix : public HostInfoBase { friend class HostInfoBase; public: static size_t GetPageSize(); static bool GetHostname(std::string &s); - static const char *LookupUserName(uint32_t uid, std::string &user_name); - static const char *LookupGroupName(uint32_t gid, std::string &group_name); static uint32_t GetUserID(); static uint32_t GetGroupID(); @@ -33,8 +32,7 @@ public: static bool GetEnvironmentVar(const std::string &var_name, std::string &var); - static bool ComputePathRelativeToLibrary(FileSpec &file_spec, - llvm::StringRef dir); + static UserIDResolver &GetUserIDResolver(); protected: static bool ComputeSupportExeDirectory(FileSpec &file_spec); |