Host system utilities.
Namespaces
Name |
Description |
Filesystem path and open‐flag helpers. |
|
Utilities for measuring display width and testing printable characters. |
|
Path parsing and manipulation utilities (TR2/boost‐filesystem style). |
|
Thread‐local controls for detecting unexpected host filesystem IO. |
|
Utilities for querying Unicode character properties and names. |
Types
Name |
Description |
Portable interface to load and search dynamic libraries. |
|
RAII helper that initializes COM for the current thread. |
|
This class provides various memory handling functions that manipulate MemoryBlock instances. |
|
Memory block with an address and a size. |
|
Owning version of MemoryBlock. |
|
A collection of legacy interfaces for querying information about the current executing process. |
|
This struct encapsulates information about a process. |
|
This struct encapsulates information about a process execution. |
|
Mutex that optionally becomes a no‐op outside multithreaded mode. |
|
An R/W mutex that can become a no‐op when not multithreaded. |
|
Represents a closed range of Unicode code points [Lower, Upper]. |
|
Holds a reference to an ordered array of UnicodeCharRange and allows to quickly check if a code point is contained in the set represented by this array. |
|
Clock whose time points represent UTC instants for formatting. |
|
Abstraction for a timeout around an operation that must complete in time. |
Type Aliases
Name |
Description |
Mutex ‐ A standard, always enforced mutex. |
|
A standard, always‐enforced reader/writer mutex. |
|
RAII lock guard for |
|
RAII acquisition of a reader lock on a |
|
RAII acquisition of a writer lock on a |
|
Callback invoked by |
|
RAII lock guard for |
|
RAII shared (reader) lock guard for |
|
RAII exclusive (writer) lock guard for |
|
A time point on the system clock. |
|
A time point on the UTC clock with duration |
|
Integer type used as the value type for legacy compare‐and‐swap. |
|
Platform‐native process handle type. |
|
Process identifier type. |
Enums
Name |
Description |
Threading model used when initializing COM on Windows. |
|
File encoding options when writing contents that a non‐UTF8 tool will read (on Windows systems). For UNIX, we always use UTF‐8. |
Functions
Name |
Description |
Add a function to be called when an abort/kill signal is delivered to the process. |
|
Change stdin to the mode described by |
|
Change stdin to binary mode. |
|
Change stdout to the mode described by |
|
Change stdout to binary mode. |
|
Clean up temporary files, dump the stack, run handlers, and create a crash dump after a fatal signal. |
|
Atomically compares the value at |
|
On Unix systems and Windows, this function exits with an "IO error" exit code. |
|
Disable all system dialog boxes that appear when the process crashes. |
|
This function removes a file from the list of files to be removed on signal delivery. |
|
Execute a program and wait for it to finish. |
|
Similar to |
|
Issues a full memory fence that orders preceding and following accesses. |
|
Print the stack trace using the given |
|
When an error signal (such as SIGABRT or SIGSEGV) is delivered to the process, print a stack trace and then exit. Print a stack trace if a fatal signal occurs. |
|
This function registers signal handlers to ensure that if a signal gets delivered that the named file is removed. Remove a file if a fatal signal occurs. |
|
Invokes |
|
This function runs all the registered interrupt handlers, including the removal of files registered by RemoveFileOnSignal. |
|
Run all registered signal handlers added via |
|
Returns true if Valgrind is controlling this process. |
|
Registers a function to be called when an "info" signal is delivered to the process. |
|
Register a function to be called when the user interrupts the program. |
|
Register a one‐shot handler for a failed write to a pipe. |
|
|
|
Discards Valgrind's translation of code in the given address range. |
|
This function waits for the process specified by |
|
Return true if the given arguments fit within system‐specific argument length limits. |
|
Find the first executable file |
|
getDefaultTargetTriple() ‐ Return the default target triple the compiler has been configured to produce code for. |
|
getHostCPUFeatures ‐ Get the LLVM names for the host CPU features. |
|
getHostCPUName ‐ Get the LLVM name for the host CPU. |
|
getProcessTriple() ‐ Return an appropriate target triple for generating code to be loaded into the current process, e.g. when using the JIT. |
|
|
|
Print a command argument, and optionally quote it. |
|
This is a function compatible with cl::AddExtraVersionPrinter, which adds info about the current target triple and detected CPU. |
|
Reverse the byte order of |
|
|
|
|
|
Convert a std::time_t to a UtcTime. |
|
Unregister previously installed signal handlers, restoring prior behavior. |
|
Saves the UTF8‐encoded |
|
Stream insertion operators |
|
Less‐than operators |
Variables
Name |
Description |
OS‐specific separator for PATH‐like environment variables. |
|
True if this host stores multi‐byte values most‐significant byte first. |
|
True if this host stores multi‐byte values least‐significant byte first. |
Created with MrDocs