![]() |
Bitcoin Core 32.1.0
P2P Digital Currency
|
#include <bitcoin-build-config.h>#include <common/system.h>#include <util/log.h>#include <util/string.h>#include <util/time.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>#include <cstdint>#include <cstdlib>#include <locale>#include <optional>#include <stdexcept>#include <string>#include <thread>Go to the source code of this file.
Functions | |
| std::string | ShellEscape (const std::string &arg) |
| void | SetupEnvironment () |
| bool | SetupNetworking () |
| int | GetNumCores () |
| Return the number of cores available on the current system. | |
| std::optional< uint64_t > | TryGetTotalRam () |
| Return the total RAM available on the current system, if detectable. | |
| SteadyClock::duration | GetUptime () |
| Monotonic uptime (not affected by system time changes). | |
| void | ReplaceAll (std::string &in_out, std::string_view search, std::string_view substitute) |
| Replace every non-overlapping occurrence of search with substitute, treating both literally; the replacement text is not searched again. | |
| int GetNumCores | ( | ) |
Return the number of cores available on the current system.
Definition at line 103 of file system.cpp.
| SteadyClock::duration GetUptime | ( | ) |
Monotonic uptime (not affected by system time changes).
Definition at line 125 of file system.cpp.
| void util::ReplaceAll | ( | std::string & | in_out, |
| std::string_view | search, | ||
| std::string_view | substitute ) |
Replace every non-overlapping occurrence of search with substitute, treating both literally; the replacement text is not searched again.
Definition at line 14 of file string.cpp.
| void SetupEnvironment | ( | ) |
Definition at line 58 of file system.cpp.
|
nodiscard |
Definition at line 91 of file system.cpp.
| std::string ShellEscape | ( | const std::string & | arg | ) |
Definition at line 39 of file system.cpp.
| std::optional< uint64_t > TryGetTotalRam | ( | ) |
Return the total RAM available on the current system, if detectable.
Definition at line 108 of file system.cpp.