Bitcoin Core  27.99.0
P2P Digital Currency
system.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-present The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef BITCOIN_COMMON_SYSTEM_H
7 #define BITCOIN_COMMON_SYSTEM_H
8 
9 #include <config/bitcoin-config.h> // IWYU pragma: keep
10 
11 #include <cstdint>
12 #include <string>
13 
14 // Application startup time (used for uptime calculation)
15 int64_t GetStartupTime();
16 
17 void SetupEnvironment();
18 [[nodiscard]] bool SetupNetworking();
19 #ifndef WIN32
20 std::string ShellEscape(const std::string& arg);
21 #endif
22 #if HAVE_SYSTEM
23 void runCommand(const std::string& strCommand);
24 #endif
25 
30 int GetNumCores();
31 
32 #endif // BITCOIN_COMMON_SYSTEM_H
int64_t GetStartupTime()
Definition: system.cpp:107
bool SetupNetworking()
Definition: system.cpp:89
void SetupEnvironment()
Definition: system.cpp:57
int GetNumCores()
Return the number of cores available on the current system.
Definition: system.cpp:101
std::string ShellEscape(const std::string &arg)
Definition: system.cpp:35