LLDB mainline
Classes | Functions | Variables
HostInfoPosix.cpp File Reference
#include "lldb/Host/posix/HostInfoPosix.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/UserIDResolver.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include <climits>
#include <cstdlib>
#include <grp.h>
#include <mutex>
#include <optional>
#include <pwd.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  PasswdEntry
 

Functions

static std::optional< PasswdEntryGetPassword (id_t uid)
 

Variables

static llvm::ManagedStatic< PosixUserIDResolver > g_user_id_resolver
 

Function Documentation

◆ GetPassword()

static std::optional< PasswdEntry > GetPassword ( id_t  uid)
static

Definition at line 70 of file HostInfoPosix.cpp.

References PATH_MAX.

Referenced by lldb_private::HostInfoPosix::GetDefaultShell().

Variable Documentation

◆ g_user_id_resolver

llvm::ManagedStatic<PosixUserIDResolver> g_user_id_resolver
static