LLDB mainline
PosixApi.h File Reference
#include "lldb/Host/Config.h"
#include "llvm/Support/Compiler.h"
#include <cstdarg>
#include <ctime>
#include <sys/types.h>

Go to the source code of this file.

Macros

#define PATH_MAX   32768
#define O_NOCTTY   0
#define O_NONBLOCK   0
#define SIGTRAP   5
#define SIGKILL   9
#define SIGSTOP   20
#define S_IRUSR   S_IREAD /* read, user */
#define S_IWUSR   S_IWRITE /* write, user */
#define S_IXUSR   0 /* execute, user */
#define S_IRGRP   0 /* read, group */
#define S_IWGRP   0 /* write, group */
#define S_IXGRP   0 /* execute, group */
#define S_IROTH   0 /* read, others */
#define S_IWOTH   0 /* write, others */
#define S_IXOTH   0 /* execute, others */
#define S_IRWXU   0
#define S_IRWXG   0
#define S_IRWXO   0

Functions

int posix_openpt (int flag)
int unlockpt (int fd)
int grantpt (int fd)
char * ptsname (int fd)
pid_t fork (void)
pid_t setsid (void)

Macro Definition Documentation

◆ O_NOCTTY

◆ O_NONBLOCK

◆ PATH_MAX

#define PATH_MAX   32768

Definition at line 25 of file windows/PosixApi.h.

Referenced by CommandObjectTargetSymbolsAdd::AddModuleSymbols(), lldb_private::Process::Attach(), lldb::SBTarget::ClearModuleLoadAddress(), SymbolVendorMacOSX::CreateInstance(), lldb_private::TargetList::CreateTargetInternal(), DiskFilesOrDirectories(), CommandObjectLogEnable::DoExecute(), CommandObjectTargetModulesLoad::DoExecute(), lldb_private::platform_android::PlatformAndroid::DownloadModuleSlice(), DumpTargetInfo(), GetDbgShellCommand(), lldb::SBDeclaration::GetDescription(), lldb::SBFileSpec::GetDescription(), lldb::SBFileSpecList::GetDescription(), lldb::SBLineEntry::GetDescription(), lldb::SBProcess::GetDescription(), lldb_private::Module::GetDescription(), lldb_private::SymbolContextSpecifier::GetDescription(), lldb_private::PlatformDarwinDevice::GetDeviceSupportDirectoryForOSVersion(), GetExecutableForProcess(), GetExePathAndArch(), lldb_private::platform_android::PlatformAndroid::GetFile(), lldb_private::NativeFile::GetFileSpec(), lldb_private::HostInfoPosix::GetHostname(), lldb_private::HostInfoMacOSX::GetOSBuildString(), GetPassword(), lldb_private::HostInfoFreeBSD::GetProgramFileSpec(), lldb_private::HostInfoLinux::GetProgramFileSpec(), lldb_private::HostInfoMacOSX::GetProgramFileSpec(), lldb_private::HostInfoWindows::GetProgramFileSpec(), lldb_private::PseudoTerminal::GetSecondaryName(), lldb_private::ModuleList::GetSharedModule(), lldb_private::PlatformDarwin::GetSharedModule(), lldb_private::PlatformRemoteDarwinDevice::GetSharedModule(), lldb_private::PlatformAppleSimulator::GetSymbolFile(), lldb_private::PlatformRemoteDarwinDevice::GetSymbolFile(), HexagonDYLDRendezvous::HexagonDYLDRendezvous(), lldb_private::PluginManager::Initialize(), lldb_private::Debugger::InstanceInitialize(), lldb_private::SymbolLocatorDebugSymbols::LocateExecutableObjectFile(), lldb_private::SymbolLocatorDefault::LocateExecutableSymbolFile(), LocateMacOSXFilesUsingDebugSymbols(), DynamicLoaderMacOSXDYLD::ReadImageInfos(), lldb_private::FileSystem::Readlink(), lldb_private::NativeProcessELF::ReadSVR4LibraryInfo(), lldb_private::FileSystem::ResolveSymbolicLink(), lldb_private::platform_android::AdbClient::SetPortForwarding(), lldb::SBThread::StepOverUntil(), and lldb_private::PlatformDarwinDevice::UpdateSDKDirectoryInfosIfNeeded().

◆ S_IRGRP

#define S_IRGRP   0 /* read, group */

Definition at line 40 of file windows/PosixApi.h.

Referenced by GetOpenMode().

◆ S_IROTH

#define S_IROTH   0 /* read, others */

Definition at line 45 of file windows/PosixApi.h.

