![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <bitcoin-build-config.h>#include <common/system.h>#include <logging.h>#include <util/string.h>#include <util/time.h>#include <sys/stat.h>#include <unistd.h>#include <algorithm>#include <cstddef>#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< size_t > | GetTotalRAM () |
| 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, const std::string &search, const std::string &substitute) |
| int GetNumCores | ( | ) |
Return the number of cores available on the current system.
Definition at line 109 of file system.cpp.
| std::optional< size_t > GetTotalRAM | ( | ) |
Return the total RAM available on the current system, if detectable.
Definition at line 114 of file system.cpp.
| SteadyClock::duration GetUptime | ( | ) |
Monotonic uptime (not affected by system time changes).
Definition at line 134 of file system.cpp.
| void util::ReplaceAll | ( | std::string & | in_out, |
| const std::string & | search, | ||
| const std::string & | substitute ) |
| void SetupEnvironment | ( | ) |
Definition at line 64 of file system.cpp.
|
nodiscard |
| std::string ShellEscape | ( | const std::string & | arg | ) |
Definition at line 41 of file system.cpp.