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 <grp.h>
#include <limits.h>
#include <mutex>
#include <pwd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
Include dependency graph for HostInfoPosix.cpp:

Go to the source code of this file.

Classes

struct  PasswdEntry
 

Functions

static llvm::Optional< PasswdEntryGetPassword (id_t uid)
 

Variables

static llvm::ManagedStatic< PosixUserIDResolver > g_user_id_resolver
 

Function Documentation

◆ GetPassword()

static llvm::Optional<PasswdEntry> GetPassword ( id_t  uid)
static

Definition at line 60 of file HostInfoPosix.cpp.

References PATH_MAX, and PasswdEntry::username.

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

Variable Documentation

◆ g_user_id_resolver

llvm::ManagedStatic<PosixUserIDResolver> g_user_id_resolver
static

Definition at line 110 of file HostInfoPosix.cpp.

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