Referenced by GetOpenMode().

◆ S_IRUSR

#define S_IRUSR   S_IREAD /* read, user */

Definition at line 35 of file windows/PosixApi.h.

Referenced by GetOpenMode(), and HandleFileAction().

◆ S_IRWXG

◆ S_IRWXO

◆ S_IRWXU

◆ S_IWGRP

#define S_IWGRP   0 /* write, group */

Definition at line 41 of file windows/PosixApi.h.

Referenced by GetOpenMode().

◆ S_IWOTH

#define S_IWOTH   0 /* write, others */

Definition at line 46 of file windows/PosixApi.h.

Referenced by GetOpenMode().

◆ S_IWUSR

#define S_IWUSR   S_IWRITE /* write, user */

Definition at line 36 of file windows/PosixApi.h.

Referenced by GetOpenMode(), and HandleFileAction().

◆ S_IXGRP

#define S_IXGRP   0 /* execute, group */

Definition at line 42 of file windows/PosixApi.h.

Referenced by GetOpenMode().

◆ S_IXOTH

#define S_IXOTH   0 /* execute, others */

Definition at line 47 of file windows/PosixApi.h.

Referenced by GetOpenMode().

◆ S_IXUSR

#define S_IXUSR   0 /* execute, user */

Definition at line 37 of file windows/PosixApi.h.

Referenced by GetOpenMode().

◆ SIGKILL

◆ SIGSTOP

◆ SIGTRAP

#define SIGTRAP   5

Definition at line 30 of file windows/PosixApi.h.

Referenced by lldb_private::Host::GetSignalAsCString(), lldb_private::process_freebsd::NativeProcessFreeBSD::MonitorCallback(), lldb_private::process_linux::NativeProcessLinux::MonitorCallback(), lldb_private::process_netbsd::NativeProcessNetBSD::MonitorCallback(), lldb_private::process_freebsd::NativeProcessFreeBSD::MonitorSIGTRAP(), lldb_private::process_linux::NativeProcessLinux::MonitorSIGTRAP(), lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSIGTRAP(), lldb_private::process_freebsd::NativeThreadFreeBSD::SetStoppedByBreakpoint(), lldb_private::process_linux::NativeThreadLinux::SetStoppedByBreakpoint(), lldb_private::process_netbsd::NativeThreadNetBSD::SetStoppedByBreakpoint(), lldb_private::process_freebsd::NativeThreadFreeBSD::SetStoppedByExec(), lldb_private::process_netbsd::NativeThreadNetBSD::SetStoppedByExec(), lldb_private::process_freebsd::NativeThreadFreeBSD::SetStoppedByFork(), lldb_private::process_linux::NativeThreadLinux::SetStoppedByFork(), lldb_private::process_netbsd::NativeThreadNetBSD::SetStoppedByFork(), lldb_private::process_freebsd::NativeThreadFreeBSD::SetStoppedByTrace(), lldb_private::process_linux::NativeThreadLinux::SetStoppedByTrace(), lldb_private::process_netbsd::NativeThreadNetBSD::SetStoppedByTrace(), lldb_private::process_freebsd::NativeThreadFreeBSD::SetStoppedByVFork(), lldb_private::process_netbsd::NativeThreadNetBSD::SetStoppedByVFork(), lldb_private::process_freebsd::NativeThreadFreeBSD::SetStoppedByVForkDone(), lldb_private::process_linux::NativeThreadLinux::SetStoppedByVForkDone(), lldb_private::process_netbsd::NativeThreadNetBSD::SetStoppedByVForkDone(), lldb_private::process_freebsd::NativeThreadFreeBSD::SetStoppedByWatchpoint(), lldb_private::process_linux::NativeThreadLinux::SetStoppedByWatchpoint(), lldb_private::process_netbsd::NativeThreadNetBSD::SetStoppedByWatchpoint(), lldb_private::NativeProcessWindows::SetStopReasonForThread(), and lldb_private::process_gdb_remote::ProcessGDBRemote::SetThreadStopInfo().

Function Documentation

◆ fork()

pid_t fork ( void )
inline

◆ grantpt()

int grantpt ( int fd)
inline

◆ posix_openpt()

int posix_openpt ( int flag)
inline

◆ ptsname()

char * ptsname ( int fd)
inline

Definition at line 94 of file windows/PosixApi.h.

Referenced by use_ptsname().

◆ setsid()

pid_t setsid ( void )
inline

Definition at line 97 of file windows/PosixApi.h.

Referenced by lldb_private::PseudoTerminal::Fork().

◆ unlockpt()

int unlockpt ( int fd)
inline